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

Binary constraints for a 22-query verdict

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

    Use the same variables and binary edges for every Boolean verdict on 22 reads. Each gate stores its read bit and a partial disjunction. If the actual read vector is rejected, some edge in its copy fails.

    Concept map
    10 concepts; 2 descendants 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.Hierarchy
    2
    3/-!
    4---
    5title: Binary constraints for a 22-query verdict
    6type: lemma
    7---
    8Use the same variables and binary edges for every Boolean verdict on 22
    9reads. Each gate stores its read bit and a partial disjunction. If the
    10actual read vector is rejected, some edge in its copy fails.
    11-/
    12
    13namespace Lax956329.QueryCircuit
    14
    15open Hierarchy
    16abbrev Pos := Fin 22
    17abbrev Vector := Pos → Bool
    18abbrev Gate := Vector × Pos
    19
    20def readBit (v : Label) := decide (v.val%2 = 1)
    21def flag (v : Label) := decide (v.val/2%2 = 1)
    22def nextPos (j : Pos) : Pos := ⟨(j.val+1)%22,Nat.mod_lt _ (by decide)⟩
    23
    24def compareBit (u : Label) (x : Bool) : Bool := decide (readBit u=x)
    25
    26def chain (verdict : Vector → Bool) (m : Vector) (j : Pos) (u v : Label) : Bool :=
    27 let next := flag u || decide (readBit u ≠ m j)
    28 decide ((j.val=0 → flag u=false) ∧
    29 (j.val+1<22 → flag v=next) ∧ (j.val+1=22 → verdict m=true ∨ next=true))
    30
    31axiom realization (verdict : Vector → Bool) (x : Vector) :
    32 (∃ h : Gate → Label, ∀ m j, compareBit (h (m,j)) (x j) = true ∧
    33 chain verdict m j (h (m,j)) (h (m,nextPos j)) = true) ↔ verdict x = true
    34
    35end Lax956329.QueryCircuit
    36
    Show Proof
    Builds on
    Used by
    From Mathlib

    none

    Discussion

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

    Loading discussion…