Kruskal.reach_of_mem
theoremverifiedimported Lean
Endpoints of a listed edge are reachable. Let $\mathit{edges}$ be a list of weighted edges on $n$ vertices, and let $e$ be a weighted edge belonging to $\mathit{edges}$. Then the endpoints $u$ and $v$ of $e$ satisfy $\mathtt{Reach}\,\mathit{edges}\,u\,v$; that is, they are connected by a path through $\mathit{edges}$.
Statement
set_option relaxedAutoImplicit false in set_option autoImplicit false in lemma Kruskal.reach_of_mem {n : ℕ} {edges : List (WEdge n)} {e : WEdge n} (he : e ∈ edges) : Reach edges e.u e.v
- Source
- TCSlib, `Kruskal.reach_of_mem`
- Lean proof
- By [Your Name], [Partner's Name (if applicable)], from github.com/Shilun-Allan-Li/tcslib at
c8a02591b1e5(Copyright (c) 2026 [Your Name] and [Partner's Name (if applicable)]. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.25.0.Kruskal.reach_of_mem← Kruskal.reach_of_mem (TCSlib/GraphTheory/Kruskal/Reach.lean:65): verbatim
- Verified
- 07 Oct 2026
- Axioms
- none — Lean reports it depends on no axioms
- Built on 2
- Kruskal.WEdgeA weighted edge over $n$ vertices is a structure with two endpoints $u, v : \mathrm{Fin}\,n$ and a natural-number weight…
- Kruskal.Reach$\mathtt{Reach}\,\mathit{edges}$ is the reflexive--transitive closure of $\mathtt{SymAdj}\,\mathit{edges}$; that is,…
- Used by 3
- Kruskal.exchange_take_headHead-edge exchange preserves reachability. Let $\mathit{base}$ and $\mathit{rest}$ be lists of weighted edges on $n$ vertices, and let $g$…
- Kruskal.exchange_with_baseBase-relative exchange of an edge in Kruskal's algorithm. Let $\mathit{base}$ and $S$ be lists of weighted edges on $n$ vertices, and let…
- Kruskal.reach_cons_iffHead–tail decomposition of reachability. Let $g$ be a weighted edge on $n$ vertices with endpoints $p$ and $q$, let $\mathit{rest}$ be a…
Lean source view module on GitHub
set_option relaxedAutoImplicit false in set_option autoImplicit false in lemma Kruskal.reach_of_mem {n : ℕ} {edges : List (WEdge n)} {e : WEdge n} (he : e ∈ edges) : Reach edges e.u e.v := Relation.ReflTransGen.single ⟨e, he, Or.inl ⟨rfl, rfl⟩⟩