MindFormal v1.0.0One Mind

MindFormal.Run.HistoryCut

noncomputable def MindFormal.closedHistory {C : Type u_1} (c : ℝ) (h : FiniteActionHistory C) :

The closed part of a finite record retains an act exactly at the cut. It is defined on all records and introduces no new occupied slots.

Equations
Instances For
    theorem MindFormal.closedHistory_slot {C : Type u_1} (c : ℝ) (h : FiniteActionHistory C) (k : ℕ) (i : C) :
    (↑(closedHistory c h) k).2 = Sum.inl i ↔ (↑h k).1 ≤ c ∧ (↑h k).2 = Sum.inl i

    Occupancy in the closed prefix is exactly occupancy in the original record together with its time being no later than the cut.

    theorem MindFormal.closedHistory_occupied {C : Type u_1} (c : ℝ) (h : FiniteActionHistory C) {k : ℕ} {i : C} (hi : (↑(closedHistory c h) k).2 = Sum.inl i) :
    ↑(closedHistory c h) k = ↑h k

    Every retained occupied slot has exactly its original time and label; this includes acts at the cut rather than dropping them.

    A closed restriction preserves chronological order and the occupied prefix, for every cut and every chronological finite record.

    theorem MindFormal.after_closedHistory {C : Type u_1} {h : FiniteActionHistory C} (hh : ChronologicalHistory h) (c : ℝ) {k : ℕ} (hk : RetainedClock.nextIndex (closedHistory c h) ≤ k) {i : C} (hi : (↑h k).2 = Sum.inl i) :
    c < (↑h k).1

    An original occupied slot beyond the closed prefix lies strictly after the cut. No assumption that the record was generated natively is needed.

    noncomputable def MindFormal.laterHistory {C : Type u_1} (c : ℝ) (h : FiniteActionHistory C) :

    The remaining record starts at the first slot outside the closed prefix and rebases each occupied time by the cut. Empty slots stay canonical.

    Equations
    Instances For
      theorem MindFormal.laterHistory_slot {C : Type u_1} (c : ℝ) (h : FiniteActionHistory C) (k : ℕ) (i : C) :
      (↑(laterHistory c h) k).2 = Sum.inl i ↔ (↑h (RetainedClock.nextIndex (closedHistory c h) + k)).2 = Sum.inl i

      Rebasing the remaining record preserves exactly its original occupied labels; no timestamp can create or delete an act.

      theorem MindFormal.laterHistory_time {C : Type u_1} (c : ℝ) (h : FiniteActionHistory C) {k : ℕ} {i : C} (hi : (↑(laterHistory c h) k).2 = Sum.inl i) :
      (↑(laterHistory c h) k).1 = -c + (↑h (RetainedClock.nextIndex (closedHistory c h) + k)).1

      The elapsed time of a remaining act is its original time minus the cut, including the case of a cut in an unfinished market phase.

      Splitting any chronological finite record produces exactly the cut-valid records accepted by homogeneous composition. The cut owns its act.

      The closed prefix and rebased later rest reconstruct the original chronological record slot for slot, including absent slots and cut-time acts.

      theorem MindFormal.closedHistory_eq_of_before {C : Type u_1} {h : FiniteActionHistory C} (hh : ChronologicalHistory h) (c : ℝ) (ht : ∀ (k : ℕ) (i : C), (↑h k).2 = Sum.inl i → (↑h k).1 ≤ c) :

      Closing an already closed chronological record changes no slot.

      A chronological record's two parts partition its occupied count.

      Consuming a closed prefix cannot increase the number of remaining acts.

      A closed prefix containing an act removes at least one occupied slot.

      theorem MindFormal.closedHistory_join_after {C : Type u_1} {c : ℝ} {p f : FiniteActionHistory C} (hv : CutValid c p f) (s : ℝ) (hs : 0 ≤ s) :

      Closing after a valid join closes only its future part.

      theorem MindFormal.closedHistory_join_before {C : Type u_1} {c : ℝ} {p f : FiniteActionHistory C} (hv : CutValid c p f) (e : ℝ) (he : e ≤ c) :

      Closing before a valid join sees only the past part.

      theorem MindFormal.CutValid.closedHistory {C : Type u_1} {c : ℝ} {p f : FiniteActionHistory C} (hv : CutValid c p f) (s : ℝ) :

      Closing the future of a valid cut preserves each cut condition.

      Successive translations add, including canonical empty slots.

      theorem MindFormal.laterHistory_join_after {C : Type u_1} {c : ℝ} {p f : FiniteActionHistory C} (hv : CutValid c p f) (s : ℝ) (hs : 0 ≤ s) :

      The rest after a cut following a valid join is the corresponding rest of the future, with elapsed times measured from that later cut.

      theorem MindFormal.CutValid.laterHistory {C : Type u_1} {c : ℝ} {p f : FiniteActionHistory C} (hv : CutValid c p f) (e : ℝ) :

      Splitting a past before its old cut leaves a valid later past at the residual cut. The original future remains strictly positive.

      theorem MindFormal.laterHistory_join_before {C : Type u_1} {c : ℝ} {p f : FiniteActionHistory C} (hv : CutValid c p f) (e : ℝ) (he : e ≤ c) :

      The rest after a cut before a valid join is the remaining past joined to the same future at the residual cut.