MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch08.MarkerOccupation

VI6.5–6: a time read of the original native record, with the finite transition windows and the received-context discrepancy charged in time units.

noncomputable def MindFormal.MarkerOccupation.fraction (H : ℝ) (indicator : ℝ → ℝ) :
Equations
Instances For
    theorem MindFormal.MarkerOccupation.bout {H a b : ℝ} (ha : 0 ≤ a) (hab : a ≤ b) (hb : b ≤ H) (z : ℝ) :
    ∫ (t : ℝ) in 0..H, (Set.Ioc a b).indicator (fun (x : ℝ) => z) t = (b - a) * z

    The integral of one bout wholly in the observation is its duration.

    theorem MindFormal.MarkerOccupation.bouts {M : ℕ} {H : ℝ} (a b z : Fin M → ℝ) (ha : ∀ (m : Fin M), 0 ≤ a m) (hab : ∀ (m : Fin M), a m ≤ b m) (hb : ∀ (m : Fin M), b m ≤ H) :
    (fraction H fun (t : ℝ) => ∑ m : Fin M, (Set.Ioc (a m) (b m)).indicator (fun (x : ℝ) => z m) t) = (∑ m : Fin M, (b m - a m) * z m) / H

    Finite bout integration is the displayed VI6.5 duration sum.

    theorem MindFormal.MarkerOccupation.bad_duration {M : ℕ} (center radius : Fin M → ℝ) (hr : ∀ (m : Fin M), 0 ≤ radius m) (stream : Set ℝ) {dstream : ℝ} (stream_duration : MeasureTheory.volume.real stream ≤ dstream) :
    MeasureTheory.volume.real ((⋃ (m : Fin M), Set.Icc (center m - radius m) (center m + radius m)) ∪ stream) ≤ 2 * ∑ m : Fin M, radius m + dstream

    Transition windows have total length at most twice the sum of their radii plus the separately charged stream-disagreement duration.

    theorem MindFormal.MarkerOccupation.time_error {H : ℝ} (hH : 0 < H) (actual reference : ℝ → ℝ) (ha : IntervalIntegrable actual MeasureTheory.volume 0 H) (hr : IntervalIntegrable reference MeasureTheory.volume 0 H) (arange : ∀ t ∈ Set.Icc 0 H, actual t ∈ Set.Icc 0 1) (rrange : ∀ t ∈ Set.Icc 0 H, reference t ∈ Set.Icc 0 1) (bad : Set ℝ) (hm : MeasurableSet bad) {D : ℝ} (duration : MeasureTheory.volume.real (bad ∩ Set.Ioc 0 H) ≤ D) (agree : ∀ t ∈ Set.Ioc 0 H, t ∉ bad → actual t = reference t) :
    |fraction H actual - fraction H reference| ≤ D / H

    Indicator disagreement is supported in the transition/stream set. Its integral, rather than a first choice, controls time allocation.

    theorem MindFormal.MarkerOccupation.fraction_range {H : ℝ} (hH : 0 < H) (indicator : ℝ → ℝ) (hi : IntervalIntegrable indicator MeasureTheory.volume 0 H) (range : ∀ t ∈ Set.Icc 0 H, indicator t ∈ Set.Icc 0 1) :
    fraction H indicator ∈ Set.Icc 0 1
    theorem MindFormal.MarkerOccupation.mean_error {Ω : Type u_1} [MeasurableSpace Ω] (mu : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure mu] (good : Set Ω) (hm : MeasurableSet good) (actual reference : Ω → ℝ) (ha : MeasureTheory.Integrable actual mu) (hr : MeasureTheory.Integrable reference mu) (arange : ∀ (z : Ω), actual z ∈ Set.Icc 0 1) (rrange : ∀ (z : Ω), reference z ∈ Set.Icc 0 1) {E eps : ℝ} (hE : 0 ≤ E) (failure : mu.real goodᶜ ≤ eps) (distance : ∀ z ∈ good, |actual z - reference z| ≤ E) :
    |∫ (z : Ω), actual z ∂mu - ∫ (z : Ω), reference z ∂mu| ≤ E + eps

    A bounded occupation fraction pays its time error plus its failure mass in expectation. This retains the sharp additive VI6.6 bill.

    noncomputable def MindFormal.MarkerOccupation.nativeFraction {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (C : StateLearning Ω N n T Λ J) (H : ℝ) (marker : Ω → (ℕ → ActionSlot (Fin N)) → ℝ → ℝ) (z : Ω) :

    The time observable reads the original whole native action record.

    Equations
    Instances For
      theorem MindFormal.MarkerOccupation.native_time {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (C : StateLearning Ω N n T Λ J) (hC : C.Contained) (hu : C.control.εu = 0) {K : ℕ} {H dstream epsstream : ℝ} (hH : 0 < H) (label : Ω → Fin K → Fin N) (center : Ω → Fin K → ℝ) (radius : Fin K → ℝ) (hradius : ∀ (q : Fin K), 0 ≤ radius q) (w : (z : Ω) → z ∈ C.run.good → (q : Fin K) → LearningWindowMargins C.run z (label z q) (center z q - radius q) (center z q + radius q)) (initial : ∀ (z : Ω) (hz : z ∈ C.run.good) (h : 0 < K), (w z hz ⟨0, h⟩).phase ≤ 0) (next : ∀ (z : Ω) (hz : z ∈ C.run.good) (q : Fin K) (h : ↑q + 1 < K), (w z hz ⟨↑q + 1, h⟩).phase ≤ center z q - radius q + C.run.data.pause false ∧ center z q + radius q + C.run.data.pause false ≤ center z ⟨↑q + 1, h⟩ + radius ⟨↑q + 1, h⟩) (world : Set Ω) (hworld : MeasurableSet world) (world_mass : 1 - epsstream ≤ C.run.data.μ.real world) (stream : Ω → Set ℝ) (stream_measurable : ∀ (z : Ω), MeasurableSet (stream z)) (stream_finite : ∀ (z : Ω), MeasureTheory.volume (stream z) ≠ ⊤) (stream_duration : ∀ (z : Ω), MeasureTheory.volume.real (stream z) ≤ dstream) (marker : Ω → (ℕ → ActionSlot (Fin N)) → ℝ → ℝ) (reference : Ω → ℝ → ℝ) (actual_integrable : ∀ (z : Ω), IntervalIntegrable (marker z fun (k : ℕ) => C.run.record k z) MeasureTheory.volume 0 H) (reference_integrable : ∀ (z : Ω), IntervalIntegrable (reference z) MeasureTheory.volume 0 H) (actual_range : ∀ (z : Ω) (hist : ℕ → ActionSlot (Fin N)), ∀ t ∈ Set.Icc 0 H, marker z hist t ∈ Set.Icc 0 1) (reference_range : ∀ (z : Ω), ∀ t ∈ Set.Icc 0 H, reference z t ∈ Set.Icc 0 1) (context_map : ∀ z ∈ world, ∀ (hist : ℕ → ActionSlot (Fin N)), (∀ (q : Fin K), (hist ↑q).2 = Sum.inl (label z q) ∧ (hist ↑q).1 ∈ Set.Icc (center z q - radius q) (center z q + radius q)) → ∀ t ∈ Set.Ioc 0 H, t ∉ (⋃ (q : Fin K), Set.Icc (center z q - radius q) (center z q + radius q)) ∪ stream z → marker z hist t = reference z t) :
      have good := C.run.good ∩ world; MeasurableSet good ∧ 1 - C.run.control.failure - epsstream ≤ C.run.data.μ.real good ∧ (∀ᵐ (z : Ω) ∂C.run.data.μ, z ∈ good → C.experiment.OnOwnNoise z C.horizon) ∧ ∀ z ∈ good, (∀ (q : Fin K), (C.run.record (↑q) z).2 = Sum.inl (label z q) ∧ (C.run.record (↑q) z).1 ∈ Set.Icc (center z q - radius q) (center z q + radius q)) ∧ |nativeFraction C H marker z - fraction H (reference z)| ≤ (2 * ∑ q : Fin K, radius q + dstream) / H

      Native repeated acts and the conditional context map imply the time bound. A context hypothesis concerns every candidate record meeting the source windows; no native record or occupation fraction is supplied.