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.PaddingRaw95 public import Cryptids.ReductionSupport.Riemann95.Physical95
@[expose] public sectionnamespace ConjectureMachines.Riemann95Auxiliary.Physicalopen Turing ConjectureMachinesopen ConjectureMachines.Riemann120 ConjectureMachines.Riemann120.Layer2open ConjectureMachines.Semantics.Riemann.Layer1 (regsTape)theorem fenceReturn_exact (k : Fin 2) (walked : List (Fin 2)) (fill : Nat) (hfill : 3 ≤ fill) (hk : k.val ≤ walked.count 0) (hguard : Riemann104.OnePassGuard.NoThreeZeros (1 :: (popBreakRev k.val walked.reverse).reverse).reverse = true) (bank : List Nat) : ∃ s ≥ 1, nSteps s ⟨(if k = 0 then 9 else 63), Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape bank))⟩ = some (rawRoot98 (PhysicalRaw.exactPad k walked fill) (popBreakRev k.val walked.reverse).reverse bank) := k:Fin 2walked:List (Fin 2)fill:ℕhfill:3 ≤ fillhk:↑k ≤ List.count 0 walkedhguard:Riemann104.OnePassGuard.NoThreeZeros (1 :: (popBreakRev (↑k) walked.reverse).reverse).reverse = truebank:List ℕ⊢ ∃ s ≥ 1, nSteps s { state := if k = 0 then 9 else 63, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape bank)) } = some (rawRoot98 (PhysicalRaw.exactPad k walked fill) (popBreakRev (↑k) walked.reverse).reverse bank) k:Fin 2walked:List (Fin 2)fill:ℕhfill:3 ≤ fillhk:↑k ≤ List.count 0 walkedhguard:Riemann104.OnePassGuard.NoThreeZeros (1 :: (popBreakRev (↑k) walked.reverse).reverse).reverse = truebank:List ℕs:ℕhs:s ≥ 1h:Raw.nSteps s { state := if k = 0 then 9 else 63, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape bank)) } = some (PhysicalRaw.rawRoot98 (PhysicalRaw.exactPad k walked fill) (popBreakRev (↑k) walked.reverse).reverse bank)⊢ ∃ s ≥ 1, nSteps s { state := if k = 0 then 9 else 63, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape bank)) } = some (rawRoot98 (PhysicalRaw.exactPad k walked fill) (popBreakRev (↑k) walked.reverse).reverse bank) k:Fin 2walked:List (Fin 2)fill:ℕhfill:3 ≤ fillhk:↑k ≤ List.count 0 walkedhguard:Riemann104.OnePassGuard.NoThreeZeros (1 :: (popBreakRev (↑k) walked.reverse).reverse).reverse = truebank:List ℕs:ℕhs:s ≥ 1h:Raw.nSteps s { state := if k = 0 then 9 else 63, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape bank)) } = some (PhysicalRaw.rawRoot98 (PhysicalRaw.exactPad k walked fill) (popBreakRev (↑k) walked.reverse).reverse bank)ht:nSteps s (Renaming.renameCfg { state := if k = 0 then 9 else 63, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape bank)) }) = some (Renaming.renameCfg (PhysicalRaw.rawRoot98 (PhysicalRaw.exactPad k walked fill) (popBreakRev (↑k) walked.reverse).reverse bank))⊢ ∃ s ≥ 1, nSteps s { state := if k = 0 then 9 else 63, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape bank)) } = some (rawRoot98 (PhysicalRaw.exactPad k walked fill) (popBreakRev (↑k) walked.reverse).reverse bank) k:Fin 2walked:List (Fin 2)fill:ℕhfill:3 ≤ fillhk:↑k ≤ List.count 0 walkedhguard:Riemann104.OnePassGuard.NoThreeZeros (1 :: (popBreakRev (↑k) walked.reverse).reverse).reverse = truebank:List ℕs:ℕhs:s ≥ 1h:Raw.nSteps s { state := if k = 0 then 9 else 63, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape bank)) } = some (PhysicalRaw.rawRoot98 (PhysicalRaw.exactPad k walked fill) (popBreakRev (↑k) walked.reverse).reverse bank)ht:nSteps s (Renaming.renameCfg { state := if k = 0 then 9 else 63, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape bank)) }) = some (rawRoot98 (PhysicalRaw.exactPad k walked fill) (popBreakRev (↑k) walked.reverse).reverse bank)⊢ ∃ s ≥ 1, nSteps s { state := if k = 0 then 9 else 63, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape bank)) } = some (rawRoot98 (PhysicalRaw.exactPad k walked fill) (popBreakRev (↑k) walked.reverse).reverse bank) k:Fin 2walked:List (Fin 2)fill:ℕhfill:3 ≤ fillhk:↑k ≤ List.count 0 walkedhguard:Riemann104.OnePassGuard.NoThreeZeros (1 :: (popBreakRev (↑k) walked.reverse).reverse).reverse = truebank:List ℕs:ℕhs:s ≥ 1h:Raw.nSteps s { state := if k = 0 then 9 else 63, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape bank)) } = some (PhysicalRaw.rawRoot98 (PhysicalRaw.exactPad k walked fill) (popBreakRev (↑k) walked.reverse).reverse bank)ht:nSteps s (Renaming.renameCfg { state := if k = 0 then 9 else 63, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape bank)) }) = some (rawRoot98 (PhysicalRaw.exactPad k walked fill) (popBreakRev (↑k) walked.reverse).reverse bank)⊢ nSteps s { state := if k = 0 then 9 else 63, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape bank)) } = some (rawRoot98 (PhysicalRaw.exactPad k walked fill) (popBreakRev (↑k) walked.reverse).reverse bank) All goals completed! 🐙end ConjectureMachines.Riemann95Auxiliary.Physicalnamespace ConjectureMachines.Riemann95.Physicalopen Turing ConjectureMachinesopen ConjectureMachines.Riemann120 ConjectureMachines.Riemann120.Layer2open ConjectureMachines.Semantics.Riemann.Layer1 (regsTape)abbrev exactPad := Riemann95Auxiliary.PhysicalRaw.exactPadtheorem exactPad_ge (k : Fin 2) (walked : List (Fin 2)) (fill : Nat) : walked.length + fill ≤ exactPad k walked fill := k:Fin 2walked:List (Fin 2)fill:ℕ⊢ walked.length + fill ≤ exactPad k walked fill k:Fin 2walked:List (Fin 2)fill:ℕ⊢ walked.length + fill ≤ walked.length + fill + if ↑k < List.count 0 walked then 0 else 1 All goals completed! 🐙theorem exactPad_of_eq (k : Fin 2) (walked : List (Fin 2)) (fill : Nat) (h : k.val = walked.count 0) : exactPad k walked fill = walked.length + fill + 1 := k:Fin 2walked:List (Fin 2)fill:ℕh:↑k = List.count 0 walked⊢ exactPad k walked fill = walked.length + fill + 1 All goals completed! 🐙

