MindFormal v1.0.0One Mind

MindFormal.Run.HistorySplice

Drop a specified number of slots. Finite support is preserved.

Equations
Instances For

    Translate occupied slots and keep the canonical empty marker.

    Equations
    Instances For
      noncomputable def MindFormal.joinHistory {C : Type u_1} (c : ℝ) (past future : FiniteActionHistory C) :

      Join a closed prefix to a future record, translating future times. The append position is the first empty prefix slot, not a supplied index.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For

        Every slot after the first empty one of a chronological history is the canonical empty slot.

        theorem MindFormal.chronological_first_le {C : Type u_1} {h : FiniteActionHistory C} (hh : ChronologicalHistory h) {k : ℕ} {i : C} (hi : (↑h k).2 = Sum.inl i) :
        (↑h 0).1 ≤ (↑h k).1

        The first occupied slot precedes every later occupied slot.

        theorem MindFormal.actionPast_empty_of_first {C : Type u_1} {h : FiniteActionHistory C} (hh : ChronologicalHistory h) (t : ℝ) (ht : t ≤ (↑h 0).1) :

        Before the first act, a chronological strict-past record is empty.

        Erasing acts at or after a time preserves chronology, the occupied prefix and canonical empty slots. The cut time may be any real number.

        Drop any cut-time act from the future side. On a chronological nonnegative record there is at most one; the closed prefix already owns it. This also gives a total world program on arbitrary prescribed future records.

        Equations
        Instances For

          Dropping slots commutes with strict-past restriction.

          theorem MindFormal.positiveHistory_valid {C : Type u_1} {h : FiniteActionHistory C} (hh : ChronologicalHistory h) :
          ChronologicalHistory (positiveHistory h) ∧ ∀ (k : ℕ) (i : C), (↑(positiveHistory h) k).2 = Sum.inl i → 0 < (↑(positiveHistory h) k).1

          The positive future is chronological and every occupied time is strictly positive, including on arbitrary prescribed chronological records.

          Positive-tail extraction is causal. In particular erasing unseen future acts cannot alter the elapsed world's input.

          theorem MindFormal.joinHistory_past {C : Type u_1} (c t : ℝ) (past future : FiniteActionHistory C) :
          actionPast (c + t) (joinHistory c past (actionPast t future)) = actionPast (c + t) (joinHistory c past future)

          Translation and joining commute with a strict future cut, after restricting the joined record at the corresponding original time.

          def MindFormal.CutValid {C : Type u_1} (c : ℝ) (past future : FiniteActionHistory C) :

          A cut at c as an actual run makes it: a chronological past whose every act is at or before the cut, and a chronological future whose every act is strictly after it, in the future's own elapsed time.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            theorem MindFormal.CutValid.actionPast {C : Type u_1} {c : ℝ} {past future : FiniteActionHistory C} (h : CutValid c past future) (t : ℝ) :

            Restricting the future to its strict past preserves all four cut conditions. In particular it creates no act at the elapsed origin.

            theorem MindFormal.joinHistory_valid {C : Type u_1} (c : ℝ) (hc : 0 ≤ c) (past future : FiniteActionHistory C) (hp : ChronologicalHistory past) (hf : ChronologicalHistory future) (hpc : ∀ (k : ℕ) (i : C), (↑past k).2 = Sum.inl i → (↑past k).1 ≤ c) (hft : ∀ (k : ℕ) (i : C), (↑future k).2 = Sum.inl i → 0 < (↑future k).1) :

            A closed chronological prefix joined to a strictly positive future record is chronological, even when an old event lies exactly at the cut.

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

            A record already strictly after the cut is unchanged by the total positive-tail adapter.

            theorem MindFormal.RetainedClock.native_closed_time {N : ℕ} {g f : ℝ → Fin N → ℝ} {H ρ : ℝ} (S : NativeSchedule g f H ρ) (c : ℝ) (hc : c ≤ H) (k : ℕ) (i : Fin N) (hi : (↑(nativeActionHistory (S.closedPrefix c hc)) k).2 = Sum.inl i) :
            (↑(nativeActionHistory (S.closedPrefix c hc)) k).1 ≤ c

            Every occupied closed-prefix slot is at or before its cut.

            theorem MindFormal.RetainedClock.future_event_positive {N : ℕ} {g f : ℝ → Fin N → ℝ} {H ρ : ℝ} (S : NativeSchedule g f H ρ) (c : ℝ) (hc0 : 0 ≤ c) (hc : c ≤ H) (hg : ∀ (i : Fin N), ContinuousOn (fun (t : ℝ) => g t i) (Set.Icc 0 H)) (F : NativeSchedule (residualGuard (remainingRelease c ρ 0 (nativeActionHistory (S.closedPrefix c hc))) fun (t : ℝ) => g (c + t)) (fun (t : ℝ) => f (c + t)) (H - c) ρ) (k : ℕ) (t : ℝ) (i : Fin N) (he : (F.search k).event = some (t, i)) :
            0 < t

            Every constructed future event is strictly after the closed cut.

            theorem MindFormal.RetainedClock.native_joinHistory {N : ℕ} {g f : ℝ → Fin N → ℝ} {H ρ : ℝ} (S : NativeSchedule g f H ρ) (c : ℝ) (hc0 : 0 ≤ c) (hc : c ≤ H) (hg : ∀ (i : Fin N), ContinuousOn (fun (t : ℝ) => g t i) (Set.Icc 0 H)) (F : NativeSchedule (residualGuard (remainingRelease c ρ 0 (nativeActionHistory (S.closedPrefix c hc))) fun (t : ℝ) => g (c + t)) (fun (t : ℝ) => f (c + t)) (H - c) ρ) :

            Closed prefix plus reindexed future equals the original record slot by slot, including absent slots and an event exactly at the cut.

            theorem MindFormal.RetainedClock.native_positive_future {N : ℕ} {g f : ℝ → Fin N → ℝ} {H ρ : ℝ} (S : NativeSchedule g f H ρ) (c : ℝ) (hc0 : 0 ≤ c) (hc : c ≤ H) (hg : ∀ (i : Fin N), ContinuousOn (fun (t : ℝ) => g t i) (Set.Icc 0 H)) (F : NativeSchedule (residualGuard (remainingRelease c ρ 0 (nativeActionHistory (S.closedPrefix c hc))) fun (t : ℝ) => g (c + t)) (fun (t : ℝ) => f (c + t)) (H - c) ρ) :

            The elapsed-world positive-tail adapter does not discard any actual future native event.

            theorem MindFormal.RetainedClock.native_cutValid {N : ℕ} {g f : ℝ → Fin N → ℝ} {H ρ : ℝ} (S : NativeSchedule g f H ρ) (c : ℝ) (hc0 : 0 ≤ c) (hc : c ≤ H) (hg : ∀ (i : Fin N), ContinuousOn (fun (t : ℝ) => g t i) (Set.Icc 0 H)) (F : NativeSchedule (residualGuard (remainingRelease c ρ 0 (nativeActionHistory (S.closedPrefix c hc))) fun (t : ℝ) => g (c + t)) (fun (t : ℝ) => f (c + t)) (H - c) ρ) :

            The closed prefix and the constructed future of a native schedule satisfy exactly the four conditions used by homogeneous composition.