ComparatorChallenges/RegularParity.lean

GitHub source file

Explanation legend Lean4 Domain Explanation Language (L4DEL)

L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.

L4DEL
Lean4 Domain Explanation Language

Credit: OpenAI's pinned repository says an unreleased internal model produced the manuscripts and supporting proof artifacts. The collection builds on the mathematics community's accumulated problems, results, language, and formal libraries; each manuscript's BibTeX and bibliography are the authority for individual scholarly credit.

Project sources: Pinned openai/math documentation, Pinned formalization catalogue

16 declarations, 1 contain sorry, 0 declared as axioms

  1. abbrev OAI.QAC.Bit line 10

    Also declared: ComparatorChallenges/QACParity.lean:10 (same declaration text), OAI/InformationTheory/QuantumCircuit/Model.lean:10 (same declaration text).

  2. abbrev OAI.QAC.Word line 11

    Also declared: ComparatorChallenges/QACParity.lean:11 (same declaration text), OAI/InformationTheory/QuantumCircuit/Model.lean:11 (same declaration text).

  3. abbrev OAI.QAC.Operator line 12

    Also declared: ComparatorChallenges/QACParity.lean:12 (same declaration text), OAI/InformationTheory/QuantumCircuit/Model.lean:12 (same declaration text).

  4. abbrev OAI.QAC.QubitOperator line 13

    Also declared: ComparatorChallenges/QACParity.lean:13 (same declaration text), OAI/InformationTheory/QuantumCircuit/Model.lean:13 (same declaration text).

  5. def OAI.QAC.tensorMatrix Tensor product in the computational basis line 16

    Source documentation

    Tensor product in the computational basis.

    L4DEL explanation

    Tensor product in the computational basis.

    1. This explanation is a condensed rendering of the declaration's own doc comment at the pinned source commit; consult the exact Lean statement below for authority.

    Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)

    Also declared: ComparatorChallenges/QACParity.lean:16 (same declaration text), OAI/InformationTheory/QuantumCircuit/Model.lean:16 (same declaration text).

    def tensorMatrix {N : ℕ} (a : Fin N → QubitOperator) : Operator N :=
    …

    Mentions: OAI.QAC.QubitOperator, OAI.QAC.Operator

  6. inductive OAI.QAC.Gate A one-qubit unitary or an unbounded-arity Toffoli gate line 20

    Source documentation

    A one-qubit unitary or an unbounded-arity Toffoli gate.

    L4DEL explanation

    A one-qubit unitary or an unbounded-arity Toffoli gate.

    1. This explanation is a condensed rendering of the declaration's own doc comment at the pinned source commit; consult the exact Lean statement below for authority.

    Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)

    Also declared: ComparatorChallenges/QACParity.lean:20 (same declaration text), OAI/InformationTheory/QuantumCircuit/Model.lean:20 (same declaration text).

    inductive Gate (N : ℕ) where
    …
  7. def OAI.QAC.Gate.support line 26

    Also declared: ComparatorChallenges/QACParity.lean:26 (same declaration text), OAI/InformationTheory/QuantumCircuit/Model.lean:26 (same declaration text).

  8. def OAI.QAC.Gate.toffoliWord A Toffoli flips its target iff all controls are one line 31

    Source documentation

    A Toffoli flips its target iff all controls are one.

    L4DEL explanation

    A Toffoli flips its target iff all controls are one.

    1. This explanation is a condensed rendering of the declaration's own doc comment at the pinned source commit; consult the exact Lean statement below for authority.

    Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)

    Also declared: ComparatorChallenges/QACParity.lean:31 (same declaration text), OAI/InformationTheory/QuantumCircuit/Model.lean:31 (same declaration text).

    def toffoliWord {N : ℕ} (c : Finset (Fin N)) (t : Fin N) (x : Word N) : Word N :=
    …

    Mentions: OAI.QAC.Word

  9. def OAI.QAC.Gate.matrix line 34

    Also declared: ComparatorChallenges/QACParity.lean:34 (same declaration text), OAI/InformationTheory/QuantumCircuit/Model.lean:34 (same declaration text).

  10. structure OAI.QAC.PhysicalLayer line 40

    Also declared: ComparatorChallenges/QACParity.lean:40 (same declaration text), OAI/InformationTheory/QuantumCircuit/Model.lean:40 (same declaration text).

  11. def OAI.QAC.physicalLayerMatrix line 44

    Also declared: ComparatorChallenges/QACParity.lean:44 (same declaration text), OAI/InformationTheory/QuantumCircuit/Model.lean:44 (same declaration text).

  12. def OAI.QAC.physicalCircuitMatrix Chronological order: the rightmost matrix acts first line 48

    Source documentation

    Chronological order: the rightmost matrix acts first.

    L4DEL explanation

    Chronological order: the rightmost matrix acts first.

    1. This explanation is a condensed rendering of the declaration's own doc comment at the pinned source commit; consult the exact Lean statement below for authority.

    Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)

    Also declared: ComparatorChallenges/QACParity.lean:48 (same declaration text), OAI/InformationTheory/QuantumCircuit/Model.lean:48 (same declaration text).

    def physicalCircuitMatrix {N : ℕ} (layers : List (PhysicalLayer N)) : Operator N :=
    …

    Mentions: OAI.QAC.PhysicalLayer, OAI.QAC.Operator

  13. def OAI.QAC.inputWord The computational-basis input with the remaining qubits initialized to zero line 52

    Source documentation

    The computational-basis input with the remaining qubits initialized to zero.

    L4DEL explanation

    The computational-basis input with the remaining qubits initialized to zero.

    1. This explanation is a condensed rendering of the declaration's own doc comment at the pinned source commit; consult the exact Lean statement below for authority.

    Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)

    Also declared: ComparatorChallenges/QACParity.lean:52 (same declaration text), OAI/InformationTheory/QuantumCircuit/Model.lean:52 (same declaration text).

    def inputWord {n N : ℕ} (x : Word n) : Word N :=
    …

    Mentions: OAI.QAC.Word

  14. def OAI.QAC.parity line 55

    Also declared: ComparatorChallenges/QACParity.lean:55 (same declaration text), OAI/InformationTheory/QuantumCircuit/Model.lean:55 (same declaration text).

  15. def OAI.QAC.successProbability Born probability, summing all final garbage with no cleanliness assumption line 58

    Source documentation

    Born probability, summing all final garbage with no cleanliness assumption.

    L4DEL explanation

    Born probability, summing all final garbage with no cleanliness assumption.

    1. This explanation is a condensed rendering of the declaration's own doc comment at the pinned source commit; consult the exact Lean statement below for authority.

    Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)

    Also declared: ComparatorChallenges/QACParity.lean:58 (same declaration text), OAI/InformationTheory/QuantumCircuit/Model.lean:58 (same declaration text).

    def successProbability {n N : ℕ} (W : Operator N) (out : Fin N) (x : Word n) : ℝ :=
    …

    Mentions: OAI.QAC.Operator, OAI.QAC.Word

  16. theorem OAI.QAC.parity_lower_bound_polynomial_size Challenge statement: Polynomial-size parity specialization sorry line 63

    Source documentation

    Fixed-depth circuits with polynomially many total qubits cannot compute parity with worst-case success at least two thirds.

    L4DEL explanation

    Fixed-depth circuits with polynomially many total qubits cannot compute parity with worst-case success at least two thirds.

    1. This explanation is a condensed rendering of this declaration's own doc comment at the pinned source commit.
    2. The linked formalization note covers 2 distinct comparator results, so its combined Scope prose is not copied onto this declaration.
    3. The repository's comparator configuration selects OAI.InformationTheory.QuantumCircuit.Main as the released solution module checked against this declaration.

    Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)

    Distinct definitions of this name: OAI/InformationTheory/QuantumCircuit/Main.lean:12 (same statement text; different proof or body). Qualify references as OAI.QAC.parity_lower_bound_polynomial_size@path.

    theorem parity_lower_bound_polynomial_size (d k C : ℕ)
        (_hd : 0 < d) (_hk : 0 < k) (_hC : 0 < C) :
        ∃ n₀ : ℕ, ∀ n ≥ n₀, ∀ N : ℕ, n ≤ N → N ≤ C * (n + 1) ^ k →
          ∀ layers : List (PhysicalLayer N), layers.length ≤ d →
            ∀ out : Fin N, ∃ x : Word n,
              successProbability (physicalCircuitMatrix layers) out x < (2 : ℝ) / 3 := by
    …

    Mentions: OAI.QAC.PhysicalLayer, OAI.QAC.Word, OAI.QAC.successProbability, OAI.QAC.physicalCircuitMatrix