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.BoundedUnwind95
@[expose] public sectionnamespace ConjectureMachines.Riemann95.Controlopen Schemadef widthCallId : Fin 97 := 88theorem widthCall_word : word (.outside widthCallId) = [1,1,1,1] := ⊢ word (ControlWord.outside widthCallId) = [1, 1, 1, 1] All goals completed! 🐙theorem bounded_outside_edge (s : Fin 97) (regs : List Nat) (next : Cfg) (he : step ⟨.outside s, regs⟩ = some next) : BoundedEdge 19 ⟨.outside s,regs⟩ next := ⟨he,outside_frontier_bound s⟩private theorem pc88 (x v f m j : Nat) : BoundedEdge 19 ⟨.outside 88,[m,v,f,x,j]⟩ ⟨.outside (if j = 0 then 92 else 89),[m,v,f,x,j-1]⟩ := x:ℕv:ℕf:ℕm:ℕj:ℕ⊢ BoundedEdge 19 { control := ControlWord.outside 88, regs := [m, v, f, x, j] } { control := ControlWord.outside (if j = 0 then 92 else 89), regs := [m, v, f, x, j - 1] } x:ℕv:ℕf:ℕm:ℕj:ℕ⊢ step { control := ControlWord.outside 88, regs := [m, v, f, x, j] } = some { control := ControlWord.outside (if j = 0 then 92 else 89), regs := [m, v, f, x, j - 1] } x:ℕv:ℕf:ℕm:ℕj:ℕhj:j = 0⊢ step { control := ControlWord.outside 88, regs := [m, v, f, x, j] } = some { control := ControlWord.outside (if j = 0 then 92 else 89), regs := [m, v, f, x, j - 1] }x:ℕv:ℕf:ℕm:ℕj:ℕhj:¬j = 0⊢ step { control := ControlWord.outside 88, regs := [m, v, f, x, j] } = some { control := ControlWord.outside (if j = 0 then 92 else 89), regs := [m, v, f, x, j - 1] } x:ℕv:ℕf:ℕm:ℕj:ℕhj:j = 0⊢ step { control := ControlWord.outside 88, regs := [m, v, f, x, j] } = some { control := ControlWord.outside (if j = 0 then 92 else 89), regs := [m, v, f, x, j - 1] }x:ℕv:ℕf:ℕm:ℕj:ℕhj:¬j = 0⊢ step { control := ControlWord.outside 88, regs := [m, v, f, x, j] } = some { control := ControlWord.outside (if j = 0 then 92 else 89), regs := [m, v, f, x, j - 1] } All goals completed! 🐙private theorem pc89 (x v f m j : Nat) : BoundedEdge 19 ⟨.outside 89,[m,v,f,x,j]⟩ ⟨.outside 90,[m,v,f,x+1,j]⟩ := x:ℕv:ℕf:ℕm:ℕj:ℕ⊢ BoundedEdge 19 { control := ControlWord.outside 89, regs := [m, v, f, x, j] } { control := ControlWord.outside 90, regs := [m, v, f, x + 1, j] } x:ℕv:ℕf:ℕm:ℕj:ℕ⊢ step { control := ControlWord.outside 89, regs := [m, v, f, x, j] } = some { control := ControlWord.outside 90, regs := [m, v, f, x + 1, j] } All goals completed! 🐙private theorem pc90 (x v f m j : Nat) : BoundedEdge 19 ⟨.outside 90,[m,v,f,x,j]⟩ ⟨.outside 91,[m,v+1,f,x,j]⟩ := x:ℕv:ℕf:ℕm:ℕj:ℕ⊢ BoundedEdge 19 { control := ControlWord.outside 90, regs := [m, v, f, x, j] } { control := ControlWord.outside 91, regs := [m, v + 1, f, x, j] } x:ℕv:ℕf:ℕm:ℕj:ℕ⊢ step { control := ControlWord.outside 90, regs := [m, v, f, x, j] } = some { control := ControlWord.outside 91, regs := [m, v + 1, f, x, j] } All goals completed! 🐙private theorem pc91 (x v f m j : Nat) : BoundedEdge 19 ⟨.outside 91,[m,v,f,x,j]⟩ ⟨.outside 88,[m,v,f,x,j]⟩ := x:ℕv:ℕf:ℕm:ℕj:ℕ⊢ BoundedEdge 19 { control := ControlWord.outside 91, regs := [m, v, f, x, j] } { control := ControlWord.outside 88, regs := [m, v, f, x, j] } x:ℕv:ℕf:ℕm:ℕj:ℕ⊢ step { control := ControlWord.outside 91, regs := [m, v, f, x, j] } = some { control := ControlWord.outside 88, regs := [m, v, f, x, j] } All goals completed! 🐙private theorem pc92 (x v f m j : Nat) : BoundedEdge 19 ⟨.outside 92,[m,v,f,x,j]⟩ ⟨if v = 0 then .entry 0 else .outside 93,[m,v-1,f,x,j]⟩ := x:ℕv:ℕf:ℕm:ℕj:ℕ⊢ BoundedEdge 19 { control := ControlWord.outside 92, regs := [m, v, f, x, j] } { control := if v = 0 then ControlWord.entry 0 else ControlWord.outside 93, regs := [m, v - 1, f, x, j] } x:ℕv:ℕf:ℕm:ℕj:ℕ⊢ step { control := ControlWord.outside 92, regs := [m, v, f, x, j] } = some { control := if v = 0 then ControlWord.entry 0 else ControlWord.outside 93, regs := [m, v - 1, f, x, j] } x:ℕv:ℕf:ℕm:ℕj:ℕhv:v = 0⊢ step { control := ControlWord.outside 92, regs := [m, v, f, x, j] } = some { control := if v = 0 then ControlWord.entry 0 else ControlWord.outside 93, regs := [m, v - 1, f, x, j] }x:ℕv:ℕf:ℕm:ℕj:ℕhv:¬v = 0⊢ step { control := ControlWord.outside 92, regs := [m, v, f, x, j] } = some { control := if v = 0 then ControlWord.entry 0 else ControlWord.outside 93, regs := [m, v - 1, f, x, j] } x:ℕv:ℕf:ℕm:ℕj:ℕhv:v = 0⊢ step { control := ControlWord.outside 92, regs := [m, v, f, x, j] } = some { control := if v = 0 then ControlWord.entry 0 else ControlWord.outside 93, regs := [m, v - 1, f, x, j] }x:ℕv:ℕf:ℕm:ℕj:ℕhv:¬v = 0⊢ step { control := ControlWord.outside 92, regs := [m, v, f, x, j] } = some { control := if v = 0 then ControlWord.entry 0 else ControlWord.outside 93, regs := [m, v - 1, f, x, j] } All goals completed! 🐙private theorem pc93 (x v f m j : Nat) : BoundedEdge 19 ⟨.outside 93,[m,v,f,x,j]⟩ ⟨.outside 94,[m,v,f,x,j+1]⟩ := x:ℕv:ℕf:ℕm:ℕj:ℕ⊢ BoundedEdge 19 { control := ControlWord.outside 93, regs := [m, v, f, x, j] } { control := ControlWord.outside 94, regs := [m, v, f, x, j + 1] } x:ℕv:ℕf:ℕm:ℕj:ℕ⊢ step { control := ControlWord.outside 93, regs := [m, v, f, x, j] } = some { control := ControlWord.outside 94, regs := [m, v, f, x, j + 1] } All goals completed! 🐙private theorem pc94 (x v f m j : Nat) : BoundedEdge 19 ⟨.outside 94,[m,v,f,x,j]⟩ ⟨.outside 92,[m,v,f,x,j]⟩ := x:ℕv:ℕf:ℕm:ℕj:ℕ⊢ BoundedEdge 19 { control := ControlWord.outside 94, regs := [m, v, f, x, j] } { control := ControlWord.outside 92, regs := [m, v, f, x, j] } x:ℕv:ℕf:ℕm:ℕj:ℕ⊢ step { control := ControlWord.outside 94, regs := [m, v, f, x, j] } = some { control := ControlWord.outside 92, regs := [m, v, f, x, j] } All goals completed! 🐙theorem precredit_consume (x v f m j : Nat) : Relation.TransGen (BoundedEdge 19) ⟨.outside 88,[m,v,f,x,j]⟩ ⟨.outside 92,[m,v+j,f,x+j,0]⟩ := x:ℕv:ℕf:ℕm:ℕj:ℕ⊢ Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 88, regs := [m, v, f, x, j] } { control := ControlWord.outside 92, regs := [m, v + j, f, x + j, 0] } induction j generalizing x v with f:ℕm:ℕx:ℕv:ℕ⊢ Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 88, regs := [m, v, f, x, 0] } { control := ControlWord.outside 92, regs := [m, v + 0, f, x + 0, 0] } exact Relation.TransGen.single (f:ℕm:ℕx:ℕv:ℕ⊢ BoundedEdge 19 { control := ControlWord.outside 88, regs := [m, v, f, x, 0] } { control := ControlWord.outside 92, regs := [m, v + 0, f, x + 0, 0] } All goals completed! 🐙) f:ℕm:ℕj:ℕih:∀ (x v : ℕ), Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 88, regs := [m, v, f, x, j] } { control := ControlWord.outside 92, regs := [m, v + j, f, x + j, 0] }x:ℕv:ℕ⊢ Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 88, regs := [m, v, f, x, j + 1] } { control := ControlWord.outside 92, regs := [m, v + (j + 1), f, x + (j + 1), 0] } f:ℕm:ℕj:ℕih:∀ (x v : ℕ), Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 88, regs := [m, v, f, x, j] } { control := ControlWord.outside 92, regs := [m, v + j, f, x + j, 0] }x:ℕv:ℕh1:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 88, regs := [m, v, f, x, j + 1] } { control := ControlWord.outside 89, regs := [m, v, f, x, j] }⊢ Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 88, regs := [m, v, f, x, j + 1] } { control := ControlWord.outside 92, regs := [m, v + (j + 1), f, x + (j + 1), 0] } f:ℕm:ℕj:ℕih:∀ (x v : ℕ), Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 88, regs := [m, v, f, x, j] } { control := ControlWord.outside 92, regs := [m, v + j, f, x + j, 0] }x:ℕv:ℕh1:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 88, regs := [m, v, f, x, j + 1] } { control := ControlWord.outside 89, regs := [m, v, f, x, j] }h2:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 89, regs := [m, v, f, x, j] } { control := ControlWord.outside 90, regs := [m, v, f, x + 1, j] }⊢ Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 88, regs := [m, v, f, x, j + 1] } { control := ControlWord.outside 92, regs := [m, v + (j + 1), f, x + (j + 1), 0] } f:ℕm:ℕj:ℕih:∀ (x v : ℕ), Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 88, regs := [m, v, f, x, j] } { control := ControlWord.outside 92, regs := [m, v + j, f, x + j, 0] }x:ℕv:ℕh1:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 88, regs := [m, v, f, x, j + 1] } { control := ControlWord.outside 89, regs := [m, v, f, x, j] }h2:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 89, regs := [m, v, f, x, j] } { control := ControlWord.outside 90, regs := [m, v, f, x + 1, j] }h3:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 90, regs := [m, v, f, x + 1, j] } { control := ControlWord.outside 91, regs := [m, v + 1, f, x + 1, j] }⊢ Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 88, regs := [m, v, f, x, j + 1] } { control := ControlWord.outside 92, regs := [m, v + (j + 1), f, x + (j + 1), 0] } f:ℕm:ℕj:ℕih:∀ (x v : ℕ), Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 88, regs := [m, v, f, x, j] } { control := ControlWord.outside 92, regs := [m, v + j, f, x + j, 0] }x:ℕv:ℕh1:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 88, regs := [m, v, f, x, j + 1] } { control := ControlWord.outside 89, regs := [m, v, f, x, j] }h2:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 89, regs := [m, v, f, x, j] } { control := ControlWord.outside 90, regs := [m, v, f, x + 1, j] }h3:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 90, regs := [m, v, f, x + 1, j] } { control := ControlWord.outside 91, regs := [m, v + 1, f, x + 1, j] }h4:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 91, regs := [m, v + 1, f, x + 1, j] } { control := ControlWord.outside 88, regs := [m, v + 1, f, x + 1, j] }⊢ Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 88, regs := [m, v, f, x, j + 1] } { control := ControlWord.outside 92, regs := [m, v + (j + 1), f, x + (j + 1), 0] } f:ℕm:ℕj:ℕih:∀ (x v : ℕ), Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 88, regs := [m, v, f, x, j] } { control := ControlWord.outside 92, regs := [m, v + j, f, x + j, 0] }x:ℕv:ℕh1:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 88, regs := [m, v, f, x, j + 1] } { control := ControlWord.outside 89, regs := [m, v, f, x, j] }h2:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 89, regs := [m, v, f, x, j] } { control := ControlWord.outside 90, regs := [m, v, f, x + 1, j] }h3:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 90, regs := [m, v, f, x + 1, j] } { control := ControlWord.outside 91, regs := [m, v + 1, f, x + 1, j] }h4:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 91, regs := [m, v + 1, f, x + 1, j] } { control := ControlWord.outside 88, regs := [m, v + 1, f, x + 1, j] }hx:x + (j + 1) = x + 1 + j⊢ Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 88, regs := [m, v, f, x, j + 1] } { control := ControlWord.outside 92, regs := [m, v + (j + 1), f, x + (j + 1), 0] } f:ℕm:ℕj:ℕih:∀ (x v : ℕ), Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 88, regs := [m, v, f, x, j] } { control := ControlWord.outside 92, regs := [m, v + j, f, x + j, 0] }x:ℕv:ℕh1:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 88, regs := [m, v, f, x, j + 1] } { control := ControlWord.outside 89, regs := [m, v, f, x, j] }h2:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 89, regs := [m, v, f, x, j] } { control := ControlWord.outside 90, regs := [m, v, f, x + 1, j] }h3:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 90, regs := [m, v, f, x + 1, j] } { control := ControlWord.outside 91, regs := [m, v + 1, f, x + 1, j] }h4:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 91, regs := [m, v + 1, f, x + 1, j] } { control := ControlWord.outside 88, regs := [m, v + 1, f, x + 1, j] }hx:x + (j + 1) = x + 1 + jhv:v + (j + 1) = v + 1 + j⊢ Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 88, regs := [m, v, f, x, j + 1] } { control := ControlWord.outside 92, regs := [m, v + (j + 1), f, x + (j + 1), 0] } f:ℕm:ℕj:ℕih:∀ (x v : ℕ), Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 88, regs := [m, v, f, x, j] } { control := ControlWord.outside 92, regs := [m, v + j, f, x + j, 0] }x:ℕv:ℕh1:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 88, regs := [m, v, f, x, j + 1] } { control := ControlWord.outside 89, regs := [m, v, f, x, j] }h2:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 89, regs := [m, v, f, x, j] } { control := ControlWord.outside 90, regs := [m, v, f, x + 1, j] }h3:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 90, regs := [m, v, f, x + 1, j] } { control := ControlWord.outside 91, regs := [m, v + 1, f, x + 1, j] }h4:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 91, regs := [m, v + 1, f, x + 1, j] } { control := ControlWord.outside 88, regs := [m, v + 1, f, x + 1, j] }hx:x + (j + 1) = x + 1 + jhv:v + (j + 1) = v + 1 + j⊢ Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 88, regs := [m, v, f, x, j + 1] } { control := ControlWord.outside 92, regs := [m, v + 1 + j, f, x + 1 + j, 0] } All goals completed! 🐙theorem precredit_restore (x v f m j : Nat) : Relation.TransGen (BoundedEdge 19) ⟨.outside 92,[m,v,f,x,j]⟩ ⟨.entry 0,[m,0,f,x,j+v]⟩ := x:ℕv:ℕf:ℕm:ℕj:ℕ⊢ Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 92, regs := [m, v, f, x, j] } { control := ControlWord.entry 0, regs := [m, 0, f, x, j + v] } induction v generalizing j with x:ℕf:ℕm:ℕj:ℕ⊢ Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 92, regs := [m, 0, f, x, j] } { control := ControlWord.entry 0, regs := [m, 0, f, x, j + 0] } exact Relation.TransGen.single (x:ℕf:ℕm:ℕj:ℕ⊢ BoundedEdge 19 { control := ControlWord.outside 92, regs := [m, 0, f, x, j] } { control := ControlWord.entry 0, regs := [m, 0, f, x, j + 0] } All goals completed! 🐙) x:ℕf:ℕm:ℕv:ℕih:∀ (j : ℕ), Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 92, regs := [m, v, f, x, j] } { control := ControlWord.entry 0, regs := [m, 0, f, x, j + v] }j:ℕ⊢ Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 92, regs := [m, v + 1, f, x, j] } { control := ControlWord.entry 0, regs := [m, 0, f, x, j + (v + 1)] } x:ℕf:ℕm:ℕv:ℕih:∀ (j : ℕ), Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 92, regs := [m, v, f, x, j] } { control := ControlWord.entry 0, regs := [m, 0, f, x, j + v] }j:ℕh1:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 92, regs := [m, v + 1, f, x, j] } { control := ControlWord.outside 93, regs := [m, v, f, x, j] }⊢ Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 92, regs := [m, v + 1, f, x, j] } { control := ControlWord.entry 0, regs := [m, 0, f, x, j + (v + 1)] } x:ℕf:ℕm:ℕv:ℕih:∀ (j : ℕ), Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 92, regs := [m, v, f, x, j] } { control := ControlWord.entry 0, regs := [m, 0, f, x, j + v] }j:ℕh1:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 92, regs := [m, v + 1, f, x, j] } { control := ControlWord.outside 93, regs := [m, v, f, x, j] }h2:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 93, regs := [m, v, f, x, j] } { control := ControlWord.outside 94, regs := [m, v, f, x, j + 1] }⊢ Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 92, regs := [m, v + 1, f, x, j] } { control := ControlWord.entry 0, regs := [m, 0, f, x, j + (v + 1)] } x:ℕf:ℕm:ℕv:ℕih:∀ (j : ℕ), Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 92, regs := [m, v, f, x, j] } { control := ControlWord.entry 0, regs := [m, 0, f, x, j + v] }j:ℕh1:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 92, regs := [m, v + 1, f, x, j] } { control := ControlWord.outside 93, regs := [m, v, f, x, j] }h2:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 93, regs := [m, v, f, x, j] } { control := ControlWord.outside 94, regs := [m, v, f, x, j + 1] }h3:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 94, regs := [m, v, f, x, j + 1] } { control := ControlWord.outside 92, regs := [m, v, f, x, j + 1] }⊢ Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 92, regs := [m, v + 1, f, x, j] } { control := ControlWord.entry 0, regs := [m, 0, f, x, j + (v + 1)] } x:ℕf:ℕm:ℕv:ℕih:∀ (j : ℕ), Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 92, regs := [m, v, f, x, j] } { control := ControlWord.entry 0, regs := [m, 0, f, x, j + v] }j:ℕh1:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 92, regs := [m, v + 1, f, x, j] } { control := ControlWord.outside 93, regs := [m, v, f, x, j] }h2:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 93, regs := [m, v, f, x, j] } { control := ControlWord.outside 94, regs := [m, v, f, x, j + 1] }h3:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 94, regs := [m, v, f, x, j + 1] } { control := ControlWord.outside 92, regs := [m, v, f, x, j + 1] }hj:j + (v + 1) = j + 1 + v⊢ Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 92, regs := [m, v + 1, f, x, j] } { control := ControlWord.entry 0, regs := [m, 0, f, x, j + (v + 1)] } x:ℕf:ℕm:ℕv:ℕih:∀ (j : ℕ), Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 92, regs := [m, v, f, x, j] } { control := ControlWord.entry 0, regs := [m, 0, f, x, j + v] }j:ℕh1:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 92, regs := [m, v + 1, f, x, j] } { control := ControlWord.outside 93, regs := [m, v, f, x, j] }h2:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 93, regs := [m, v, f, x, j] } { control := ControlWord.outside 94, regs := [m, v, f, x, j + 1] }h3:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 94, regs := [m, v, f, x, j + 1] } { control := ControlWord.outside 92, regs := [m, v, f, x, j + 1] }hj:j + (v + 1) = j + 1 + v⊢ Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 92, regs := [m, v + 1, f, x, j] } { control := ControlWord.entry 0, regs := [m, 0, f, x, j + 1 + v] } All goals completed! 🐙theorem bounded_precredit_all (x v f m j : Nat) : Relation.TransGen (BoundedEdge 19) ⟨.outside widthCallId,[m,v,f,x,j]⟩ ⟨.entry 0,[m,0,f,x+j,j+v]⟩ := x:ℕv:ℕf:ℕm:ℕj:ℕ⊢ Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside widthCallId, regs := [m, v, f, x, j] } { control := ControlWord.entry 0, regs := [m, 0, f, x + j, j + v] } x:ℕv:ℕf:ℕm:ℕj:ℕh1:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 88, regs := [m, v, f, x, j] } { control := ControlWord.outside 92, regs := [m, v + j, f, x + j, 0] }⊢ Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside widthCallId, regs := [m, v, f, x, j] } { control := ControlWord.entry 0, regs := [m, 0, f, x + j, j + v] } x:ℕv:ℕf:ℕm:ℕj:ℕh1:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 88, regs := [m, v, f, x, j] } { control := ControlWord.outside 92, regs := [m, v + j, f, x + j, 0] }h2:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 92, regs := [m, v + j, f, x + j, 0] } { control := ControlWord.entry 0, regs := [m, 0, f, x + j, 0 + (v + j)] }⊢ Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside widthCallId, regs := [m, v, f, x, j] } { control := ControlWord.entry 0, regs := [m, 0, f, x + j, j + v] } x:ℕv:ℕf:ℕm:ℕj:ℕh1:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 88, regs := [m, v, f, x, j] } { control := ControlWord.outside 92, regs := [m, v + j, f, x + j, 0] }h2:Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside 92, regs := [m, v + j, f, x + j, 0] } { control := ControlWord.entry 0, regs := [m, 0, f, x + j, 0 + (v + j)] }hj:v + j = j + v⊢ Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside widthCallId, regs := [m, v, f, x, j] } { control := ControlWord.entry 0, regs := [m, 0, f, x + j, j + v] } All goals completed! 🐙theorem bounded_precredit (x j f : Nat) : Relation.TransGen (BoundedEdge 19) ⟨.outside widthCallId,[0,0,f,x,j]⟩ ⟨.entry 0,[0,0,f,x+j,j]⟩ := x:ℕj:ℕf:ℕ⊢ Relation.TransGen (BoundedEdge 19) { control := ControlWord.outside widthCallId, regs := [0, 0, f, x, j] } { control := ControlWord.entry 0, regs := [0, 0, f, x + j, j] } All goals completed! 🐙theorem bounded_precredit_width (x j f : Nat) : Relation.TransGen (BoundedEdge (widthBudget j)) ⟨.outside widthCallId,[0,0,f,x,j]⟩ ⟨if Algorithm.residual j f = 0 then .outside 0 else .outside finalHaltId, [0,0,Algorithm.residual j f-1,x+j,0]⟩ := x:ℕj:ℕf:ℕ⊢ Relation.TransGen (BoundedEdge (widthBudget j)) { control := ControlWord.outside widthCallId, regs := [0, 0, f, x, j] } { control := if Algorithm.residual j f = 0 then ControlWord.outside 0 else ControlWord.outside finalHaltId, regs := [0, 0, Algorithm.residual j f - 1, x + j, 0] } x:ℕj:ℕf:ℕhbudget:19 ≤ widthBudget j⊢ Relation.TransGen (BoundedEdge (widthBudget j)) { control := ControlWord.outside widthCallId, regs := [0, 0, f, x, j] } { control := if Algorithm.residual j f = 0 then ControlWord.outside 0 else ControlWord.outside finalHaltId, regs := [0, 0, Algorithm.residual j f - 1, x + j, 0] } x:ℕj:ℕf:ℕhbudget:19 ≤ widthBudget jhp:Relation.TransGen (BoundedEdge (widthBudget j)) { control := ControlWord.outside widthCallId, regs := [0, 0, f, x, j] } { control := ControlWord.entry 0, regs := [0, 0, f, x + j, j] }⊢ Relation.TransGen (BoundedEdge (widthBudget j)) { control := ControlWord.outside widthCallId, regs := [0, 0, f, x, j] } { control := if Algorithm.residual j f = 0 then ControlWord.outside 0 else ControlWord.outside finalHaltId, regs := [0, 0, Algorithm.residual j f - 1, x + j, 0] } All goals completed! 🐙end ConjectureMachines.Riemann95.Control