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.Stage95
public import Cryptids.ReductionSupport.Riemann95.Bootstrap95The complete physical run and its counterexample criterion
@[expose] public sectionnamespace ConjectureMachines.Riemann95Positive stage progress makes physical runs cofinal in the natural stage index.
theorem physical_stage0_halts_iff_witness :
(StateTransition.eval (ConjectureMachines.step machine)
(Physical.rootCfg 22 [] ([0,0,0,0,0] ++ List.replicate 4 0))).Dom ↔
∃ M : Nat, Riemann120.ShuniaCounterexample (M+2) := ⊢ (StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Dom ↔
∃ M, Riemann120.ShuniaCounterexample (M + 2)
start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)⊢ (StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Dom ↔
∃ M, Riemann120.ShuniaCounterexample (M + 2)
start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)⊢ (StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Dom ↔
∃ M, Riemann120.ShuniaCounterexample (M + 2)
have findBelow : ∀ B : Nat,
(∀ m : Nat, m < B → ¬ Riemann120.ShuniaCounterexample (m+2)) ∨
∃ K : Nat, K < B ∧ Riemann120.ShuniaCounterexample (K+2) ∧
∀ m : Nat, m < K → ¬ Riemann120.ShuniaCounterexample (m+2) := by
intro B start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)B:ℕ⊢ (∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)
induction B with
| zero => zero start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)⊢ (∀ m < 0, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < 0, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2) exact Or.inl (fun _ hm => absurd hm (Nat.not_lt_zero _)) All goals completed! 🐙
| succ B ih => succ start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)B:ℕih:(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)⊢ (∀ m < B + 1, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B + 1, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)
rcases ih with hnone | ⟨K, hKB, hK, hmin⟩ succ.inl start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)B:ℕhnone:∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)⊢ (∀ m < B + 1, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B + 1, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)succ.inr start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)B:ℕK:ℕhKB:K < BhK:Riemann120.ShuniaCounterexample (K + 2)hmin:∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)⊢ (∀ m < B + 1, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B + 1, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)
· succ.inl start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)B:ℕhnone:∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)⊢ (∀ m < B + 1, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B + 1, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2) cases decCE (B+2) with
| isFalse hB => succ.inl.isFalse start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)B:ℕhnone:∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)hB:¬Riemann120.ShuniaCounterexample (B + 2)⊢ (∀ m < B + 1, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B + 1, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)
exact Or.inl (fun m hm => by start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)B:ℕhnone:∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)hB:¬Riemann120.ShuniaCounterexample (B + 2)m:ℕhm:m < B + 1⊢ ¬Riemann120.ShuniaCounterexample (m + 2)
rcases Nat.lt_succ_iff_lt_or_eq.mp hm with hlt | rfl inl start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)B:ℕhnone:∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)hB:¬Riemann120.ShuniaCounterexample (B + 2)m:ℕhm:m < B + 1hlt:m < B⊢ ¬Riemann120.ShuniaCounterexample (m + 2)inr start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)m:ℕhnone:∀ m_1 < m, ¬Riemann120.ShuniaCounterexample (m_1 + 2)hB:¬Riemann120.ShuniaCounterexample (m + 2)hm:m < m + 1⊢ ¬Riemann120.ShuniaCounterexample (m + 2)
· inl start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)B:ℕhnone:∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)hB:¬Riemann120.ShuniaCounterexample (B + 2)m:ℕhm:m < B + 1hlt:m < B⊢ ¬Riemann120.ShuniaCounterexample (m + 2) exact hnone m hlt All goals completed! 🐙
· inr start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)m:ℕhnone:∀ m_1 < m, ¬Riemann120.ShuniaCounterexample (m_1 + 2)hB:¬Riemann120.ShuniaCounterexample (m + 2)hm:m < m + 1⊢ ¬Riemann120.ShuniaCounterexample (m + 2) exact hB All goals completed! 🐙)
| isTrue hB => succ.inl.isTrue start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)B:ℕhnone:∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)hB:Riemann120.ShuniaCounterexample (B + 2)⊢ (∀ m < B + 1, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B + 1, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)
exact Or.inr ⟨B, Nat.lt_succ_self B, hB, hnone⟩ All goals completed! 🐙
· succ.inr start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)B:ℕK:ℕhKB:K < BhK:Riemann120.ShuniaCounterexample (K + 2)hmin:∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)⊢ (∀ m < B + 1, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B + 1, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2) exact Or.inr ⟨K, Nat.lt_succ_of_lt hKB, hK, hmin⟩ start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)⊢ (StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Dom ↔
∃ M, Riemann120.ShuniaCounterexample (M + 2)
have stages : ∀ k : Nat,
(∀ m : Nat, m < k → ¬ Riemann120.ShuniaCounterexample (m+2)) →
∃ P, k+21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra,
nSteps t start = some (Physical.rootCfg P [] ([0,0,0,k,0] ++ extra)) := by
intro k start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)k:ℕ⊢ (∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))
induction k with
| zero => zero start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)⊢ (∀ m < 0, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, 0 + 21 ≤ P ∧ ∃ t, 0 ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, 0, 0] ++ extra))
intro _ zero start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)a✝:∀ m < 0, ¬Riemann120.ShuniaCounterexample (m + 2)⊢ ∃ P, 0 + 21 ≤ P ∧ ∃ t, 0 ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, 0, 0] ++ extra))
exact ⟨22, by start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)a✝:∀ m < 0, ¬Riemann120.ShuniaCounterexample (m + 2)⊢ 0 + 21 ≤ 22 omega All goals completed! 🐙, 0, by start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)a✝:∀ m < 0, ¬Riemann120.ShuniaCounterexample (m + 2)⊢ 0 ≤ 0 omega All goals completed! 🐙, List.replicate 4 0, rfl⟩
| succ k ih => succ start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)k:ℕih:(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))⊢ (∀ m < k + 1, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P,
k + 1 + 21 ≤ P ∧
∃ t, k + 1 ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k + 1, 0] ++ extra))
intro hs succ start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)k:ℕih:(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))hs:∀ m < k + 1, ¬Riemann120.ShuniaCounterexample (m + 2)⊢ ∃ P,
k + 1 + 21 ≤ P ∧
∃ t, k + 1 ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k + 1, 0] ++ extra))
obtain ⟨P, hP, t, ht, extra, heq⟩ := ih (by start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)k:ℕih:(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))hs:∀ m < k + 1, ¬Riemann120.ShuniaCounterexample (m + 2)⊢ ∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)
intro m hmk start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)k:ℕih:(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))hs:∀ m < k + 1, ¬Riemann120.ShuniaCounterexample (m + 2)m:ℕhmk:m < k⊢ ¬Riemann120.ShuniaCounterexample (m + 2)
exact hs m (by start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)k:ℕih:(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))hs:∀ m < k + 1, ¬Riemann120.ShuniaCounterexample (m + 2)m:ℕhmk:m < k⊢ m < k + 1 omega All goals completed! 🐙)) succ start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)k:ℕih:(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))hs:∀ m < k + 1, ¬Riemann120.ShuniaCounterexample (m + 2)P:ℕhP:k + 21 ≤ Pt:ℕht:k ≤ textra:List ℕheq:nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))⊢ ∃ P,
k + 1 + 21 ≤ P ∧
∃ t, k + 1 ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k + 1, 0] ++ extra))
obtain ⟨P', hP', s, hs', extra', hstep⟩ :=
(physical_stage_outcomes k P hP extra).1 (hs k (by start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)k:ℕih:(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))hs:∀ m < k + 1, ¬Riemann120.ShuniaCounterexample (m + 2)P:ℕhP:k + 21 ≤ Pt:ℕht:k ≤ textra:List ℕheq:nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))⊢ k < k + 1 omega All goals completed! 🐙)) succ start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)k:ℕih:(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))hs:∀ m < k + 1, ¬Riemann120.ShuniaCounterexample (m + 2)P:ℕhP:k + 21 ≤ Pt:ℕht:k ≤ textra:List ℕheq:nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))P':ℕhP':P' ≥ P + 1s:ℕhs':s ≥ 1extra':List ℕhstep:nSteps s (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra)) =
some (Physical.rootCfg P' [] ([0, 0, 0, k + 1, 0] ++ extra'))⊢ ∃ P,
k + 1 + 21 ≤ P ∧
∃ t, k + 1 ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k + 1, 0] ++ extra))
refine ⟨P', by start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)k:ℕih:(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))hs:∀ m < k + 1, ¬Riemann120.ShuniaCounterexample (m + 2)P:ℕhP:k + 21 ≤ Pt:ℕht:k ≤ textra:List ℕheq:nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))P':ℕhP':P' ≥ P + 1s:ℕhs':s ≥ 1extra':List ℕhstep:nSteps s (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra)) =
some (Physical.rootCfg P' [] ([0, 0, 0, k + 1, 0] ++ extra'))⊢ k + 1 + 21 ≤ P' omega All goals completed! 🐙, t+s, by start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)k:ℕih:(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))hs:∀ m < k + 1, ¬Riemann120.ShuniaCounterexample (m + 2)P:ℕhP:k + 21 ≤ Pt:ℕht:k ≤ textra:List ℕheq:nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))P':ℕhP':P' ≥ P + 1s:ℕhs':s ≥ 1extra':List ℕhstep:nSteps s (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra)) =
some (Physical.rootCfg P' [] ([0, 0, 0, k + 1, 0] ++ extra'))⊢ k + 1 ≤ t + s omega All goals completed! 🐙, extra', ?_⟩
rw [Dispatch.nSteps_composition, succ start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)k:ℕih:(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))hs:∀ m < k + 1, ¬Riemann120.ShuniaCounterexample (m + 2)P:ℕhP:k + 21 ≤ Pt:ℕht:k ≤ textra:List ℕheq:nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))P':ℕhP':P' ≥ P + 1s:ℕhs':s ≥ 1extra':List ℕhstep:nSteps s (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra)) =
some (Physical.rootCfg P' [] ([0, 0, 0, k + 1, 0] ++ extra'))⊢ (nSteps t start).bind (nSteps s) = some (Physical.rootCfg P' [] ([0, 0, 0, k + 1, 0] ++ extra')) heq succ start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)k:ℕih:(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))hs:∀ m < k + 1, ¬Riemann120.ShuniaCounterexample (m + 2)P:ℕhP:k + 21 ≤ Pt:ℕht:k ≤ textra:List ℕheq:nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))P':ℕhP':P' ≥ P + 1s:ℕhs':s ≥ 1extra':List ℕhstep:nSteps s (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra)) =
some (Physical.rootCfg P' [] ([0, 0, 0, k + 1, 0] ++ extra'))⊢ (some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))).bind (nSteps s) =
some (Physical.rootCfg P' [] ([0, 0, 0, k + 1, 0] ++ extra'))] succ start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)k:ℕih:(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))hs:∀ m < k + 1, ¬Riemann120.ShuniaCounterexample (m + 2)P:ℕhP:k + 21 ≤ Pt:ℕht:k ≤ textra:List ℕheq:nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))P':ℕhP':P' ≥ P + 1s:ℕhs':s ≥ 1extra':List ℕhstep:nSteps s (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra)) =
some (Physical.rootCfg P' [] ([0, 0, 0, k + 1, 0] ++ extra'))⊢ (some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))).bind (nSteps s) =
some (Physical.rootCfg P' [] ([0, 0, 0, k + 1, 0] ++ extra'))
exact hstep start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))⊢ (StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Dom ↔
∃ M, Riemann120.ShuniaCounterexample (M + 2)
have finite : ∀ {a b : ConjectureMachines.Cfg 95 2},
StateTransition.Reaches (ConjectureMachines.step machine) a b →
∃ n, nSteps n a = some b := by
intro a b hab start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))a:Cfg 95 2b:Cfg 95 2hab:StateTransition.Reaches (step machine) a b⊢ ∃ n, nSteps n a = some b
induction hab with
| refl => refl start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))a:Cfg 95 2b:Cfg 95 2⊢ ∃ n, nSteps n a = some a exact ⟨0, rfl⟩ All goals completed! 🐙
| @tail b c hab hbc ih => tail start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))a:Cfg 95 2b✝:Cfg 95 2b:Cfg 95 2c:Cfg 95 2hab:Relation.ReflTransGen (fun a b ↦ b ∈ step machine a) a bhbc:c ∈ step machine bih:∃ n, nSteps n a = some b⊢ ∃ n, nSteps n a = some c
obtain ⟨n, hn⟩ := ih tail start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))a:Cfg 95 2b✝:Cfg 95 2b:Cfg 95 2c:Cfg 95 2hab:Relation.ReflTransGen (fun a b ↦ b ∈ step machine a) a bhbc:c ∈ step machine bn:ℕhn:nSteps n a = some b⊢ ∃ n, nSteps n a = some c
refine ⟨n+1, ?_⟩ tail start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))a:Cfg 95 2b✝:Cfg 95 2b:Cfg 95 2c:Cfg 95 2hab:Relation.ReflTransGen (fun a b ↦ b ∈ step machine a) a bhbc:c ∈ step machine bn:ℕhn:nSteps n a = some b⊢ nSteps (n + 1) a = some c
rw [Dispatch.nSteps_composition, tail start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))a:Cfg 95 2b✝:Cfg 95 2b:Cfg 95 2c:Cfg 95 2hab:Relation.ReflTransGen (fun a b ↦ b ∈ step machine a) a bhbc:c ∈ step machine bn:ℕhn:nSteps n a = some b⊢ (nSteps n a).bind (nSteps 1) = some c hn tail start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))a:Cfg 95 2b✝:Cfg 95 2b:Cfg 95 2c:Cfg 95 2hab:Relation.ReflTransGen (fun a b ↦ b ∈ step machine a) a bhbc:c ∈ step machine bn:ℕhn:nSteps n a = some b⊢ (some b).bind (nSteps 1) = some c] tail start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))a:Cfg 95 2b✝:Cfg 95 2b:Cfg 95 2c:Cfg 95 2hab:Relation.ReflTransGen (fun a b ↦ b ∈ step machine a) a bhbc:c ∈ step machine bn:ℕhn:nSteps n a = some b⊢ (some b).bind (nSteps 1) = some c
change ConjectureMachines.step machine b = some c at hbc tail start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))a:Cfg 95 2b✝:Cfg 95 2b:Cfg 95 2c:Cfg 95 2hab:Relation.ReflTransGen (fun a b ↦ b ∈ step machine a) a bn:ℕhn:nSteps n a = some bhbc:step machine b = some c⊢ (some b).bind (nSteps 1) = some c
change (ConjectureMachines.step machine b).bind (fun x => some x) = some c tail start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))a:Cfg 95 2b✝:Cfg 95 2b:Cfg 95 2c:Cfg 95 2hab:Relation.ReflTransGen (fun a b ↦ b ∈ step machine a) a bn:ℕhn:nSteps n a = some bhbc:step machine b = some c⊢ ((step machine b).bind fun x ↦ some x) = some c
rw [hbc tail start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))a:Cfg 95 2b✝:Cfg 95 2b:Cfg 95 2c:Cfg 95 2hab:Relation.ReflTransGen (fun a b ↦ b ∈ step machine a) a bn:ℕhn:nSteps n a = some bhbc:step machine b = some c⊢ ((some c).bind fun x ↦ some x) = some c] tail start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))a:Cfg 95 2b✝:Cfg 95 2b:Cfg 95 2c:Cfg 95 2hab:Relation.ReflTransGen (fun a b ↦ b ∈ step machine a) a bn:ℕhn:nSteps n a = some bhbc:step machine b = some c⊢ ((some c).bind fun x ↦ some x) = some c
rfl start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some b⊢ (StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Dom ↔
∃ M, Riemann120.ShuniaCounterexample (M + 2)
constructor mp start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some b⊢ (StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Dom →
∃ M, Riemann120.ShuniaCounterexample (M + 2)mpr start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some b⊢ (∃ M, Riemann120.ShuniaCounterexample (M + 2)) →
(StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Dom
· mp start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some b⊢ (StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Dom →
∃ M, Riemann120.ShuniaCounterexample (M + 2) intro h mp start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bh:(StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Dom⊢ ∃ M, Riemann120.ShuniaCounterexample (M + 2)
let b := (StateTransition.eval (ConjectureMachines.step machine) start).get h mp start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bh:(StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Domb:Cfg 95 2 := (StateTransition.eval (step machine) start).get h⊢ ∃ M, Riemann120.ShuniaCounterexample (M + 2)
obtain ⟨hr, hstop⟩ := mem_eval'.mp ⟨h, rfl⟩ mp start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bh:(StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Domb:Cfg 95 2 := (StateTransition.eval (step machine) start).get hhr:StateTransition.Reaches (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))
((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h)hstop:step machine
((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h) =
none⊢ ∃ M, Riemann120.ShuniaCounterexample (M + 2)
obtain ⟨N, hN⟩ := finite hr mp start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bh:(StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Domb:Cfg 95 2 := (StateTransition.eval (step machine) start).get hhr:StateTransition.Reaches (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))
((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h)hstop:step machine
((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h) =
noneN:ℕhN:nSteps N (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)) =
some ((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h)⊢ ∃ M, Riemann120.ShuniaCounterexample (M + 2)
rcases findBelow (N+1) with hsafe | ⟨K, _, hK, _⟩ mp.inl start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bh:(StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Domb:Cfg 95 2 := (StateTransition.eval (step machine) start).get hhr:StateTransition.Reaches (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))
((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h)hstop:step machine
((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h) =
noneN:ℕhN:nSteps N (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)) =
some ((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h)hsafe:∀ m < N + 1, ¬Riemann120.ShuniaCounterexample (m + 2)⊢ ∃ M, Riemann120.ShuniaCounterexample (M + 2)mp.inr start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bh:(StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Domb:Cfg 95 2 := (StateTransition.eval (step machine) start).get hhr:StateTransition.Reaches (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))
((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h)hstop:step machine
((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h) =
noneN:ℕhN:nSteps N (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)) =
some ((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h)K:ℕleft✝:K < N + 1hK:Riemann120.ShuniaCounterexample (K + 2)right✝:∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)⊢ ∃ M, Riemann120.ShuniaCounterexample (M + 2)
· mp.inl start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bh:(StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Domb:Cfg 95 2 := (StateTransition.eval (step machine) start).get hhr:StateTransition.Reaches (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))
((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h)hstop:step machine
((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h) =
noneN:ℕhN:nSteps N (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)) =
some ((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h)hsafe:∀ m < N + 1, ¬Riemann120.ShuniaCounterexample (m + 2)⊢ ∃ M, Riemann120.ShuniaCounterexample (M + 2) obtain ⟨P, hP, t, ht, extra, hLong⟩ := stages (N+1) hsafe mp.inl start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bh:(StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Domb:Cfg 95 2 := (StateTransition.eval (step machine) start).get hhr:StateTransition.Reaches (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))
((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h)hstop:step machine
((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h) =
noneN:ℕhN:nSteps N (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)) =
some ((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h)hsafe:∀ m < N + 1, ¬Riemann120.ShuniaCounterexample (m + 2)P:ℕhP:N + 1 + 21 ≤ Pt:ℕht:N + 1 ≤ textra:List ℕhLong:nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, N + 1, 0] ++ extra))⊢ ∃ M, Riemann120.ShuniaCounterexample (M + 2)
have hadd : t = N + ((t-N-1)+1) := by ⊢ (StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Dom ↔
∃ M, Riemann120.ShuniaCounterexample (M + 2) omega mp.inl start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bh:(StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Domb:Cfg 95 2 := (StateTransition.eval (step machine) start).get hhr:StateTransition.Reaches (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))
((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h)hstop:step machine
((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h) =
noneN:ℕhN:nSteps N (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)) =
some ((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h)hsafe:∀ m < N + 1, ¬Riemann120.ShuniaCounterexample (m + 2)P:ℕhP:N + 1 + 21 ≤ Pt:ℕht:N + 1 ≤ textra:List ℕhLong:nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, N + 1, 0] ++ extra))hadd:t = N + (t - N - 1 + 1)⊢ ∃ M, Riemann120.ShuniaCounterexample (M + 2)
rw [hadd, mp.inl start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bh:(StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Domb:Cfg 95 2 := (StateTransition.eval (step machine) start).get hhr:StateTransition.Reaches (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))
((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h)hstop:step machine
((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h) =
noneN:ℕhN:nSteps N (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)) =
some ((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h)hsafe:∀ m < N + 1, ¬Riemann120.ShuniaCounterexample (m + 2)P:ℕhP:N + 1 + 21 ≤ Pt:ℕht:N + 1 ≤ textra:List ℕhLong:nSteps (N + (t - N - 1 + 1)) start = some (Physical.rootCfg P [] ([0, 0, 0, N + 1, 0] ++ extra))hadd:t = N + (t - N - 1 + 1)⊢ ∃ M, Riemann120.ShuniaCounterexample (M + 2) Dispatch.nSteps_composition, mp.inl start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bh:(StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Domb:Cfg 95 2 := (StateTransition.eval (step machine) start).get hhr:StateTransition.Reaches (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))
((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h)hstop:step machine
((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h) =
noneN:ℕhN:nSteps N (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)) =
some ((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h)hsafe:∀ m < N + 1, ¬Riemann120.ShuniaCounterexample (m + 2)P:ℕhP:N + 1 + 21 ≤ Pt:ℕht:N + 1 ≤ textra:List ℕhLong:(nSteps N start).bind (nSteps (t - N - 1 + 1)) = some (Physical.rootCfg P [] ([0, 0, 0, N + 1, 0] ++ extra))hadd:t = N + (t - N - 1 + 1)⊢ ∃ M, Riemann120.ShuniaCounterexample (M + 2) hN mp.inl start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bh:(StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Domb:Cfg 95 2 := (StateTransition.eval (step machine) start).get hhr:StateTransition.Reaches (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))
((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h)hstop:step machine
((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h) =
noneN:ℕhN:nSteps N (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)) =
some ((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h)hsafe:∀ m < N + 1, ¬Riemann120.ShuniaCounterexample (m + 2)P:ℕhP:N + 1 + 21 ≤ Pt:ℕht:N + 1 ≤ textra:List ℕhLong:(some
((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get
h)).bind
(nSteps (t - N - 1 + 1)) =
some (Physical.rootCfg P [] ([0, 0, 0, N + 1, 0] ++ extra))hadd:t = N + (t - N - 1 + 1)⊢ ∃ M, Riemann120.ShuniaCounterexample (M + 2)] at hLong mp.inl start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bh:(StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Domb:Cfg 95 2 := (StateTransition.eval (step machine) start).get hhr:StateTransition.Reaches (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))
((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h)hstop:step machine
((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h) =
noneN:ℕhN:nSteps N (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)) =
some ((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h)hsafe:∀ m < N + 1, ¬Riemann120.ShuniaCounterexample (m + 2)P:ℕhP:N + 1 + 21 ≤ Pt:ℕht:N + 1 ≤ textra:List ℕhLong:(some
((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get
h)).bind
(nSteps (t - N - 1 + 1)) =
some (Physical.rootCfg P [] ([0, 0, 0, N + 1, 0] ++ extra))hadd:t = N + (t - N - 1 + 1)⊢ ∃ M, Riemann120.ShuniaCounterexample (M + 2)
change (ConjectureMachines.step machine b).bind (nSteps (t-N-1)) =
some (Physical.rootCfg P [] ([0,0,0,N+1,0] ++ extra)) at hLong mp.inl start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bh:(StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Domb:Cfg 95 2 := (StateTransition.eval (step machine) start).get hhr:StateTransition.Reaches (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))
((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h)hstop:step machine
((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h) =
noneN:ℕhN:nSteps N (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)) =
some ((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h)hsafe:∀ m < N + 1, ¬Riemann120.ShuniaCounterexample (m + 2)P:ℕhP:N + 1 + 21 ≤ Pt:ℕht:N + 1 ≤ textra:List ℕhadd:t = N + (t - N - 1 + 1)hLong:(step machine b).bind (nSteps (t - N - 1)) = some (Physical.rootCfg P [] ([0, 0, 0, N + 1, 0] ++ extra))⊢ ∃ M, Riemann120.ShuniaCounterexample (M + 2)
rw [hstop mp.inl start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bh:(StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Domb:Cfg 95 2 := (StateTransition.eval (step machine) start).get hhr:StateTransition.Reaches (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))
((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h)hstop:step machine
((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h) =
noneN:ℕhN:nSteps N (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)) =
some ((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h)hsafe:∀ m < N + 1, ¬Riemann120.ShuniaCounterexample (m + 2)P:ℕhP:N + 1 + 21 ≤ Pt:ℕht:N + 1 ≤ textra:List ℕhadd:t = N + (t - N - 1 + 1)hLong:none.bind (nSteps (t - N - 1)) = some (Physical.rootCfg P [] ([0, 0, 0, N + 1, 0] ++ extra))⊢ ∃ M, Riemann120.ShuniaCounterexample (M + 2)] at hLong mp.inl start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bh:(StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Domb:Cfg 95 2 := (StateTransition.eval (step machine) start).get hhr:StateTransition.Reaches (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))
((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h)hstop:step machine
((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h) =
noneN:ℕhN:nSteps N (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)) =
some ((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h)hsafe:∀ m < N + 1, ¬Riemann120.ShuniaCounterexample (m + 2)P:ℕhP:N + 1 + 21 ≤ Pt:ℕht:N + 1 ≤ textra:List ℕhadd:t = N + (t - N - 1 + 1)hLong:none.bind (nSteps (t - N - 1)) = some (Physical.rootCfg P [] ([0, 0, 0, N + 1, 0] ++ extra))⊢ ∃ M, Riemann120.ShuniaCounterexample (M + 2)
cases hLong All goals completed! 🐙
· mp.inr start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bh:(StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Domb:Cfg 95 2 := (StateTransition.eval (step machine) start).get hhr:StateTransition.Reaches (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))
((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h)hstop:step machine
((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h) =
noneN:ℕhN:nSteps N (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)) =
some ((StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).get h)K:ℕleft✝:K < N + 1hK:Riemann120.ShuniaCounterexample (K + 2)right✝:∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)⊢ ∃ M, Riemann120.ShuniaCounterexample (M + 2) exact ⟨K, hK⟩ All goals completed! 🐙
· mpr start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some b⊢ (∃ M, Riemann120.ShuniaCounterexample (M + 2)) →
(StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Dom rintro ⟨M, hM⟩ mpr start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bM:ℕhM:Riemann120.ShuniaCounterexample (M + 2)⊢ (StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Dom
rcases findBelow (M+1) with hsafe | ⟨K, _, hK, hmin⟩ mpr.inl start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bM:ℕhM:Riemann120.ShuniaCounterexample (M + 2)hsafe:∀ m < M + 1, ¬Riemann120.ShuniaCounterexample (m + 2)⊢ (StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Dommpr.inr start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bM:ℕhM:Riemann120.ShuniaCounterexample (M + 2)K:ℕleft✝:K < M + 1hK:Riemann120.ShuniaCounterexample (K + 2)hmin:∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)⊢ (StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Dom
· mpr.inl start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bM:ℕhM:Riemann120.ShuniaCounterexample (M + 2)hsafe:∀ m < M + 1, ¬Riemann120.ShuniaCounterexample (m + 2)⊢ (StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Dom exact False.elim (hsafe M (Nat.lt_succ_self M) hM) All goals completed! 🐙
· mpr.inr start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bM:ℕhM:Riemann120.ShuniaCounterexample (M + 2)K:ℕleft✝:K < M + 1hK:Riemann120.ShuniaCounterexample (K + 2)hmin:∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)⊢ (StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Dom obtain ⟨P, hP, t, ht, extra, hstage⟩ := stages K hmin mpr.inr start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bM:ℕhM:Riemann120.ShuniaCounterexample (M + 2)K:ℕleft✝:K < M + 1hK:Riemann120.ShuniaCounterexample (K + 2)hmin:∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)P:ℕhP:K + 21 ≤ Pt:ℕht:K ≤ textra:List ℕhstage:nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, K, 0] ++ extra))⊢ (StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Dom
obtain ⟨s, c, hsteps, hstop⟩ := (physical_stage_outcomes K P hP extra).2 hK mpr.inr start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bM:ℕhM:Riemann120.ShuniaCounterexample (M + 2)K:ℕleft✝:K < M + 1hK:Riemann120.ShuniaCounterexample (K + 2)hmin:∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)P:ℕhP:K + 21 ≤ Pt:ℕht:K ≤ textra:List ℕhstage:nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, K, 0] ++ extra))s:ℕc:Cfg 95 2hsteps:nSteps s (Physical.rootCfg P [] ([0, 0, 0, K, 0] ++ extra)) = some chstop:step machine c = none⊢ (StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Dom
have hrun : nSteps (t+s) start = some c := by ⊢ (StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Dom ↔
∃ M, Riemann120.ShuniaCounterexample (M + 2)
rw [Dispatch.nSteps_composition, start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bM:ℕhM:Riemann120.ShuniaCounterexample (M + 2)K:ℕleft✝:K < M + 1hK:Riemann120.ShuniaCounterexample (K + 2)hmin:∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)P:ℕhP:K + 21 ≤ Pt:ℕht:K ≤ textra:List ℕhstage:nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, K, 0] ++ extra))s:ℕc:Cfg 95 2hsteps:nSteps s (Physical.rootCfg P [] ([0, 0, 0, K, 0] ++ extra)) = some chstop:step machine c = none⊢ (nSteps t start).bind (nSteps s) = some c hstage start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bM:ℕhM:Riemann120.ShuniaCounterexample (M + 2)K:ℕleft✝:K < M + 1hK:Riemann120.ShuniaCounterexample (K + 2)hmin:∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)P:ℕhP:K + 21 ≤ Pt:ℕht:K ≤ textra:List ℕhstage:nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, K, 0] ++ extra))s:ℕc:Cfg 95 2hsteps:nSteps s (Physical.rootCfg P [] ([0, 0, 0, K, 0] ++ extra)) = some chstop:step machine c = none⊢ (some (Physical.rootCfg P [] ([0, 0, 0, K, 0] ++ extra))).bind (nSteps s) = some c] start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bM:ℕhM:Riemann120.ShuniaCounterexample (M + 2)K:ℕleft✝:K < M + 1hK:Riemann120.ShuniaCounterexample (K + 2)hmin:∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)P:ℕhP:K + 21 ≤ Pt:ℕht:K ≤ textra:List ℕhstage:nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, K, 0] ++ extra))s:ℕc:Cfg 95 2hsteps:nSteps s (Physical.rootCfg P [] ([0, 0, 0, K, 0] ++ extra)) = some chstop:step machine c = none⊢ (some (Physical.rootCfg P [] ([0, 0, 0, K, 0] ++ extra))).bind (nSteps s) = some c
exact hsteps mpr.inr start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bM:ℕhM:Riemann120.ShuniaCounterexample (M + 2)K:ℕleft✝:K < M + 1hK:Riemann120.ShuniaCounterexample (K + 2)hmin:∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)P:ℕhP:K + 21 ≤ Pt:ℕht:K ≤ textra:List ℕhstage:nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, K, 0] ++ extra))s:ℕc:Cfg 95 2hsteps:nSteps s (Physical.rootCfg P [] ([0, 0, 0, K, 0] ++ extra)) = some chstop:step machine c = nonehrun:nSteps (t + s) start = some c⊢ (StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Dom
have hr : StateTransition.Reaches (ConjectureMachines.step machine) start c := by ⊢ (StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Dom ↔
∃ M, Riemann120.ShuniaCounterexample (M + 2)
apply ConjectureMachines.Zf380.nSteps_reaches h start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bM:ℕhM:Riemann120.ShuniaCounterexample (M + 2)K:ℕleft✝:K < M + 1hK:Riemann120.ShuniaCounterexample (K + 2)hmin:∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)P:ℕhP:K + 21 ≤ Pt:ℕht:K ≤ textra:List ℕhstage:nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, K, 0] ++ extra))s:ℕc:Cfg 95 2hsteps:nSteps s (Physical.rootCfg P [] ([0, 0, 0, K, 0] ++ extra)) = some chstop:step machine c = nonehrun:nSteps (t + s) start = some c⊢ Zf380.nSteps machine ?n start = some cn start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bM:ℕhM:Riemann120.ShuniaCounterexample (M + 2)K:ℕleft✝:K < M + 1hK:Riemann120.ShuniaCounterexample (K + 2)hmin:∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)P:ℕhP:K + 21 ≤ Pt:ℕht:K ≤ textra:List ℕhstage:nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, K, 0] ++ extra))s:ℕc:Cfg 95 2hsteps:nSteps s (Physical.rootCfg P [] ([0, 0, 0, K, 0] ++ extra)) = some chstop:step machine c = nonehrun:nSteps (t + s) start = some c⊢ ℕ
rw [← BootCertificate.nSteps_eq h start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bM:ℕhM:Riemann120.ShuniaCounterexample (M + 2)K:ℕleft✝:K < M + 1hK:Riemann120.ShuniaCounterexample (K + 2)hmin:∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)P:ℕhP:K + 21 ≤ Pt:ℕht:K ≤ textra:List ℕhstage:nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, K, 0] ++ extra))s:ℕc:Cfg 95 2hsteps:nSteps s (Physical.rootCfg P [] ([0, 0, 0, K, 0] ++ extra)) = some chstop:step machine c = nonehrun:nSteps (t + s) start = some c⊢ nSteps ?h.n start = some ch.n start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bM:ℕhM:Riemann120.ShuniaCounterexample (M + 2)K:ℕleft✝:K < M + 1hK:Riemann120.ShuniaCounterexample (K + 2)hmin:∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)P:ℕhP:K + 21 ≤ Pt:ℕht:K ≤ textra:List ℕhstage:nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, K, 0] ++ extra))s:ℕc:Cfg 95 2hsteps:nSteps s (Physical.rootCfg P [] ([0, 0, 0, K, 0] ++ extra)) = some chstop:step machine c = nonehrun:nSteps (t + s) start = some c⊢ ℕ] h start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bM:ℕhM:Riemann120.ShuniaCounterexample (M + 2)K:ℕleft✝:K < M + 1hK:Riemann120.ShuniaCounterexample (K + 2)hmin:∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)P:ℕhP:K + 21 ≤ Pt:ℕht:K ≤ textra:List ℕhstage:nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, K, 0] ++ extra))s:ℕc:Cfg 95 2hsteps:nSteps s (Physical.rootCfg P [] ([0, 0, 0, K, 0] ++ extra)) = some chstop:step machine c = nonehrun:nSteps (t + s) start = some c⊢ nSteps ?h.n start = some ch.n start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bM:ℕhM:Riemann120.ShuniaCounterexample (M + 2)K:ℕleft✝:K < M + 1hK:Riemann120.ShuniaCounterexample (K + 2)hmin:∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)P:ℕhP:K + 21 ≤ Pt:ℕht:K ≤ textra:List ℕhstage:nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, K, 0] ++ extra))s:ℕc:Cfg 95 2hsteps:nSteps s (Physical.rootCfg P [] ([0, 0, 0, K, 0] ++ extra)) = some chstop:step machine c = nonehrun:nSteps (t + s) start = some c⊢ ℕ
exact hrun mpr.inr start:Cfg 95 2 := Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0)decCE:(n : ℕ) → Decidable (Riemann120.ShuniaCounterexample n)findBelow:∀ (B : ℕ),
(∀ m < B, ¬Riemann120.ShuniaCounterexample (m + 2)) ∨
∃ K < B, Riemann120.ShuniaCounterexample (K + 2) ∧ ∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)stages:∀ (k : ℕ),
(∀ m < k, ¬Riemann120.ShuniaCounterexample (m + 2)) →
∃ P, k + 21 ≤ P ∧ ∃ t, k ≤ t ∧ ∃ extra, nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, k, 0] ++ extra))finite:∀ {a b : Cfg 95 2}, StateTransition.Reaches (step machine) a b → ∃ n, nSteps n a = some bM:ℕhM:Riemann120.ShuniaCounterexample (M + 2)K:ℕleft✝:K < M + 1hK:Riemann120.ShuniaCounterexample (K + 2)hmin:∀ m < K, ¬Riemann120.ShuniaCounterexample (m + 2)P:ℕhP:K + 21 ≤ Pt:ℕht:K ≤ textra:List ℕhstage:nSteps t start = some (Physical.rootCfg P [] ([0, 0, 0, K, 0] ++ extra))s:ℕc:Cfg 95 2hsteps:nSteps s (Physical.rootCfg P [] ([0, 0, 0, K, 0] ++ extra)) = some chstop:step machine c = nonehrun:nSteps (t + s) start = some chr:StateTransition.Reaches (step machine) start c⊢ (StateTransition.eval (step machine) (Physical.rootCfg 22 [] ([0, 0, 0, 0, 0] ++ List.replicate 4 0))).Dom
exact (mem_eval'.mpr ⟨hr, hstop⟩).1 All goals completed! 🐙The stage-zero test is safe, so counterexamples occur at positive stage indices.
theorem counterexample_iff_positive_stage :
(∃ M : Nat, Riemann120.ShuniaCounterexample (M + 2)) ↔
∃ M : Nat, 1 ≤ M ∧ Riemann120.ShuniaCounterexample (M + 2) := by ⊢ (∃ M, Riemann120.ShuniaCounterexample (M + 2)) ↔ ∃ M, 1 ≤ M ∧ Riemann120.ShuniaCounterexample (M + 2)
have htwo : ¬ Riemann120.ShuniaCounterexample 2 :=
Riemann104.FiniteStage.earlier_stages_safe (M := 1) (by ⊢ 1 ≤ 1 decide All goals completed! 🐙)
(j := 0) (by ⊢ 0 < 1 decide All goals completed! 🐙) htwo:¬Riemann120.ShuniaCounterexample 2⊢ (∃ M, Riemann120.ShuniaCounterexample (M + 2)) ↔ ∃ M, 1 ≤ M ∧ Riemann120.ShuniaCounterexample (M + 2)
constructor mp htwo:¬Riemann120.ShuniaCounterexample 2⊢ (∃ M, Riemann120.ShuniaCounterexample (M + 2)) → ∃ M, 1 ≤ M ∧ Riemann120.ShuniaCounterexample (M + 2)mpr htwo:¬Riemann120.ShuniaCounterexample 2⊢ (∃ M, 1 ≤ M ∧ Riemann120.ShuniaCounterexample (M + 2)) → ∃ M, Riemann120.ShuniaCounterexample (M + 2)
· mp htwo:¬Riemann120.ShuniaCounterexample 2⊢ (∃ M, Riemann120.ShuniaCounterexample (M + 2)) → ∃ M, 1 ≤ M ∧ Riemann120.ShuniaCounterexample (M + 2) rintro ⟨M, hM⟩ mp htwo:¬Riemann120.ShuniaCounterexample 2M:ℕhM:Riemann120.ShuniaCounterexample (M + 2)⊢ ∃ M, 1 ≤ M ∧ Riemann120.ShuniaCounterexample (M + 2)
rcases M with _ | M mp.zero htwo:¬Riemann120.ShuniaCounterexample 2hM:Riemann120.ShuniaCounterexample (0 + 2)⊢ ∃ M, 1 ≤ M ∧ Riemann120.ShuniaCounterexample (M + 2)mp.succ htwo:¬Riemann120.ShuniaCounterexample 2M:ℕhM:Riemann120.ShuniaCounterexample (M + 1 + 2)⊢ ∃ M, 1 ≤ M ∧ Riemann120.ShuniaCounterexample (M + 2)
· mp.zero htwo:¬Riemann120.ShuniaCounterexample 2hM:Riemann120.ShuniaCounterexample (0 + 2)⊢ ∃ M, 1 ≤ M ∧ Riemann120.ShuniaCounterexample (M + 2) exact False.elim (htwo hM) All goals completed! 🐙
· mp.succ htwo:¬Riemann120.ShuniaCounterexample 2M:ℕhM:Riemann120.ShuniaCounterexample (M + 1 + 2)⊢ ∃ M, 1 ≤ M ∧ Riemann120.ShuniaCounterexample (M + 2) exact ⟨M + 1, by htwo:¬Riemann120.ShuniaCounterexample 2M:ℕhM:Riemann120.ShuniaCounterexample (M + 1 + 2)⊢ 1 ≤ M + 1 omega All goals completed! 🐙, hM⟩
· mpr htwo:¬Riemann120.ShuniaCounterexample 2⊢ (∃ M, 1 ≤ M ∧ Riemann120.ShuniaCounterexample (M + 2)) → ∃ M, Riemann120.ShuniaCounterexample (M + 2) rintro ⟨M, _, hM⟩ mpr htwo:¬Riemann120.ShuniaCounterexample 2M:ℕleft✝:1 ≤ MhM:Riemann120.ShuniaCounterexample (M + 2)⊢ ∃ M, Riemann120.ShuniaCounterexample (M + 2)
exact ⟨M, hM⟩ All goals completed! 🐙end ConjectureMachines.Riemann95