Lemma 2.5 — each (V, E_i) output by FOREST is a maximal spanning forest in G − E_1 ∪ ⋯ ∪ E_{i−1}
ProvedNagamochiIbaraki.EdgeConn.lemma_2_5Let be a finite multigraph without self-loops and with , and let be the classes obtained by Procedure FOREST upon completion (for any choices at lines 5 and 6). Then for every ,
that is, is a forest contained in , and adding to it any other edge of that set creates a cycle. For the removed union is empty and is a maximal spanning forest of itself.
Lemma 2.5 says that the single scan of FOREST produces exactly the sequence of forests required by Lemma 2.1; combined with Lemma 2.1 it gives inequality (2.1) for the output of FOREST.
Formalization Note The classes are those of the final state of a completed run. The ground set is written as the set of edges whose final index does not lie in ; at this is all of .
import Mathlib import Definitions.Def_NagamochiIbaraki_EdgeConn_Multigraph import Definitions.Def_NagamochiIbaraki_EdgeConn_localEdgeConn import Definitions.Def_NagamochiIbaraki_EdgeConn_Forest
namespace NagamochiIbaraki.EdgeConn
theorem lemma_2_5
{V E : Type*} [Fintype V] [DecidableEq V] [Fintype E] [DecidableEq E]
(hV : 2 ≤ Fintype.card V)
(ends : E → Sym2 V) (hloop : ∀ e, ¬ (ends e).IsDiag)
(σ : ℕ → State V E) (K : ℕ) (hrun : IsCompletedRun ends σ K) :
∀ i : ℕ, 1 ≤ i → i ≤ Fintype.card E →
IsMaxSpanningForest ends
(Finset.univ.filter (fun e => ¬ (1 ≤ (σ K).idx e ∧ (σ K).idx e ≤ i - 1)))
(cls (σ K) i) := by sorry
end NagamochiIbaraki.EdgeConn
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let be a finite node set with and a finite edge set, both with decidable equality. Let assign unordered end pairs, with no loops; parallel edges are allowed.
States and steps. A state has labels , edge classes , a scanned-node set , an optional current node and a list. The initial state has , , , no current node and the empty list. A step is one of:
- select: there is no current node, and has maximal among unscanned nodes. Then becomes current and is appended to the list.
- scan: the current node is , and has and . Then , , and is incremented if .
- finish: the current node is , and all edges containing have nonzero class. Then joins and there is no current node.
Completed run. is initial, there is a step from to for each , and . Write and .
Claim. For every with , let
the edges whose final class is or at least . Then is a maximal spanning forest of , meaning all three of the following hold:
- ;
- is a forest: for each with , the nodes and are not connected by a path in the simple graph on whose adjacencies come from the other edges of ;
- for each , the set is not a forest in this sense.
Degenerate cases:
- For , the condition is impossible, so .
- If is empty, the claim is vacuous.
- cannot occur, because when .
- Classes are not covered.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.