A genuine caller zero remains precisely when the root marker is not exhausted.

theorem popBreakRev_ne_nil (j : Nat) (rev : List (Fin 2)) (h : j < rev.count 0) : popBreakRev j rev ≠ [] := j:ℕrev:List (Fin 2)h:j < List.count 0 rev⊢ popBreakRev j rev ≠ [] induction rev generalizing j with j:ℕh:j < List.count 0 []⊢ popBreakRev j [] ≠ [] j:ℕh:j < 0⊢ popBreakRev j [] ≠ []; All goals completed! 🐙 b:Fin 2xs:List (Fin 2)ih:∀ j < List.count 0 xs, popBreakRev j xs ≠ []j:ℕh:j < List.count 0 (b :: xs)⊢ popBreakRev j (b :: xs) ≠ [] xs:List (Fin 2)ih:∀ j < List.count 0 xs, popBreakRev j xs ≠ []j:ℕh:j < List.count 0 (0 :: xs)⊢ popBreakRev j (0 :: xs) ≠ []xs:List (Fin 2)ih:∀ j < List.count 0 xs, popBreakRev j xs ≠ []j:ℕh:j < List.count 0 (1 :: xs)⊢ popBreakRev j (1 :: xs) ≠ [] xs:List (Fin 2)ih:∀ j < List.count 0 xs, popBreakRev j xs ≠ []j:ℕh:j < List.count 0 (0 :: xs)⊢ popBreakRev j (0 :: xs) ≠ [] cases j with xs:List (Fin 2)ih:∀ j < List.count 0 xs, popBreakRev j xs ≠ []h:0 < List.count 0 (0 :: xs)⊢ popBreakRev 0 (0 :: xs) ≠ [] xs:List (Fin 2)ih:∀ j < List.count 0 xs, popBreakRev j xs ≠ []h:0 < List.count 0 (0 :: xs)⊢ 1 :: xs ≠ [] xs:List (Fin 2)ih:∀ j < List.count 0 xs, popBreakRev j xs ≠ []h:0 < List.count 0 (0 :: xs)hnil:1 :: xs = []⊢ False All goals completed! 🐙 xs:List (Fin 2)ih:∀ j < List.count 0 xs, popBreakRev j xs ≠ []j:ℕh:j + 1 < List.count 0 (0 :: xs)⊢ popBreakRev (j + 1) (0 :: xs) ≠ [] xs:List (Fin 2)ih:∀ j < List.count 0 xs, popBreakRev j xs ≠ []j:ℕh:j + 1 < List.count 0 (0 :: xs)hj:j < List.count 0 xs⊢ popBreakRev (j + 1) (0 :: xs) ≠ [] All goals completed! 🐙 xs:List (Fin 2)ih:∀ j < List.count 0 xs, popBreakRev j xs ≠ []j:ℕh:j < List.count 0 (1 :: xs)⊢ popBreakRev j (1 :: xs) ≠ [] xs:List (Fin 2)ih:∀ j < List.count 0 xs, popBreakRev j xs ≠ []j:ℕh:j < List.count 0 (1 :: xs)hj:j < List.count 0 xs⊢ popBreakRev j (1 :: xs) ≠ [] xs:List (Fin 2)ih:∀ j < List.count 0 xs, popBreakRev j xs ≠ []j:ℕh:j < List.count 0 (1 :: xs)hj:j < List.count 0 xshp:popBreakRev j (1 :: xs) = popBreakRev j xs⊢ popBreakRev j (1 :: xs) ≠ [] xs:List (Fin 2)ih:∀ j < List.count 0 xs, popBreakRev j xs ≠ []j:ℕh:j < List.count 0 (1 :: xs)hj:j < List.count 0 xshp:popBreakRev j (1 :: xs) = popBreakRev j xs⊢ popBreakRev j xs ≠ [] All goals completed! 🐙theorem exactPad_of_return_empty (k : Fin 2) (walked : List (Fin 2)) (fill : Nat) (hk : k.val ≤ walked.count 0) (he : (popBreakRev k.val walked.reverse).reverse = []) : exactPad k walked fill = walked.length + fill + 1 := k:Fin 2walked:List (Fin 2)fill:ℕhk:↑k ≤ List.count 0 walkedhe:(popBreakRev (↑k) walked.reverse).reverse = []⊢ exactPad k walked fill = walked.length + fill + 1 k:Fin 2walked:List (Fin 2)fill:ℕhk:↑k ≤ List.count 0 walkedhe:(popBreakRev (↑k) walked.reverse).reverse = []hp:popBreakRev (↑k) walked.reverse = []⊢ exactPad k walked fill = walked.length + fill + 1 k:Fin 2walked:List (Fin 2)fill:ℕhk:↑k ≤ List.count 0 walkedhe:(popBreakRev (↑k) walked.reverse).reverse = []hp:popBreakRev (↑k) walked.reverse = []hnot:¬↑k < List.count 0 walked⊢ exactPad k walked fill = walked.length + fill + 1 exact exactPad_of_eq k walked fill (k:Fin 2walked:List (Fin 2)fill:ℕhk:↑k ≤ List.count 0 walkedhe:(popBreakRev (↑k) walked.reverse).reverse = []hp:popBreakRev (↑k) walked.reverse = []hnot:¬↑k < List.count 0 walked⊢ ↑k = List.count 0 walked All goals completed! 🐙)theorem macro_inc_exact (r : Fin 5) (bank : List Nat) (hr : r.val < bank.length) (walked : List (Fin 2)) (fill : Nat) (hfill : 3 ≤ fill) (hguard : Riemann104.OnePassGuard.NoThreeZeros (1 :: (popBreakRev 0 walked.reverse).reverse).reverse = true) : ∃ s ≥ 1, nSteps s ⟨incLeaf r, Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank)))⟩ = some (rootCfg (exactPad 0 walked fill) (popBreakRev 0 walked.reverse).reverse (bank.set r.val (bank.getD r.val 0 + 1))) := r:Fin 5bank:List ℕhr:↑r < bank.lengthwalked:List (Fin 2)fill:ℕhfill:3 ≤ fillhguard:Riemann104.OnePassGuard.NoThreeZeros (1 :: (popBreakRev 0 walked.reverse).reverse).reverse = true⊢ ∃ s ≥ 1, nSteps s { state := incLeaf r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some (rootCfg (exactPad 0 walked fill) (popBreakRev 0 walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 + 1))) r:Fin 5bank:List ℕhr:↑r < bank.lengthwalked:List (Fin 2)fill:ℕhfill:3 ≤ fillhguard:Riemann104.OnePassGuard.NoThreeZeros (1 :: (popBreakRev 0 walked.reverse).reverse).reverse = truehf:Riemann95Auxiliary.nSteps fill { state := if true = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some { state := if true = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) }⊢ ∃ s ≥ 1, nSteps s { state := incLeaf r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some (rootCfg (exactPad 0 walked fill) (popBreakRev 0 walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 + 1))) r:Fin 5bank:List ℕhr:↑r < bank.lengthwalked:List (Fin 2)fill:ℕhfill:3 ≤ fillhguard:Riemann104.OnePassGuard.NoThreeZeros (1 :: (popBreakRev 0 walked.reverse).reverse).reverse = truehf:Riemann95Auxiliary.nSteps fill { state := if true = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some { state := if true = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) }su:ℕhsu:su ≥ 1hu:Riemann95Auxiliary.nSteps su { state := Riemann95Auxiliary.Physical.incLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) } = some { state := 9, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape (bank.set (↑r) (bank.getD (↑r) 0 + 1)))) }⊢ ∃ s ≥ 1, nSteps s { state := incLeaf r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some (rootCfg (exactPad 0 walked fill) (popBreakRev 0 walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 + 1))) r:Fin 5bank:List ℕhr:↑r < bank.lengthwalked:List (Fin 2)fill:ℕhfill:3 ≤ fillhguard:Riemann104.OnePassGuard.NoThreeZeros (1 :: (popBreakRev 0 walked.reverse).reverse).reverse = truehf:Riemann95Auxiliary.nSteps fill { state := if true = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some { state := if true = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) }su:ℕhsu:su ≥ 1hu:Riemann95Auxiliary.nSteps su { state := Riemann95Auxiliary.Physical.incLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) } = some { state := 9, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape (bank.set (↑r) (bank.getD (↑r) 0 + 1)))) }sf:ℕhsf:sf ≥ 1hret:Riemann95Auxiliary.nSteps sf { state := if 0 = 0 then 9 else 63, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape (bank.set (↑r) (bank.getD (↑r) 0 + 1)))) } = some (Riemann95Auxiliary.Physical.rawRoot98 (Riemann95Auxiliary.PhysicalRaw.exactPad 0 walked fill) (popBreakRev (↑0) walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 + 1)))⊢ ∃ s ≥ 1, nSteps s { state := incLeaf r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some (rootCfg (exactPad 0 walked fill) (popBreakRev 0 walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 + 1))) r:Fin 5bank:List ℕhr:↑r < bank.lengthwalked:List (Fin 2)fill:ℕhfill:3 ≤ fillhguard:Riemann104.OnePassGuard.NoThreeZeros (1 :: (popBreakRev 0 walked.reverse).reverse).reverse = truehf:Riemann95Auxiliary.nSteps fill { state := if true = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some { state := if true = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) }su:ℕhsu:su ≥ 1hu:Riemann95Auxiliary.nSteps su { state := Riemann95Auxiliary.Physical.incLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) } = some { state := 9, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape (bank.set (↑r) (bank.getD (↑r) 0 + 1)))) }sf:ℕhsf:sf ≥ 1hret:Riemann95Auxiliary.nSteps sf { state := if 0 = 0 then 9 else 63, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape (bank.set (↑r) (bank.getD (↑r) 0 + 1)))) } = some (Riemann95Auxiliary.Physical.rawRoot98 (Riemann95Auxiliary.PhysicalRaw.exactPad 0 walked fill) (popBreakRev (↑0) walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 + 1)))h:Riemann95Auxiliary.nSteps (fill + su + sf) { state := if true = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some (Riemann95Auxiliary.Physical.rawRoot98 (Riemann95Auxiliary.PhysicalRaw.exactPad 0 walked fill) (popBreakRev (↑0) walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 + 1)))⊢ ∃ s ≥ 1, nSteps s { state := incLeaf r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some (rootCfg (exactPad 0 walked fill) (popBreakRev 0 walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 + 1))) r:Fin 5bank:List ℕhr:↑r < bank.lengthwalked:List (Fin 2)fill:ℕhfill:3 ≤ fillhguard:Riemann104.OnePassGuard.NoThreeZeros (1 :: (popBreakRev 0 walked.reverse).reverse).reverse = truehf:Riemann95Auxiliary.nSteps fill { state := if true = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some { state := if true = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) }su:ℕhsu:su ≥ 1hu:Riemann95Auxiliary.nSteps su { state := Riemann95Auxiliary.Physical.incLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) } = some { state := 9, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape (bank.set (↑r) (bank.getD (↑r) 0 + 1)))) }sf:ℕhsf:sf ≥ 1hret:Riemann95Auxiliary.nSteps sf { state := if 0 = 0 then 9 else 63, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape (bank.set (↑r) (bank.getD (↑r) 0 + 1)))) } = some (Riemann95Auxiliary.Physical.rawRoot98 (Riemann95Auxiliary.PhysicalRaw.exactPad 0 walked fill) (popBreakRev (↑0) walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 + 1)))h:Riemann95Auxiliary.nSteps (fill + su + sf) { state := if true = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some (Riemann95Auxiliary.Physical.rawRoot98 (Riemann95Auxiliary.PhysicalRaw.exactPad 0 walked fill) (popBreakRev (↑0) walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 + 1)))ht:nSteps (fill + su + sf) (Projection.cfgMap { state := if true = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) }) = some (Projection.cfgMap (Riemann95Auxiliary.Physical.rawRoot98 (Riemann95Auxiliary.PhysicalRaw.exactPad 0 walked fill) (popBreakRev (↑0) walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 + 1))))⊢ ∃ s ≥ 1, nSteps s { state := incLeaf r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some (rootCfg (exactPad 0 walked fill) (popBreakRev 0 walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 + 1))) r:Fin 5bank:List ℕhr:↑r < bank.lengthwalked:List (Fin 2)fill:ℕhfill:3 ≤ fillhguard:Riemann104.OnePassGuard.NoThreeZeros (1 :: (popBreakRev 0 walked.reverse).reverse).reverse = truehf:Riemann95Auxiliary.nSteps fill { state := if true = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some { state := if true = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) }su:ℕhsu:su ≥ 1hu:Riemann95Auxiliary.nSteps su { state := Riemann95Auxiliary.Physical.incLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) } = some { state := 9, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape (bank.set (↑r) (bank.getD (↑r) 0 + 1)))) }sf:ℕhsf:sf ≥ 1hret:Riemann95Auxiliary.nSteps sf { state := if 0 = 0 then 9 else 63, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape (bank.set (↑r) (bank.getD (↑r) 0 + 1)))) } = some (Riemann95Auxiliary.Physical.rawRoot98 (Riemann95Auxiliary.PhysicalRaw.exactPad 0 walked fill) (popBreakRev (↑0) walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 + 1)))h:Riemann95Auxiliary.nSteps (fill + su + sf) { state := if true = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some (Riemann95Auxiliary.Physical.rawRoot98 (Riemann95Auxiliary.PhysicalRaw.exactPad 0 walked fill) (popBreakRev (↑0) walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 + 1)))ht:nSteps (fill + su + sf) (Projection.cfgMap { state := if true = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) }) = some (rootCfg (Riemann95Auxiliary.PhysicalRaw.exactPad 0 walked fill) (popBreakRev (↑0) walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 + 1)))⊢ ∃ s ≥ 1, nSteps s { state := incLeaf r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some (rootCfg (exactPad 0 walked fill) (popBreakRev 0 walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 + 1))) exact ⟨fill + su + sf, r:Fin 5bank:List ℕhr:↑r < bank.lengthwalked:List (Fin 2)fill:ℕhfill:3 ≤ fillhguard:Riemann104.OnePassGuard.NoThreeZeros (1 :: (popBreakRev 0 walked.reverse).reverse).reverse = truehf:Riemann95Auxiliary.nSteps fill { state := if true = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some { state := if true = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) }su:ℕhsu:su ≥ 1hu:Riemann95Auxiliary.nSteps su { state := Riemann95Auxiliary.Physical.incLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) } = some { state := 9, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape (bank.set (↑r) (bank.getD (↑r) 0 + 1)))) }sf:ℕhsf:sf ≥ 1hret:Riemann95Auxiliary.nSteps sf { state := if 0 = 0 then 9 else 63, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape (bank.set (↑r) (bank.getD (↑r) 0 + 1)))) } = some (Riemann95Auxiliary.Physical.rawRoot98 (Riemann95Auxiliary.PhysicalRaw.exactPad 0 walked fill) (popBreakRev (↑0) walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 + 1)))h:Riemann95Auxiliary.nSteps (fill + su + sf) { state := if true = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some (Riemann95Auxiliary.Physical.rawRoot98 (Riemann95Auxiliary.PhysicalRaw.exactPad 0 walked fill) (popBreakRev (↑0) walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 + 1)))ht:nSteps (fill + su + sf) (Projection.cfgMap { state := if true = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) }) = some (rootCfg (Riemann95Auxiliary.PhysicalRaw.exactPad 0 walked fill) (popBreakRev (↑0) walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 + 1)))⊢ fill + su + sf ≥ 1 All goals completed! 🐙, ht⟩theorem macro_dec_pos_exact (r : Fin 5) (bank : List Nat) (hr : r.val < bank.length) (hpos : 0 < bank.getD r.val 0) (walked : List (Fin 2)) (fill : Nat) (hfill : 3 ≤ fill) (hguard : Riemann104.OnePassGuard.NoThreeZeros (1 :: (popBreakRev 0 walked.reverse).reverse).reverse = true) : ∃ s ≥ 1, nSteps s ⟨decLeaf r, Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank)))⟩ = some (rootCfg (exactPad 0 walked fill) (popBreakRev 0 walked.reverse).reverse (bank.set r.val (bank.getD r.val 0 - 1) ++ [0])) := r:Fin 5bank:List ℕhr:↑r < bank.lengthhpos:0 < bank.getD (↑r) 0walked:List (Fin 2)fill:ℕhfill:3 ≤ fillhguard:Riemann104.OnePassGuard.NoThreeZeros (1 :: (popBreakRev 0 walked.reverse).reverse).reverse = true⊢ ∃ s ≥ 1, nSteps s { state := decLeaf r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some (rootCfg (exactPad 0 walked fill) (popBreakRev 0 walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0])) r:Fin 5bank:List ℕhr:↑r < bank.lengthhpos:0 < bank.getD (↑r) 0walked:List (Fin 2)fill:ℕhfill:3 ≤ fillhguard:Riemann104.OnePassGuard.NoThreeZeros (1 :: (popBreakRev 0 walked.reverse).reverse).reverse = truehf:Riemann95Auxiliary.nSteps fill { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) }⊢ ∃ s ≥ 1, nSteps s { state := decLeaf r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some (rootCfg (exactPad 0 walked fill) (popBreakRev 0 walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0])) r:Fin 5bank:List ℕhr:↑r < bank.lengthhpos:0 < bank.getD (↑r) 0walked:List (Fin 2)fill:ℕhfill:3 ≤ fillhguard:Riemann104.OnePassGuard.NoThreeZeros (1 :: (popBreakRev 0 walked.reverse).reverse).reverse = truehf:Riemann95Auxiliary.nSteps fill { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) }su:ℕhsu:su ≥ 1hu:Riemann95Auxiliary.nSteps su { state := Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) } = some { state := 9, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0]))) }⊢ ∃ s ≥ 1, nSteps s { state := decLeaf r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some (rootCfg (exactPad 0 walked fill) (popBreakRev 0 walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0])) r:Fin 5bank:List ℕhr:↑r < bank.lengthhpos:0 < bank.getD (↑r) 0walked:List (Fin 2)fill:ℕhfill:3 ≤ fillhguard:Riemann104.OnePassGuard.NoThreeZeros (1 :: (popBreakRev 0 walked.reverse).reverse).reverse = truehf:Riemann95Auxiliary.nSteps fill { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) }su:ℕhsu:su ≥ 1hu:Riemann95Auxiliary.nSteps su { state := Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) } = some { state := 9, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0]))) }sf:ℕhsf:sf ≥ 1hret:Riemann95Auxiliary.nSteps sf { state := if 0 = 0 then 9 else 63, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0]))) } = some (Riemann95Auxiliary.Physical.rawRoot98 (Riemann95Auxiliary.PhysicalRaw.exactPad 0 walked fill) (popBreakRev (↑0) walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0]))⊢ ∃ s ≥ 1, nSteps s { state := decLeaf r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some (rootCfg (exactPad 0 walked fill) (popBreakRev 0 walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0])) r:Fin 5bank:List ℕhr:↑r < bank.lengthhpos:0 < bank.getD (↑r) 0walked:List (Fin 2)fill:ℕhfill:3 ≤ fillhguard:Riemann104.OnePassGuard.NoThreeZeros (1 :: (popBreakRev 0 walked.reverse).reverse).reverse = truehf:Riemann95Auxiliary.nSteps fill { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) }su:ℕhsu:su ≥ 1hu:Riemann95Auxiliary.nSteps su { state := Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) } = some { state := 9, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0]))) }sf:ℕhsf:sf ≥ 1hret:Riemann95Auxiliary.nSteps sf { state := if 0 = 0 then 9 else 63, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0]))) } = some (Riemann95Auxiliary.Physical.rawRoot98 (Riemann95Auxiliary.PhysicalRaw.exactPad 0 walked fill) (popBreakRev (↑0) walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0]))h:Riemann95Auxiliary.nSteps (fill + su + sf) { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some (Riemann95Auxiliary.Physical.rawRoot98 (Riemann95Auxiliary.PhysicalRaw.exactPad 0 walked fill) (popBreakRev (↑0) walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0]))⊢ ∃ s ≥ 1, nSteps s { state := decLeaf r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some (rootCfg (exactPad 0 walked fill) (popBreakRev 0 walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0])) r:Fin 5bank:List ℕhr:↑r < bank.lengthhpos:0 < bank.getD (↑r) 0walked:List (Fin 2)fill:ℕhfill:3 ≤ fillhguard:Riemann104.OnePassGuard.NoThreeZeros (1 :: (popBreakRev 0 walked.reverse).reverse).reverse = truehf:Riemann95Auxiliary.nSteps fill { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) }su:ℕhsu:su ≥ 1hu:Riemann95Auxiliary.nSteps su { state := Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) } = some { state := 9, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0]))) }sf:ℕhsf:sf ≥ 1hret:Riemann95Auxiliary.nSteps sf { state := if 0 = 0 then 9 else 63, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0]))) } = some (Riemann95Auxiliary.Physical.rawRoot98 (Riemann95Auxiliary.PhysicalRaw.exactPad 0 walked fill) (popBreakRev (↑0) walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0]))h:Riemann95Auxiliary.nSteps (fill + su + sf) { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some (Riemann95Auxiliary.Physical.rawRoot98 (Riemann95Auxiliary.PhysicalRaw.exactPad 0 walked fill) (popBreakRev (↑0) walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0]))ht:nSteps (fill + su + sf) (Projection.cfgMap { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) }) = some (Projection.cfgMap (Riemann95Auxiliary.Physical.rawRoot98 (Riemann95Auxiliary.PhysicalRaw.exactPad 0 walked fill) (popBreakRev (↑0) walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0])))⊢ ∃ s ≥ 1, nSteps s { state := decLeaf r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some (rootCfg (exactPad 0 walked fill) (popBreakRev 0 walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0])) r:Fin 5bank:List ℕhr:↑r < bank.lengthhpos:0 < bank.getD (↑r) 0walked:List (Fin 2)fill:ℕhfill:3 ≤ fillhguard:Riemann104.OnePassGuard.NoThreeZeros (1 :: (popBreakRev 0 walked.reverse).reverse).reverse = truehf:Riemann95Auxiliary.nSteps fill { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) }su:ℕhsu:su ≥ 1hu:Riemann95Auxiliary.nSteps su { state := Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) } = some { state := 9, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0]))) }sf:ℕhsf:sf ≥ 1hret:Riemann95Auxiliary.nSteps sf { state := if 0 = 0 then 9 else 63, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0]))) } = some (Riemann95Auxiliary.Physical.rawRoot98 (Riemann95Auxiliary.PhysicalRaw.exactPad 0 walked fill) (popBreakRev (↑0) walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0]))h:Riemann95Auxiliary.nSteps (fill + su + sf) { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some (Riemann95Auxiliary.Physical.rawRoot98 (Riemann95Auxiliary.PhysicalRaw.exactPad 0 walked fill) (popBreakRev (↑0) walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0]))ht:nSteps (fill + su + sf) (Projection.cfgMap { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) }) = some (rootCfg (Riemann95Auxiliary.PhysicalRaw.exactPad 0 walked fill) (popBreakRev (↑0) walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0]))⊢ ∃ s ≥ 1, nSteps s { state := decLeaf r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some (rootCfg (exactPad 0 walked fill) (popBreakRev 0 walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0])) exact ⟨fill + su + sf, r:Fin 5bank:List ℕhr:↑r < bank.lengthhpos:0 < bank.getD (↑r) 0walked:List (Fin 2)fill:ℕhfill:3 ≤ fillhguard:Riemann104.OnePassGuard.NoThreeZeros (1 :: (popBreakRev 0 walked.reverse).reverse).reverse = truehf:Riemann95Auxiliary.nSteps fill { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) }su:ℕhsu:su ≥ 1hu:Riemann95Auxiliary.nSteps su { state := Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) } = some { state := 9, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0]))) }sf:ℕhsf:sf ≥ 1hret:Riemann95Auxiliary.nSteps sf { state := if 0 = 0 then 9 else 63, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0]))) } = some (Riemann95Auxiliary.Physical.rawRoot98 (Riemann95Auxiliary.PhysicalRaw.exactPad 0 walked fill) (popBreakRev (↑0) walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0]))h:Riemann95Auxiliary.nSteps (fill + su + sf) { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some (Riemann95Auxiliary.Physical.rawRoot98 (Riemann95Auxiliary.PhysicalRaw.exactPad 0 walked fill) (popBreakRev (↑0) walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0]))ht:nSteps (fill + su + sf) (Projection.cfgMap { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) }) = some (rootCfg (Riemann95Auxiliary.PhysicalRaw.exactPad 0 walked fill) (popBreakRev (↑0) walked.reverse).reverse (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0]))⊢ fill + su + sf ≥ 1 All goals completed! 🐙, ht⟩theorem macro_dec_zero_exact (r : Fin 5) (bank : List Nat) (hr : r.val < bank.length) (hz : bank.getD r.val 0 = 0) (walked : List (Fin 2)) (fill : Nat) (hfill : 3 ≤ fill) (hk : 1 ≤ walked.count 0) (hguard : Riemann104.OnePassGuard.NoThreeZeros (1 :: (popBreakRev 1 walked.reverse).reverse).reverse = true) : ∃ s ≥ 1, nSteps s ⟨decLeaf r, Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank)))⟩ = some (rootCfg (exactPad 1 walked fill) (popBreakRev 1 walked.reverse).reverse bank) := r:Fin 5bank:List ℕhr:↑r < bank.lengthhz:bank.getD (↑r) 0 = 0walked:List (Fin 2)fill:ℕhfill:3 ≤ fillhk:1 ≤ List.count 0 walkedhguard:Riemann104.OnePassGuard.NoThreeZeros (1 :: (popBreakRev 1 walked.reverse).reverse).reverse = true⊢ ∃ s ≥ 1, nSteps s { state := decLeaf r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some (rootCfg (exactPad 1 walked fill) (popBreakRev 1 walked.reverse).reverse bank) r:Fin 5bank:List ℕhr:↑r < bank.lengthhz:bank.getD (↑r) 0 = 0walked:List (Fin 2)fill:ℕhfill:3 ≤ fillhk:1 ≤ List.count 0 walkedhguard:Riemann104.OnePassGuard.NoThreeZeros (1 :: (popBreakRev 1 walked.reverse).reverse).reverse = truehf:Riemann95Auxiliary.nSteps fill { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) }⊢ ∃ s ≥ 1, nSteps s { state := decLeaf r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some (rootCfg (exactPad 1 walked fill) (popBreakRev 1 walked.reverse).reverse bank) r:Fin 5bank:List ℕhr:↑r < bank.lengthhz:bank.getD (↑r) 0 = 0walked:List (Fin 2)fill:ℕhfill:3 ≤ fillhk:1 ≤ List.count 0 walkedhguard:Riemann104.OnePassGuard.NoThreeZeros (1 :: (popBreakRev 1 walked.reverse).reverse).reverse = truehf:Riemann95Auxiliary.nSteps fill { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) }su:ℕhsu:su ≥ 1hu:Riemann95Auxiliary.nSteps su { state := Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) } = some { state := 63, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape bank)) }⊢ ∃ s ≥ 1, nSteps s { state := decLeaf r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some (rootCfg (exactPad 1 walked fill) (popBreakRev 1 walked.reverse).reverse bank) r:Fin 5bank:List ℕhr:↑r < bank.lengthhz:bank.getD (↑r) 0 = 0walked:List (Fin 2)fill:ℕhfill:3 ≤ fillhk:1 ≤ List.count 0 walkedhguard:Riemann104.OnePassGuard.NoThreeZeros (1 :: (popBreakRev 1 walked.reverse).reverse).reverse = truehf:Riemann95Auxiliary.nSteps fill { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) }su:ℕhsu:su ≥ 1hu:Riemann95Auxiliary.nSteps su { state := Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) } = some { state := 63, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape bank)) }sf:ℕhsf:sf ≥ 1hret:Riemann95Auxiliary.nSteps sf { state := if 1 = 0 then 9 else 63, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape bank)) } = some (Riemann95Auxiliary.Physical.rawRoot98 (Riemann95Auxiliary.PhysicalRaw.exactPad 1 walked fill) (popBreakRev (↑1) walked.reverse).reverse bank)⊢ ∃ s ≥ 1, nSteps s { state := decLeaf r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some (rootCfg (exactPad 1 walked fill) (popBreakRev 1 walked.reverse).reverse bank) r:Fin 5bank:List ℕhr:↑r < bank.lengthhz:bank.getD (↑r) 0 = 0walked:List (Fin 2)fill:ℕhfill:3 ≤ fillhk:1 ≤ List.count 0 walkedhguard:Riemann104.OnePassGuard.NoThreeZeros (1 :: (popBreakRev 1 walked.reverse).reverse).reverse = truehf:Riemann95Auxiliary.nSteps fill { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) }su:ℕhsu:su ≥ 1hu:Riemann95Auxiliary.nSteps su { state := Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) } = some { state := 63, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape bank)) }sf:ℕhsf:sf ≥ 1hret:Riemann95Auxiliary.nSteps sf { state := if 1 = 0 then 9 else 63, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape bank)) } = some (Riemann95Auxiliary.Physical.rawRoot98 (Riemann95Auxiliary.PhysicalRaw.exactPad 1 walked fill) (popBreakRev (↑1) walked.reverse).reverse bank)h:Riemann95Auxiliary.nSteps (fill + su + sf) { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some (Riemann95Auxiliary.Physical.rawRoot98 (Riemann95Auxiliary.PhysicalRaw.exactPad 1 walked fill) (popBreakRev (↑1) walked.reverse).reverse bank)⊢ ∃ s ≥ 1, nSteps s { state := decLeaf r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some (rootCfg (exactPad 1 walked fill) (popBreakRev 1 walked.reverse).reverse bank) r:Fin 5bank:List ℕhr:↑r < bank.lengthhz:bank.getD (↑r) 0 = 0walked:List (Fin 2)fill:ℕhfill:3 ≤ fillhk:1 ≤ List.count 0 walkedhguard:Riemann104.OnePassGuard.NoThreeZeros (1 :: (popBreakRev 1 walked.reverse).reverse).reverse = truehf:Riemann95Auxiliary.nSteps fill { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) }su:ℕhsu:su ≥ 1hu:Riemann95Auxiliary.nSteps su { state := Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) } = some { state := 63, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape bank)) }sf:ℕhsf:sf ≥ 1hret:Riemann95Auxiliary.nSteps sf { state := if 1 = 0 then 9 else 63, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape bank)) } = some (Riemann95Auxiliary.Physical.rawRoot98 (Riemann95Auxiliary.PhysicalRaw.exactPad 1 walked fill) (popBreakRev (↑1) walked.reverse).reverse bank)h:Riemann95Auxiliary.nSteps (fill + su + sf) { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some (Riemann95Auxiliary.Physical.rawRoot98 (Riemann95Auxiliary.PhysicalRaw.exactPad 1 walked fill) (popBreakRev (↑1) walked.reverse).reverse bank)ht:nSteps (fill + su + sf) (Projection.cfgMap { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) }) = some (Projection.cfgMap (Riemann95Auxiliary.Physical.rawRoot98 (Riemann95Auxiliary.PhysicalRaw.exactPad 1 walked fill) (popBreakRev (↑1) walked.reverse).reverse bank))⊢ ∃ s ≥ 1, nSteps s { state := decLeaf r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some (rootCfg (exactPad 1 walked fill) (popBreakRev 1 walked.reverse).reverse bank) r:Fin 5bank:List ℕhr:↑r < bank.lengthhz:bank.getD (↑r) 0 = 0walked:List (Fin 2)fill:ℕhfill:3 ≤ fillhk:1 ≤ List.count 0 walkedhguard:Riemann104.OnePassGuard.NoThreeZeros (1 :: (popBreakRev 1 walked.reverse).reverse).reverse = truehf:Riemann95Auxiliary.nSteps fill { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) }su:ℕhsu:su ≥ 1hu:Riemann95Auxiliary.nSteps su { state := Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) } = some { state := 63, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape bank)) }sf:ℕhsf:sf ≥ 1hret:Riemann95Auxiliary.nSteps sf { state := if 1 = 0 then 9 else 63, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape bank)) } = some (Riemann95Auxiliary.Physical.rawRoot98 (Riemann95Auxiliary.PhysicalRaw.exactPad 1 walked fill) (popBreakRev (↑1) walked.reverse).reverse bank)h:Riemann95Auxiliary.nSteps (fill + su + sf) { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some (Riemann95Auxiliary.Physical.rawRoot98 (Riemann95Auxiliary.PhysicalRaw.exactPad 1 walked fill) (popBreakRev (↑1) walked.reverse).reverse bank)ht:nSteps (fill + su + sf) (Projection.cfgMap { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) }) = some (rootCfg (Riemann95Auxiliary.PhysicalRaw.exactPad 1 walked fill) (popBreakRev (↑1) walked.reverse).reverse bank)⊢ ∃ s ≥ 1, nSteps s { state := decLeaf r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some (rootCfg (exactPad 1 walked fill) (popBreakRev 1 walked.reverse).reverse bank) exact ⟨fill + su + sf, r:Fin 5bank:List ℕhr:↑r < bank.lengthhz:bank.getD (↑r) 0 = 0walked:List (Fin 2)fill:ℕhfill:3 ≤ fillhk:1 ≤ List.count 0 walkedhguard:Riemann104.OnePassGuard.NoThreeZeros (1 :: (popBreakRev 1 walked.reverse).reverse).reverse = truehf:Riemann95Auxiliary.nSteps fill { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) }su:ℕhsu:su ≥ 1hu:Riemann95Auxiliary.nSteps su { state := Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [1, 0] (regsTape bank)) } = some { state := 63, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape bank)) }sf:ℕhsf:sf ≥ 1hret:Riemann95Auxiliary.nSteps sf { state := if 1 = 0 then 9 else 63, tape := Tape.mk' (ListBlank.append (List.replicate fill 1) (stackLeftOf true walked)) (ListBlank.append [0, 0] (regsTape bank)) } = some (Riemann95Auxiliary.Physical.rawRoot98 (Riemann95Auxiliary.PhysicalRaw.exactPad 1 walked fill) (popBreakRev (↑1) walked.reverse).reverse bank)h:Riemann95Auxiliary.nSteps (fill + su + sf) { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) } = some (Riemann95Auxiliary.Physical.rawRoot98 (Riemann95Auxiliary.PhysicalRaw.exactPad 1 walked fill) (popBreakRev (↑1) walked.reverse).reverse bank)ht:nSteps (fill + su + sf) (Projection.cfgMap { state := if false = true then Riemann95Auxiliary.Physical.incLeaf98 r else Riemann95Auxiliary.Physical.decLeaf98 r, tape := Tape.mk' (stackLeftOf true walked) (ListBlank.append (List.replicate fill 0) (ListBlank.append [1, 0] (regsTape bank))) }) = some (rootCfg (Riemann95Auxiliary.PhysicalRaw.exactPad 1 walked fill) (popBreakRev (↑1) walked.reverse).reverse bank)⊢ fill + su + sf ≥ 1 All goals completed! 🐙, ht⟩end ConjectureMachines.Riemann95.Physical