Rank shift of type trees
Lax185574.RankShift · concepts/Lax185574/RankShift.lean · lax-185574
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Lemma
There is a polynomial-time algorithm which maps tree_{k,q}(ā) to tree_{k+1,q−1}(ā) for all k ∈ ℕ, q ≥ 1, partial graphs G and nonempty ā ∈ V(G)^{≤k}.
Concept map
Evidence
Each proof establishes this claim relative to its assumptions.
In the paper
- page 43 of this submission's paper
Lean source view on GitHub
| 1 | import Lax185574.TypeTrees |
| 2 | import Lax185574.Algorithms |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Rank shift of type trees |
| 7 | type: lemma |
| 8 | --- |
| 9 | There is a polynomial-time algorithm which maps tree_{k,q}(ā) to |
| 10 | tree_{k+1,q−1}(ā) for all k ∈ ℕ, q ≥ 1, partial graphs G and nonempty |
| 11 | ā ∈ V(G)^{≤k}. |
| 12 | |
| 13 | # Formalization notes |
| 14 | |
| 15 | The algorithm is an algorithm in the sense of `Lax185574.Algorithms`, |
| 16 | one for all k and q. Polynomial time means time `O((N + 1)^a)` on an |
| 17 | input of length `N`, where the degree `a` and the constant `c` may |
| 18 | depend on k and q. The paper says polynomial time, with no subscript, |
| 19 | so this is weaker than a degree independent of k and q. It suffices, |
| 20 | since k and q are fixed in every use. q ≥ 1 is written as q + 1. |
| 21 | -/ |
| 22 | |
| 23 | namespace Lax185574.RankShift |
| 24 | |
| 25 | open Lax185574.Encoding Lax185574.Algorithms |
| 26 | open Lax185574.PartialGraphs Lax185574.TypeTrees |
| 27 | |
| 28 | /-- **Rank shift.** One algorithm computes `tree_{k+1,q}(u)` from |
| 29 | `tree_{k,q+1}(u)` in polynomial time. -/ |
| 30 | axiom exists_program_shift : |
| 31 | ∃ A : Algorithm, ∀ k q : ℕ, ∃ c a : ℕ, |
| 32 | ∀ (n : ℕ) (G : PartialGraph (Fin n)) (ℓ : ℕ) (u : Fin ℓ → Fin n), 1 ≤ ℓ → ℓ ≤ k → |
| 33 | A.Computes c (tree G k (q + 1) u) (tree G (k + 1) q u) |
| 34 | (((encode (tree G k (q + 1) u)).length + 1) ^ a) |
| 35 | |
| 36 | end Lax185574.RankShift |
| 37 |
Formalization notes
The algorithm is an algorithm in the sense of , one for all k and q. Polynomial time means time on an input of length , where the degree and the constant may depend on k and q. The paper says polynomial time, with no subscript, so this is weaker than a degree independent of k and q. It suffices, since k and q are fixed in every use. q ≥ 1 is written as q + 1.
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments