MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch11.A705SupportPrograms.PageErrors

25.7's error bill: the actual conditional-error identity (PG3.5) and the sufficient certificate bound (PG3.6), with the gate and preparation prices paid by the original restarted innovations.

theorem MindFormal.A705SupportPrograms.prefix_probability_of_agree {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] (E : ℕ → Set Ω) (c : ℕ → ℝ) (hc : ∀ (j : ℕ), μ.real (prefixEvent E j) ≠ 0 → c j = conditionalSuccess μ E j) (m : ℕ) :
μ.real (prefixEvent E m) = ∏ j ∈ Finset.range m, c j

A prefix probability is the product of any factors agreeing with the actual conditional successes on every prefix of positive probability; later factors are immaterial.

In the supporting results, whose steps the book's proofs use, clause 4 of key 25.7: A learned entry role can start any computation on external marks (Worked example) · INDEX.md
theorem MindFormal.A705SupportPrograms.result_25_7_4_L706 {Ω : 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) (Conf : ℕ → Set Ω) (hConf : ∀ (j : ℕ), MeasurableSet (Conf j)) (steps : ℕ) :
have μ := E.ground.μ; have εact := fun (j : ℕ) => 1 - conditionalSuccess μ Conf j; μ.real (prefixEvent Conf (steps + 1))ᶜ = 1 - (1 - εact 0) * ∏ j ∈ Finset.range steps, (1 - εact (j + 1)) ∧ εact 0 = μ.real (Conf 0)ᶜ ∧ (∀ (j : ℕ), μ.real (prefixEvent Conf j) ≠ 0 → εact j = μ.real (prefixEvent Conf j ∩ (Conf j)ᶜ) / μ.real (prefixEvent Conf j)) ∧ ∀ (c : ℕ → ℝ), (∀ (j : ℕ), μ.real (prefixEvent Conf j) ≠ 0 → c j = εact j) → μ.real (prefixEvent Conf (steps + 1))ᶜ = 1 - (1 - c 0) * ∏ j ∈ Finset.range steps, (1 - c (j + 1))

25.7, clause 4 (PG3.5), on every admitted own-noise mind: every finite configuration prefix has the actual conditional-error identity, without independence of step errors. Hypotheses: E is an original admitted own-noise StateExperiment (every writer, gain, value, focus, act and causal return native); Conf 0 is the event of correct initialization and selected program and Conf j the event of the correct complete machine configuration after step j, any measurable events of the run (hConf); steps is the prefix length. With actual conditional errors ε₀ = Pr(Conf 0ᶜ) and ε_j = Pr(Conf jᶜ | Conf 0, …, Conf (j-1)) (one minus the actual conditional success; a ratio of joint probabilities, never a marginal accuracy), conclusions: Pr(an incorrect configuration through steps) = 1 - (1-ε₀) ∏_{j=1}^{steps} (1-ε_j); ε₀ is the initial failure and, on every prefix of positive probability, ε_j is the conditional failure ratio; and when a correct prefix has probability zero the later factors are immaterial: any factors agreeing with the actual ones on the positive-probability prefixes give the same identity. No independence of gate errors, focus histories, learned values or page failures is used. Supplied steps: none.

theorem MindFormal.A705SupportPrograms.selected_price_le {J : Type u_4} [Fintype J] {D : Type u_5} [Fintype D] (a : D → J → ℝ) {b ς h : ℝ} (hh : 0 < h) (ha : ∀ (d : D), loadNormSq (a d) ≤ ς ^ 2) :
∑ d : D with a d ≠ 0, 2 * Real.exp (-(b ^ 2 / (2 * loadNormSq (a d) * h))) ≤ 2 * ↑(Fintype.card D) * Real.exp (-(b ^ 2 / (2 * ς ^ 2 * h)))

The selected restarted innovations' price: each nonzero row with loading norm at most ς pays at most the scalar Brownian maximum price at amplitude ς.

theorem MindFormal.A705SupportPrograms.chain_product_bound (a : ℝ) (b : ℕ → ℝ) (ha : a ∈ Set.Icc 0 1) (hb : ∀ (i : ℕ), b i ∈ Set.Icc 0 1) (m : ℕ) :
0 ≤ (1 - a) * ∏ i ∈ Finset.range m, (1 - b i) ∧ (1 - a) * ∏ i ∈ Finset.range m, (1 - b i) ≤ 1 ∧ 1 - a - ∑ i ∈ Finset.range m, b i ≤ (1 - a) * ∏ i ∈ Finset.range m, (1 - b i)

Weierstrass's product inequality on a finite chain of failure allowances in [0,1].

