A uniform distance bound for the assignment tester
Lax956329.TesterDistance · concepts/Lax956329/TesterDistance.lean · lax-956329
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Lemma
Encode the labels and the relation in three blocks of the same length , with relative code distance at least . If nearest-codeword decoding of the first two blocks gives a rejected pair, the received triple is at Hamming distance at least from every accepting triple. Its relative distance is at least , independent of the walk length.
Concept map
Lean source view on GitHub
| 1 | import Mathlib.InformationTheory.Hamming |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: A uniform distance bound for the assignment tester |
| 6 | type: lemma |
| 7 | --- |
| 8 | Encode the labels and the relation in three blocks of the same length , |
| 9 | with relative code distance at least . If nearest-codeword decoding of the |
| 10 | first two blocks gives a rejected pair, the received triple is at Hamming |
| 11 | distance at least from every accepting triple. Its relative distance |
| 12 | is at least , independent of the walk length. |
| 13 | -/ |
| 14 | |
| 15 | namespace Lax956329.TesterDistance |
| 16 | |
| 17 | abbrev Block (l : ℕ) := Fin l → Bool |
| 18 | |
| 19 | def Separated {A : Type} {l : ℕ} (code : A → Block l) : Prop := |
| 20 | ∀ a b, a ≠ b → l ≤ 2 * hammingDist (code a) (code b) |
| 21 | |
| 22 | def Nearest {A : Type} {l : ℕ} (code : A → Block l) (x : Block l) (a : A) : Prop := |
| 23 | ∀ b, hammingDist x (code a) ≤ hammingDist x (code b) |
| 24 | |
| 25 | axiom distance {A R : Type} {l : ℕ} (labels : A → Block l) (relations : R → Block l) |
| 26 | (accepts : R → A → A → Prop) (hl : Separated labels) (hr : Separated relations) |
| 27 | (x y : Block l) {a b u v : A} {r s : R} (hx : Nearest labels x a) |
| 28 | (hy : Nearest labels y b) (reject : ¬ accepts r a b) (pass : accepts s u v) : |
| 29 | 3*l ≤ 12*(hammingDist x (labels u) + hammingDist y (labels v) + |
| 30 | hammingDist (relations r) (relations s)) |
| 31 | |
| 32 | end Lax956329.TesterDistance |
| 33 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments