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.Riemann95Definition public import Cryptids.Zf380

Blank-tape initialization

@[expose] public section

Finite execution certificate

sectionnamespace ConjectureMachines.Riemann95.BootCertificateopen Turingopen ConjectureMachinesdef finalL : List (Fin 2) := [1, 0, 0, 0]def finalR : List (Fin 2) := [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0]theorem boot_fast : Zf380.runFast machine 3634 0 [] 0 [] = some (15, finalL, 0, finalR) := ⊢ Zf380.runFast machine 3634 0 [] 0 [] = some (15, finalL, 0, finalR) All goals completed! 🐙end ConjectureMachines.Riemann95.BootCertificateend

Full tape and halting equivalence

sectionnamespace ConjectureMachines.Riemann95.BootCertificateopen Turingopen ConjectureMachinesopen ConjectureMachines.Semantics.Riemann.Layer1 (default_cons_zero)theorem finalCfg_eq_initialRoot : Zf380.cfgOfFast 15 finalL 0 finalR = initialRoot := ⊢ Zf380.cfgOfFast 15 finalL 0 finalR = initialRoot hL:ListBlank.append finalL default = ListBlank.cons 1 default⊢ Zf380.cfgOfFast 15 finalL 0 finalR = initialRoot hL:ListBlank.append finalL default = ListBlank.cons 1 defaulthR:ListBlank.cons 0 (ListBlank.append finalR default) = ListBlank.mk (Riemann120.mapStack [] ++ List.replicate (22 - (Riemann120.mapStack []).length) 0 ++ [1, 0] ++ Semantics.Riemann.Layer1.encodeRegs (initialRegs ++ initialExtra))⊢ Zf380.cfgOfFast 15 finalL 0 finalR = initialRoot hL:ListBlank.append finalL default = ListBlank.cons 1 defaulthR:ListBlank.cons 0 (ListBlank.append finalR default) = ListBlank.mk (Riemann120.mapStack [] ++ List.replicate (22 - (Riemann120.mapStack []).length) 0 ++ [1, 0] ++ Semantics.Riemann.Layer1.encodeRegs (initialRegs ++ initialExtra))⊢ { state := 15, tape := Tape.mk' (ListBlank.append finalL default) (ListBlank.cons 0 (ListBlank.append finalR default)) } = { state := 15, tape := Tape.mk' (ListBlank.cons 1 default) (ListBlank.mk (Riemann120.mapStack [] ++ List.replicate (22 - (Riemann120.mapStack []).length) 0 ++ [1, 0] ++ Semantics.Riemann.Layer1.encodeRegs (initialRegs ++ initialExtra))) } All goals completed! 🐙theorem nSteps_eq (n : Nat) (c : Cfg 95 2) : Riemann95.nSteps n c = Zf380.nSteps machine n c := n:ℕc:Cfg 95 2⊢ nSteps n c = Zf380.nSteps machine n c induction n generalizing c with c:Cfg 95 2⊢ nSteps 0 c = Zf380.nSteps machine 0 c All goals completed! 🐙 n:ℕih:∀ (c : Cfg 95 2), nSteps n c = Zf380.nSteps machine n cc:Cfg 95 2⊢ nSteps (n + 1) c = Zf380.nSteps machine (n + 1) c n:ℕih:∀ (c : Cfg 95 2), nSteps n c = Zf380.nSteps machine n cc:Cfg 95 2⊢ (step machine c).bind (nSteps n) = (step machine c).bind (Zf380.nSteps machine n) n:ℕih:∀ (c : Cfg 95 2), nSteps n c = Zf380.nSteps machine n cc:Cfg 95 2⊢ nSteps n = Zf380.nSteps machine n n:ℕih:∀ (c : Cfg 95 2), nSteps n c = Zf380.nSteps machine n cc:Cfg 95 2d:Cfg 95 2⊢ nSteps n d = Zf380.nSteps machine n d All goals completed! 🐙

Exact 3,634-step blank bootstrap, including the full tape.

theorem boot_reaches_initialRoot : Riemann95.nSteps 3634 (init : Cfg 95 2) = some initialRoot := ⊢ nSteps 3634 init = some initialRoot ⊢ some (Zf380.cfgOfFast (15, finalL, 0, finalR).1 (15, finalL, 0, finalR).2.1 (15, finalL, 0, finalR).2.2.1 (15, finalL, 0, finalR).2.2.2) = some initialRoot All goals completed! 🐙

The finite prefix may be removed from the remaining halting proof.

theorem halts_iff_initialRoot : Halts candidate ↔ (StateTransition.eval (step machine) initialRoot).Dom := ⊢ candidate.Halts ↔ (StateTransition.eval (step machine) initialRoot).Dom ⊢ (StateTransition.eval (step machine) init).Dom ↔ (StateTransition.eval (step machine) initialRoot).Dom h:Zf380.nSteps machine 3634 init = some initialRoot⊢ (StateTransition.eval (step machine) init).Dom ↔ (StateTransition.eval (step machine) initialRoot).Dom All goals completed! 🐙end ConjectureMachines.Riemann95.BootCertificateend