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

Derive the auxiliary presentation from the literal 95-state machine. Labels 61, 72, and 95 duplicate label 0; all other labels embed the actual states.

@[expose] public sectionnamespace ConjectureMachines.Riemann95.Projection

Three duplicate auxiliary labels map to entry 0; all 95 actual labels are counted.

def stateMap (q : Fin 98) : Fin 95 := if h : q.val = 61 ∨ q.val = 72 ∨ q.val = 95 then 0 else if h1 : q.val < 61 then ⟨q.val, q:Fin 98h:¬(↑q = 61 ∨ ↑q = 72 ∨ ↑q = 95)h1:↑q < 61⊢ ↑q < 95 All goals completed! 🐙⟩ else if h2 : q.val < 72 then ⟨q.val - 1, q:Fin 98h:¬(↑q = 61 ∨ ↑q = 72 ∨ ↑q = 95)h1:¬↑q < 61h2:↑q < 72⊢ ↑q - 1 < 95 All goals completed! 🐙⟩ else if h3 : q.val < 95 then ⟨q.val - 2, q:Fin 98h:¬(↑q = 61 ∨ ↑q = 72 ∨ ↑q = 95)h1:¬↑q < 61h2:¬↑q < 72h3:↑q < 95⊢ ↑q - 2 < 95 All goals completed! 🐙⟩ else ⟨q.val - 3, q:Fin 98h:¬(↑q = 61 ∨ ↑q = 72 ∨ ↑q = 95)h1:¬↑q < 61h2:¬↑q < 72h3:¬↑q < 95⊢ ↑q - 3 < 95 All goals completed! 🐙⟩

Choose the canonical auxiliary label for each actual state.

def liftState (q : Fin 95) : Fin 98 := if h : q.val < 61 then ⟨q.val, q:Fin 95h:↑q < 61⊢ ↑q < 98 All goals completed! 🐙⟩ else if h1 : q.val < 71 then ⟨q.val + 1, q:Fin 95h:¬↑q < 61h1:↑q < 71⊢ ↑q + 1 < 98 All goals completed! 🐙⟩ else if h2 : q.val < 93 then ⟨q.val + 2, q:Fin 95h:¬↑q < 61h1:¬↑q < 71h2:↑q < 93⊢ ↑q + 2 < 98 All goals completed! 🐙⟩ else ⟨q.val + 3, q:Fin 95h:¬↑q < 61h1:¬↑q < 71h2:¬↑q < 93⊢ ↑q + 3 < 98 All goals completed! 🐙⟩theorem stateMap_liftState : ∀ q : Fin 95, stateMap (liftState q) = q := ⊢ ∀ (q : Fin 95), stateMap (liftState q) = q All goals completed! 🐙end ConjectureMachines.Riemann95.Projectionnamespace ConjectureMachines.Riemann95Auxiliaryopen Turing ConjectureMachines

Expand labels without maintaining a second transition table.

def machine : Machine 98 2 := ⟨fun q a => (Riemann95.machine.transition (Riemann95.Projection.stateMap q) a).map (fun e => (e.1, e.2.1, Riemann95.Projection.liftState e.2.2))⟩def nSteps : Nat → Cfg 98 2 → Option (Cfg 98 2) | 0, c => some c | n + 1, c => (step machine c).bind (nSteps n)end ConjectureMachines.Riemann95Auxiliary