MindFormal v1.0.0One Mind

MindFormal.Run.A630MenuSearch.MarginEvent

theorem MindFormal.A630MenuSearch.LocalReference.margin_event {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {E : StateExperiment Ω N n T Λ J} {H : NNReal} (R : LocalReference E H) (rlo rhi : ℝ) (k : ℕ) (hr0 : 0 ≤ rlo) (release : ∀ ω ∈ R.stream, ((E.supportHistory ω).native (↑H) false).release k ∈ Set.Icc rlo rhi) :
∃ (good : Set Ω), MeasurableSet good ∧ good ⊆ R.stream ∧ 1 - R.bill ≤ E.ground.μ.real good ∧ ∀ ω ∈ good, (∀ (i : Fin N), hitTime (fun (t : ℝ) => R.score ω t i) (E.mind.reads.actionBar - R.scoreError) rlo ↑H ≤ hitTime (fun (t : ℝ) => ((E.supportHistory ω).reads.scores false) ((E.supportHistory ω).realPath t) i) E.mind.reads.actionBar (((E.supportHistory ω).native (↑H) false).release k) ↑H ∧ hitTime (fun (t : ℝ) => ((E.supportHistory ω).reads.scores false) ((E.supportHistory ω).realPath t) i) E.mind.reads.actionBar (((E.supportHistory ω).native (↑H) false).release k) ↑H ≤ hitTime (fun (t : ℝ) => R.score ω t i) (E.mind.reads.actionBar + R.scoreError) rhi ↑H) ∧ ∀ (w : Fin N), E.mind.reads.outputs w = true → hitTime (fun (t : ℝ) => R.score ω t w) (E.mind.reads.actionBar + R.scoreError) rhi ↑H ≤ ↑↑H → (∀ (j : Fin N), j ≠ w → E.mind.reads.outputs j = true → hitTime (fun (t : ℝ) => R.score ω t w) (E.mind.reads.actionBar + R.scoreError) rhi ↑H < hitTime (fun (t : ℝ) => R.score ω t j) (E.mind.reads.actionBar - R.scoreError) rlo ↑H) → ∃ t ∈ Set.Icc 0 ↑H, E.supportRecord H false k ω = (t, Sum.inl w) ∧ hitTime (fun (t : ℝ) => R.score ω t w) (E.mind.reads.actionBar - R.scoreError) rlo ↑H ≤ ↑t ∧ ↑t ≤ hitTime (fun (t : ℝ) => R.score ω t w) (E.mind.reads.actionBar + R.scoreError) rhi ↑H

Every candidate hit, including empty/late windows, and every separated winner share the event derived from the local complete-writing tests.

theorem MindFormal.A630MenuSearch.LocalReference.race_bin_probability {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {E : StateExperiment Ω N n T Λ J} {H : NNReal} (R : LocalReference E H) (rlo rhi : ℝ) (k : ℕ) (hr0 : 0 ≤ rlo) (release : ∀ ω ∈ R.stream, ((E.supportHistory ω).native (↑H) false).release k ∈ Set.Icc rlo rhi) (w : Fin N) (hw : E.mind.reads.outputs w = true) (deadline : ∀ ω ∈ R.stream, hitTime (fun (t : ℝ) => R.score ω t w) (E.mind.reads.actionBar + R.scoreError) rhi ↑H ≤ ↑↑H) (separation : ∀ ω ∈ R.stream, ∀ (j : Fin N), j ≠ w → E.mind.reads.outputs j = true → hitTime (fun (t : ℝ) => R.score ω t w) (E.mind.reads.actionBar + R.scoreError) rhi ↑H < hitTime (fun (t : ℝ) => R.score ω t j) (E.mind.reads.actionBar - R.scoreError) rlo ↑H) (bin : Set ℝ) (hbin : MeasurableSet bin) (contains : ∀ ω ∈ R.stream, ∀ t ∈ Set.Icc 0 ↑H, hitTime (fun (t : ℝ) => R.score ω t w) (E.mind.reads.actionBar - R.scoreError) rlo ↑H ≤ ↑t → ↑t ≤ hitTime (fun (t : ℝ) => R.score ω t w) (E.mind.reads.actionBar + R.scoreError) rhi ↑H → t ∈ bin) :
MeasurableSet {ω : Ω | ∃ t ∈ Set.Icc 0 ↑H, t ∈ bin ∧ E.supportRecord H false k ω = (t, Sum.inl w)} ∧ 1 - R.bill ≤ E.ground.μ.real {ω : Ω | ∃ t ∈ Set.Icc 0 ↑H, t ∈ bin ∧ E.supportRecord H false k ω = (t, Sum.inl w)}
theorem MindFormal.A630MenuSearch.LocalReference.qualified_release_event {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {E : StateExperiment Ω N n T Λ J} {H : NNReal} (R : LocalReference E H) (rlo rhi : ℝ) (k : ℕ) (hr0 : 0 ≤ rlo) (hrH : rhi ≤ ↑H) (release : ∀ ω ∈ R.stream, ((E.supportHistory ω).native (↑H) false).release k ∈ Set.Icc rlo rhi) (w : Fin N) (hw : E.mind.reads.outputs w = true) (qual : ∀ ω ∈ R.stream, ∀ t ∈ Set.Icc rlo rhi, E.mind.reads.actionBar + R.scoreError ≤ R.score ω t w) (gap : ∀ ω ∈ R.stream, ∀ t ∈ Set.Icc rlo rhi, ∀ (j : Fin N), j ≠ w → E.mind.reads.outputs j = true → 2 * R.scoreError < R.score ω t w - R.score ω t j) :
∃ (good : Set Ω), MeasurableSet good ∧ good ⊆ R.stream ∧ 1 - R.bill ≤ E.ground.μ.real good ∧ ∀ ω ∈ good, have r := ((E.supportHistory ω).native (↑H) false).release k; r ∈ Set.Icc rlo rhi ∧ E.supportRecord H false k ω = (r, Sum.inl w)
theorem MindFormal.A630MenuSearch.LocalReference.qualified_release_probability {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {E : StateExperiment Ω N n T Λ J} {H : NNReal} (R : LocalReference E H) (rlo rhi : ℝ) (k : ℕ) (hr0 : 0 ≤ rlo) (hrH : rhi ≤ ↑H) (release : ∀ ω ∈ R.stream, ((E.supportHistory ω).native (↑H) false).release k ∈ Set.Icc rlo rhi) (w : Fin N) (hw : E.mind.reads.outputs w = true) (qual : ∀ ω ∈ R.stream, ∀ t ∈ Set.Icc rlo rhi, E.mind.reads.actionBar + R.scoreError ≤ R.score ω t w) (gap : ∀ ω ∈ R.stream, ∀ t ∈ Set.Icc rlo rhi, ∀ (j : Fin N), j ≠ w → E.mind.reads.outputs j = true → 2 * R.scoreError < R.score ω t w - R.score ω t j) (bin : Set ℝ) (contains : Set.Icc rlo rhi ⊆ bin) :
1 - R.bill ≤ E.ground.μ.real {ω : Ω | ∃ t ∈ bin, E.supportRecord H false k ω = (t, Sum.inl w)}
theorem MindFormal.A630MenuSearch.LocalReference.expected_utility_probability {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {E : StateExperiment Ω N n T Λ J} {H : NNReal} (R : LocalReference E H) {S : Type u_5} [Fintype S] (probability : S → ℝ) (utility : Fin N → S → ℝ) (common : Ω → ℝ → ℝ) {scale L U : ℝ} (hscale : 0 < scale) (calibration : ∀ ω ∈ R.stream, ∀ t ∈ Set.Icc L U, ∀ (i : Fin N), R.score ω t i = common ω t + scale * ∑ s : S, probability s * utility i s) (k : ℕ) (w : Fin N) (hw : E.mind.reads.outputs w = true) (hL : 0 ≤ L) (hLU : L ≤ U) (hU : U ≤ ↑H) (release : ∀ ω ∈ R.stream, ((E.supportHistory ω).native (↑H) false).release k ∈ Set.Icc 0 U) (before : ∀ ω ∈ R.stream, ∀ t ∈ Set.Icc 0 ↑H, ((E.supportHistory ω).native (↑H) false).release k ≤ t → t < L → ∀ (i : Fin N), E.mind.reads.outputs i = true → R.score ω t i + R.scoreError < E.mind.reads.actionBar) (qual : ∀ ω ∈ R.stream, E.mind.reads.actionBar + R.scoreError ≤ R.score ω U w) (gap : ∀ (j : Fin N), j ≠ w → E.mind.reads.outputs j = true → 2 * R.scoreError / scale < ∑ s : S, probability s * utility w s - ∑ s : S, probability s * utility j s) :
1 - R.bill ≤ E.ground.μ.real {ω : Ω | ∃ t ∈ Set.Icc L U, E.supportRecord H false k ω = (t, Sum.inl w)}

A positive affine utility calibration still owes a native race window: all earlier outputs, terminal qualification, and the full two-error gap. The expectation is independently specified from common state weights.

theorem MindFormal.A630MenuSearch.LocalReference.deferral_probability {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {E : StateExperiment Ω N n T Λ J} {H : NNReal} (R : LocalReference E H) (rlo : ℝ) (k : ℕ) (hr0 : 0 ≤ rlo) (release : ∀ ω ∈ R.stream, rlo ≤ ((E.supportHistory ω).native (↑H) false).release k) (quiet : ∀ ω ∈ R.stream, ∀ t ∈ Set.Icc rlo ↑H, ∀ (j : Fin N), E.mind.reads.outputs j = true → R.score ω t j < E.mind.reads.actionBar - R.scoreError) :