proven
No public endorsements yet.
Loading review…
Sign in with ORCIDConcept map
Lemma
If one vertex reaches another in a graph with vertices, a walk of length less than suffices.
Lean source view on GitHub
| 1 | import Lax307052.Reachability |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Short paths in a finite graph |
| 6 | type: lemma |
| 7 | --- |
| 8 | If one vertex reaches another in a graph with vertices, a walk of |
| 9 | length less than suffices. |
| 10 | -/ |
| 11 | |
| 12 | namespace Lax307052.ShortPaths |
| 13 | |
| 14 | open Reachability |
| 15 | |
| 16 | axiom short_path {N : ℕ} (G : Graph N) (a b : Fin N) : |
| 17 | Reachable G a b ↔ ∃ k < N, Walk (fun u v => G u v = true) k a b |
| 18 | |
| 19 | end Lax307052.ShortPaths |
| 20 |
Community review
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above; your ORCID profile must share a public name.
0 comments