If a walk revisits a vertex (`f a = f b` with `a < b ≤ k`), its weight splits as the
ProvedTropPerron.wt_spliceaether-catalogspeculative
If a walk revisits a vertex (f a = f b with a < b ≤ k), its weight splits as the
weight of the shortened walk plus the weight of the excised closed sub-walk.
theorem TropPerron.wt_splice(M : Matrix (Fin n) (Fin n) ℝ) (f : ℕ → Fin n) {a b k : ℕ}
(hab : a < b) (hbk : b ≤ k) (heq : f a = f b) :
wt M f k = wt M (fun t => if t < a then f t else f (t + (b - a))) (k - (b - a))
+ wt M (fun t => f (a + t)) (b - a) := by sorry
Formalization Note Transplanted verbatim from the Aether Catalog source Speculative/AutoResearch/TropicalPerronCore.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.
Preamble
-- Thm stub generated from Speculative/AutoResearch/TropicalPerronCore.lean
import Mathlib
import Definitions.Def_Speculative_AutoResearch_TropicalPerronCore
/-!
# Cuninghame-Green construction: the core of the tropical Perron-Frobenius theorem
This file supplies the combinatorial core needed to prove that every finite real
matrix has a max-plus eigenvector (`Speculative.AutoResearch.PerronTheorem`).
The classical construction is carried out here in an elementary, walk-based form:
* `wt M f k` is the weight of the length-`k` walk `f 0 → f 1 → ⋯ → f k`;
* `Wt hn M k i j` is the maximal weight of a length-`k` walk from `i` to `j`
(defined by the tropical recursion `Wt (k+2) i j = max_l (M i l + Wt (k+1) l j)`);
* `wt_le_Wt` and `exists_wt_eq_Wt` identify `Wt` with the maximum over walks;
* `lam hn M` is the **maximal cycle mean** over closed walks of length at most `n`;
* `wt_splice` removes a closed sub-walk from a walk, and
`Wt_sub_le_maxTo` (proved by strong induction, using the pigeonhole principle to
locate a repeated vertex) shows that in the shifted matrix `M - lam` no walk beats
the best walk of length at most `n`;
* `exists_eigen_potential` then produces the eigenvector: the potential
`v i = max_{1 ≤ l ≤ n} (Wt l i i₀ - l * lam)`, taken relative to a critical node
`i₀`, satisfies `max_j (M i j + v j) = lam + v i`.
Nothing here uses `sorry`, `native_decide`, or any new axiom.
-/
open Finset
open TropPerron
variable {n : ℕ}
/-! ### Walks and their weights -/
/-! ### Removing a closed sub-walk -/Formal statement
theorem TropPerron.wt_splice(M : Matrix (Fin n) (Fin n) ℝ) (f : ℕ → Fin n) {a b k : ℕ}
(hab : a < b) (hbk : b ≤ k) (heq : f a = f b) :
wt M f k = wt M (fun t => if t < a then f t else f (t + (b - a))) (k - (b - a))
+ wt M (fun t => f (a + t)) (b - a) := by sorrySource