pith. machine review for the scientific record. sign in
def

eventCost

definition
show as:
view math explainer →
module
IndisputableMonolith.Foundation.UniversalForcing.Strict.Narrative
domain
Foundation
line
21 · github
papers citing
none yet

open explainer

Read the cached plain-language explainer.

open lean source

IndisputableMonolith.Foundation.UniversalForcing.Strict.Narrative on GitHub at line 21.

browse module

All declarations in this module, on Recognition.

explainer page

A cached Ask Recognition explainer exists for this declaration.

open explainer

depends on

used by

formal source

  18  beat : Nat
  19  deriving DecidableEq, Repr
  20
  21def eventCost (a b : EventState) : Nat :=
  22  if a = b then 0 else 1
  23
  24@[simp] theorem eventCost_self (a : EventState) : eventCost a a = 0 := by
  25  simp [eventCost]
  26
  27theorem eventCost_symm (a b : EventState) : eventCost a b = eventCost b a := by
  28  by_cases h : a = b
  29  · subst h
  30    simp [eventCost]
  31  · have h' : b ≠ a := by intro hb; exact h hb.symm
  32    simp [eventCost, h, h']
  33
  34def eventCompose (a b : EventState) : EventState :=
  35  { act := a.act + b.act, beat := a.beat + b.beat }
  36
  37def narrativeZero : EventState := ⟨0, 0⟩
  38def incitingBeat : EventState := ⟨0, 1⟩
  39
  40/-- Strict narrative realization using beat succession as the generator. -/
  41def strictNarrativeRealization : StrictLogicRealization where
  42  Carrier := EventState
  43  Cost := Nat
  44  zeroCost := inferInstance
  45  compare := eventCost
  46  compose := eventCompose
  47  one := narrativeZero
  48  generator := incitingBeat
  49  identity_law := eventCost_self
  50  non_contradiction_law := eventCost_symm
  51  excluded_middle_law := True