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.WidthSteps95
@[expose] public sectionnamespace ConjectureMachines.Riemann95.Controlopen StateTransition Schemaopen ConjectureMachines.Riemann120 (quarterClock)

Every executed source frontier has the requested physical fill budget.

def BoundedEdge (B : Nat) (a b : Cfg) : Prop := step a = some b ∧ (walked a.control).length + 3 ≤ Bdef widthBudget (j : Nat) : Nat := max 16 (10 + 5 * quarterClock j) + 5theorem half_frontier_bound (k : Fin 3) (d : Nat) (s : Fin 8) (hs : s.val < 7) (m v a x other : Nat) : (walked (halfCfg k d s m v a x other).control).length + 3 ≤ 5 * d + 18 := k:Fin 3d:ℕs:Fin 8hs:↑s < 7m:ℕv:ℕa:ℕx:ℕother:ℕ⊢ List.length (walked (halfCfg k d s m v a x other).control) + 3 ≤ 5 * d + 18 k:Fin 3d:ℕs:Fin 8hs:↑s < 7m:ℕv:ℕa:ℕx:ℕother:ℕhn:↑s ≠ 7⊢ List.length (walked (halfCfg k d s m v a x other).control) + 3 ≤ 5 * d + 18 k:Fin 3d:ℕs:Fin 8hs:↑s < 7m:ℕv:ℕa:ℕx:ℕother:ℕhn:↑s ≠ 7⊢ List.length (localWalk d ⟨7 * ↑k + ↑s, ⋯⟩) + 3 ≤ 5 * d + 18 k:Fin 3d:ℕs:Fin 8hs:↑s < 7m:ℕv:ℕa:ℕx:ℕother:ℕhn:↑s ≠ 7h:List.length (localWalk d ⟨7 * ↑k + ↑s, ⋯⟩) ≤ 5 * d + 14⊢ List.length (localWalk d ⟨7 * ↑k + ↑s, ⋯⟩) + 3 ≤ 5 * d + 18 All goals completed! 🐙theorem bounded_half_edge (B : Nat) (k : Fin 3) (d : Nat) (hB : 5 * d + 18 ≤ B) (s : Fin 8) (hs : s.val < 7) (m v a x other : Nat) (next : Cfg) (he : step (halfCfg k d s m v a x other) = some next) : BoundedEdge B (halfCfg k d s m v a x other) next := ⟨he,le_trans (half_frontier_bound k d s hs m v a x other) hB⟩theorem bounded_half_restore (B : Nat) (k : Fin 3) (d m v a x other : Nat) (hB : 5 * d + 18 ≤ B) : Relation.TransGen (BoundedEdge B) (halfCfg k d 4 m v a x other) (halfCfg k d 7 m 0 (a + v) x other) := B:ℕk:Fin 3d:ℕm:ℕv:ℕa:ℕx:ℕother:ℕhB:5 * d + 18 ≤ B⊢ Relation.TransGen (BoundedEdge B) (halfCfg k d 4 m v a x other) (halfCfg k d 7 m 0 (a + v) x other) induction v generalizing a with B:ℕk:Fin 3d:ℕm:ℕx:ℕother:ℕhB:5 * d + 18 ≤ Ba:ℕ⊢ Relation.TransGen (BoundedEdge B) (halfCfg k d 4 m 0 a x other) (halfCfg k d 7 m 0 (a + 0) x other) exact Relation.TransGen.single (B:ℕk:Fin 3d:ℕm:ℕx:ℕother:ℕhB:5 * d + 18 ≤ Ba:ℕ⊢ BoundedEdge B (halfCfg k d 4 m 0 a x other) (halfCfg k d 7 m 0 (a + 0) x other) simpa using (bounded_half_edge B k d hB 4 (B:ℕk:Fin 3d:ℕm:ℕx:ℕother:ℕhB:5 * d + 18 ≤ Ba:ℕ⊢ ↑4 < 7 All goals completed! 🐙) m 0 a x other _ (half_step4 k d m 0 a x other))) B:ℕk:Fin 3d:ℕm:ℕx:ℕother:ℕhB:5 * d + 18 ≤ Bv:ℕih:∀ (a : ℕ), Relation.TransGen (BoundedEdge B) (halfCfg k d 4 m v a x other) (halfCfg k d 7 m 0 (a + v) x other)a:ℕ⊢ Relation.TransGen (BoundedEdge B) (halfCfg k d 4 m (v + 1) a x other) (halfCfg k d 7 m 0 (a + (v + 1)) x other) B:ℕk:Fin 3d:ℕm:ℕx:ℕother:ℕhB:5 * d + 18 ≤ Bv:ℕih:∀ (a : ℕ), Relation.TransGen (BoundedEdge B) (halfCfg k d 4 m v a x other) (halfCfg k d 7 m 0 (a + v) x other)a:ℕh1:Relation.TransGen (BoundedEdge B) (halfCfg k d 4 m (v + 1) a x other) (halfCfg k d 5 m v a x other)⊢ Relation.TransGen (BoundedEdge B) (halfCfg k d 4 m (v + 1) a x other) (halfCfg k d 7 m 0 (a + (v + 1)) x other) B:ℕk:Fin 3d:ℕm:ℕx:ℕother:ℕhB:5 * d + 18 ≤ Bv:ℕih:∀ (a : ℕ), Relation.TransGen (BoundedEdge B) (halfCfg k d 4 m v a x other) (halfCfg k d 7 m 0 (a + v) x other)a:ℕh1:Relation.TransGen (BoundedEdge B) (halfCfg k d 4 m (v + 1) a x other) (halfCfg k d 5 m v a x other)h2:Relation.TransGen (BoundedEdge B) (halfCfg k d 5 m v a x other) (halfCfg k d 6 m v (a + 1) x other)⊢ Relation.TransGen (BoundedEdge B) (halfCfg k d 4 m (v + 1) a x other) (halfCfg k d 7 m 0 (a + (v + 1)) x other) B:ℕk:Fin 3d:ℕm:ℕx:ℕother:ℕhB:5 * d + 18 ≤ Bv:ℕih:∀ (a : ℕ), Relation.TransGen (BoundedEdge B) (halfCfg k d 4 m v a x other) (halfCfg k d 7 m 0 (a + v) x other)a:ℕh1:Relation.TransGen (BoundedEdge B) (halfCfg k d 4 m (v + 1) a x other) (halfCfg k d 5 m v a x other)h2:Relation.TransGen (BoundedEdge B) (halfCfg k d 5 m v a x other) (halfCfg k d 6 m v (a + 1) x other)h3:Relation.TransGen (BoundedEdge B) (halfCfg k d 6 m v (a + 1) x other) (halfCfg k d 4 m v (a + 1) x other)⊢ Relation.TransGen (BoundedEdge B) (halfCfg k d 4 m (v + 1) a x other) (halfCfg k d 7 m 0 (a + (v + 1)) x other) B:ℕk:Fin 3d:ℕm:ℕx:ℕother:ℕhB:5 * d + 18 ≤ Bv:ℕih:∀ (a : ℕ), Relation.TransGen (BoundedEdge B) (halfCfg k d 4 m v a x other) (halfCfg k d 7 m 0 (a + v) x other)a:ℕh1:Relation.TransGen (BoundedEdge B) (halfCfg k d 4 m (v + 1) a x other) (halfCfg k d 5 m v a x other)h2:Relation.TransGen (BoundedEdge B) (halfCfg k d 5 m v a x other) (halfCfg k d 6 m v (a + 1) x other)h3:Relation.TransGen (BoundedEdge B) (halfCfg k d 6 m v (a + 1) x other) (halfCfg k d 4 m v (a + 1) x other)he:a + (v + 1) = a + 1 + v⊢ Relation.TransGen (BoundedEdge B) (halfCfg k d 4 m (v + 1) a x other) (halfCfg k d 7 m 0 (a + (v + 1)) x other) B:ℕk:Fin 3d:ℕm:ℕx:ℕother:ℕhB:5 * d + 18 ≤ Bv:ℕih:∀ (a : ℕ), Relation.TransGen (BoundedEdge B) (halfCfg k d 4 m v a x other) (halfCfg k d 7 m 0 (a + v) x other)a:ℕh1:Relation.TransGen (BoundedEdge B) (halfCfg k d 4 m (v + 1) a x other) (halfCfg k d 5 m v a x other)h2:Relation.TransGen (BoundedEdge B) (halfCfg k d 5 m v a x other) (halfCfg k d 6 m v (a + 1) x other)h3:Relation.TransGen (BoundedEdge B) (halfCfg k d 6 m v (a + 1) x other) (halfCfg k d 4 m v (a + 1) x other)he:a + (v + 1) = a + 1 + v⊢ Relation.TransGen (BoundedEdge B) (halfCfg k d 4 m (v + 1) a x other) (halfCfg k d 7 m 0 (a + 1 + v) x other) All goals completed! 🐙theorem bounded_half_eval (B : Nat) (k : Fin 3) (d m v a x other : Nat) (hB : 5 * d + 18 ≤ B) : Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v a x other) (halfCfg k d 7 m 0 (a/2 + v) x other) := B:ℕk:Fin 3d:ℕm:ℕv:ℕa:ℕx:ℕother:ℕhB:5 * d + 18 ≤ B⊢ Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v a x other) (halfCfg k d 7 m 0 (a / 2 + v) x other) induction a using Nat.twoStepInduction generalizing v with B:ℕk:Fin 3d:ℕm:ℕx:ℕother:ℕhB:5 * d + 18 ≤ Bv:ℕ⊢ Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v 0 x other) (halfCfg k d 7 m 0 (0 / 2 + v) x other) B:ℕk:Fin 3d:ℕm:ℕx:ℕother:ℕhB:5 * d + 18 ≤ Bv:ℕh:Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v 0 x other) (halfCfg k d 4 m v 0 x other)⊢ Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v 0 x other) (halfCfg k d 7 m 0 (0 / 2 + v) x other) All goals completed! 🐙 B:ℕk:Fin 3d:ℕm:ℕx:ℕother:ℕhB:5 * d + 18 ≤ Bv:ℕ⊢ Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v 1 x other) (halfCfg k d 7 m 0 (1 / 2 + v) x other) B:ℕk:Fin 3d:ℕm:ℕx:ℕother:ℕhB:5 * d + 18 ≤ Bv:ℕh1:Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v 1 x other) (halfCfg k d 1 m v 0 x other)⊢ Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v 1 x other) (halfCfg k d 7 m 0 (1 / 2 + v) x other) B:ℕk:Fin 3d:ℕm:ℕx:ℕother:ℕhB:5 * d + 18 ≤ Bv:ℕh1:Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v 1 x other) (halfCfg k d 1 m v 0 x other)h2:Relation.TransGen (BoundedEdge B) (halfCfg k d 1 m v 0 x other) (halfCfg k d 4 m v 0 x other)⊢ Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v 1 x other) (halfCfg k d 7 m 0 (1 / 2 + v) x other) All goals completed! 🐙 B:ℕk:Fin 3d:ℕm:ℕx:ℕother:ℕhB:5 * d + 18 ≤ Ba:ℕih:∀ (v : ℕ), Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v a x other) (halfCfg k d 7 m 0 (a / 2 + v) x other)a✝:∀ (v : ℕ), Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v (a + 1) x other) (halfCfg k d 7 m 0 ((a + 1) / 2 + v) x other)v:ℕ⊢ Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v (a + 2) x other) (halfCfg k d 7 m 0 ((a + 2) / 2 + v) x other) B:ℕk:Fin 3d:ℕm:ℕx:ℕother:ℕhB:5 * d + 18 ≤ Ba:ℕih:∀ (v : ℕ), Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v a x other) (halfCfg k d 7 m 0 (a / 2 + v) x other)a✝:∀ (v : ℕ), Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v (a + 1) x other) (halfCfg k d 7 m 0 ((a + 1) / 2 + v) x other)v:ℕh1:Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v (a + 2) x other) (halfCfg k d 1 m v (a + 1) x other)⊢ Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v (a + 2) x other) (halfCfg k d 7 m 0 ((a + 2) / 2 + v) x other) B:ℕk:Fin 3d:ℕm:ℕx:ℕother:ℕhB:5 * d + 18 ≤ Ba:ℕih:∀ (v : ℕ), Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v a x other) (halfCfg k d 7 m 0 (a / 2 + v) x other)a✝:∀ (v : ℕ), Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v (a + 1) x other) (halfCfg k d 7 m 0 ((a + 1) / 2 + v) x other)v:ℕh1:Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v (a + 2) x other) (halfCfg k d 1 m v (a + 1) x other)h2:Relation.TransGen (BoundedEdge B) (halfCfg k d 1 m v (a + 1) x other) (halfCfg k d 2 m v a x other)⊢ Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v (a + 2) x other) (halfCfg k d 7 m 0 ((a + 2) / 2 + v) x other) B:ℕk:Fin 3d:ℕm:ℕx:ℕother:ℕhB:5 * d + 18 ≤ Ba:ℕih:∀ (v : ℕ), Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v a x other) (halfCfg k d 7 m 0 (a / 2 + v) x other)a✝:∀ (v : ℕ), Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v (a + 1) x other) (halfCfg k d 7 m 0 ((a + 1) / 2 + v) x other)v:ℕh1:Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v (a + 2) x other) (halfCfg k d 1 m v (a + 1) x other)h2:Relation.TransGen (BoundedEdge B) (halfCfg k d 1 m v (a + 1) x other) (halfCfg k d 2 m v a x other)h3:Relation.TransGen (BoundedEdge B) (halfCfg k d 2 m v a x other) (halfCfg k d 3 m (v + 1) a x other)⊢ Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v (a + 2) x other) (halfCfg k d 7 m 0 ((a + 2) / 2 + v) x other) B:ℕk:Fin 3d:ℕm:ℕx:ℕother:ℕhB:5 * d + 18 ≤ Ba:ℕih:∀ (v : ℕ), Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v a x other) (halfCfg k d 7 m 0 (a / 2 + v) x other)a✝:∀ (v : ℕ), Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v (a + 1) x other) (halfCfg k d 7 m 0 ((a + 1) / 2 + v) x other)v:ℕh1:Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v (a + 2) x other) (halfCfg k d 1 m v (a + 1) x other)h2:Relation.TransGen (BoundedEdge B) (halfCfg k d 1 m v (a + 1) x other) (halfCfg k d 2 m v a x other)h3:Relation.TransGen (BoundedEdge B) (halfCfg k d 2 m v a x other) (halfCfg k d 3 m (v + 1) a x other)h4:Relation.TransGen (BoundedEdge B) (halfCfg k d 3 m (v + 1) a x other) (halfCfg k d 0 m (v + 1) a x other)⊢ Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v (a + 2) x other) (halfCfg k d 7 m 0 ((a + 2) / 2 + v) x other) B:ℕk:Fin 3d:ℕm:ℕx:ℕother:ℕhB:5 * d + 18 ≤ Ba:ℕih:∀ (v : ℕ), Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v a x other) (halfCfg k d 7 m 0 (a / 2 + v) x other)a✝:∀ (v : ℕ), Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v (a + 1) x other) (halfCfg k d 7 m 0 ((a + 1) / 2 + v) x other)v:ℕh1:Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v (a + 2) x other) (halfCfg k d 1 m v (a + 1) x other)h2:Relation.TransGen (BoundedEdge B) (halfCfg k d 1 m v (a + 1) x other) (halfCfg k d 2 m v a x other)h3:Relation.TransGen (BoundedEdge B) (halfCfg k d 2 m v a x other) (halfCfg k d 3 m (v + 1) a x other)h4:Relation.TransGen (BoundedEdge B) (halfCfg k d 3 m (v + 1) a x other) (halfCfg k d 0 m (v + 1) a x other)he:(a + 2) / 2 + v = a / 2 + (v + 1)⊢ Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v (a + 2) x other) (halfCfg k d 7 m 0 ((a + 2) / 2 + v) x other) B:ℕk:Fin 3d:ℕm:ℕx:ℕother:ℕhB:5 * d + 18 ≤ Ba:ℕih:∀ (v : ℕ), Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v a x other) (halfCfg k d 7 m 0 (a / 2 + v) x other)a✝:∀ (v : ℕ), Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v (a + 1) x other) (halfCfg k d 7 m 0 ((a + 1) / 2 + v) x other)v:ℕh1:Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v (a + 2) x other) (halfCfg k d 1 m v (a + 1) x other)h2:Relation.TransGen (BoundedEdge B) (halfCfg k d 1 m v (a + 1) x other) (halfCfg k d 2 m v a x other)h3:Relation.TransGen (BoundedEdge B) (halfCfg k d 2 m v a x other) (halfCfg k d 3 m (v + 1) a x other)h4:Relation.TransGen (BoundedEdge B) (halfCfg k d 3 m (v + 1) a x other) (halfCfg k d 0 m (v + 1) a x other)he:(a + 2) / 2 + v = a / 2 + (v + 1)⊢ Relation.TransGen (BoundedEdge B) (halfCfg k d 0 m v (a + 2) x other) (halfCfg k d 7 m 0 (a / 2 + (v + 1)) x other) All goals completed! 🐙theorem bounded_halfj_first (B d m v f x j : Nat) (hB : 5 * d + 18 ≤ B) : Relation.TransGen (BoundedEdge B) ⟨.local d 0,[m,v,f,x,j]⟩ ⟨.local d 7,[m,0,f,x,j/2 + v]⟩ := bounded_half_eval B 0 d m v j x f hBtheorem bounded_halfj_second (B d m v f x j : Nat) (hB : 5 * d + 18 ≤ B) : Relation.TransGen (BoundedEdge B) ⟨.local d 7,[m,v,f,x,j]⟩ ⟨.local d 14,[m,0,f,x,j/2 + v]⟩ := bounded_half_eval B 1 d m v j x f hBtheorem bounded_halff (B d m v f x j : Nat) (hB : 5 * d + 18 ≤ B) : Relation.TransGen (BoundedEdge B) ⟨.local d 14,[m,v,f,x,j]⟩ ⟨.entry (d + 1),[m,0,f/2 + v,x,j]⟩ := bounded_half_eval B 2 d m v f x j hBtheorem entry_frontier_length (d : Nat) : (walked (.entry d)).length + 3 = 5 * d + 10 := d:ℕ⊢ List.length (walked (ControlWord.entry d)) + 3 = 5 * d + 10 All goals completed! 🐙theorem bounded_body (B d f x j : Nat) (hB : 5 * d + 18 ≤ B) : Relation.TransGen (BoundedEdge B) ⟨.entry d,[0,0,f,x,j + 1]⟩ ⟨.entry (d + 1),[0,0,f/2,x,j/4]⟩ := B:ℕd:ℕf:ℕx:ℕj:ℕhB:5 * d + 18 ≤ B⊢ Relation.TransGen (BoundedEdge B) { control := ControlWord.entry d, regs := [0, 0, f, x, j + 1] } { control := ControlWord.entry (d + 1), regs := [0, 0, f / 2, x, j / 4] } B:ℕd:ℕf:ℕx:ℕj:ℕhB:5 * d + 18 ≤ Bhe:Relation.TransGen (BoundedEdge B) { control := ControlWord.entry d, regs := [0, 0, f, x, j + 1] } { control := ControlWord.local d 0, regs := [0, 0, f, x, j] }⊢ Relation.TransGen (BoundedEdge B) { control := ControlWord.entry d, regs := [0, 0, f, x, j + 1] } { control := ControlWord.entry (d + 1), regs := [0, 0, f / 2, x, j / 4] } B:ℕd:ℕf:ℕx:ℕj:ℕhB:5 * d + 18 ≤ Bhe:Relation.TransGen (BoundedEdge B) { control := ControlWord.entry d, regs := [0, 0, f, x, j + 1] } { control := ControlWord.local d 0, regs := [0, 0, f, x, j] }h1:Relation.TransGen (BoundedEdge B) { control := ControlWord.local d 0, regs := [0, 0, f, x, j] } { control := ControlWord.local d 7, regs := [0, 0, f, x, j / 2 + 0] }⊢ Relation.TransGen (BoundedEdge B) { control := ControlWord.entry d, regs := [0, 0, f, x, j + 1] } { control := ControlWord.entry (d + 1), regs := [0, 0, f / 2, x, j / 4] } B:ℕd:ℕf:ℕx:ℕj:ℕhB:5 * d + 18 ≤ Bhe:Relation.TransGen (BoundedEdge B) { control := ControlWord.entry d, regs := [0, 0, f, x, j + 1] } { control := ControlWord.local d 0, regs := [0, 0, f, x, j] }h1:Relation.TransGen (BoundedEdge B) { control := ControlWord.local d 0, regs := [0, 0, f, x, j] } { control := ControlWord.local d 7, regs := [0, 0, f, x, j / 2 + 0] }h2:Relation.TransGen (BoundedEdge B) { control := ControlWord.local d 7, regs := [0, 0, f, x, j / 2] } { control := ControlWord.local d 14, regs := [0, 0, f, x, j / 2 / 2 + 0] }⊢ Relation.TransGen (BoundedEdge B) { control := ControlWord.entry d, regs := [0, 0, f, x, j + 1] } { control := ControlWord.entry (d + 1), regs := [0, 0, f / 2, x, j / 4] } B:ℕd:ℕf:ℕx:ℕj:ℕhB:5 * d + 18 ≤ Bhe:Relation.TransGen (BoundedEdge B) { control := ControlWord.entry d, regs := [0, 0, f, x, j + 1] } { control := ControlWord.local d 0, regs := [0, 0, f, x, j] }h1:Relation.TransGen (BoundedEdge B) { control := ControlWord.local d 0, regs := [0, 0, f, x, j] } { control := ControlWord.local d 7, regs := [0, 0, f, x, j / 2 + 0] }h2:Relation.TransGen (BoundedEdge B) { control := ControlWord.local d 7, regs := [0, 0, f, x, j / 2] } { control := ControlWord.local d 14, regs := [0, 0, f, x, j / 2 / 2 + 0] }h3:Relation.TransGen (BoundedEdge B) { control := ControlWord.local d 14, regs := [0, 0, f, x, j / 2 / 2] } { control := ControlWord.entry (d + 1), regs := [0, 0, f / 2 + 0, x, j / 2 / 2] }⊢ Relation.TransGen (BoundedEdge B) { control := ControlWord.entry d, regs := [0, 0, f, x, j + 1] } { control := ControlWord.entry (d + 1), regs := [0, 0, f / 2, x, j / 4] } B:ℕd:ℕf:ℕx:ℕj:ℕhB:5 * d + 18 ≤ Bhe:Relation.TransGen (BoundedEdge B) { control := ControlWord.entry d, regs := [0, 0, f, x, j + 1] } { control := ControlWord.local d 0, regs := [0, 0, f, x, j] }h1:Relation.TransGen (BoundedEdge B) { control := ControlWord.local d 0, regs := [0, 0, f, x, j] } { control := ControlWord.local d 7, regs := [0, 0, f, x, j / 2] }h2:Relation.TransGen (BoundedEdge B) { control := ControlWord.local d 7, regs := [0, 0, f, x, j / 2] } { control := ControlWord.local d 14, regs := [0, 0, f, x, j / 2 / 2] }h3:Relation.TransGen (BoundedEdge B) { control := ControlWord.local d 14, regs := [0, 0, f, x, j / 2 / 2] } { control := ControlWord.entry (d + 1), regs := [0, 0, f / 2, x, j / 2 / 2] }⊢ Relation.TransGen (BoundedEdge B) { control := ControlWord.entry d, regs := [0, 0, f, x, j + 1] } { control := ControlWord.entry (d + 1), regs := [0, 0, f / 2, x, j / 4] } B:ℕd:ℕf:ℕx:ℕj:ℕhB:5 * d + 18 ≤ Bhe:Relation.TransGen (BoundedEdge B) { control := ControlWord.entry d, regs := [0, 0, f, x, j + 1] } { control := ControlWord.local d 0, regs := [0, 0, f, x, j] }h1:Relation.TransGen (BoundedEdge B) { control := ControlWord.local d 0, regs := [0, 0, f, x, j] } { control := ControlWord.local d 7, regs := [0, 0, f, x, j / 2] }h2:Relation.TransGen (BoundedEdge B) { control := ControlWord.local d 7, regs := [0, 0, f, x, j / 2] } { control := ControlWord.local d 14, regs := [0, 0, f, x, j / 2 / 2] }h3:Relation.TransGen (BoundedEdge B) { control := ControlWord.local d 14, regs := [0, 0, f, x, j / 2 / 2] } { control := ControlWord.entry (d + 1), regs := [0, 0, f / 2, x, j / 2 / 2] }hquarter:j / 2 / 2 = j / 4⊢ Relation.TransGen (BoundedEdge B) { control := ControlWord.entry d, regs := [0, 0, f, x, j + 1] } { control := ControlWord.entry (d + 1), regs := [0, 0, f / 2, x, j / 4] } B:ℕd:ℕf:ℕx:ℕj:ℕhB:5 * d + 18 ≤ Bhe:Relation.TransGen (BoundedEdge B) { control := ControlWord.entry d, regs := [0, 0, f, x, j + 1] } { control := ControlWord.local d 0, regs := [0, 0, f, x, j] }h1:Relation.TransGen (BoundedEdge B) { control := ControlWord.local d 0, regs := [0, 0, f, x, j] } { control := ControlWord.local d 7, regs := [0, 0, f, x, j / 2] }h2:Relation.TransGen (BoundedEdge B) { control := ControlWord.local d 7, regs := [0, 0, f, x, j / 2] } { control := ControlWord.local d 14, regs := [0, 0, f, x, j / 4] }h3:Relation.TransGen (BoundedEdge B) { control := ControlWord.local d 14, regs := [0, 0, f, x, j / 4] } { control := ControlWord.entry (d + 1), regs := [0, 0, f / 2, x, j / 4] }hquarter:j / 2 / 2 = j / 4⊢ Relation.TransGen (BoundedEdge B) { control := ControlWord.entry d, regs := [0, 0, f, x, j + 1] } { control := ControlWord.entry (d + 1), regs := [0, 0, f / 2, x, j / 4] } All goals completed! 🐙theorem bounded_descent (J d x j f : Nat) (hclock : d + quarterClock j ≤ quarterClock J) : Relation.ReflTransGen (BoundedEdge (widthBudget J)) ⟨.entry d,[0,0,f,x,j]⟩ ⟨.entry (d + quarterClock j),[0,0,f/2^quarterClock j,x,0]⟩ := J:ℕd:ℕx:ℕj:ℕf:ℕhclock:d + quarterClock j ≤ quarterClock J⊢ Relation.ReflTransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry d, regs := [0, 0, f, x, j] } { control := ControlWord.entry (d + quarterClock j), regs := [0, 0, f / 2 ^ quarterClock j, x, 0] } induction j using Nat.strong_induction_on generalizing d f with J:ℕx:ℕj:ℕih:∀ m < j, ∀ (d f : ℕ), d + quarterClock m ≤ quarterClock J → Relation.ReflTransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry d, regs := [0, 0, f, x, m] } { control := ControlWord.entry (d + quarterClock m), regs := [0, 0, f / 2 ^ quarterClock m, x, 0] }d:ℕf:ℕhclock:d + quarterClock j ≤ quarterClock J⊢ Relation.ReflTransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry d, regs := [0, 0, f, x, j] } { control := ControlWord.entry (d + quarterClock j), regs := [0, 0, f / 2 ^ quarterClock j, x, 0] } cases j with J:ℕx:ℕd:ℕf:ℕih:∀ m < 0, ∀ (d f : ℕ), d + quarterClock m ≤ quarterClock J → Relation.ReflTransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry d, regs := [0, 0, f, x, m] } { control := ControlWord.entry (d + quarterClock m), regs := [0, 0, f / 2 ^ quarterClock m, x, 0] }hclock:d + quarterClock 0 ≤ quarterClock J⊢ Relation.ReflTransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry d, regs := [0, 0, f, x, 0] } { control := ControlWord.entry (d + quarterClock 0), regs := [0, 0, f / 2 ^ quarterClock 0, x, 0] } J:ℕx:ℕd:ℕf:ℕih:∀ m < 0, ∀ (d f : ℕ), d + quarterClock m ≤ quarterClock J → Relation.ReflTransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry d, regs := [0, 0, f, x, m] } { control := ControlWord.entry (d + quarterClock m), regs := [0, 0, f / 2 ^ quarterClock m, x, 0] }hclock:d + quarterClock 0 ≤ quarterClock J⊢ Relation.ReflTransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry d, regs := [0, 0, f, x, 0] } { control := ControlWord.entry d, regs := [0, 0, f, x, 0] } All goals completed! 🐙 J:ℕx:ℕd:ℕf:ℕj:ℕih:∀ m < j + 1, ∀ (d f : ℕ), d + quarterClock m ≤ quarterClock J → Relation.ReflTransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry d, regs := [0, 0, f, x, m] } { control := ControlWord.entry (d + quarterClock m), regs := [0, 0, f / 2 ^ quarterClock m, x, 0] }hclock:d + quarterClock (j + 1) ≤ quarterClock J⊢ Relation.ReflTransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry d, regs := [0, 0, f, x, j + 1] } { control := ControlWord.entry (d + quarterClock (j + 1)), regs := [0, 0, f / 2 ^ quarterClock (j + 1), x, 0] } J:ℕx:ℕd:ℕf:ℕj:ℕih:∀ m < j + 1, ∀ (d f : ℕ), d + quarterClock m ≤ quarterClock J → Relation.ReflTransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry d, regs := [0, 0, f, x, m] } { control := ControlWord.entry (d + quarterClock m), regs := [0, 0, f / 2 ^ quarterClock m, x, 0] }hclock:d + quarterClock (j + 1) ≤ quarterClock Jhclockj:quarterClock (j + 1) = quarterClock (j / 4) + 1⊢ Relation.ReflTransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry d, regs := [0, 0, f, x, j + 1] } { control := ControlWord.entry (d + quarterClock (j + 1)), regs := [0, 0, f / 2 ^ quarterClock (j + 1), x, 0] } J:ℕx:ℕd:ℕf:ℕj:ℕih:∀ m < j + 1, ∀ (d f : ℕ), d + quarterClock m ≤ quarterClock J → Relation.ReflTransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry d, regs := [0, 0, f, x, m] } { control := ControlWord.entry (d + quarterClock m), regs := [0, 0, f / 2 ^ quarterClock m, x, 0] }hclock:d + quarterClock (j + 1) ≤ quarterClock Jhclockj:quarterClock (j + 1) = quarterClock (j / 4) + 1hB:5 * d + 18 ≤ widthBudget J⊢ Relation.ReflTransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry d, regs := [0, 0, f, x, j + 1] } { control := ControlWord.entry (d + quarterClock (j + 1)), regs := [0, 0, f / 2 ^ quarterClock (j + 1), x, 0] } J:ℕx:ℕd:ℕf:ℕj:ℕih:∀ m < j + 1, ∀ (d f : ℕ), d + quarterClock m ≤ quarterClock J → Relation.ReflTransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry d, regs := [0, 0, f, x, m] } { control := ControlWord.entry (d + quarterClock m), regs := [0, 0, f / 2 ^ quarterClock m, x, 0] }hclock:d + quarterClock (j + 1) ≤ quarterClock Jhclockj:quarterClock (j + 1) = quarterClock (j / 4) + 1hB:5 * d + 18 ≤ widthBudget Jhclock':d + 1 + quarterClock (j / 4) ≤ quarterClock J⊢ Relation.ReflTransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry d, regs := [0, 0, f, x, j + 1] } { control := ControlWord.entry (d + quarterClock (j + 1)), regs := [0, 0, f / 2 ^ quarterClock (j + 1), x, 0] } J:ℕx:ℕd:ℕf:ℕj:ℕih:∀ m < j + 1, ∀ (d f : ℕ), d + quarterClock m ≤ quarterClock J → Relation.ReflTransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry d, regs := [0, 0, f, x, m] } { control := ControlWord.entry (d + quarterClock m), regs := [0, 0, f / 2 ^ quarterClock m, x, 0] }hclock:d + quarterClock (j + 1) ≤ quarterClock Jhclockj:quarterClock (j + 1) = quarterClock (j / 4) + 1hB:5 * d + 18 ≤ widthBudget Jhclock':d + 1 + quarterClock (j / 4) ≤ quarterClock Jhb:Relation.TransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry d, regs := [0, 0, f, x, j + 1] } { control := ControlWord.entry (d + 1), regs := [0, 0, f / 2, x, j / 4] }⊢ Relation.ReflTransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry d, regs := [0, 0, f, x, j + 1] } { control := ControlWord.entry (d + quarterClock (j + 1)), regs := [0, 0, f / 2 ^ quarterClock (j + 1), x, 0] } J:ℕx:ℕd:ℕf:ℕj:ℕih:∀ m < j + 1, ∀ (d f : ℕ), d + quarterClock m ≤ quarterClock J → Relation.ReflTransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry d, regs := [0, 0, f, x, m] } { control := ControlWord.entry (d + quarterClock m), regs := [0, 0, f / 2 ^ quarterClock m, x, 0] }hclock:d + quarterClock (j + 1) ≤ quarterClock Jhclockj:quarterClock (j + 1) = quarterClock (j / 4) + 1hB:5 * d + 18 ≤ widthBudget Jhclock':d + 1 + quarterClock (j / 4) ≤ quarterClock Jhb:Relation.TransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry d, regs := [0, 0, f, x, j + 1] } { control := ControlWord.entry (d + 1), regs := [0, 0, f / 2, x, j / 4] }hi:Relation.ReflTransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry (d + 1), regs := [0, 0, f / 2, x, j / 4] } { control := ControlWord.entry (d + 1 + quarterClock (j / 4)), regs := [0, 0, f / 2 / 2 ^ quarterClock (j / 4), x, 0] }⊢ Relation.ReflTransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry d, regs := [0, 0, f, x, j + 1] } { control := ControlWord.entry (d + quarterClock (j + 1)), regs := [0, 0, f / 2 ^ quarterClock (j + 1), x, 0] } J:ℕx:ℕd:ℕf:ℕj:ℕih:∀ m < j + 1, ∀ (d f : ℕ), d + quarterClock m ≤ quarterClock J → Relation.ReflTransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry d, regs := [0, 0, f, x, m] } { control := ControlWord.entry (d + quarterClock m), regs := [0, 0, f / 2 ^ quarterClock m, x, 0] }hclock:d + quarterClock (j + 1) ≤ quarterClock Jhclockj:quarterClock (j + 1) = quarterClock (j / 4) + 1hB:5 * d + 18 ≤ widthBudget Jhclock':d + 1 + quarterClock (j / 4) ≤ quarterClock Jhb:Relation.TransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry d, regs := [0, 0, f, x, j + 1] } { control := ControlWord.entry (d + 1), regs := [0, 0, f / 2, x, j / 4] }hi:Relation.ReflTransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry (d + 1), regs := [0, 0, f / 2, x, j / 4] } { control := ControlWord.entry (d + 1 + quarterClock (j / 4)), regs := [0, 0, f / 2 / 2 ^ quarterClock (j / 4), x, 0] }hd:d + 1 + quarterClock (j / 4) = d + quarterClock (j + 1)⊢ Relation.ReflTransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry d, regs := [0, 0, f, x, j + 1] } { control := ControlWord.entry (d + quarterClock (j + 1)), regs := [0, 0, f / 2 ^ quarterClock (j + 1), x, 0] } J:ℕx:ℕd:ℕf:ℕj:ℕih:∀ m < j + 1, ∀ (d f : ℕ), d + quarterClock m ≤ quarterClock J → Relation.ReflTransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry d, regs := [0, 0, f, x, m] } { control := ControlWord.entry (d + quarterClock m), regs := [0, 0, f / 2 ^ quarterClock m, x, 0] }hclock:d + quarterClock (j + 1) ≤ quarterClock Jhclockj:quarterClock (j + 1) = quarterClock (j / 4) + 1hB:5 * d + 18 ≤ widthBudget Jhclock':d + 1 + quarterClock (j / 4) ≤ quarterClock Jhb:Relation.TransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry d, regs := [0, 0, f, x, j + 1] } { control := ControlWord.entry (d + 1), regs := [0, 0, f / 2, x, j / 4] }hi:Relation.ReflTransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry (d + 1), regs := [0, 0, f / 2, x, j / 4] } { control := ControlWord.entry (d + 1 + quarterClock (j / 4)), regs := [0, 0, f / 2 / 2 ^ quarterClock (j / 4), x, 0] }hd:d + 1 + quarterClock (j / 4) = d + quarterClock (j + 1)hf:f / 2 / 2 ^ quarterClock (j / 4) = f / 2 ^ quarterClock (j + 1)⊢ Relation.ReflTransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry d, regs := [0, 0, f, x, j + 1] } { control := ControlWord.entry (d + quarterClock (j + 1)), regs := [0, 0, f / 2 ^ quarterClock (j + 1), x, 0] } J:ℕx:ℕd:ℕf:ℕj:ℕih:∀ m < j + 1, ∀ (d f : ℕ), d + quarterClock m ≤ quarterClock J → Relation.ReflTransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry d, regs := [0, 0, f, x, m] } { control := ControlWord.entry (d + quarterClock m), regs := [0, 0, f / 2 ^ quarterClock m, x, 0] }hclock:d + quarterClock (j + 1) ≤ quarterClock Jhclockj:quarterClock (j + 1) = quarterClock (j / 4) + 1hB:5 * d + 18 ≤ widthBudget Jhclock':d + 1 + quarterClock (j / 4) ≤ quarterClock Jhb:Relation.TransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry d, regs := [0, 0, f, x, j + 1] } { control := ControlWord.entry (d + 1), regs := [0, 0, f / 2, x, j / 4] }hi:Relation.ReflTransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry (d + 1), regs := [0, 0, f / 2, x, j / 4] } { control := ControlWord.entry (d + quarterClock (j + 1)), regs := [0, 0, f / 2 ^ quarterClock (j + 1), x, 0] }hd:d + 1 + quarterClock (j / 4) = d + quarterClock (j + 1)hf:f / 2 / 2 ^ quarterClock (j / 4) = f / 2 ^ quarterClock (j + 1)⊢ Relation.ReflTransGen (BoundedEdge (widthBudget J)) { control := ControlWord.entry d, regs := [0, 0, f, x, j + 1] } { control := ControlWord.entry (d + quarterClock (j + 1)), regs := [0, 0, f / 2 ^ quarterClock (j + 1), x, 0] } All goals completed! 🐙end ConjectureMachines.Riemann95.Control