MindFormal v1.0.0One Mind

MindFormal.Run.CurrentSegment

A constructed current-state segment kernel. A segment world supplies primitive future inputs and its endpoint memory update. This file does not assert that every homogeneous world has been represented this way, or that the resulting segments splice to the previously constructed global run.

structure MindFormal.CurrentSegmentProgram (A : Type u_1) (H : ℝ) (N n : A → ℕ) (T : A → Type u_2) (Λ : A → Type u_3) (Memory : Type u_4) (Source : Type u_5) [MeasurableSpace Memory] [MeasurableSpace Source] [(a : A) → Fintype (T a)] [(a : A) → Fintype (Λ a)] :
Type (max (max (max (max u_1 u_2) u_3) u_4) u_5)
Instances For
    @[reducible, inline]
    abbrev MindFormal.CurrentSegmentProgram.State {A : Type u_1} {H : ℝ} {N n : A → ℕ} {T : A → Type u_2} {Λ : A → Type u_3} [(a : A) → Fintype (T a)] [(a : A) → Fintype (Λ a)] {Memory : Type u_4} {Source : Type u_5} [MeasurableSpace Memory] [MeasurableSpace Source] (_P : CurrentSegmentProgram A H N n T Λ Memory Source) :
    Type (max (max (max u_1 u_2) u_3) u_4)
    Equations
    Instances For
      def MindFormal.CurrentSegmentProgram.residual {A : Type u_1} {H : ℝ} {N n : A → ℕ} {T : A → Type u_2} {Λ : A → Type u_3} [(a : A) → Fintype (T a)] [(a : A) → Fintype (Λ a)] {Memory : Type u_4} {Source : Type u_5} [MeasurableSpace Memory] [MeasurableSpace Source] (P : CurrentSegmentProgram A H N n T Λ Memory Source) (p : P.State × Source) :
      ResidualGroupData A H N n T Λ

      Install the current physical arrays and durations as initial data. Fresh drivers and future world inputs use only the displayed arguments.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        theorem MindFormal.CurrentSegmentProgram.response_measurable {A : Type u_1} {H : ℝ} {N n : A → ℕ} {T : A → Type u_2} {Λ : A → Type u_3} [(a : A) → Fintype (T a)] [(a : A) → Fintype (Λ a)] {Memory : Type u_4} {Source : Type u_5} [MeasurableSpace Memory] [MeasurableSpace Source] [Finite A] (P : CurrentSegmentProgram A H N n T Λ Memory Source) :
        Measurable fun (p : (P.State × Source) × FiniteClocks.Histories (A × Bool) fun (c : A × Bool) => N c.1) => (P.residual p.1).response p.2
        theorem MindFormal.CurrentSegmentProgram.records_measurable {A : Type u_1} {H : ℝ} {N n : A → ℕ} {T : A → Type u_2} {Λ : A → Type u_3} [(a : A) → Fintype (T a)] [(a : A) → Fintype (Λ a)] {Memory : Type u_4} {Source : Type u_5} [MeasurableSpace Memory] [MeasurableSpace Source] [Finite A] (P : CurrentSegmentProgram A H N n T Λ Memory Source) (c : A × Bool) :
        Measurable fun (p : (P.State × Source) × FiniteClocks.Histories (A × Bool) fun (c : A × Bool) => N c.1) => nativeActionHistory ((P.residual p.1).flow.schedule p.2 c)
        theorem MindFormal.CurrentSegmentProgram.constructed_measurable {A : Type u_1} [Fintype A] [Nonempty A] {H : ℝ} {N n : A → ℕ} {T : A → Type u_2} {Λ : A → Type u_3} [(a : A) → Fintype (T a)] [(a : A) → Fintype (Λ a)] {Memory : Type u_4} {Source : Type u_5} [MeasurableSpace Memory] [MeasurableSpace Source] (P : CurrentSegmentProgram A H N n T Λ Memory Source) :
        (Measurable fun (p : P.State × Source) => (P.residual p).history) ∧ Measurable fun (p : P.State × Source) => (P.residual p).response (P.residual p).history
        noncomputable def MindFormal.CurrentSegmentProgram.update {A : Type u_1} [Fintype A] [Nonempty A] {H : ℝ} {N n : A → ℕ} {T : A → Type u_2} {Λ : A → Type u_3} [(a : A) → Fintype (T a)] [(a : A) → Fintype (Λ a)] {Memory : Type u_4} {Source : Type u_5} [MeasurableSpace Memory] [MeasurableSpace Source] (P : CurrentSegmentProgram A H N n T Λ Memory Source) (p : P.State × Source) :

        The computed endpoint retains arrays, pulse durations, release durations and world memory. Complete records are outputs, never state fields.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          theorem MindFormal.CurrentSegmentProgram.update_measurable {A : Type u_1} [Fintype A] [Nonempty A] {H : ℝ} {N n : A → ℕ} {T : A → Type u_2} {Λ : A → Type u_3} [(a : A) → Fintype (T a)] [(a : A) → Fintype (Λ a)] {Memory : Type u_4} {Source : Type u_5} [MeasurableSpace Memory] [MeasurableSpace Source] (P : CurrentSegmentProgram A H N n T Λ Memory Source) :
          noncomputable def MindFormal.CurrentSegmentProgram.kernel {A : Type u_1} [Fintype A] [Nonempty A] {H : ℝ} {N n : A → ℕ} {T : A → Type u_2} {Λ : A → Type u_3} [(a : A) → Fintype (T a)] [(a : A) → Fintype (Λ a)] {Memory : Type u_4} {Source : Type u_5} [MeasurableSpace Memory] [MeasurableSpace Source] (P : CurrentSegmentProgram A H N n T Λ Memory Source) (ν : MeasureTheory.Measure Source) :

          A transition is computed from equations and the primitive source law; no transition measure is a field of the program. This is a segment kernel. Its identification as the original encounter chain is still a separate task.

          Equations
          Instances For
            instance MindFormal.CurrentSegmentProgram.kernel_markov {A : Type u_1} [Fintype A] [Nonempty A] {H : ℝ} {N n : A → ℕ} {T : A → Type u_2} {Λ : A → Type u_3} [(a : A) → Fintype (T a)] [(a : A) → Fintype (Λ a)] {Memory : Type u_4} {Source : Type u_5} [MeasurableSpace Memory] [MeasurableSpace Source] (P : CurrentSegmentProgram A H N n T Λ Memory Source) (ν : MeasureTheory.Measure Source) [MeasureTheory.IsProbabilityMeasure ν] :
            theorem MindFormal.CurrentSegmentProgram.kernel_apply {A : Type u_1} [Fintype A] [Nonempty A] {H : ℝ} {N n : A → ℕ} {T : A → Type u_2} {Λ : A → Type u_3} [(a : A) → Fintype (T a)] [(a : A) → Fintype (Λ a)] {Memory : Type u_4} {Source : Type u_5} [MeasurableSpace Memory] [MeasurableSpace Source] (P : CurrentSegmentProgram A H N n T Λ Memory Source) (ν : MeasureTheory.Measure Source) [MeasureTheory.SFinite ν] (s : P.State) :
            (P.kernel ν) s = MeasureTheory.Measure.map (fun (ξ : Source) => P.update (s, ξ)) ν