Lax307052.FiniteSearch
Deciding finite reachability
concepts/Lax307052/FiniteSearch.lean · lax-307052
No public endorsements yet.
Loading review…
Sign in with ORCIDConcept map
Evidence
Each proof establishes this claim relative to its assumptions.
Lemma
Recursion depth suffices to decide reachability in a graph with vertices.
Lean source view on GitHub
| 1 | import Lax307052.Recursion |
| 2 | import Lax307052.ShortPaths |
| 3 | import Mathlib.Data.Nat.Log |
| 4 | |
| 5 | /-! |
| 6 | --- |
| 7 | title: Deciding finite reachability |
| 8 | type: lemma |
| 9 | --- |
| 10 | Recursion depth suffices to decide reachability |
| 11 | in a graph with vertices. |
| 12 | -/ |
| 13 | |
| 14 | namespace Lax307052.FiniteSearch |
| 15 | |
| 16 | open Reachability |
| 17 | |
| 18 | axiom decides_reachability {N : ℕ} (G : Graph N) (a b : Fin N) : |
| 19 | search G (Nat.clog 2 N) a b = true ↔ Reachable G a b |
| 20 | |
| 21 | end Lax307052.FiniteSearch |
| 22 |
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