Lax307052.Recursion
Correctness of recursive reachability
concepts/Lax307052/Recursion.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
At recursion depth , the search accepts exactly the vertex pairs joined by a walk of length at most .
Lean source view on GitHub
| 1 | import Lax307052.SplitWalk |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Correctness of recursive reachability |
| 6 | type: lemma |
| 7 | --- |
| 8 | At recursion depth , the search accepts exactly the vertex pairs |
| 9 | joined by a walk of length at most . |
| 10 | -/ |
| 11 | |
| 12 | namespace Lax307052.Recursion |
| 13 | |
| 14 | open Reachability |
| 15 | |
| 16 | axiom search_correct {N : ℕ} (G : Graph N) (k : ℕ) (a b : Fin N) : |
| 17 | search G k a b = true ↔ Within (fun u v => G u v = true) (2 ^ k) a b |
| 18 | |
| 19 | end Lax307052.Recursion |
| 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