In the supporting results, whose steps the book's proofs use, clause 5 of key 25.7: A learned entry role can start any computation on external marks (Worked example) · INDEX.md
theorem MindFormal.A705SupportPrograms.result_25_7_5_L706 {Ω : 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) (C : ConstantInstanceNoise E.mind) {D : Type u_5} [Fintype D] [Countable D] (rows : D → CoordinateIndex (Fin N) n T Λ) {ς : ℝ} (hload : ∀ (d : D), loadNormSq (C.matrix (rows d)) ≤ ς ^ 2) {𝔟 bgate : ℝ} (h𝔟 : 0 < 𝔟) (hbg : 0 < bgate) {Hprep h : NNReal} (hHp : 0 < Hprep) (hh : 0 < h) (hHprep : Hprep ≤ E.horizon) (G : ℕ) (σ : ℕ → Ω → NNReal) (hσ : ∀ (j : ℕ), MeasureTheory.IsStoppingTime E.ground.filtration fun (ω : Ω) => ↑(σ j ω)) (hσH : ∀ j < G, ∀ᵐ (ω : Ω) ∂E.ground.μ, σ j ω + h ≤ E.horizon) (Prep Init : Set Ω) (Page : ℕ → Set Ω) (hPrep : (E.ownExcursion rows (fun (x : D) => 𝔟) (fun (x : Ω) => 0) Hprep)ᶜ ⊆ Prep) (hPrepm : MeasurableSet Prep) (hInitm : MeasurableSet Init) (hPagem : ∀ (j : ℕ), MeasurableSet (Page j)) {εinit : ℝ} (hεinit : 0 ≤ εinit) (hInit : E.ground.μ.real Initᶜ ≤ εinit) (εpage : ℕ → ℝ) (hεpage : ∀ (j : ℕ), 0 ≤ εpage j) (hknown : ∀ j < G, MeasurableSet (Prep ∩ Init ∩ prefixEvent (fun (i : ℕ) => (E.ownExcursion rows (fun (x : D) => bgate) (σ i) h)ᶜ ∩ Page i) j)) (hpage : ∀ j < G, E.ground.μ.real (Prep ∩ Init ∩ prefixEvent (fun (i : ℕ) => (E.ownExcursion rows (fun (x : D) => bgate) (σ i) h)ᶜ ∩ Page i) j ∩ (Page j)ᶜ) ≤ εpage j * E.ground.μ.real (Prep ∩ Init ∩ prefixEvent (fun (i : ℕ) => (E.ownExcursion rows (fun (x : D) => bgate) (σ i) h)ᶜ ∩ Page i) j)) :
have pprep := min 1 (2 * ↑(Fintype.card D) * Real.exp (-(𝔟 ^ 2 / (2 * ς ^ 2 * ↑Hprep)))); have πgate := min 1 (2 * ↑(Fintype.card D) * Real.exp (-(bgate ^ 2 / (2 * ς ^ 2 * ↑h)))); have ε₀ := min 1 (pprep + εinit); have εblock := fun (j : ℕ) => min 1 (πgate + εpage j); ∀ (K : Set Ω), Prep ∩ Init ∩ prefixEvent (fun (i : ℕ) => (E.ownExcursion rows (fun (x : D) => bgate) (σ i) h)ᶜ ∩ Page i) G ⊆ K → E.ground.μ.real Kᶜ ≤ 1 - (1 - ε₀) * ∏ j ∈ Finset.range G, (1 - εblock j) ∧ 1 - (1 - ε₀) * ∏ j ∈ Finset.range G, (1 - εblock j) ≤ min 1 (pprep + εinit + ↑G * πgate + ∑ j ∈ Finset.range G, εpage j)

25.7, clause 5 (PG3.6), on every admitted own-noise mind with constant noise loadings: the preparation, gate and interface certificates give the finite-prefix sufficient error bound. Hypotheses: E is an original admitted own-noise StateExperiment with constant loading matrix C (every writer, gain, value, focus, act and causal return native; this is the independent constant-noise family of the source); rows are the selected activity/relation innovations (twelve in the source; any finite family here), each with loading norm at most ς (hload); the preparation allowance 𝔟 > 0 over the preparation horizon 0 < H_prep ≤ the run's horizon; the gate allowance b_gate > 0 over each block of length 0 < h; G blocks with stopping starts σ j within the horizon. Prep is the preparation certificate, which holds whenever no selected innovation measured from time zero reaches 𝔟 by H_prep (hPrep); Init the initialization certificate with failure at most ε_init ≥ 0; Page j the block-j interface certificate. The whole certificate through block j is Cert j = Prep ∩ Init ∩ ⋂_{i<j} (no gate excursion in block i ∩ Page i); it is known at the block start (hknown), and the world's page bill is conditional: Pr(Cert j ∩ Page jᶜ) ≤ ε_page j · Pr(Cert j) with ε_page j ≥ 0 (hpage). These interface allowances are the world's premises; the preparation and gate prices are derived from the original restarted Brownian innovations (strong Markov restart at each stopping start), with no independence between gates, focus histories, learned values or page failures. With p_prep = min{1, 2|rows| e^{-𝔟²/(2ς²H_prep)}}, π_gate = min{1, 2|rows| e^{-b_gate²/(2ς²h)}}, ε₀ = min{1, p_prep + ε_init} and ε_j = min{1, π_gate + ε_page j}, conclusion: for every configuration event K that the whole certificate implies (Cert G ⊆ K, the certificate's sufficiency), Pr(Kᶜ) ≤ 1 - (1-ε₀)∏_{j<G}(1-ε_j) ≤ min{1, p_prep + ε_init + Gπ_gate + Σ_{j<G} ε_page j}; with twelve rows 2|rows| = 24 as printed. Supplied steps: none.