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.Riemann104
@[expose] public sectionnamespace ConjectureMachines.Riemann95.ReferenceLogicalopen Turing StateTransition ConjectureMachines.Riemann120open ConjectureMachines.Riemann120.Layer2abbrev Word := List (Fin 2)inductive ControlInstr where | halt | jump (next : Fin 121) | inc (reg : Nat) (next : Fin 121) | decnz (reg : Nat) (positive zero : Fin 121) deriving Inhabited, DecidableEq, Reprinductive Role where | plain | firstSwap (reg : Nat) | secondSwap (reg : Nat) | halfDec deriving Inhabited, DecidableEq, Reprstructure Row where word : Word oldWord : Word instr : ControlInstr role : Role deriving Inhabited, DecidableEq, Reprdef rows : Array Row := #[ ⟨[], [], .decnz 0 1 3, .plain⟩, ⟨[0,1], [0,1], .inc 3 2, .plain⟩, ⟨[0,1,1], [0,1,1], .jump 0, .plain⟩, ⟨[1], [1], .inc 1 4, .plain⟩, ⟨[1,0,0,1], [1,0,0,1], .decnz 1 5 7, .plain⟩, ⟨[1,0,0,1,0,0,1], [1,0,0,1,0,0,1], .inc 4 6, .plain⟩, ⟨[1,0,0,1,0,0,1,1], [1,0,0,1,0,0,1,1], .jump 4, .plain⟩, ⟨[1,0,0,1,0,1], [1,0,0,1,0,1], .decnz 2 8 10, .plain⟩, ⟨[1,0,0,1,0,1,0,1], [1,0,0,1,0,1,0,1], .inc 0 9, .plain⟩, ⟨[1,0,0,1,0,1,0,1,1], [1,0,0,1,0,1,0,1,1], .jump 7, .plain⟩, ⟨[1,0,0,1,0,1,1], [1,0,0,1,0,1,1], .decnz 0 11 19, .plain⟩, ⟨[1,0,0,1,0,1,1,1], [1,0,0,1,0,1,1,1], .decnz 4 12 14, .plain⟩, ⟨[1,0,0,1,0,1,1,1,0,0,1], [1,0,0,1,0,1,1,1,0,0,1], .inc 1 13, .plain⟩, ⟨[1,0,0,1,0,1,1,1,0,0,1,1], [1,0,0,1,0,1,1,1,0,0,1,1], .jump 18, .plain⟩, ⟨[1,0,0,1,0,1,1,1,0,1], [1,0,0,1,0,1,1,1,0,1], .decnz 1 15 17, .plain⟩, ⟨[1,0,0,1,0,1,1,1,0,1,0,1], [1,0,0,1,0,1,1,1,0,1,0,1], .inc 4 16, .plain⟩, ⟨[1,0,0,1,0,1,1,1,0,1,0,1,1], [1,0,0,1,0,1,1,1,0,1,0,1,1], .jump 14, .plain⟩, ⟨[1,0,0,1,0,1,1,1,0,1,1], [1,0,0,1,0,1,1,1,0,1,1], .inc 2 18, .plain⟩, ⟨[1,0,0,1,0,1,1,1,1], [1,0,0,1,0,1,1,1,1], .jump 10, .plain⟩, ⟨[1,0,0,1,1], [1,0,0,1,1], .decnz 4 20 34, .plain⟩, ⟨[1,0,0,1,1,0,1], [1,0,0,1,1,0,1], .inc 4 21, .plain⟩, ⟨[1,0,0,1,1,0,1,1], [1,0,0,1,1,0,1,1], .decnz 2 22 24, .plain⟩, ⟨[1,0,0,1,1,0,1,1,0,1], [1,0,0,1,1,0,1,1,0,1], .inc 0 23, .plain⟩, ⟨[1,0,0,1,1,0,1,1,0,1,1], [1,0,0,1,1,0,1,1,0,1,1], .jump 21, .plain⟩, ⟨[1,0,0,1,1,0,1,1,1], [1,0,0,1,1,0,1,1,1], .decnz 1 25 28, .plain⟩, ⟨[1,0,0,1,1,0,1,1,1,0,0,1], [1,0,0,1,1,0,1,1,1,0,0,1], .inc 2 26, .firstSwap 2⟩, ⟨[1,0,0,1,1,0,1,1,1,0,0,1,1], [1,0,0,1,1,0,1,1,1,0,0,1,1], .inc 4 27, .secondSwap 2⟩, ⟨[1,0,0,1,1,0,1,1,1,0,0,1,1,1], [1,0,0,1,1,0,1,1,1,0,0,1,1,1], .jump 24, .plain⟩, ⟨[1,0,0,1,1,0,1,1,1,0,1], [1,0,0,1,1,0,1,1,1,0,1], .decnz 4 29 31, .plain⟩, ⟨[1,0,0,1,1,0,1,1,1,0,1,1], [1,0,0,1,1,0,1,1,1,0,1,1], .inc 1 30, .plain⟩, ⟨[1,0,0,1,1,0,1,1,1,0,1,1,1], [1,0,0,1,1,0,1,1,1,0,1,1,1], .jump 28, .plain⟩, ⟨[1,0,0,1,1,0,1,1,1,1], [1,0,0,1,1,0,1,1,1,1], .decnz 0 32 34, .plain⟩, ⟨[1,0,0,1,1,0,1,1,1,1,1], [1,0,0,1,1,0,1,1,1,1,1], .inc 2 33, .plain⟩, ⟨[1,0,0,1,1,0,1,1,1,1,1,1], [1,0,0,1,1,0,1,1,1,1,1,1], .jump 24, .plain⟩, ⟨[1,0,0,1,1,1], [1,0,0,1,1,1], .decnz 2 35 37, .plain⟩, ⟨[1,0,0,1,1,1,0,0,1], [1,0,0,1,1,1,0,0,1], .inc 0 36, .plain⟩, ⟨[1,0,0,1,1,1,0,0,1,1], [1,0,0,1,1,1,0,0,1,1], .jump 34, .plain⟩, ⟨[1,0,0,1,1,1,0,1], [1,0,0,1,1,1,0,1], .decnz 1 38 41, .plain⟩, ⟨[1,0,0,1,1,1,0,1,0,0,1], [1,0,0,1,1,1,0,1,0,0,1], .inc 2 39, .firstSwap 2⟩, ⟨[1,0,0,1,1,1,0,1,0,0,1,1], [1,0,0,1,1,1,0,1,0,0,1,1], .inc 4 40, .secondSwap 2⟩, ⟨[1,0,0,1,1,1,0,1,0,0,1,1,1], [1,0,0,1,1,1,0,1,0,0,1,1,1], .jump 37, .plain⟩, ⟨[1,0,0,1,1,1,0,1,0,1], [1,0,0,1,1,1,0,1,0,1], .decnz 4 42 44, .plain⟩, ⟨[1,0,0,1,1,1,0,1,0,1,1], [1,0,0,1,1,1,0,1,0,1,1], .inc 1 43, .plain⟩, ⟨[1,0,0,1,1,1,0,1,0,1,1,1], [1,0,0,1,1,1,0,1,0,1,1,1], .jump 41, .plain⟩, ⟨[1,0,0,1,1,1,0,1,1], [1,0,0,1,1,1,0,1,1], .decnz 0 45 47, .plain⟩, ⟨[1,0,0,1,1,1,0,1,1,1], [1,0,0,1,1,1,0,1,1,1], .inc 2 46, .plain⟩, ⟨[1,0,0,1,1,1,0,1,1,1,1], [1,0,0,1,1,1,0,1,1,1,1], .jump 37, .plain⟩, ⟨[1,0,0,1,1,1,1], [1,0,0,1,1,1,1], .decnz 2 48 50, .plain⟩, ⟨[1,0,0,1,1,1,1,0,1], [1,0,0,1,1,1,1,0,1], .inc 0 49, .plain⟩, ⟨[1,0,0,1,1,1,1,0,1,1], [1,0,0,1,1,1,1,0,1,1], .jump 47, .plain⟩, ⟨[1,0,0,1,1,1,1,1], [1,0,0,1,1,1,1,1], .decnz 1 51 54, .plain⟩, ⟨[1,0,0,1,1,1,1,1,0,0,1], [1,0,0,1,1,1,1,1,0,0,1], .inc 2 52, .firstSwap 2⟩, ⟨[1,0,0,1,1,1,1,1,0,0,1,1], [1,0,0,1,1,1,1,1,0,0,1,1], .inc 4 53, .secondSwap 2⟩, ⟨[1,0,0,1,1,1,1,1,0,0,1,1,1], [1,0,0,1,1,1,1,1,0,0,1,1,1], .jump 50, .plain⟩, ⟨[1,0,0,1,1,1,1,1,0,1], [1,0,0,1,1,1,1,1,0,1], .decnz 4 55 57, .plain⟩, ⟨[1,0,0,1,1,1,1,1,0,1,1], [1,0,0,1,1,1,1,1,0,1,1], .inc 1 56, .plain⟩, ⟨[1,0,0,1,1,1,1,1,0,1,1,1], [1,0,0,1,1,1,1,1,0,1,1,1], .jump 54, .plain⟩, ⟨[1,0,0,1,1,1,1,1,1], [1,0,0,1,1,1,1,1,1], .decnz 0 58 60, .plain⟩, ⟨[1,0,0,1,1,1,1,1,1,1], [1,0,0,1,1,1,1,1,1,1], .inc 2 59, .plain⟩, ⟨[1,0,0,1,1,1,1,1,1,1,1], [1,0,0,1,1,1,1,1,1,1,1], .jump 50, .plain⟩, ⟨[1,0,1], [1,0,1], .decnz 3 61 62, .plain⟩, ⟨[1,0,1,1], [1,0,1,1], .jump 3, .plain⟩, ⟨[1,1], [1,1], .decnz 1 63 66, .plain⟩, ⟨[1,1,0,1], [1,1,0,1], .inc 3 64, .firstSwap 3⟩, ⟨[1,1,0,1,1], [1,1,0,1,0,1], .inc 4 65, .secondSwap 3⟩, ⟨[1,1,0,1,1,1], [1,1,0,1,1], .jump 62, .plain⟩, ⟨[1,1,1], [1,1,1], .decnz 2 67 85, .plain⟩, ⟨[1,1,1,0,0,1], [1,1,1,0,0,1], .decnz 1 68 70, .plain⟩, ⟨[1,1,1,0,0,1,0,0,1], [1,1,1,0,0,1,0,0,1], .inc 4 69, .plain⟩, ⟨[1,1,1,0,0,1,0,0,1,1], [1,1,1,0,0,1,0,0,1,1], .jump 67, .plain⟩, ⟨[1,1,1,0,0,1,0,1], [1,1,1,0,0,1,0,1], .decnz 2 71 73, .plain⟩, ⟨[1,1,1,0,0,1,0,1,0,1], [1,1,1,0,0,1,0,1,0,1], .inc 0 72, .plain⟩, ⟨[1,1,1,0,0,1,0,1,0,1,1], [1,1,1,0,0,1,0,1,0,1,1], .jump 70, .plain⟩, ⟨[1,1,1,0,0,1,0,1,1], [1,1,1,0,0,1,0,1,1], .decnz 0 74 82, .plain⟩, ⟨[1,1,1,0,0,1,0,1,1,1], [1,1,1,0,0,1,0,1,1,1], .decnz 4 75 77, .plain⟩, ⟨[1,1,1,0,0,1,0,1,1,1,0,0,1], [1,1,1,0,0,1,0,1,1,1,0,0,1], .inc 1 76, .plain⟩, ⟨[1,1,1,0,0,1,0,1,1,1,0,0,1,1], [1,1,1,0,0,1,0,1,1,1,0,0,1,1], .jump 81, .plain⟩, ⟨[1,1,1,0,0,1,0,1,1,1,0,1], [1,1,1,0,0,1,0,1,1,1,0,1], .decnz 1 78 80, .plain⟩, ⟨[1,1,1,0,0,1,0,1,1,1,0,1,0,1], [1,1,1,0,0,1,0,1,1,1,0,1,0,1], .inc 4 79, .plain⟩, ⟨[1,1,1,0,0,1,0,1,1,1,0,1,0,1,1], [1,1,1,0,0,1,0,1,1,1,0,1,0,1,1], .jump 77, .plain⟩, ⟨[1,1,1,0,0,1,0,1,1,1,0,1,1], [1,1,1,0,0,1,0,1,1,1,0,1,1], .inc 2 81, .plain⟩, ⟨[1,1,1,0,0,1,0,1,1,1,1], [1,1,1,0,0,1,0,1,1,1,1], .jump 73, .plain⟩, ⟨[1,1,1,0,0,1,1], [1,1,1,0,0,1,1], .decnz 3 83 84, .plain⟩, ⟨[1,1,1,0,0,1,1,0,1], [1,1,1,0,0,1,1,0,1], .jump 84, .plain⟩, ⟨[1,1,1,0,0,1,1,1], [1,1,1,0,0,1,1,1], .jump 66, .plain⟩, ⟨[1,1,1,0,1], [1,1,1,0,1], .decnz 4 86 88, .plain⟩, ⟨[1,1,1,0,1,1], [1,1,1,0,1,1], .inc 1 87, .plain⟩, ⟨[1,1,1,0,1,1,1], [1,1,1,0,1,1,1], .jump 85, .plain⟩, ⟨[1,1,1,1], [1,1,1,1], .decnz 1 89 115, .plain⟩, ⟨[1,1,1,1,0,0,1], [1,1,1,1,0,1], .inc 0 90, .plain⟩, ⟨[1,1,1,1,0,0,1,0,1], [1,1,1,1,0,1,0,1], .decnz 1 91 95, .plain⟩, ⟨[1,1,1,1,0,0,1,0,1,0,0,1], [1,1,1,1,0,1,0,1,0,0,1], .inc 0 92, .plain⟩, ⟨[1,1,1,1,0,0,1,0,1,0,0,1,0,1], [1,1,1,1,0,1,0,1,0,0,1,0,1], .decnz 1 93 94, .plain⟩, ⟨[1,1,1,1,0,0,1,0,1,0,0,1,0,1,1], [1,1,1,1,0,1,0,1,0,0,1,0,1,1], .inc 4 94, .plain⟩, ⟨[1,1,1,1,0,0,1,0,1,0,0,1,1], [1,1,1,1,0,1,0,1,0,0,1,1], .jump 90, .plain⟩, ⟨[1,1,1,1,0,0,1,0,1,0,1], [1,1,1,1,0,1,0,1,0,1], .decnz 4 96 98, .plain⟩, ⟨[1,1,1,1,0,0,1,0,1,0,1,1], [1,1,1,1,0,1,0,1,0,1,1], .inc 1 97, .plain⟩, ⟨[1,1,1,1,0,0,1,0,1,0,1,1,1], [1,1,1,1,0,1,0,1,0,1,1,1], .jump 95, .plain⟩, ⟨[1,1,1,1,0,0,1,0,1,1], [1,1,1,1,0,1,0,1,1], .decnz 1 99 103, .plain⟩, ⟨[1,1,1,1,0,0,1,0,1,1,0,0,1], [1,1,1,1,0,1,0,1,1,0,0,1], .inc 0 100, .plain⟩, ⟨[1,1,1,1,0,0,1,0,1,1,0,0,1,0,1], [1,1,1,1,0,1,0,1,1,0,0,1,0,1], .decnz 1 101 102, .plain⟩, ⟨[1,1,1,1,0,0,1,0,1,1,0,0,1,0,1,1], [1,1,1,1,0,1,0,1,1,0,0,1,0,1,1], .inc 4 102, .plain⟩, ⟨[1,1,1,1,0,0,1,0,1,1,0,0,1,1], [1,1,1,1,0,1,0,1,1,0,0,1,1], .jump 98, .plain⟩, ⟨[1,1,1,1,0,0,1,0,1,1,0,1], [1,1,1,1,0,1,0,1,1,0,1], .decnz 4 104 106, .plain⟩, ⟨[1,1,1,1,0,0,1,0,1,1,0,1,1], [1,1,1,1,0,1,0,1,1,0,1,1], .inc 1 105, .plain⟩, ⟨[1,1,1,1,0,0,1,0,1,1,0,1,1,1], [1,1,1,1,0,1,0,1,1,0,1,1,1], .jump 103, .plain⟩, ⟨[1,1,1,1,0,0,1,0,1,1,1], [1,1,1,1,0,1,0,1,1,1], .decnz 3 107 110, .plain⟩, ⟨[1,1,1,1,0,0,1,0,1,1,1,0,1], [1,1,1,1,0,1,0,1,1,1,0,1], .decnz 3 108 110, .halfDec⟩, ⟨[1,1,1,1,0,0,1,0,1,1,1,0,1,1], [1,1,1,1,0,1,0,1,1,1,0,1,0,1], .inc 4 109, .plain⟩, ⟨[1,1,1,1,0,0,1,0,1,1,1,0,1,1,1], [1,1,1,1,0,1,0,1,1,1,0,1,1], .jump 106, .plain⟩, ⟨[1,1,1,1,0,0,1,0,1,1,1,1], [1,1,1,1,0,1,0,1,1,1,1], .decnz 4 111 113, .plain⟩, ⟨[1,1,1,1,0,0,1,0,1,1,1,1,1], [1,1,1,1,0,1,0,1,1,1,1,1], .inc 3 112, .plain⟩, ⟨[1,1,1,1,0,0,1,0,1,1,1,1,1,1], [1,1,1,1,0,1,0,1,1,1,1,1,1], .jump 110, .plain⟩, ⟨[1,1,1,1,0,0,1,1], [1,1,1,1,0,1,1], .inc 2 114, .plain⟩, ⟨[1,1,1,1,0,0,1,1,1], [1,1,1,1,0,1,1,1], .jump 88, .plain⟩, ⟨[1,1,1,1,0,1], [1,1,1,1,1], .decnz 2 116 119, .plain⟩, ⟨[1,1,1,1,0,1,1], [1,1,1,1,1,0,1], .decnz 3 117 118, .plain⟩, ⟨[1,1,1,1,0,1,1,0,1], [1,1,1,1,1,0,1,0,1], .jump 118, .plain⟩, ⟨[1,1,1,1,0,1,1,1], [1,1,1,1,1,0,1,1], .jump 88, .plain⟩, ⟨[1,1,1,1,1], [1,1,1,1,1,1], .decnz 3 120 0, .plain⟩, ⟨[1,1,1,1,1,1], [1,1,1,1,1,1,1], .halt, .plain⟩ ]def row (s : Fin 121) : Row := rows.getD s.val defaultdef word (s : Fin 121) : Word := (row s).worddef oldWord (s : Fin 121) : Word := (row s).oldWorddef rowInstr (s : Fin 121) : ControlInstr := (row s).instrdef role (s : Fin 121) : Role := (row s).roledef toInstr (target : Fin 121 → Word) : ControlInstr → RhInstr | .halt => .halt | .jump n => .jump (target n) | .inc r n => .inc r (target n) | .decnz r p z => .decnz r (target p) (target z)def decoded (s : Fin 121) : RhInstr := toInstr word (rowInstr s)def instruction (bits : Word) : RhInstr := match (List.finRange 121).find? (fun s => word s == bits) with | some s => decoded s | none => .haltdef step (c : RhRegCfg) : Option RhRegCfg := match instruction c.stack with | .halt => none | .jump target => some ⟨target,c.regs⟩ | .inc r target => some ⟨target,c.regs.set r (c.regs.getD r 0 + 1)⟩ | .decnz r positive zero => if c.regs.getD r 0 == 0 then some ⟨zero,c.regs⟩ else some ⟨positive,c.regs.set r (c.regs.getD r 0 - 1)⟩def ordinary (s : Fin 121) : Prop := match role s with | .secondSwap _ => False | _ => Trueinstance (s : Fin 121) : Decidable (ordinary s) := s:Fin 121⊢ Decidable (ordinary s) s:Fin 121⊢ Decidable (match role s with | Role.secondSwap reg => False | x => True) s:Fin 121x✝:Rolereg✝:ℕheq✝:role s = Role.secondSwap reg✝⊢ Decidable Falses:Fin 121x✝¹:Rolex✝:∀ (reg : ℕ), role s = Role.secondSwap reg → False⊢ Decidable True s:Fin 121x✝:Rolereg✝:ℕheq✝:role s = Role.secondSwap reg✝⊢ Decidable Falses:Fin 121x✝¹:Rolex✝:∀ (reg : ℕ), role s = Role.secondSwap reg → False⊢ Decidable True All goals completed! 🐙def ordinaryTargets : ControlInstr → Prop | .halt => True | .jump n | .inc _ n => ordinary n | .decnz _ p z => ordinary p ∧ ordinary zinstance (i : ControlInstr) : Decidable (ordinaryTargets i) := i:ControlInstr⊢ Decidable (ordinaryTargets i) ⊢ Decidable (ordinaryTargets ControlInstr.halt)next✝:Fin 121⊢ Decidable (ordinaryTargets (ControlInstr.jump next✝))reg✝:ℕnext✝:Fin 121⊢ Decidable (ordinaryTargets (ControlInstr.inc reg✝ next✝))reg✝:ℕpositive✝:Fin 121zero✝:Fin 121⊢ Decidable (ordinaryTargets (ControlInstr.decnz reg✝ positive✝ zero✝)) ⊢ Decidable (ordinaryTargets ControlInstr.halt)next✝:Fin 121⊢ Decidable (ordinaryTargets (ControlInstr.jump next✝))reg✝:ℕnext✝:Fin 121⊢ Decidable (ordinaryTargets (ControlInstr.inc reg✝ next✝))reg✝:ℕpositive✝:Fin 121zero✝:Fin 121⊢ Decidable (ordinaryTargets (ControlInstr.decnz reg✝ positive✝ zero✝)) reg✝:ℕpositive✝:Fin 121zero✝:Fin 121⊢ Decidable (ordinary positive✝ ∧ ordinary zero✝) ⊢ Decidable Truenext✝:Fin 121⊢ Decidable (ordinary next✝)reg✝:ℕnext✝:Fin 121⊢ Decidable (ordinary next✝)reg✝:ℕpositive✝:Fin 121zero✝:Fin 121⊢ Decidable (ordinary positive✝ ∧ ordinary zero✝) All goals completed! 🐙def halfJump : Word := [1,1,1,1,0,1,0,1,1,1,0,1,1]def halfLoop : Word := [1,1,1,1,0,1,0,1,1,1]def Spec (s : Fin 121) : Prop := match role s with | .plain => evalStackOf true (oldWord s) = toInstr oldWord (rowInstr s) ∧ ordinaryTargets (rowInstr s) | .firstSwap r => match rowInstr s with | .inc r' n => r' = r ∧ role n = .secondSwap r ∧ evalStackOf true (oldWord s) = .inc 4 (oldWord n) ∧ (r = 2 ∨ r = 3) | _ => False | .secondSwap r => match rowInstr s with | .inc r' n => r' = 4 ∧ ordinary n ∧ evalStackOf true (oldWord s) = .inc r (oldWord n) ∧ (r = 2 ∨ r = 3) | _ => False | .halfDec => match rowInstr s with | .decnz r p z => r = 3 ∧ ordinary p ∧ ordinary z ∧ evalStackOf true (oldWord s) = .decnz 3 (oldWord p) halfJump ∧ evalStackOf true halfJump = .jump halfLoop ∧ evalStackOf true halfLoop = .decnz 3 (oldWord s) (oldWord z) | _ => Falseinstance (s : Fin 121) : Decidable (Spec s) := s:Fin 121⊢ Decidable (Spec s) s:Fin 121⊢ Decidable (match role s with | Role.plain => evalStackOf true (oldWord s) = toInstr oldWord (rowInstr s) ∧ ordinaryTargets (rowInstr s) | Role.firstSwap r => match rowInstr s with | ControlInstr.inc r' n => r' = r ∧ role n = Role.secondSwap r ∧ evalStackOf true (oldWord s) = RhInstr.inc 4 (oldWord n) ∧ (r = 2 ∨ r = 3) | x => False | Role.secondSwap r => match rowInstr s with | ControlInstr.inc r' n => r' = 4 ∧ ordinary n ∧ evalStackOf true (oldWord s) = RhInstr.inc r (oldWord n) ∧ (r = 2 ∨ r = 3) | x => False | Role.halfDec => match rowInstr s with | ControlInstr.decnz r p z => r = 3 ∧ ordinary p ∧ ordinary z ∧ evalStackOf true (oldWord s) = RhInstr.decnz 3 (oldWord p) halfJump ∧ evalStackOf true halfJump = RhInstr.jump halfLoop ∧ evalStackOf true halfLoop = RhInstr.decnz 3 (oldWord s) (oldWord z) | x => False) s:Fin 121x✝:Roleheq✝:role s = Role.plain⊢ Decidable (evalStackOf true (oldWord s) = toInstr oldWord (rowInstr s) ∧ ordinaryTargets (rowInstr s))s:Fin 121x✝:Rolea✝:ℕheq✝:role s = Role.firstSwap a✝⊢ Decidable (match rowInstr s with | ControlInstr.inc r' n => r' = a✝ ∧ role n = Role.secondSwap a✝ ∧ evalStackOf true (oldWord s) = RhInstr.inc 4 (oldWord n) ∧ (a✝ = 2 ∨ a✝ = 3) | x => False)s:Fin 121x✝:Rolea✝:ℕheq✝:role s = Role.secondSwap a✝⊢ Decidable (match rowInstr s with | ControlInstr.inc r' n => r' = 4 ∧ ordinary n ∧ evalStackOf true (oldWord s) = RhInstr.inc a✝ (oldWord n) ∧ (a✝ = 2 ∨ a✝ = 3) | x => False)s:Fin 121x✝:Roleheq✝:role s = Role.halfDec⊢ Decidable (match rowInstr s with | ControlInstr.decnz r p z => r = 3 ∧ ordinary p ∧ ordinary z ∧ evalStackOf true (oldWord s) = RhInstr.decnz 3 (oldWord p) halfJump ∧ evalStackOf true halfJump = RhInstr.jump halfLoop ∧ evalStackOf true halfLoop = RhInstr.decnz 3 (oldWord s) (oldWord z) | x => False) s:Fin 121x✝:Roleheq✝:role s = Role.plain⊢ Decidable (evalStackOf true (oldWord s) = toInstr oldWord (rowInstr s) ∧ ordinaryTargets (rowInstr s)) All goals completed! 🐙 s:Fin 121x✝:Rolea✝:ℕheq✝:role s = Role.firstSwap a✝⊢ Decidable (match rowInstr s with | ControlInstr.inc r' n => r' = a✝ ∧ role n = Role.secondSwap a✝ ∧ evalStackOf true (oldWord s) = RhInstr.inc 4 (oldWord n) ∧ (a✝ = 2 ∨ a✝ = 3) | x => False) s:Fin 121x✝¹:Rolea✝:ℕheq✝¹:role s = Role.firstSwap a✝x✝:ControlInstrr'✝:ℕn✝:Fin 121heq✝:rowInstr s = ControlInstr.inc r'✝ n✝⊢ Decidable (r'✝ = a✝ ∧ role n✝ = Role.secondSwap a✝ ∧ evalStackOf true (oldWord s) = RhInstr.inc 4 (oldWord n✝) ∧ (a✝ = 2 ∨ a✝ = 3))s:Fin 121x✝²:Rolea✝:ℕheq✝:role s = Role.firstSwap a✝x✝¹:ControlInstrx✝:∀ (r' : ℕ) (n : Fin 121), rowInstr s = ControlInstr.inc r' n → False⊢ Decidable False s:Fin 121x✝¹:Rolea✝:ℕheq✝¹:role s = Role.firstSwap a✝x✝:ControlInstrr'✝:ℕn✝:Fin 121heq✝:rowInstr s = ControlInstr.inc r'✝ n✝⊢ Decidable (r'✝ = a✝ ∧ role n✝ = Role.secondSwap a✝ ∧ evalStackOf true (oldWord s) = RhInstr.inc 4 (oldWord n✝) ∧ (a✝ = 2 ∨ a✝ = 3))s:Fin 121x✝²:Rolea✝:ℕheq✝:role s = Role.firstSwap a✝x✝¹:ControlInstrx✝:∀ (r' : ℕ) (n : Fin 121), rowInstr s = ControlInstr.inc r' n → False⊢ Decidable False All goals completed! 🐙 s:Fin 121x✝:Rolea✝:ℕheq✝:role s = Role.secondSwap a✝⊢ Decidable (match rowInstr s with | ControlInstr.inc r' n => r' = 4 ∧ ordinary n ∧ evalStackOf true (oldWord s) = RhInstr.inc a✝ (oldWord n) ∧ (a✝ = 2 ∨ a✝ = 3) | x => False) s:Fin 121x✝¹:Rolea✝:ℕheq✝¹:role s = Role.secondSwap a✝x✝:ControlInstrr'✝:ℕn✝:Fin 121heq✝:rowInstr s = ControlInstr.inc r'✝ n✝⊢ Decidable (r'✝ = 4 ∧ ordinary n✝ ∧ evalStackOf true (oldWord s) = RhInstr.inc a✝ (oldWord n✝) ∧ (a✝ = 2 ∨ a✝ = 3))s:Fin 121x✝²:Rolea✝:ℕheq✝:role s = Role.secondSwap a✝x✝¹:ControlInstrx✝:∀ (r' : ℕ) (n : Fin 121), rowInstr s = ControlInstr.inc r' n → False⊢ Decidable False s:Fin 121x✝¹:Rolea✝:ℕheq✝¹:role s = Role.secondSwap a✝x✝:ControlInstrr'✝:ℕn✝:Fin 121heq✝:rowInstr s = ControlInstr.inc r'✝ n✝⊢ Decidable (r'✝ = 4 ∧ ordinary n✝ ∧ evalStackOf true (oldWord s) = RhInstr.inc a✝ (oldWord n✝) ∧ (a✝ = 2 ∨ a✝ = 3))s:Fin 121x✝²:Rolea✝:ℕheq✝:role s = Role.secondSwap a✝x✝¹:ControlInstrx✝:∀ (r' : ℕ) (n : Fin 121), rowInstr s = ControlInstr.inc r' n → False⊢ Decidable False All goals completed! 🐙 s:Fin 121x✝:Roleheq✝:role s = Role.halfDec⊢ Decidable (match rowInstr s with | ControlInstr.decnz r p z => r = 3 ∧ ordinary p ∧ ordinary z ∧ evalStackOf true (oldWord s) = RhInstr.decnz 3 (oldWord p) halfJump ∧ evalStackOf true halfJump = RhInstr.jump halfLoop ∧ evalStackOf true halfLoop = RhInstr.decnz 3 (oldWord s) (oldWord z) | x => False) s:Fin 121x✝¹:Roleheq✝¹:role s = Role.halfDecx✝:ControlInstrr✝:ℕp✝:Fin 121z✝:Fin 121heq✝:rowInstr s = ControlInstr.decnz r✝ p✝ z✝⊢ Decidable (r✝ = 3 ∧ ordinary p✝ ∧ ordinary z✝ ∧ evalStackOf true (oldWord s) = RhInstr.decnz 3 (oldWord p✝) halfJump ∧ evalStackOf true halfJump = RhInstr.jump halfLoop ∧ evalStackOf true halfLoop = RhInstr.decnz 3 (oldWord s) (oldWord z✝))s:Fin 121x✝²:Roleheq✝:role s = Role.halfDecx✝¹:ControlInstrx✝:∀ (r : ℕ) (p z : Fin 121), rowInstr s = ControlInstr.decnz r p z → False⊢ Decidable False s:Fin 121x✝¹:Roleheq✝¹:role s = Role.halfDecx✝:ControlInstrr✝:ℕp✝:Fin 121z✝:Fin 121heq✝:rowInstr s = ControlInstr.decnz r✝ p✝ z✝⊢ Decidable (r✝ = 3 ∧ ordinary p✝ ∧ ordinary z✝ ∧ evalStackOf true (oldWord s) = RhInstr.decnz 3 (oldWord p✝) halfJump ∧ evalStackOf true halfJump = RhInstr.jump halfLoop ∧ evalStackOf true halfLoop = RhInstr.decnz 3 (oldWord s) (oldWord z✝))s:Fin 121x✝²:Roleheq✝:role s = Role.halfDecx✝¹:ControlInstrx✝:∀ (r : ℕ) (p z : Fin 121), rowInstr s = ControlInstr.decnz r p z → False⊢ Decidable False All goals completed! 🐙theorem instruction_word : ∀ s : Fin 121, instruction (word s) = decoded s := ⊢ ∀ (s : Fin 121), instruction (word s) = decoded s All goals completed! 🐙theorem specs : ∀ s : Fin 121, Spec s := ⊢ ∀ (s : Fin 121), Spec s All goals completed! 🐙end ConjectureMachines.Riemann95.ReferenceLogical