MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch14.Margin

theorem MindFormal.RevealedChoice.comparison_score_continuous {Ω : 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} {B : OwnBox E H} {C : LoadComparison B} (R : OutputComparison C) (i : Fin N) :
Continuous fun (t : ℝ) => R.score t i

RP1.13's computed reference scores are continuous, including the cell boundaries. This follows from the finite convolution formula and admitted read.

theorem MindFormal.RevealedChoice.race_of_error {Ω : 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} {B : OwnBox E H} {C : LoadComparison B} (R : OutputComparison C) {ω : Ω} {k : ℕ} {e rlo rhi : ℝ} (hr0 : 0 ≤ rlo) (hr : ((E.supportHistory ω).native (↑H) false).release k ∈ Set.Icc rlo rhi) (enc : ∀ t ∈ Set.Icc 0 ↑H, ∀ (i : Fin N), |((E.supportHistory ω).reads.scores false) ((E.supportHistory ω).realPath t) i - R.score t i| ≤ e) (w : Fin N) (hw : E.mind.reads.outputs w = true) (deadline : hitTime (fun (t : ℝ) => R.score t w) (E.mind.reads.actionBar + e) rhi ↑H ≤ ↑↑H) (separation : ∀ (j : Fin N), j ≠ w → E.mind.reads.outputs j = true → hitTime (fun (t : ℝ) => R.score t w) (E.mind.reads.actionBar + e) rhi ↑H < hitTime (fun (t : ℝ) => R.score t j) (E.mind.reads.actionBar - e) 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 - e) rlo ↑H ≤ ↑t ∧ ↑t ≤ hitTime (fun (t : ℝ) => R.score t w) (E.mind.reads.actionBar + e) rhi ↑H

The strict separation of the raised winner's infimum from every lowered rival's infimum selects that output in the actual native search. The score enclosure is a deterministic helper; margin_event supplies it on own noise.

theorem MindFormal.RevealedChoice.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} {B : OwnBox E H} {C : LoadComparison B} (R : OutputComparison C) (hH : H ≤ E.horizon) (e rlo rhi : ℝ) (k : ℕ) (hr0 : 0 ≤ rlo) (release : ∀ ω ∈ B.stream, ((E.supportHistory ω).native (↑H) false).release k ∈ Set.Icc rlo rhi) (error : ∀ t ∈ Set.Icc 0 ↑H, ∀ (i : Fin N), R.error t i ≤ e) :
∃ (good : Set Ω), MeasurableSet good ∧ good ⊆ B.stream ∧ 1 - B.errorProbability ≤ E.ground.μ.real good ∧ ∀ ω ∈ good, (∀ (i : Fin N), hitTime (fun (t : ℝ) => R.score t i) (E.mind.reads.actionBar - e) 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 + e) rhi ↑H) ∧ (∀ (w : Fin N), E.mind.reads.outputs w = true → hitTime (fun (t : ℝ) => R.score t w) (E.mind.reads.actionBar + e) 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 + e) rhi ↑H < hitTime (fun (t : ℝ) => R.score t j) (E.mind.reads.actionBar - e) 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 - e) rlo ↑H ≤ ↑t ∧ ↑t ≤ hitTime (fun (t : ℝ) => R.score t w) (E.mind.reads.actionBar + e) rhi ↑H) ∧ ∀ (t : ℝ) (w : Fin N), (((E.supportHistory ω).native (↑H) false).search k).event = some (t, w) → t ∈ Set.Icc (((E.supportHistory ω).native (↑H) false).release k) ↑H ∧ E.mind.reads.outputs w = true ∧ E.mind.reads.actionBar ≤ R.score t w + e ∧ ∀ (s : ℝ), ((E.supportHistory ω).native (↑H) false).release k ≤ s → s < t → ∀ (j : Fin N), E.mind.reads.outputs j = true → R.score s j - e < E.mind.reads.actionBar

RP1.13 on one common measurable event from the existing computed certificate. The release bracket is the entry's clock-control hold on its stream event; every writer, focus mode and sensed return is in the box bill. Each output gets both hit bounds, even when either eligible interval is empty.

