MindFormal v1.0.0One Mind

MindFormal.Run.NativeCompletionOccupation

noncomputable def MindFormal.CurrentSegmentProgram.firstCompletion {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) (c : A × Bool) (p : P.State × Source) :

A concrete completion instrument: the first event of a declared native clock, or the segment deadline if that clock defers. It reads the constructed record, not a supplied event time. A zero-time event gives zero duration.

Equations
Instances For
    theorem MindFormal.CurrentSegmentProgram.firstCompletion_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) (c : A × Bool) :

    This native completion is measurable in entering state and own source.

    theorem MindFormal.CurrentSegmentProgram.firstCompletion_le {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) (c : A × Bool) (p : P.State × Source) :

    Every realized completion is within its declared finite deadline.

    theorem MindFormal.CurrentSegmentProgram.firstCompletion_hit {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) (c : A × Bool) (p : P.State × Source) {t : ℝ} {i : Fin (N c.1)} (hit : (((P.residual p).flow.schedule (P.residual p).history c).search 0).event = some (t, i)) :

    An actual first native event, including an event exactly at the deadline, is the completion time. The cap cannot alter a native event.

    theorem MindFormal.CurrentSegmentProgram.firstCompletion_deferred {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) (c : A × Bool) (p : P.State × Source) (defer : (((P.residual p).flow.schedule (P.residual p).history c).search 0).event = none) :

    If the first native search defers, completion is exactly the deadline.

    theorem MindFormal.CurrentSegmentProgram.firstCompletion_of_pending {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) (c : A × Bool) (p : P.State × Source) (pending : H < ↑((p.1.1 c.1).2.2 c.2)) :

    A clock whose entering release lies beyond the deadline cannot fire within the segment, whatever the source path or physical observations. Thus positive-duration completions are not a vacuous instrument condition.

    noncomputable def MindFormal.BrownianMemorySegment.completionUpdate {Ω : Type u_1} {A : Type u_2} [MeasurableSpace Ω] [Fintype A] [Nonempty A] {N n : A → ℕ} {T : A → Type u_3} {Λ : A → Type u_4} [(a : A) → Fintype (T a)] [(a : A) → Fintype (Λ a)] {J : Type u_5} [Fintype J] (I : (a : A) → EquationInstance (N a) (n a) (T a) (Λ a) J) (admission : ∀ (a : A), InstanceAdmission (I a)) (constant : (a : A) → ConstantInstanceNoise (I a)) (G : EquationGround Ω J) (complete : CompletedEquationGround G) (privateSource : NNReal → Ω → ℝ) (joint : BrownianFiltration G.μ G.filtration (Sum.elim G.brownian fun (x : Unit) => privateSource)) (memory : ℝ) (start : (a : A) → EquationStart G (N a) (n a) (T a) (Λ a)) (H : NNReal) (c : A × Bool) (p : (program I admission constant G complete privateSource joint memory start H).State × (J ⊕ Unit → C(NNReal, ℝ))) :
    (program I admission constant G complete privateSource joint memory start H).State

    The complete state at the computed native first-event/deadline completion, including world memory and both remaining clock durations.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      theorem MindFormal.BrownianMemorySegment.completionUpdate_measurable {Ω : Type u_1} {A : Type u_2} [MeasurableSpace Ω] [Fintype A] [Nonempty A] {N n : A → ℕ} {T : A → Type u_3} {Λ : A → Type u_4} [(a : A) → Fintype (T a)] [(a : A) → Fintype (Λ a)] {J : Type u_5} [Fintype J] (I : (a : A) → EquationInstance (N a) (n a) (T a) (Λ a) J) (admission : ∀ (a : A), InstanceAdmission (I a)) (constant : (a : A) → ConstantInstanceNoise (I a)) (G : EquationGround Ω J) (complete : CompletedEquationGround G) (privateSource : NNReal → Ω → ℝ) (joint : BrownianFiltration G.μ G.filtration (Sum.elim G.brownian fun (x : Unit) => privateSource)) (memory : ℝ) (start : (a : A) → EquationStart G (N a) (n a) (T a) (Λ a)) (H : NNReal) (c : A × Bool) :
      Measurable (completionUpdate I admission constant G complete privateSource joint memory start H c)

      The complete random-completion update is measurable.

      noncomputable def MindFormal.BrownianMemorySegment.completionKernel {Ω : Type u_1} {A : Type u_2} [MeasurableSpace Ω] [Fintype A] [Nonempty A] {N n : A → ℕ} {T : A → Type u_3} {Λ : A → Type u_4} [(a : A) → Fintype (T a)] [(a : A) → Fintype (Λ a)] {J : Type u_5} [Fintype J] (I : (a : A) → EquationInstance (N a) (n a) (T a) (Λ a) J) (admission : ∀ (a : A), InstanceAdmission (I a)) (constant : (a : A) → ConstantInstanceNoise (I a)) (G : EquationGround Ω J) (complete : CompletedEquationGround G) (privateSource : NNReal → Ω → ℝ) (joint : BrownianFiltration G.μ G.filtration (Sum.elim G.brownian fun (x : Unit) => privateSource)) (memory : ℝ) (start : (a : A) → EquationStart G (N a) (n a) (T a) (Λ a)) (H : NNReal) (c : A × Bool) :
      ProbabilityTheory.Kernel (program I admission constant G complete privateSource joint memory start H).State (program I admission constant G complete privateSource joint memory start H).State

      A computed random-completion kernel on the exact current-coordinate space. This is an actual native first-event/deadline read of the residual segment, not yet the conditional transition of the original encounter chain.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        theorem MindFormal.BrownianMemorySegment.completionKernel_markov {Ω : Type u_1} {A : Type u_2} [MeasurableSpace Ω] [Fintype A] [Nonempty A] {N n : A → ℕ} {T : A → Type u_3} {Λ : A → Type u_4} [(a : A) → Fintype (T a)] [(a : A) → Fintype (Λ a)] {J : Type u_5} [Fintype J] (I : (a : A) → EquationInstance (N a) (n a) (T a) (Λ a) J) (admission : ∀ (a : A), InstanceAdmission (I a)) (constant : (a : A) → ConstantInstanceNoise (I a)) (G : EquationGround Ω J) (complete : CompletedEquationGround G) (privateSource : NNReal → Ω → ℝ) (joint : BrownianFiltration G.μ G.filtration (Sum.elim G.brownian fun (x : Unit) => privateSource)) (memory : ℝ) (start : (a : A) → EquationStart G (N a) (n a) (T a) (Λ a)) (H : NNReal) (c : A × Bool) :
        ProbabilityTheory.IsMarkovKernel (completionKernel I admission constant G complete privateSource joint memory start H c)

        The computed native random-completion kernel is Markov.

        noncomputable def MindFormal.BrownianMemorySegment.completionOccupation {Ω : Type u_1} {A : Type u_2} [MeasurableSpace Ω] [Fintype A] [Nonempty A] {N n : A → ℕ} {T : A → Type u_3} {Λ : A → Type u_4} [(a : A) → Fintype (T a)] [(a : A) → Fintype (Λ a)] {J : Type u_5} [Fintype J] (I : (a : A) → EquationInstance (N a) (n a) (T a) (Λ a) J) (admission : ∀ (a : A), InstanceAdmission (I a)) (constant : (a : A) → ConstantInstanceNoise (I a)) (G : EquationGround Ω J) (complete : CompletedEquationGround G) (privateSource : NNReal → Ω → ℝ) (joint : BrownianFiltration G.μ G.filtration (Sum.elim G.brownian fun (x : Unit) => privateSource)) (memory : ℝ) (start : (a : A) → EquationStart G (N a) (n a) (T a) (Λ a)) (H : NNReal) (c : A × Bool) (π : MeasureTheory.Measure (program I admission constant G complete privateSource joint memory start H).State) :
        MeasureTheory.Measure (program I admission constant G complete privateSource joint memory start H).State

        Full-state occupation through the actual first native event or deadline, weighted by duration and normalized by expected duration on the own source. Its definition does not install an invariant entering distribution.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          theorem MindFormal.BrownianMemorySegment.completionOccupation_probability {Ω : Type u_1} {A : Type u_2} [MeasurableSpace Ω] [Fintype A] [Nonempty A] {N n : A → ℕ} {T : A → Type u_3} {Λ : A → Type u_4} [(a : A) → Fintype (T a)] [(a : A) → Fintype (Λ a)] {J : Type u_5} [Fintype J] (I : (a : A) → EquationInstance (N a) (n a) (T a) (Λ a) J) (admission : ∀ (a : A), InstanceAdmission (I a)) (constant : (a : A) → ConstantInstanceNoise (I a)) (G : EquationGround Ω J) (complete : CompletedEquationGround G) (privateSource : NNReal → Ω → ℝ) (joint : BrownianFiltration G.μ G.filtration (Sum.elim G.brownian fun (x : Unit) => privateSource)) (memory : ℝ) (start : (a : A) → EquationStart G (N a) (n a) (T a) (Λ a)) (H : NNReal) (c : A × Bool) (π : MeasureTheory.Measure (program I admission constant G complete privateSource joint memory start H).State) [MeasureTheory.IsProbabilityMeasure π] (positive : DurationOccupation.mean (π.prod (sourceLaw I admission constant G complete privateSource joint memory start)) ((program I admission constant G complete privateSource joint memory start H).firstCompletion c) ≠ 0) :
          MeasureTheory.IsProbabilityMeasure (completionOccupation I admission constant G complete privateSource joint memory start H c π)

          For a probability entering law and positive mean completion duration, the computed full-state random-duration occupation is a probability. Finite mean is proved from the deadline; stationarity is not claimed.

          theorem MindFormal.BrownianMemorySegment.completionOccupation_lintegral {Ω : Type u_1} {A : Type u_2} [MeasurableSpace Ω] [Fintype A] [Nonempty A] {N n : A → ℕ} {T : A → Type u_3} {Λ : A → Type u_4} [(a : A) → Fintype (T a)] [(a : A) → Fintype (Λ a)] {J : Type u_5} [Fintype J] (I : (a : A) → EquationInstance (N a) (n a) (T a) (Λ a) J) (admission : ∀ (a : A), InstanceAdmission (I a)) (constant : (a : A) → ConstantInstanceNoise (I a)) (G : EquationGround Ω J) (complete : CompletedEquationGround G) (privateSource : NNReal → Ω → ℝ) (joint : BrownianFiltration G.μ G.filtration (Sum.elim G.brownian fun (x : Unit) => privateSource)) (memory : ℝ) (start : (a : A) → EquationStart G (N a) (n a) (T a) (Λ a)) (H : NNReal) (c : A × Bool) (π : MeasureTheory.Measure (program I admission constant G complete privateSource joint memory start H).State) (f : (program I admission constant G complete privateSource joint memory start H).State → ENNReal) (hf : Measurable f) :
          ∫⁻ (z : (program I admission constant G complete privateSource joint memory start H).State), f z ∂completionOccupation I admission constant G complete privateSource joint memory start H c π = (DurationOccupation.mean (π.prod (sourceLaw I admission constant G complete privateSource joint memory start)) ((program I admission constant G complete privateSource joint memory start H).firstCompletion c))⁻¹ * ∫⁻ (p : (program I admission constant G complete privateSource joint memory start H).State × (J ⊕ Unit → C(NNReal, ℝ))), ∫⁻ (t : ℝ) in Set.Ico 0 ↑((program I admission constant G complete privateSource joint memory start H).firstCompletion c p), f (stateAt I admission constant G complete privateSource joint memory start H p (Set.projIcc 0 ↑H ⋯ t)) ∂π.prod (sourceLaw I admission constant G complete privateSource joint memory start)

          The full-state random-duration occupation integrates each nonnegative measurable test by its expected native-completion time integral, divided by mean duration. There is no stationarity or finite-test-moment premise.