cable_steiner_opt_singleton
For a single cable c whose union is connected, the cable Steiner optimum of [c] is 0.
Statement
theorem cable_steiner_opt_singleton (c : List ((ℚ × ℚ) × (ℚ × ℚ)))
(hc : IsConnected (rat_segments_union c)) : cable_steiner_opt [c] = 0- Source
- Sanity check of cable_steiner_opt: one connected cable needs no added segments.
- Verified
- 23 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 2
- cable_steiner_optFor a list I of cables in the plane, each cable given as a list of segments, a segment being a pair of endpoints each given as a pair (x,…
- rat_segments_unionFor a list S of pairs of rational points of the plane, the subset of EuclideanSpace ℝ (Fin 2) that is the union, over the pairs (a, b) in…
The proof, explained
The Steiner optimum for a list of cables is defined as the infimum of the total lengths of additional segments required to make the union of all cables connected. The proof establishes that this optimum is $0$ for a single cable $c$ that is already connected, using antisymmetry (`le_antisymm`). Because $c$ is connected by assumption, adding the empty set of segments achieves connectivity with length $0$, which bounds the infimum from above by $0$ (`csInf_le`); conversely, every additional segment set has non-negative total length, bounding the infimum from below by $0$ (`le_csInf`).
It suffices to show that $\\operatorname{cable\\_steiner\\_opt}([c]) ≤ 0$ and $0 ≤ \\operatorname{cable\\_steiner\\_opt}([c])$.
By antisymmetry of the partial order on $\\mathbb{R}$ (`le_antisymm`), equality between two real numbers follows from proving that each is less than or equal to the other.
uses
le_antisymmapply le_antisymm$\\operatorname{cable\\_steiner\\_opt}([c]) ≤ 0$
The value $\\operatorname{cable\\_steiner\\_opt}([c])$ is defined as the infimum of total lengths of finite segment sets $T$ whose addition keeps the union connected. By `csInf_le`, the infimum is at most $0$ provided the set of lengths is bounded below and contains $0$. The set is bounded below by $0$ because the length of any segment collection is a sum of distances (`Finset.sum_nonneg`), each of which is non-negative (`dist_nonneg`). In addition, $0$ belongs to the set because choosing the empty set of segments $T = ∅$ has total length $0$ and leaves the union of segments of $c$, which is already connected by hypothesis $hc$.
uses
csInf_le,Finset.sum_nonneg,dist_nonneg· apply csInf_le · refine ⟨0, ?_⟩ rintro L ⟨T, -, rfl⟩ exact Finset.sum_nonneg fun t _ => dist_nonneg · refine ⟨∅, ?_, by simp⟩ simpa using hc
$0 ≤ \\operatorname{cable\\_steiner\\_opt}([c])$
By `le_csInf`, a lower bound for a nonempty set is at most its infimum. The set of admissible lengths is nonempty because $0$ belongs to it (witnessed again by $T = ∅$ and hypothesis $hc$). Moreover, $0$ is a lower bound because every element of the set is a sum of segment distances, which is non-negative by `Finset.sum_nonneg` and `dist_nonneg`.
uses
le_csInf,Finset.sum_nonneg,dist_nonneg· apply le_csInf · exact ⟨0, ∅, by simpa using hc, by simp⟩ · rintro L ⟨T, -, rfl⟩ exact Finset.sum_nonneg fun t _ => dist_nonneg
le_antisymm- Two elements in a partial order are equal if each is less than or equal to the other ($a ≤ b$ and $b ≤ a$ implies $a = b$).
csInf_le- In a conditionally complete lattice, if a set $s$ is bounded below and $a ∈ s$, then $\\inf s ≤ a$.
le_csInf- In a conditionally complete lattice, if a set $s$ is nonempty and $a$ is a lower bound for $s$, then $a ≤ \\inf s$.
Finset.sum_nonneg- A finite sum of non-negative terms in an ordered commutative monoid is non-negative.
dist_nonneg- The distance between any two points in a metric space is non-negative ($0 ≤ \\operatorname{dist}(x, y)$).
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
theorem cable_steiner_opt_singleton (c : List ((ℚ × ℚ) × (ℚ × ℚ))) (hc : IsConnected (rat_segments_union c)) : cable_steiner_opt [c] = 0 := by apply le_antisymm · apply csInf_le · refine ⟨0, ?_⟩ rintro L ⟨T, -, rfl⟩ exact Finset.sum_nonneg fun t _ => dist_nonneg · refine ⟨∅, ?_, by simp⟩ simpa using hc · apply le_csInf · exact ⟨0, ∅, by simpa using hc, by simp⟩ · rintro L ⟨T, -, rfl⟩ exact Finset.sum_nonneg fun t _ => dist_nonneg