Imports
/-
Copyright (c) 2026 Google LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
-/
module
public import Cryptids.ReductionSupport.Riemann95.Terminal95
public import Cryptids.ReductionSupport.Riemann95.PhysicalTrace95
public import Cryptids.ReductionSupport.Riemann95.TypedPrewidth95
public import Cryptids.ReductionSupport.Riemann95.ClockBound95@[expose] public sectionnamespace ConjectureMachines.Riemann95open Turing ConjectureMachinestheorem residual_criterion (M : Nat) :
Riemann120.ShuniaCounterexample (M + 2) ↔
0 < Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) := M:ℕ⊢ Riemann120.ShuniaCounterexample (M + 2) ↔ 0 < Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2))
M:ℕ⊢ Riemann120.ShuniaCounterexample (M + 2) ↔
0 < Riemann120.shuniaDeficit (M + 2) / 2 ^ Riemann120.quarterClock (M + 1) - Riemann120.quarterClock (M + 1)
have hn : M + 2 - 1 = M + 1 := by M:ℕ⊢ Riemann120.ShuniaCounterexample (M + 2) ↔ 0 < Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) omega M:ℕhn:M + 2 - 1 = M + 1⊢ Riemann120.ShuniaCounterexample (M + 2) ↔
0 < Riemann120.shuniaDeficit (M + 2) / 2 ^ Riemann120.quarterClock (M + 1) - Riemann120.quarterClock (M + 1)
simpa only [hn] using Riemann120.Layer2.shuniaCounterexample_iff_sub_pos (M + 2) All goals completed! 🐙Each full stage either advances with one more padding cell or halts on its exact criterion.
theorem physical_stage_outcomes (M P : Nat) (hP : M + 21 ≤ P) (extra : List Nat) :
(¬ Riemann120.ShuniaCounterexample (M + 2) →
∃ P' ≥ P + 1, ∃ s ≥ 1, ∃ extra',
nSteps s (Physical.rootCfg P [] ([0,0,0,M,0] ++ extra)) =
some (Physical.rootCfg P' [] ([0,0,0,M+1,0] ++ extra'))) ∧
(Riemann120.ShuniaCounterexample (M + 2) →
∃ s, ∃ c : Cfg 95 2,
nSteps s (Physical.rootCfg P [] ([0,0,0,M,0] ++ extra)) = some c ∧
step machine c = none) := by M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕ⊢ (¬Riemann120.ShuniaCounterexample (M + 2) →
∃ P' ≥ P + 1,
∃ s ≥ 1,
∃ extra',
nSteps s (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg P' [] ([0, 0, 0, M + 1, 0] ++ extra'))) ∧
(Riemann120.ShuniaCounterexample (M + 2) →
∃ s c, nSteps s (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) = some c ∧ step machine c = none)
have hpre := Trace.bounded_trace_lift 19 P (by M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕ⊢ 19 ≤ P omega All goals completed! 🐙)
(⟨.outside 0,[0,0,0,M,0]⟩ : Control.Cfg)
(⟨.outside 88,[0,0,Riemann120.shuniaDeficit (M+2),0,M+1]⟩ : Control.Cfg)
(by M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕ⊢ { control := Schema.ControlWord.outside 0, regs := [0, 0, 0, M, 0] }.regs.length = 5 rfl All goals completed! 🐙) (TypedPrewidth.stage_prewidth M) extra M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕhpre:∃ P' ≥ P,
∃ n ≥ 1,
∃ extra',
nSteps n
(Physical.rootCfg P (Schema.word { control := Schema.ControlWord.outside 0, regs := [0, 0, 0, M, 0] }.control)
({ control := Schema.ControlWord.outside 0, regs := [0, 0, 0, M, 0] }.regs ++ extra)) =
some
(Physical.rootCfg P'
(Schema.word
{ control := Schema.ControlWord.outside 88,
regs := [0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] }.control)
({ control := Schema.ControlWord.outside 88,
regs := [0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] }.regs ++
extra'))⊢ (¬Riemann120.ShuniaCounterexample (M + 2) →
∃ P' ≥ P + 1,
∃ s ≥ 1,
∃ extra',
nSteps s (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg P' [] ([0, 0, 0, M + 1, 0] ++ extra'))) ∧
(Riemann120.ShuniaCounterexample (M + 2) →
∃ s c, nSteps s (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) = some c ∧ step machine c = none)
obtain ⟨Ppre,hPpre,spre,hspre,epre,hpre⟩ := hpre M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre
(Physical.rootCfg P (Schema.word { control := Schema.ControlWord.outside 0, regs := [0, 0, 0, M, 0] }.control)
({ control := Schema.ControlWord.outside 0, regs := [0, 0, 0, M, 0] }.regs ++ extra)) =
some
(Physical.rootCfg Ppre
(Schema.word
{ control := Schema.ControlWord.outside 88,
regs := [0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] }.control)
({ control := Schema.ControlWord.outside 88, regs := [0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] }.regs ++
epre))⊢ (¬Riemann120.ShuniaCounterexample (M + 2) →
∃ P' ≥ P + 1,
∃ s ≥ 1,
∃ extra',
nSteps s (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg P' [] ([0, 0, 0, M + 1, 0] ++ extra'))) ∧
(Riemann120.ShuniaCounterexample (M + 2) →
∃ s c, nSteps s (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) = some c ∧ step machine c = none)
change nSteps spre (Physical.rootCfg P [] ([0,0,0,M,0] ++ extra)) =
some (Physical.rootCfg Ppre [1,1,1,1]
([0,0,Riemann120.shuniaDeficit (M+2),0,M+1] ++ epre)) at hpre M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))⊢ (¬Riemann120.ShuniaCounterexample (M + 2) →
∃ P' ≥ P + 1,
∃ s ≥ 1,
∃ extra',
nSteps s (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg P' [] ([0, 0, 0, M + 1, 0] ++ extra'))) ∧
(Riemann120.ShuniaCounterexample (M + 2) →
∃ s c, nSteps s (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) = some c ∧ step machine c = none)
have hbudget : Control.widthBudget (M+1) ≤ Ppre := by
have hb := Algorithm.width_padding_le (M+1) (by M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))⊢ 1 ≤ M + 1 omega All goals completed! 🐙) M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))hb:max 16 (10 + 5 * Riemann120.quarterClock (M + 1)) + 5 ≤ M + 1 + 20⊢ Control.widthBudget (M + 1) ≤ Ppre
change max 16 (10 + 5 * Riemann120.quarterClock (M+1)) + 5 ≤ Ppre M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))hb:max 16 (10 + 5 * Riemann120.quarterClock (M + 1)) + 5 ≤ M + 1 + 20⊢ max 16 (10 + 5 * Riemann120.quarterClock (M + 1)) + 5 ≤ Ppre
omega M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))hbudget:Control.widthBudget (M + 1) ≤ Ppre⊢ (¬Riemann120.ShuniaCounterexample (M + 2) →
∃ P' ≥ P + 1,
∃ s ≥ 1,
∃ extra',
nSteps s (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg P' [] ([0, 0, 0, M + 1, 0] ++ extra'))) ∧
(Riemann120.ShuniaCounterexample (M + 2) →
∃ s c, nSteps s (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) = some c ∧ step machine c = none)
constructor left M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))hbudget:Control.widthBudget (M + 1) ≤ Ppre⊢ ¬Riemann120.ShuniaCounterexample (M + 2) →
∃ P' ≥ P + 1,
∃ s ≥ 1,
∃ extra',
nSteps s (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg P' [] ([0, 0, 0, M + 1, 0] ++ extra'))right M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))hbudget:Control.widthBudget (M + 1) ≤ Ppre⊢ Riemann120.ShuniaCounterexample (M + 2) →
∃ s c, nSteps s (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) = some c ∧ step machine c = none
· left M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))hbudget:Control.widthBudget (M + 1) ≤ Ppre⊢ ¬Riemann120.ShuniaCounterexample (M + 2) →
∃ P' ≥ P + 1,
∃ s ≥ 1,
∃ extra',
nSteps s (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg P' [] ([0, 0, 0, M + 1, 0] ++ extra')) intro hsafe left M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))hbudget:Control.widthBudget (M + 1) ≤ Pprehsafe:¬Riemann120.ShuniaCounterexample (M + 2)⊢ ∃ P' ≥ P + 1,
∃ s ≥ 1,
∃ extra',
nSteps s (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg P' [] ([0, 0, 0, M + 1, 0] ++ extra'))
have hz : Algorithm.residual (M+1) (Riemann120.shuniaDeficit (M+2)) = 0 := by M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕ⊢ (¬Riemann120.ShuniaCounterexample (M + 2) →
∃ P' ≥ P + 1,
∃ s ≥ 1,
∃ extra',
nSteps s (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg P' [] ([0, 0, 0, M + 1, 0] ++ extra'))) ∧
(Riemann120.ShuniaCounterexample (M + 2) →
∃ s c, nSteps s (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) = some c ∧ step machine c = none)
have hn := mt (residual_criterion M).mpr hsafe M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))hbudget:Control.widthBudget (M + 1) ≤ Pprehsafe:¬Riemann120.ShuniaCounterexample (M + 2)hn:¬0 < Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2))⊢ Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) = 0
omega left M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))hbudget:Control.widthBudget (M + 1) ≤ Pprehsafe:¬Riemann120.ShuniaCounterexample (M + 2)hz:Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) = 0⊢ ∃ P' ≥ P + 1,
∃ s ≥ 1,
∃ extra',
nSteps s (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg P' [] ([0, 0, 0, M + 1, 0] ++ extra'))
obtain ⟨Pout,hPout,sout,hsout,eout,hout⟩ :=
Trace.physical_precredit_width_zero Ppre 0 (M+1)
(Riemann120.shuniaDeficit (M+2)) epre hbudget hz left M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))hbudget:Control.widthBudget (M + 1) ≤ Pprehsafe:¬Riemann120.ShuniaCounterexample (M + 2)hz:Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) = 0Pout:ℕhPout:Pout ≥ Ppre + 1sout:ℕhsout:sout ≥ 1eout:List ℕhout:nSteps sout (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre)) =
some (Physical.rootCfg Pout [] ([0, 0, 0, 0 + (M + 1), 0] ++ eout))⊢ ∃ P' ≥ P + 1,
∃ s ≥ 1,
∃ extra',
nSteps s (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg P' [] ([0, 0, 0, M + 1, 0] ++ extra'))
simp only [Nat.zero_add] at hout left M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))hbudget:Control.widthBudget (M + 1) ≤ Pprehsafe:¬Riemann120.ShuniaCounterexample (M + 2)hz:Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) = 0Pout:ℕhPout:Pout ≥ Ppre + 1sout:ℕhsout:sout ≥ 1eout:List ℕhout:nSteps sout (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre)) =
some (Physical.rootCfg Pout [] ([0, 0, 0, M + 1, 0] ++ eout))⊢ ∃ P' ≥ P + 1,
∃ s ≥ 1,
∃ extra',
nSteps s (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg P' [] ([0, 0, 0, M + 1, 0] ++ extra'))
refine ⟨Pout,by M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))hbudget:Control.widthBudget (M + 1) ≤ Pprehsafe:¬Riemann120.ShuniaCounterexample (M + 2)hz:Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) = 0Pout:ℕhPout:Pout ≥ Ppre + 1sout:ℕhsout:sout ≥ 1eout:List ℕhout:nSteps sout (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre)) =
some (Physical.rootCfg Pout [] ([0, 0, 0, M + 1, 0] ++ eout))⊢ Pout ≥ P + 1 omega All goals completed! 🐙,spre+sout,by M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))hbudget:Control.widthBudget (M + 1) ≤ Pprehsafe:¬Riemann120.ShuniaCounterexample (M + 2)hz:Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) = 0Pout:ℕhPout:Pout ≥ Ppre + 1sout:ℕhsout:sout ≥ 1eout:List ℕhout:nSteps sout (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre)) =
some (Physical.rootCfg Pout [] ([0, 0, 0, M + 1, 0] ++ eout))⊢ spre + sout ≥ 1 omega All goals completed! 🐙,eout,?_⟩
rw [Dispatch.nSteps_composition, left M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))hbudget:Control.widthBudget (M + 1) ≤ Pprehsafe:¬Riemann120.ShuniaCounterexample (M + 2)hz:Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) = 0Pout:ℕhPout:Pout ≥ Ppre + 1sout:ℕhsout:sout ≥ 1eout:List ℕhout:nSteps sout (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre)) =
some (Physical.rootCfg Pout [] ([0, 0, 0, M + 1, 0] ++ eout))⊢ (nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra))).bind (nSteps sout) =
some (Physical.rootCfg Pout [] ([0, 0, 0, M + 1, 0] ++ eout))hpre left M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))hbudget:Control.widthBudget (M + 1) ≤ Pprehsafe:¬Riemann120.ShuniaCounterexample (M + 2)hz:Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) = 0Pout:ℕhPout:Pout ≥ Ppre + 1sout:ℕhsout:sout ≥ 1eout:List ℕhout:nSteps sout (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre)) =
some (Physical.rootCfg Pout [] ([0, 0, 0, M + 1, 0] ++ eout))⊢ (some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))).bind
(nSteps sout) =
some (Physical.rootCfg Pout [] ([0, 0, 0, M + 1, 0] ++ eout))] left M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))hbudget:Control.widthBudget (M + 1) ≤ Pprehsafe:¬Riemann120.ShuniaCounterexample (M + 2)hz:Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) = 0Pout:ℕhPout:Pout ≥ Ppre + 1sout:ℕhsout:sout ≥ 1eout:List ℕhout:nSteps sout (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre)) =
some (Physical.rootCfg Pout [] ([0, 0, 0, M + 1, 0] ++ eout))⊢ (some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))).bind
(nSteps sout) =
some (Physical.rootCfg Pout [] ([0, 0, 0, M + 1, 0] ++ eout))
exact hout All goals completed! 🐙
· right M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))hbudget:Control.widthBudget (M + 1) ≤ Ppre⊢ Riemann120.ShuniaCounterexample (M + 2) →
∃ s c, nSteps s (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) = some c ∧ step machine c = none intro hbad right M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))hbudget:Control.widthBudget (M + 1) ≤ Pprehbad:Riemann120.ShuniaCounterexample (M + 2)⊢ ∃ s c, nSteps s (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) = some c ∧ step machine c = none
have hpos := (residual_criterion M).mp hbad right M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))hbudget:Control.widthBudget (M + 1) ≤ Pprehbad:Riemann120.ShuniaCounterexample (M + 2)hpos:0 < Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2))⊢ ∃ s c, nSteps s (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) = some c ∧ step machine c = none
obtain ⟨Pout,_,sout,_,eout,hout⟩ :=
Trace.physical_precredit_width Ppre 0 (M+1)
(Riemann120.shuniaDeficit (M+2)) epre hbudget right M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))hbudget:Control.widthBudget (M + 1) ≤ Pprehbad:Riemann120.ShuniaCounterexample (M + 2)hpos:0 < Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2))Pout:ℕleft✝¹:Pout ≥ Ppresout:ℕleft✝:sout ≥ 1eout:List ℕhout:nSteps sout (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre)) =
some
(Physical.rootCfg Pout
(if Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) = 0 then []
else Schema.word (Schema.ControlWord.outside Control.finalHaltId))
([0, 0, Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) - 1, 0 + (M + 1), 0] ++ eout))⊢ ∃ s c, nSteps s (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) = some c ∧ step machine c = none
have hn : Algorithm.residual (M+1) (Riemann120.shuniaDeficit (M+2)) ≠ 0 := by M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕ⊢ (¬Riemann120.ShuniaCounterexample (M + 2) →
∃ P' ≥ P + 1,
∃ s ≥ 1,
∃ extra',
nSteps s (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg P' [] ([0, 0, 0, M + 1, 0] ++ extra'))) ∧
(Riemann120.ShuniaCounterexample (M + 2) →
∃ s c, nSteps s (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) = some c ∧ step machine c = none) omega right M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))hbudget:Control.widthBudget (M + 1) ≤ Pprehbad:Riemann120.ShuniaCounterexample (M + 2)hpos:0 < Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2))Pout:ℕleft✝¹:Pout ≥ Ppresout:ℕleft✝:sout ≥ 1eout:List ℕhout:nSteps sout (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre)) =
some
(Physical.rootCfg Pout
(if Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) = 0 then []
else Schema.word (Schema.ControlWord.outside Control.finalHaltId))
([0, 0, Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) - 1, 0 + (M + 1), 0] ++ eout))hn:Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) ≠ 0⊢ ∃ s c, nSteps s (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) = some c ∧ step machine c = none
simp only [hn,ite_false,Nat.zero_add] at hout right M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))hbudget:Control.widthBudget (M + 1) ≤ Pprehbad:Riemann120.ShuniaCounterexample (M + 2)hpos:0 < Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2))Pout:ℕleft✝¹:Pout ≥ Ppresout:ℕleft✝:sout ≥ 1eout:List ℕhn:Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) ≠ 0hout:nSteps sout (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre)) =
some
(Physical.rootCfg Pout (Schema.word (Schema.ControlWord.outside Control.finalHaltId))
([0, 0, Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) - 1, M + 1, 0] ++ eout))⊢ ∃ s c, nSteps s (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) = some c ∧ step machine c = none
obtain ⟨shalt,c,hhalt,hstop⟩ := physical_halt_word Pout
([0,0,Algorithm.residual (M+1) (Riemann120.shuniaDeficit (M+2))-1,M+1,0] ++ eout) right M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))hbudget:Control.widthBudget (M + 1) ≤ Pprehbad:Riemann120.ShuniaCounterexample (M + 2)hpos:0 < Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2))Pout:ℕleft✝¹:Pout ≥ Ppresout:ℕleft✝:sout ≥ 1eout:List ℕhn:Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) ≠ 0hout:nSteps sout (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre)) =
some
(Physical.rootCfg Pout (Schema.word (Schema.ControlWord.outside Control.finalHaltId))
([0, 0, Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) - 1, M + 1, 0] ++ eout))shalt:ℕc:Cfg 95 2hhalt:nSteps shalt
(Physical.rootCfg Pout (Schema.word (Schema.ControlWord.outside Control.finalHaltId))
([0, 0, Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) - 1, M + 1, 0] ++ eout)) =
some chstop:step machine c = none⊢ ∃ s c, nSteps s (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) = some c ∧ step machine c = none
refine ⟨spre+sout+shalt,c,?_,hstop⟩ right M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))hbudget:Control.widthBudget (M + 1) ≤ Pprehbad:Riemann120.ShuniaCounterexample (M + 2)hpos:0 < Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2))Pout:ℕleft✝¹:Pout ≥ Ppresout:ℕleft✝:sout ≥ 1eout:List ℕhn:Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) ≠ 0hout:nSteps sout (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre)) =
some
(Physical.rootCfg Pout (Schema.word (Schema.ControlWord.outside Control.finalHaltId))
([0, 0, Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) - 1, M + 1, 0] ++ eout))shalt:ℕc:Cfg 95 2hhalt:nSteps shalt
(Physical.rootCfg Pout (Schema.word (Schema.ControlWord.outside Control.finalHaltId))
([0, 0, Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) - 1, M + 1, 0] ++ eout)) =
some chstop:step machine c = none⊢ nSteps (spre + sout + shalt) (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) = some c
rw [Dispatch.nSteps_composition, right M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))hbudget:Control.widthBudget (M + 1) ≤ Pprehbad:Riemann120.ShuniaCounterexample (M + 2)hpos:0 < Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2))Pout:ℕleft✝¹:Pout ≥ Ppresout:ℕleft✝:sout ≥ 1eout:List ℕhn:Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) ≠ 0hout:nSteps sout (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre)) =
some
(Physical.rootCfg Pout (Schema.word (Schema.ControlWord.outside Control.finalHaltId))
([0, 0, Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) - 1, M + 1, 0] ++ eout))shalt:ℕc:Cfg 95 2hhalt:nSteps shalt
(Physical.rootCfg Pout (Schema.word (Schema.ControlWord.outside Control.finalHaltId))
([0, 0, Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) - 1, M + 1, 0] ++ eout)) =
some chstop:step machine c = none⊢ (nSteps (spre + sout) (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra))).bind (nSteps shalt) = some cDispatch.nSteps_composition, right M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))hbudget:Control.widthBudget (M + 1) ≤ Pprehbad:Riemann120.ShuniaCounterexample (M + 2)hpos:0 < Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2))Pout:ℕleft✝¹:Pout ≥ Ppresout:ℕleft✝:sout ≥ 1eout:List ℕhn:Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) ≠ 0hout:nSteps sout (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre)) =
some
(Physical.rootCfg Pout (Schema.word (Schema.ControlWord.outside Control.finalHaltId))
([0, 0, Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) - 1, M + 1, 0] ++ eout))shalt:ℕc:Cfg 95 2hhalt:nSteps shalt
(Physical.rootCfg Pout (Schema.word (Schema.ControlWord.outside Control.finalHaltId))
([0, 0, Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) - 1, M + 1, 0] ++ eout)) =
some chstop:step machine c = none⊢ ((nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra))).bind (nSteps sout)).bind (nSteps shalt) = some chpre right M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))hbudget:Control.widthBudget (M + 1) ≤ Pprehbad:Riemann120.ShuniaCounterexample (M + 2)hpos:0 < Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2))Pout:ℕleft✝¹:Pout ≥ Ppresout:ℕleft✝:sout ≥ 1eout:List ℕhn:Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) ≠ 0hout:nSteps sout (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre)) =
some
(Physical.rootCfg Pout (Schema.word (Schema.ControlWord.outside Control.finalHaltId))
([0, 0, Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) - 1, M + 1, 0] ++ eout))shalt:ℕc:Cfg 95 2hhalt:nSteps shalt
(Physical.rootCfg Pout (Schema.word (Schema.ControlWord.outside Control.finalHaltId))
([0, 0, Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) - 1, M + 1, 0] ++ eout)) =
some chstop:step machine c = none⊢ ((some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))).bind
(nSteps sout)).bind
(nSteps shalt) =
some c] right M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))hbudget:Control.widthBudget (M + 1) ≤ Pprehbad:Riemann120.ShuniaCounterexample (M + 2)hpos:0 < Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2))Pout:ℕleft✝¹:Pout ≥ Ppresout:ℕleft✝:sout ≥ 1eout:List ℕhn:Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) ≠ 0hout:nSteps sout (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre)) =
some
(Physical.rootCfg Pout (Schema.word (Schema.ControlWord.outside Control.finalHaltId))
([0, 0, Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) - 1, M + 1, 0] ++ eout))shalt:ℕc:Cfg 95 2hhalt:nSteps shalt
(Physical.rootCfg Pout (Schema.word (Schema.ControlWord.outside Control.finalHaltId))
([0, 0, Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) - 1, M + 1, 0] ++ eout)) =
some chstop:step machine c = none⊢ ((some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))).bind
(nSteps sout)).bind
(nSteps shalt) =
some c
change (nSteps sout (Physical.rootCfg Ppre [1,1,1,1]
([0,0,Riemann120.shuniaDeficit (M+2),0,M+1] ++ epre))).bind (nSteps shalt) = some c right M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))hbudget:Control.widthBudget (M + 1) ≤ Pprehbad:Riemann120.ShuniaCounterexample (M + 2)hpos:0 < Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2))Pout:ℕleft✝¹:Pout ≥ Ppresout:ℕleft✝:sout ≥ 1eout:List ℕhn:Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) ≠ 0hout:nSteps sout (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre)) =
some
(Physical.rootCfg Pout (Schema.word (Schema.ControlWord.outside Control.finalHaltId))
([0, 0, Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) - 1, M + 1, 0] ++ eout))shalt:ℕc:Cfg 95 2hhalt:nSteps shalt
(Physical.rootCfg Pout (Schema.word (Schema.ControlWord.outside Control.finalHaltId))
([0, 0, Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) - 1, M + 1, 0] ++ eout)) =
some chstop:step machine c = none⊢ (nSteps sout (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))).bind
(nSteps shalt) =
some c
rw [hout right M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))hbudget:Control.widthBudget (M + 1) ≤ Pprehbad:Riemann120.ShuniaCounterexample (M + 2)hpos:0 < Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2))Pout:ℕleft✝¹:Pout ≥ Ppresout:ℕleft✝:sout ≥ 1eout:List ℕhn:Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) ≠ 0hout:nSteps sout (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre)) =
some
(Physical.rootCfg Pout (Schema.word (Schema.ControlWord.outside Control.finalHaltId))
([0, 0, Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) - 1, M + 1, 0] ++ eout))shalt:ℕc:Cfg 95 2hhalt:nSteps shalt
(Physical.rootCfg Pout (Schema.word (Schema.ControlWord.outside Control.finalHaltId))
([0, 0, Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) - 1, M + 1, 0] ++ eout)) =
some chstop:step machine c = none⊢ (some
(Physical.rootCfg Pout (Schema.word (Schema.ControlWord.outside Control.finalHaltId))
([0, 0, Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) - 1, M + 1, 0] ++ eout))).bind
(nSteps shalt) =
some c] right M:ℕP:ℕhP:M + 21 ≤ Pextra:List ℕPpre:ℕhPpre:Ppre ≥ Pspre:ℕhspre:spre ≥ 1epre:List ℕhpre:nSteps spre (Physical.rootCfg P [] ([0, 0, 0, M, 0] ++ extra)) =
some (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre))hbudget:Control.widthBudget (M + 1) ≤ Pprehbad:Riemann120.ShuniaCounterexample (M + 2)hpos:0 < Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2))Pout:ℕleft✝¹:Pout ≥ Ppresout:ℕleft✝:sout ≥ 1eout:List ℕhn:Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) ≠ 0hout:nSteps sout (Physical.rootCfg Ppre [1, 1, 1, 1] ([0, 0, Riemann120.shuniaDeficit (M + 2), 0, M + 1] ++ epre)) =
some
(Physical.rootCfg Pout (Schema.word (Schema.ControlWord.outside Control.finalHaltId))
([0, 0, Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) - 1, M + 1, 0] ++ eout))shalt:ℕc:Cfg 95 2hhalt:nSteps shalt
(Physical.rootCfg Pout (Schema.word (Schema.ControlWord.outside Control.finalHaltId))
([0, 0, Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) - 1, M + 1, 0] ++ eout)) =
some chstop:step machine c = none⊢ (some
(Physical.rootCfg Pout (Schema.word (Schema.ControlWord.outside Control.finalHaltId))
([0, 0, Algorithm.residual (M + 1) (Riemann120.shuniaDeficit (M + 2)) - 1, M + 1, 0] ++ eout))).bind
(nSteps shalt) =
some c
exact hhalt All goals completed! 🐙end ConjectureMachines.Riemann95