theorem
MindFormal.Logic.Reasoning.wason_completed_branches
{Ω : 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)
(branch : Bool)
(cards : Fin 5 → Fin N)
(distinct : Function.Injective cards)
(stream : Set Ω)
(hstream : MeasurableSet stream)
(H range : ℕ → NNReal)
(hH : ∀ k < if branch = true then 3 else 2, 0 < H k)
(hrange : ∀ k < if branch = true then 3 else 2, 0 < range k)
{dr : MindDriftData (Fin N) n T Λ}
(R : (k : ℕ) → Ω → LearningReference dr (H k))
(lo hi : (k : ℕ) → ↑(HorizonTime ↑(H k)))
(K : ℕ → Ω → Set (PhysicalState N n T Λ))
(d0 b L Δ room Lg Lf : ℕ → ℝ)
(hd0 : ∀ k < if branch = true then 3 else 2, 0 ≤ d0 k)
(hb : ∀ k < if branch = true then 3 else 2, 0 < b k)
(hL : ∀ k < if branch = true then 3 else 2, 0 ≤ L k)
(hΔ : ∀ k < if branch = true then 3 else 2, 0 ≤ Δ k)
(hLg : ∀ k < if branch = true then 3 else 2, 0 ≤ Lg k)
(hLf : ∀ k < if branch = true then 3 else 2, 0 ≤ Lf k)
(hroom : ∀ k < if branch = true then 3 else 2, 2 * (d0 k + b k + Δ k) * Real.exp (2 * L k * ↑(H k)) < room k)
(hcalendar : ∀ k < if branch = true then 3 else 2, ∑ j ∈ Finset.range k, H j + H k ≤ E.horizon)
(hlo : ∀ k < if branch = true then 3 else 2, DescribedChoice.queryPause E k ≤ ↑(lo k))
(hlh : ∀ k < if branch = true then 3 else 2, lo k ≤ hi k)
(hzero : ∀ ω ∈ stream, E.start.state ω ∈ K 0 ω)
(henter : ∀ k < if branch = true then 3 else 2, ∀ ω ∈ stream, ∀ z ∈ K k ω, ‖↑z - ↑(R k ω).start‖ ≤ d0 k)
(hcarry :
∀ (k : ℕ),
(k + 1 < if branch = true then 3 else 2) →
∀ ω ∈ stream,
∀ t ∈ Set.Icc (lo k) (hi k),
∀ (z : PhysicalState N n T Λ),
‖↑z - (R k ω).path t‖ ≤ 2 * (d0 k + b k + Δ k) * Real.exp (2 * L k * ↑(H k)) → z ∈ K (k + 1) ω)
(inputError focusError : ℕ → Ω → ℝ → ℝ)
(Lu Jq Eu Eq : ℕ → ℝ)
(hLu : ∀ k < if branch = true then 3 else 2, 0 ≤ Lu k)
(hJq : ∀ k < if branch = true then 3 else 2, 0 ≤ Jq k)
(total : ∀ k < if branch = true then 3 else 2, Δ k = Lu k * Eu k + Jq k * Eq k)
(G : ℕ → CoordinateIndex (Fin N) n T Λ → ℝ)
:
have m := fun (k : ℕ) (ω : Ω) (t : ℝ) => Lu k * inputError k ω t + Jq k * focusError k ω t;
have e := fun (k : ℕ) => 2 * (d0 k + b k + Δ k) * Real.exp (2 * L k * ↑(H k));
have done :=
E.pendingPhaseRecord H R lo hi e fun (x : Ω) (k : ℕ) (x_1 : Fin k → ActionSlot (Fin N)) => {wasonWord branch cards k};
have entered := fun (k : ℕ) => stream ∩ {ω : Ω | ∀ j < k, done j ω};
(∀ k < if branch = true then 3 else 2,
∀ ω ∈ entered k, IntervalIntegrable (inputError k ω) MeasureTheory.volume 0 ↑(H k)) →
(∀ k < if branch = true then 3 else 2,
∀ ω ∈ entered k, IntervalIntegrable (focusError k ω) MeasureTheory.volume 0 ↑(H k)) →
(∀ k < if branch = true then 3 else 2,
∀ ω ∈ entered k,
∀ (t : ↑(HorizonTime ↑(H k))),
↑(↑(DescribedChoice.queryCutValue E k ω) + ↑t).toNNReal ≤ E.nativePrompt k 0 ω →
∫ (s : ℝ) in 0..↑t, inputError k ω s ≤ Eu k ∧ ∫ (s : ℝ) in 0..↑t, focusError k ω s ≤ Eq k) →
(∀ k < if branch = true then 3 else 2,
∀ ω ∈ entered k,
∀ s ∈ Set.Ioc 0 E.horizon,
DescribedChoice.queryCut E k ω < ↑s →
↑s ≤ DescribedChoice.queryCut E k ω + ↑(H k) →
↑s ≤ E.nativePrompt k 0 ω →
∀ (x : PhysicalState N n T Λ),
‖↑x - ↑((E.supportHistory ω).path (DescribedChoice.queryCutValue E k ω))‖ ≤ ↑(range k) →
∀ (i : CoordinateIndex (Fin N) n T Λ),
∑ j : J,
E.mind.amplitude (↑x, (E.supportHistory ω).input ↑s, (E.supportHistory ω).pulse ↑s) i j ^ 2 ≤ G k i ^ 2) →
(∀ k < if branch = true then 3 else 2,
∀ ω ∈ entered k,
∀ (t : ↑(HorizonTime ↑(H k))),
↑(↑(DescribedChoice.queryCutValue E k ω) + ↑t).toNNReal ≤ E.nativePrompt k 0 ω →
∀ (z : MindState (Fin N) n T Λ),
PhysicalMindState z →
‖z - (R k ω).path t‖ ≤ room k →
‖assembledDrift (E.supportHistory ω).data
((E.supportHistory ω).input (↑(DescribedChoice.queryCutValue E k ω) + ↑t))
((E.supportHistory ω).pulse (↑(DescribedChoice.queryCutValue E k ω) + ↑t)) z - learningForcing dr ⋯ (R k ω).input (R k ω).mode (R k ω).path ↑t‖ ≤ L k * ‖z - (R k ω).path t‖ + m k ω ↑t) →
(∀ k < if branch = true then 3 else 2,
∀ ω ∈ entered k,
∀ (t : ↑(HorizonTime ↑(H k))),
↑(↑(DescribedChoice.queryCutValue E k ω) + ↑t).toNNReal ≤ E.nativePrompt k 0 ω →
room k + ‖(R k ω).path t - ↑(R k ω).start‖ + d0 k < ↑(range k)) →
(∀ k < if branch = true then 3 else 2,
∀ ω ∈ entered k,
∀ (t : ↑(HorizonTime ↑(H k))) (z : PhysicalState N n T Λ),
‖↑z - (R k ω).path t‖ ≤ room k →
∀ (i : Fin N),
|((E.supportHistory ω).reads.guards false) z i - ((E.supportHistory ω).reads.guards false) ((R k ω).realPath ↑t) i| ≤ Lg k * ‖↑z - (R k ω).path t‖) →
(∀ k < if branch = true then 3 else 2,
∀ ω ∈ entered k,
∀ (t : ↑(HorizonTime ↑(H k))) (z : PhysicalState N n T Λ),
‖↑z - (R k ω).path t‖ ≤ room k →
∀ (i : Fin N),
|((E.supportHistory ω).reads.scores false) z i - ((E.supportHistory ω).reads.scores false) ((R k ω).realPath ↑t) i| ≤ Lf k * ‖↑z - (R k ω).path t‖) →
(∀ k < if branch = true then 3 else 2,
∀ ω ∈ entered k,
∀ (t : ↑(HorizonTime ↑(H k))),
DescribedChoice.queryPause E k ≤ ↑t →
t < lo k →
∀ (i : Fin N),
((E.supportHistory ω).reads.guards false) ((R k ω).realPath ↑t) i < -(Lg k * e k)) →
(∀ k < if branch = true then 3 else 2,
∀ ω ∈ entered k,
Lg k * e k ≤ ((E.supportHistory ω).reads.guards false) ((R k ω).realPath ↑(hi k))
(wasonWord branch cards k)) →
(∀ k < if branch = true then 3 else 2,
∀ ω ∈ entered k,
∀ t ∈ Set.Icc (lo k) (hi k),
∀ (i : Fin N),
i ≠ wasonWord branch cards k →
((E.supportHistory ω).reads.guards false) ((R k ω).realPath ↑t) i < -(Lg k * e k)) →
have ε :=
min 1
(E.ground.μ.real streamᶜ + ∑ k : Fin (if branch = true then 3 else 2),
∑ i : CoordinateIndex (Fin N) n T Λ,
StateExperiment.conditionalRowPrice (b ↑k) (G (↑k) i) (H ↑k));
(∃ (good : Set Ω),
MeasurableSet good ∧ good ⊆ stream ∧ 1 - ε ≤ E.ground.μ.real good ∧ ∀ ω ∈ good, ∀ k < if branch = true then 3 else 2, done k ω) ∧ 1 - ε ≤ E.ground.μ.real (completedOmission E E.horizon (cards 4) (cards 3)) ∧ E.ground.μ.real (selected E E.horizon (cards 4) (cards 3)) ≤ ε ∧ E.ground.μ.real (exactPair E E.horizon (cards 4) (cards 0) (cards 3)) ≤ ε ∧ 1 - 2 * ε ≤ E.ground.μ.real (completedOmission E E.horizon (cards 4) (cards 3)) - E.ground.μ.real (selected E E.horizon (cards 4) (cards 3)) ∧ (ε < 1 / 2 →
E.ground.μ.real (exactPair E E.horizon (cards 4) (cards 0) (cards 3)) < E.ground.μ.real (completedOmission E E.horizon (cards 4) (cards 3)))
Both source branches, each with its full carried-state and prefix-dependent input/focus certificate, end in native done before 7. The word is instantiated here; no answer decoder or native success is supplied.