Far composition of type trees
Lax185574.FarComposition · concepts/Lax185574/FarComposition.lean · lax-185574
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Lemma
There is an operation ∗ on type trees such that for all k, q ∈ ℕ, partial graphs G and nonempty tuples ā₁, ā₂ with |ā₁ ā₂| ≤ k and dist(ā₁, ā₂) > ρ⁻(k, q),
tree_{k,q}(ā₁) ∗ tree_{k,q}(ā₂) = tree_{k,q}(ā₁ ā₂).
Given τ₁ and τ₂ one can compute τ₁ ∗ τ₂ in time poly_{k,q}(‖τ₁‖ + ‖τ₂‖).
Concept map
Evidence
Each proof establishes this claim relative to its assumptions.
In the paper
- page 44 of this submission's paper
Lean source view on GitHub
| 1 | import Lax185574.TypeTrees |
| 2 | import Lax185574.Algorithms |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Far composition of type trees |
| 7 | type: lemma |
| 8 | --- |
| 9 | There is an operation ∗ on type trees such that for all k, q ∈ ℕ, |
| 10 | partial graphs G and nonempty tuples ā₁, ā₂ with |ā₁ ā₂| ≤ k and |
| 11 | dist(ā₁, ā₂) > ρ⁻(k, q), |
| 12 | |
| 13 | tree_{k,q}(ā₁) ∗ tree_{k,q}(ā₂) = tree_{k,q}(ā₁ ā₂). |
| 14 | |
| 15 | Given τ₁ and τ₂ one can compute τ₁ ∗ τ₂ in time poly_{k,q}(‖τ₁‖ + ‖τ₂‖). |
| 16 | |
| 17 | # Formalization notes |
| 18 | |
| 19 | The paper adapts Lemma 3.1 of its locality note. The operation is given |
| 20 | by one algorithm in the sense of `Lax185574.Algorithms`, for all k and |
| 21 | q, whose input is the pair of the two trees. The size ‖τ‖ is the length |
| 22 | of the encoding of τ, and the time is `O((‖τ₁‖ + ‖τ₂‖ + 1)^a)`, where the |
| 23 | degree `a` and the constant `c` may depend on k and q. |
| 24 | dist(ā₁, ā₂) > r means that no entry of ā₁ is within distance r of an |
| 25 | entry of ā₂. |
| 26 | -/ |
| 27 | |
| 28 | namespace Lax185574.FarComposition |
| 29 | |
| 30 | open Lax185574.Encoding Lax185574.Algorithms |
| 31 | open Lax185574.PartialGraphs Lax185574.GaifmanGraph Lax185574.TypeTrees |
| 32 | open Lax3.DistFO (rhoMinus rhoPlus) |
| 33 | |
| 34 | /-- **Far composition.** One algorithm computes the type tree of the |
| 35 | concatenation of two far tuples from their type trees, in time |
| 36 | polynomial in their sizes. -/ |
| 37 | axiom exists_program_compose : |
| 38 | ∃ A : Algorithm, ∀ k q : ℕ, ∃ c a : ℕ, |
| 39 | ∀ (n : ℕ) (G : PartialGraph (Fin n)) (ℓ₁ ℓ₂ : ℕ) (u₁ : Fin ℓ₁ → Fin n) |
| 40 | (u₂ : Fin ℓ₂ → Fin n), 1 ≤ ℓ₁ → 1 ≤ ℓ₂ → ℓ₁ + ℓ₂ ≤ k → |
| 41 | (∀ i j, ¬ WithinDist G.resolved (rhoMinus k q) (u₁ i) (u₂ j)) → |
| 42 | A.Computes c (tree G k q u₁, tree G k q u₂) (tree G k q (Fin.append u₁ u₂)) |
| 43 | (((encode (tree G k q u₁)).length + (encode (tree G k q u₂)).length + 1) ^ a) |
| 44 | |
| 45 | end Lax185574.FarComposition |
| 46 |
Formalization notes
The paper adapts Lemma 3.1 of its locality note. The operation is given by one algorithm in the sense of , for all k and q, whose input is the pair of the two trees. The size ‖τ‖ is the length of the encoding of τ, and the time is , where the degree and the constant may depend on k and q. dist(ā₁, ā₂) > r means that no entry of ā₁ is within distance r of an entry of ā₂.
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments