While this submission is a draft, it cannot be used by other submissions.

A uniform distance bound for the assignment tester

Lax956329.TesterDistance · concepts/Lax956329/TesterDistance.lean · lax-956329

proven

Loading review…

Sign in with ORCID

Community review

Flags

Each flag is tied to a public ORCID identity and explains why this concept may be incorrect.

No flags have been submitted.

    Community review

    Flag this concept

    State precisely what appears incorrect. This explanation will be public under your ORCID name.

    No source line selected.

    Natural Language Statement

    Lemma

    Encode the labels and the relation in three blocks of the same length ℓ\ell, with relative code distance at least 1/21/2. If nearest-codeword decoding of the first two blocks gives a rejected pair, the received triple is at Hamming distance at least ℓ/4\ell/4 from every accepting triple. Its relative distance is at least 1/121/12, independent of the walk length.

    Concept map
    1 concept; 3 descendants hidden
    100%
    Proven claimThis conceptRelated conceptA → B: B builds on A
    Evidence

    Each proof establishes this claim relative to its assumptions.

    Lean source view on GitHub

    1import Mathlib.InformationTheory.Hamming
    2
    3/-!
    4---
    5title: A uniform distance bound for the assignment tester
    6type: lemma
    7---
    8Encode the labels and the relation in three blocks of the same length ℓ\ell,
    9with relative code distance at least 1/21/2. If nearest-codeword decoding of the
    10first two blocks gives a rejected pair, the received triple is at Hamming
    11distance at least ℓ/4\ell/4 from every accepting triple. Its relative distance
    12is at least 1/121/12, independent of the walk length.
    13-/
    14
    15namespace Lax956329.TesterDistance
    16
    17abbrev Block (l : ℕ) := Fin l → Bool
    18
    19def Separated {A : Type} {l : ℕ} (code : A → Block l) : Prop :=
    20 ∀ a b, a ≠ b → l ≤ 2 * hammingDist (code a) (code b)
    21
    22def 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
    25axiom 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
    32end Lax956329.TesterDistance
    33
    Show Proof

    Discussion

    Ask a question or add context. Endorsements and structured flags are kept in the review panel above.

    Loading discussion…