theorem MindFormal.RevealedChoice.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} {B : OwnBox E H} {C : LoadComparison B} (R : OutputComparison C) (hH : H ≤ E.horizon) (e rlo rhi : ℝ) (k : ℕ) (hr0 : 0 ≤ rlo) (release : ∀ ω ∈ B.stream, ((E.supportHistory ω).native (↑H) false).release k ∈ Set.Icc rlo rhi) (error : ∀ t ∈ Set.Icc 0 ↑H, ∀ (i : Fin N), R.error t i ≤ e) (w : Fin N) (hw : E.mind.reads.outputs w = true) (deadline : hitTime (fun (t : ℝ) => R.score t w) (E.mind.reads.actionBar + e) rhi ↑H ≤ ↑↑H) (separation : ∀ (j : Fin N), j ≠ w → E.mind.reads.outputs j = true → hitTime (fun (t : ℝ) => R.score t w) (E.mind.reads.actionBar + e) rhi ↑H < hitTime (fun (t : ℝ) => R.score t j) (E.mind.reads.actionBar - e) rlo ↑H) (bin : Set ℝ) (hbin : MeasurableSet bin) (contains : ∀ t ∈ Set.Icc 0 ↑H, hitTime (fun (t : ℝ) => R.score t w) (E.mind.reads.actionBar - e) rlo ↑H ≤ ↑t → ↑t ≤ hitTime (fun (t : ℝ) => R.score t w) (E.mind.reads.actionBar + e) rhi ↑H → t ∈ bin) :
MeasurableSet {ω : Ω | ∃ t ∈ Set.Icc 0 ↑H, t ∈ bin ∧ E.supportRecord H false k ω = (t, Sum.inl w)} ∧ 1 - B.errorProbability ≤ E.ground.μ.real {ω : Ω | ∃ t ∈ Set.Icc 0 ↑H, t ∈ bin ∧ E.supportRecord H false k ω = (t, Sum.inl w)}

The separated winner, and any time bin containing its whole enlarged interval, have the original computed probability bound. The bin may be half-open; containment, not equality to a reference timestamp, is required.

theorem MindFormal.RevealedChoice.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} {B : OwnBox E H} {C : LoadComparison B} (R : OutputComparison C) (hH : H ≤ E.horizon) (e rlo rhi : ℝ) (k : ℕ) (hr0 : 0 ≤ rlo) (hrr : rlo ≤ rhi) (hrH : rhi ≤ ↑H) (release : ∀ ω ∈ B.stream, ((E.supportHistory ω).native (↑H) false).release k ∈ Set.Icc rlo rhi) (error : ∀ t ∈ Set.Icc 0 ↑H, ∀ (i : Fin N), R.error t i ≤ e) (w : Fin N) (hw : E.mind.reads.outputs w = true) (qual : ∀ t ∈ Set.Icc rlo rhi, E.mind.reads.actionBar + e ≤ R.score t w) (gap : ∀ t ∈ Set.Icc rlo rhi, ∀ (j : Fin N), j ≠ w → E.mind.reads.outputs j = true → 2 * e < R.score t w - R.score t j) :
1 - B.errorProbability ≤ E.ground.μ.real {ω : Ω | ∃ t ∈ Set.Icc rlo rhi, E.supportRecord H false k ω = (t, Sum.inl w)}

The already-qualified release alternative applies release_probability to the existing certificate. Every native output, including an unoffered one, is covered by the strict two-error score gap.

theorem MindFormal.RevealedChoice.qualified_release_bounds {Ω : 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} {B : OwnBox E H} {C : LoadComparison B} (R : OutputComparison C) (e rlo rhi : ℝ) (hrr : rlo ≤ rhi) (hrH : rhi ≤ ↑H) (he : 0 ≤ e) (w : Fin N) (qual : ∀ t ∈ Set.Icc rlo rhi, E.mind.reads.actionBar + e ≤ R.score t w) :
hitTime (fun (t : ℝ) => R.score t w) (E.mind.reads.actionBar - e) rlo ↑H = ↑rlo ∧ hitTime (fun (t : ℝ) => R.score t w) (E.mind.reads.actionBar + e) rhi ↑H = ↑rhi

Under the qualified-release alternative, the two reference hit bounds are precisely the two eligibility endpoints, rather than a nominal timestamp.

theorem MindFormal.RevealedChoice.window_bin_mono {Ω : 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} (k : ℕ) (w : Fin N) (L U : ℝ) (bin : Set ℝ) (contains : Set.Icc L U ⊆ bin) :
E.ground.μ.real {ω : Ω | ∃ t ∈ Set.Icc L U, E.supportRecord H false k ω = (t, Sum.inl w)} ≤ E.ground.μ.real {ω : Ω | ∃ t ∈ bin, E.supportRecord H false k ω = (t, Sum.inl w)}

Any actual timed window, including the qualified-release window, can be reported in a containing bin without spending more failure probability. This is monotonicity of the already measurable native record law.

theorem MindFormal.RevealedChoice.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} {B : OwnBox E H} {C : LoadComparison B} (R : OutputComparison C) (hH : H ≤ E.horizon) (e rlo : ℝ) (k : ℕ) (hr0 : 0 ≤ rlo) (release : ∀ ω ∈ B.stream, rlo ≤ ((E.supportHistory ω).native (↑H) false).release k) (error : ∀ t ∈ Set.Icc 0 ↑H, ∀ (i : Fin N), R.error t i ≤ e) (quiet : ∀ t ∈ Set.Icc rlo ↑H, ∀ (j : Fin N), E.mind.reads.outputs j = true → R.score t j < E.mind.reads.actionBar - e) :

Upper comparison scores strictly below the bar certify the actual deferral record with the same bill. Late eligibility is included automatically.