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

Composing the powered tests on a uniform incidence pattern

Lax956329.TestComposition · concepts/Lax956329/TestComposition.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

    Each variable in a binary test has a fixed type and belongs to the owner reached by a fixed port word. The number of tests per powered edge is constant. Soundness loses a factor independent of the powered alphabet.

    Concept map
    17 concepts; 1 descendant hidden
    100%
    Proven claimDefinitionThis conceptRelated conceptA → B: B builds on A
    Evidence

    Each proof establishes this claim relative to its assumptions.

    Lean source view on GitHub

    1import Lax956329.UniversalTester
    2import Lax956329.QueryCircuit
    3import Lax956329.WalkPower
    4
    5/-!
    6---
    7title: Composing the powered tests on a uniform incidence pattern
    8type: lemma
    9---
    10Each variable in a binary test has a fixed type and belongs to the owner
    11reached by a fixed port word. The number of tests per powered edge is
    12constant. Soundness loses a factor independent of the powered alphabet.
    13-/
    14
    15namespace Lax956329.TestComposition
    16
    17open Hierarchy OccurrenceLayout
    18
    19structure Network where
    20 Var : Type
    21 Edge : Type
    22 vars : Fintype Var
    23 edges : Fintype Edge
    24 positive : Nonempty Edge
    25 var : Edge → Bool → Var
    26 route : Edge → Bool → List Port
    27
    28attribute [instance] Network.vars Network.edges Network.positive
    29
    30def Network.read {b : ℕ} (N : Network) (S : System b) (τ : N.Var → Owner S.m → Label)
    31 (e : N.Edge) (k : Bool) (x : Owner S.m) := τ (N.var e k) (walk S (N.route e k) x)
    32
    33def Network.failed {b : ℕ} (N : Network) (S : System b) (test : N.Edge → Owner S.m → Label → Label → Bool)
    34 (τ : N.Var → Owner S.m → Label) := ∑ x : Owner S.m, ∑ e : N.Edge,
    35 if test e x (N.read S τ e false x) (N.read S τ e true x) = false then 1 else 0
    36
    37/-- There are two checks for every pair of a 22-bit pattern and a read position. -/
    38abbrev CheckIndex := QueryCircuit.Gate × Bool
    39
    40noncomputable def cost := Fintype.card CheckIndex
    41
    42axiom reduction {a d : ℕ} (ha : 0<a) (hd : 0<d) (word : Fin d → List Port) :
    43 ∃ N : Network, ∃ coins : ℕ, 0 < coins ∧ Fintype.card N.Edge = d*coins*cost ∧
    44 ∀ {b : ℕ} (S : System b) (p : Fin d → Owner S.m → Fin a → Fin a → Bool),
    45 ∃ test : N.Edge → Owner S.m → Label → Label → Bool,
    46 ((∃ σ : Owner S.m → Fin a, ∀ i x, p i x (σ x) (σ (walk S (word i) x))=true) →
    47 ∃ τ, ∀ e x, test e x (N.read S τ e false x) (N.read S τ e true x)=true) ∧
    48 ∀ τ, ∃ σ, coins*WalkPower.bad S word p σ ≤ 32*N.failed S test τ
    49
    50end Lax956329.TestComposition
    51
    Show Proof

    Discussion

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

    Loading discussion…