MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch07.PracticeSequence

Complete native opportunities and selected elapsed-time reads for LI1--LI4. All searches below are the existing physical run's searches, including their actual release and return records. No new event or certificate interface.

noncomputable def MindFormal.PracticeSequence.score {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (t : ℝ) (i : Fin N) :
Equations
Instances For
    noncomputable def MindFormal.PracticeSequence.wait {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (H : ℝ) (k : ℕ) :
    Equations
    Instances For
      theorem MindFormal.PracticeSequence.guard_eq {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (t : ℝ) (j : Fin N) :
      theorem MindFormal.PracticeSequence.by_budget {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (H : ℝ) (k : ℕ) (i : Fin N) {b : ℝ} (hb : 0 ≤ b) (hH : (G.native H false).release k + b ≤ H) (hout : G.reads.outputs i = true) (qualify : G.reads.actionBar ≤ score G ((G.native H false).release k + b) i) (rivals : ∀ t ∈ Set.Icc ((G.native H false).release k) ((G.native H false).release k + b), ∀ (j : Fin N), j ≠ i → G.reads.outputs j = true → score G t j < score G t i) :
      (∃ (t : ℝ), ((G.native H false).search k).event = some (t, i) ∧ t ∈ Set.Icc ((G.native H false).release k) ((G.native H false).release k + b)) ∧ wait G H k ≤ b
      theorem MindFormal.PracticeSequence.exact_wait {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (H : ℝ) (k : ℕ) (i : Fin N) {d : ℝ} (hd : 0 ≤ d) (hH : (G.native H false).release k + d ≤ H) (hout : G.reads.outputs i = true) (qualify : G.reads.actionBar ≤ score G ((G.native H false).release k + d) i) (before : ∀ t ∈ Set.Ico ((G.native H false).release k) ((G.native H false).release k + d), ∀ (j : Fin N), G.reads.outputs j = true → score G t j < G.reads.actionBar) (rivals : ∀ (j : Fin N), j ≠ i → G.reads.outputs j = true → score G ((G.native H false).release k + d) j < score G ((G.native H false).release k + d) i) :
      ((G.native H false).search k).event = some ((G.native H false).release k + d, i) ∧ wait G H k = d
      theorem MindFormal.PracticeSequence.comparison {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {K : ℕ} (slow fast : PhysicalGlobalData N n T Λ) (H : ℝ) (slot : Fin K → ℕ) (label : Fin K → Fin N) (weight d b : Fin K → ℝ) (hw : ∀ (q : Fin K), 0 ≤ weight q) (hb : ∀ (q : Fin K), 0 ≤ b q) (hbd : ∀ (q : Fin K), b q ≤ d q) (hHs : ∀ (q : Fin K), (slow.native H false).release (slot q) + d q ≤ H) (hHf : ∀ (q : Fin K), (fast.native H false).release (slot q) + b q ≤ H) (hos : ∀ (q : Fin K), slow.reads.outputs (label q) = true) (hof : ∀ (q : Fin K), fast.reads.outputs (label q) = true) (qs : ∀ (q : Fin K), slow.reads.actionBar ≤ score slow ((slow.native H false).release (slot q) + d q) (label q)) (qf : ∀ (q : Fin K), fast.reads.actionBar ≤ score fast ((fast.native H false).release (slot q) + b q) (label q)) (before : ∀ (q : Fin K), ∀ t ∈ Set.Ico ((slow.native H false).release (slot q)) ((slow.native H false).release (slot q) + d q), ∀ (j : Fin N), slow.reads.outputs j = true → score slow t j < slow.reads.actionBar) (rs : ∀ (q : Fin K) (j : Fin N), j ≠ label q → slow.reads.outputs j = true → score slow ((slow.native H false).release (slot q) + d q) j < score slow ((slow.native H false).release (slot q) + d q) (label q)) (rf : ∀ (q : Fin K), ∀ t ∈ Set.Icc ((fast.native H false).release (slot q)) ((fast.native H false).release (slot q) + b q), ∀ (j : Fin N), j ≠ label q → fast.reads.outputs j = true → score fast t j < score fast t (label q)) :
      (∀ (q : Fin K), ((slow.native H false).search (slot q)).event = some ((slow.native H false).release (slot q) + d q, label q)) ∧ (∀ (q : Fin K), ∃ (t : ℝ), ((fast.native H false).search (slot q)).event = some (t, label q) ∧ t ∈ Set.Icc ((fast.native H false).release (slot q)) ((fast.native H false).release (slot q) + b q)) ∧ ∑ q : Fin K, weight q * wait fast H (slot q) ≤ ∑ q : Fin K, weight q * wait slow H (slot q) ∧ (∑ q : Fin K, weight q * b q < ∑ q : Fin K, weight q * d q → ∑ q : Fin K, weight q * wait fast H (slot q) < ∑ q : Fin K, weight q * wait slow H (slot q))

      Each counted interval is its own actual eligible wait. Different release records are retained, and every competitor is compared on that arm's interval.

      theorem MindFormal.PracticeSequence.windows {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (H : ℝ) {K : ℕ} (label : Fin K → Fin N) (center radius phase : Fin K → ℝ) (hr : ∀ (q : Fin K), 0 ≤ radius q) (hl : ∀ (q : Fin K), 0 ≤ center q - radius q) (hH : ∀ (q : Fin K), center q + radius q ≤ H) (hout : ∀ (q : Fin K), G.reads.outputs (label q) = true) (before : ∀ (q : Fin K) (t : ℝ), phase q ≤ t → t < center q - radius q → ∀ (j : Fin N), G.reads.outputs j = true → score G t j < G.reads.actionBar) (winner : ∀ (q : Fin K), G.reads.actionBar ≤ score G (center q + radius q) (label q)) (rivals : ∀ (q : Fin K), ∀ t ∈ Set.Icc (center q - radius q) (center q + radius q), ∀ (j : Fin N), j ≠ label q → G.reads.outputs j = true → G.reads.actionBar ≤ score G t j → score G t j ≤ score G t (label q) ∧ (score G t j = score G t (label q) → label q ≤ j)) (initial : ∀ (h : 0 < K), phase ⟨0, h⟩ ≤ 0) (next : ∀ (q : Fin K) (h : ↑q + 1 < K), phase ⟨↑q + 1, h⟩ ≤ center q - radius q + G.pause false ∧ center q + radius q + G.pause false ≤ center ⟨↑q + 1, h⟩ + radius ⟨↑q + 1, h⟩) (q : Fin K) :
      ∃ (t : ℝ), ((G.native H false).search ↑q).event = some (t, label q) ∧ |t - center q| ≤ radius q

      Source windows on any actual physical run. The complete output scores, not a stored relation or a prescribed event, enter the test.

      theorem MindFormal.PracticeSequence.records {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {Ω : Type u_3} [MeasurableSpace Ω] {J : Type u_4} [Fintype J] (C : StateLearning Ω N n T Λ J) (hC : C.Contained) (hu : C.control.εu = 0) {K : ℕ} (label : Ω → Fin K → Fin N) (center : Ω → Fin K → ℝ) (radius phase : Fin K → ℝ) (hr : ∀ (q : Fin K), 0 ≤ radius q) (hp : ∀ (q : Fin K), 0 ≤ phase q) (hl : ∀ (z : Ω) (q : Fin K), 0 ≤ center z q - radius q) (hH : ∀ (z : Ω) (q : Fin K), center z q + radius q ≤ ↑C.horizon) (hout : ∀ (z : Ω) (q : Fin K), C.run.data.reads.outputs (label z q) = true) (before : ∀ z ∈ C.run.good, ∀ (q : Fin K) (j : Fin N), C.run.data.reads.outputs j = true → ∀ t ∈ Set.Ico (phase q) (center z q - radius q), C.run.score z j t + C.run.error < C.run.data.reads.actionBar) (winner : ∀ z ∈ C.run.good, ∀ (q : Fin K), C.run.data.reads.actionBar + C.run.error ≤ C.run.score z (label z q) (center z q + radius q)) (rivals : ∀ z ∈ C.run.good, ∀ (q : Fin K) (j : Fin N), j ≠ label z q → C.run.data.reads.outputs j = true → ∀ t ∈ Set.Icc (center z q - radius q) (center z q + radius q), C.run.score z j t + C.run.error < C.run.score z (label z q) t - C.run.error) (initial : ∀ (h : 0 < K), phase ⟨0, h⟩ ≤ 0) (next : ∀ (z : Ω) (q : Fin K) (h : ↑q + 1 < K), phase ⟨↑q + 1, h⟩ ≤ 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⟩) :
      MeasurableSet C.run.good ∧ 1 - C.run.control.failure ≤ C.run.data.μ.real C.run.good ∧ (∀ᵐ (z : Ω) ∂C.run.data.μ, z ∈ C.run.good → C.experiment.OnOwnNoise z C.horizon) ∧ ∀ z ∈ C.run.good, ∀ (q : Fin K), (C.run.record (↑q) z).2 = Sum.inl (label z q) ∧ |(C.run.record (↑q) z).1 - center z q| ≤ radius q

      Raw full-score windows construct the existing margins. All releases after the first are derived from preceding actual acts and V's refractory rule.