MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch02.ContinuingPressCount

noncomputable def MindFormal.nativePressesIn {N : ℕ} {g f : ℝ → Fin N → ℝ} {H θ : ℝ} (S : NativeSchedule g f H θ) (base press : Fin N) (W : Set ℝ) :

The existing press instrument generalized to its native schedule. live_pressesIn_native below proves that the earlier instrument is its instance. The underlying record and native schedule are unchanged.

Equations
Instances For
    theorem MindFormal.live_pressesIn_native {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {noise : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LiveData Ω N n T Λ J noise) (base press : Fin N) (W : Set ℝ) (ω : Ω) :
    C.pressesIn base press W ω = nativePressesIn (C.schedule ω) base press W
    theorem MindFormal.native_press_sequence {N : ℕ} {g f : ℝ → Fin N → ℝ} {H θ L U : ℝ} (S : NativeSchedule g f H θ) (k m : ℕ) (i : Fin N) (hr : S.release k ≤ U) (hH : U + ↑m * θ ≤ H) (hbefore : ∀ (t : ℝ), S.release k ≤ t → t < L → ∀ (j : Fin N), g t j < 0) (hqual : 0 ≤ g U i) (hrivals : ∀ t ∈ Set.Icc L (U + ↑m * θ), ∀ (j : Fin N), j ≠ i → g t j < 0) (hpersist : ∀ t ∈ Set.Icc (L + θ) (U + ↑m * θ), 0 ≤ g t i) :
    ∃ t ∈ Set.Icc L U, ∀ j ≤ m, (S.search (k + j)).event = some (t + ↑j * θ, i)

    Complete guard margins at the first window, followed by persistent qualification and strict rival exclusion, determine the native arithmetic sequence of presses. This uses the same schedule and its actual releases.

    theorem MindFormal.native_event_before_release {N : ℕ} {g f : ℝ → Fin N → ℝ} {H θ s t : ℝ} (S : NativeSchedule g f H θ) {r k : ℕ} {i j : Fin N} (hrk : r < k) (he : (S.search r).event = some (s, i)) (hk : (S.search k).event = some (t, j)) :
    s + θ ≤ S.release k

    Native event times are monotone with their indices, with a full pause between distinct slots. No externally assigned event calendar is used.

    theorem MindFormal.native_press_block_count {N : ℕ} {g f : ℝ → Fin N → ℝ} {H θ t a b : ℝ} (S : NativeSchedule g f H θ) (base press i : Fin N) (k m : ℕ) (hi : i = base ∨ i = press) (hslots : ∀ j ≤ m, (S.search (k + j)).event = some (t + ↑j * θ, i)) (hinside : ∀ j ≤ m, t + ↑j * θ ∈ Set.Icc a b) (hprevious : S.release k < a + θ) (hnext : b < t + (↑m + 1) * θ) :
    nativePressesIn S base press (Set.Icc a b) = m + 1
    theorem MindFormal.native_press_block_count_halfOpen {N : ℕ} {g f : ℝ → Fin N → ℝ} {H θ t a b : ℝ} (S : NativeSchedule g f H θ) (base press i : Fin N) (k m : ℕ) (hi : i = base ∨ i = press) (hslots : ∀ j ≤ m, (S.search (k + j)).event = some (t + ↑j * θ, i)) (hinside : ∀ j ≤ m, t + ↑j * θ ∈ Set.Ico a b) (hprevious : S.release k < a + θ) (hnext : b ≤ t + (↑m + 1) * θ) :
    nativePressesIn S base press (Set.Ico a b) = m + 1

    The earlier interval's half-open endpoint is respected by the same native count; a strict bound on its last press permits a closed subinterval.

    theorem MindFormal.native_press_quiet {N : ℕ} {g f : ℝ → Fin N → ℝ} {H θ : ℝ} (S : NativeSchedule g f H θ) (base press : Fin N) (W : Set ℝ) (hquiet : ∀ t ∈ W, ∀ (i : Fin N), i = base ∨ i = press → g t i < 0) :
    nativePressesIn S base press W = 0

    A quiet light interval has zero measured presses, even if a different native label acts there. Both physical press routes are checked.

    theorem MindFormal.continuing_native_press_counts {N : ℕ} {g f : ℝ → Fin N → ℝ} {H θ d a D LB UB LL UL : ℝ} (S : NativeSchedule g f H θ) (base press : Fin N) (k mB : ℕ) (mL : Option ℕ) (lower upper : ℝ → Fin N → ℝ) (hd : 0 ≤ d) (ha : a + D ≤ H) (hD : 0 ≤ D) (hBL : d ≤ LB) (hBU : LB ≤ UB) (hclock : d ≤ S.release k ∧ S.release k ≤ UB ∧ S.release k < d + θ) (henclosure : ∀ t ∈ Set.Icc d (a + D), ∀ (i : Fin N), lower t i ≤ g t i ∧ g t i ≤ upper t i) (hbeforeB : ∀ t ∈ Set.Ico d LB, ∀ (i : Fin N), upper t i < 0) (hqualB : 0 ≤ lower UB base) (hrivalsB : ∀ t ∈ Set.Icc LB (UB + ↑mB * θ), ∀ (i : Fin N), i ≠ base → upper t i < 0) (hpersistB : ∀ t ∈ Set.Icc (LB + θ) (UB + ↑mB * θ), 0 ≤ lower t base) (hlastB : UB + ↑mB * θ < a) (hnextB : a ≤ LB + (↑mB + 1) * θ) (hquiet : mL = none → ∀ t ∈ Set.Icc a (a + D), ∀ (i : Fin N), i = base ∨ i = press → upper t i < 0) (hLL : mL ≠ none → a ≤ LL ∧ LL ≤ UL) (hclockL : mL ≠ none → UB + (↑mB + 1) * θ ≤ UL) (hbeforeL : mL ≠ none → ∀ t ∈ Set.Ico a LL, ∀ (i : Fin N), upper t i < 0) (hqualL : mL ≠ none → 0 ≤ lower UL press) (hrivalsL : ∀ (m : ℕ), mL = some m → ∀ t ∈ Set.Icc LL (UL + ↑m * θ), ∀ (i : Fin N), i ≠ press → upper t i < 0) (hpersistL : ∀ (m : ℕ), mL = some m → ∀ t ∈ Set.Icc (LL + θ) (UL + ↑m * θ), 0 ≤ lower t press) (hlastL : ∀ (m : ℕ), mL = some m → UL + ↑m * θ ≤ a + D) (hnextL : ∀ (m : ℕ), mL = some m → a + D < LL + (↑m + 1) * θ) :
    nativePressesIn S base press (Set.Ico d a) = mB + 1 ∧ nativePressesIn S base press (Set.Icc a (a + D)) = mL.elim 0 fun (m : ℕ) => m + 1

    The two measured intervals on one continuing native schedule. All premises are guard enclosures and the endpoint/persistence/remaining-pause checks of (16.5); the first hits and both counts are derived.