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) 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) 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) := 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) 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) 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) 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) 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) 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'))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 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')) 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')) 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')) 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')) 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,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 All goals completed! 🐙,spre+sout,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 All goals completed! 🐙,eout,?_⟩ 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)) 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))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 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 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 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 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 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 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 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 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 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 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 All goals completed! 🐙end ConjectureMachines.Riemann95