ComparatorChallenges/MatchingFPRAS.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

19 declarations, 1 contain sorry, 0 declared as axioms

  1. structure OAI.MatchingFPRAS.GraphInput Each unordered edge is represented once, by increasing endpoints line 8

    Source documentation

    Each unordered edge is represented once, by increasing endpoints.

    L4DEL explanation

    Each unordered edge is represented once, by increasing endpoints.

    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: OAI/Combinatorics/MatchingCount/Model.lean:8 (same declaration text).

    structure GraphInput where
    …
  2. def OAI.MatchingFPRAS.Perfect Exactly one selected edge is incident to every vertex line 14

    Source documentation

    Exactly one selected edge is incident to every vertex.

    L4DEL explanation

    Exactly one selected edge is incident to every vertex.

    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: OAI/Combinatorics/MatchingCount/Model.lean:14 (same declaration text).

    def Perfect (G : GraphInput) (M : Finset (Fin G.n × Fin G.n)) : Prop :=
    …

    Mentions: OAI.MatchingFPRAS.GraphInput

  3. def OAI.MatchingFPRAS.perfectMatchings line 17

    Also declared: OAI/Combinatorics/MatchingCount/Model.lean:17 (same declaration text).

  4. def OAI.MatchingFPRAS.Z The exact unweighted count, including the empty graph line 23

    Source documentation

    The exact unweighted count, including the empty graph.

    L4DEL explanation

    The exact unweighted count, including the empty graph.

    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: OAI/Combinatorics/MatchingCount/Model.lean:23 (same declaration text).

    noncomputable def Z (G : GraphInput) : ℕ := (perfectMatchings G).card

    Mentions: OAI.MatchingFPRAS.GraphInput, OAI.MatchingFPRAS.perfectMatchings

  5. abbrev OAI.MatchingFPRAS.Symbol line 25

    Also declared: ComparatorChallenges/ContingencyTables.lean:7 (same declaration text), OAI/Combinatorics/MatchingCount/Model.lean:25 (same declaration text).

  6. def OAI.MatchingFPRAS.encodeNat Binary numeral followed by a delimiter line 28

    Source documentation

    Binary numeral followed by a delimiter. Tape blank is 0; bits use 1 and 2.

    L4DEL explanation

    Binary numeral followed by a delimiter. Tape blank is 0; bits use 1 and 2.

    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/ContingencyTables.lean:10 (same declaration text), OAI/Combinatorics/MatchingCount/Model.lean:28 (same declaration text).

    def encodeNat (n : ℕ) : List Symbol :=
    …

    Mentions: OAI.MatchingFPRAS.Symbol

  7. def OAI.MatchingFPRAS.encodeInt line 31

    Also declared: ComparatorChallenges/ContingencyTables.lean:13 (same declaration text), OAI/Combinatorics/MatchingCount/Model.lean:31 (same declaration text).

  8. def OAI.MatchingFPRAS.encodeRat A rational encoded by its reduced numerator and positive denominator line 35

    Source documentation

    A rational encoded by its reduced numerator and positive denominator.

    L4DEL explanation

    A rational encoded by its reduced numerator and positive denominator.

    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/ContingencyTables.lean:17 (same declaration text), OAI/Combinatorics/MatchingCount/Model.lean:35 (same declaration text).

    def encodeRat (q : ℚ) : List Symbol := encodeInt q.num ++ encodeNat q.den

    Mentions: OAI.MatchingFPRAS.Symbol, OAI.MatchingFPRAS.encodeInt, OAI.MatchingFPRAS.encodeNat

  9. def OAI.MatchingFPRAS.encodeInput Explicit sparse graph encoding, then the two rational parameters line 38

    Source documentation

    Explicit sparse graph encoding, then the two rational parameters.

    L4DEL explanation

    Explicit sparse graph encoding, then the two rational parameters.

    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: OAI/Combinatorics/MatchingCount/Model.lean:38 (same declaration text).

    def encodeInput (G : GraphInput) (ε δ : ℚ) : List Symbol :=
    …

    Mentions: OAI.MatchingFPRAS.GraphInput, OAI.MatchingFPRAS.Symbol

  10. structure OAI.MatchingFPRAS.RandomMachine A uniform randomized Post-Turing machine: a single finite transition table line 45

    Source documentation

    A uniform randomized Post-Turing machine: a single finite transition table.

    L4DEL explanation

    A uniform randomized Post-Turing machine: a single finite transition table.

    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/ContingencyTables.lean:20 (same declaration text), OAI/Combinatorics/MatchingCount/Model.lean:45 (same declaration text).

    structure RandomMachine where
    …
  11. structure OAI.MatchingFPRAS.Configuration line 50

    Also declared: ComparatorChallenges/ContingencyTables.lean:25 (same declaration text), OAI/Combinatorics/MatchingCount/Model.lean:50 (same declaration text).

  12. def OAI.MatchingFPRAS.tick A halted configuration is absorbing line 56

    Source documentation

    A halted configuration is absorbing. Each nonhalting tick is exactly one write or one move, or the detection of halt.

    L4DEL explanation

    A halted configuration is absorbing. Each nonhalting tick is exactly one write or one move, or the detection of halt.

    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/ContingencyTables.lean:31 (same declaration text), OAI/Combinatorics/MatchingCount/Model.lean:56 (same declaration text).

    def tick (A : RandomMachine) (c : Configuration A) (bit : Bool) : Configuration A :=
    …

    Mentions: OAI.MatchingFPRAS.RandomMachine, OAI.MatchingFPRAS.Configuration

  13. def OAI.MatchingFPRAS.initial line 66

    Also declared: ComparatorChallenges/ContingencyTables.lean:41 (same declaration text), OAI/Combinatorics/MatchingCount/Model.lean:66 (same declaration text).

  14. def OAI.MatchingFPRAS.run Bounded execution on a finite prefix of the random tape line 70

    Source documentation

    Bounded execution on a finite prefix of the random tape.

    L4DEL explanation

    Bounded execution on a finite prefix of the random tape.

    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/ContingencyTables.lean:45 (same declaration text), OAI/Combinatorics/MatchingCount/Model.lean:70 (same declaration text).

    def run (A : RandomMachine) (input : List Symbol) {t : ℕ}
        (bits : Fin t → Bool) : Configuration A :=
    …

    Mentions: OAI.MatchingFPRAS.RandomMachine, OAI.MatchingFPRAS.Symbol, OAI.MatchingFPRAS.Configuration

  15. def OAI.MatchingFPRAS.Outputs line 74

    Also declared: ComparatorChallenges/ContingencyTables.lean:49 (same declaration text), OAI/Combinatorics/MatchingCount/Model.lean:74 (same declaration text).

  16. def OAI.MatchingFPRAS.timeBound A fixed-degree polynomial in input bits, ε⁻¹, and log δ⁻¹ line 81

    Source documentation

    A fixed-degree polynomial in input bits, ε⁻¹, and log δ⁻¹. Natural ceilings and binary ceiling-log change this bound only by constants.

    L4DEL explanation

    A fixed-degree polynomial in input bits, ε⁻¹, and log δ⁻¹. Natural ceilings and binary ceiling-log change this bound only by constants.

    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: OAI/Combinatorics/MatchingCount/Model.lean:81 (same declaration text).

    def timeBound (C d : ℕ) (G : GraphInput) (ε δ : ℚ) : ℕ :=
    …

    Mentions: OAI.MatchingFPRAS.GraphInput

  17. def OAI.MatchingFPRAS.goodTapes line 84

    Also declared: OAI/Combinatorics/MatchingCount/Model.lean:84 (same declaration text).

  18. def OAI.MatchingFPRAS.MainStatement A uniform approximation scheme using independent fair bits line 94

    Source documentation

    A uniform approximation scheme using independent fair bits. All tapes halt within the fixed polynomial bound and return a nonnegative rational. A zero count always produces encoded zero.

    L4DEL explanation

    A uniform approximation scheme using independent fair bits. All tapes halt within the fixed polynomial bound and return a nonnegative rational. A zero count always produces encoded 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: OAI/Combinatorics/MatchingCount/Model.lean:94 (same declaration text).

    def MainStatement : Prop :=
    …
  19. theorem OAI.MatchingFPRAS.thm_main Challenge statement: Randomized approximation of the perfect-matching count sorry line 105

    Source documentation

    A fully polynomial randomized approximation scheme for perfect matchings in every finite simple undirected graph.

    L4DEL explanation

    A fully polynomial randomized approximation scheme for perfect matchings in every finite simple undirected graph.

    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 6 distinct comparator results, so its combined Scope prose is not copied onto this declaration.
    3. The repository's comparator configuration selects OAI.Combinatorics.MatchingCount.Main as the released solution module checked against this declaration.

    Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)

    Distinct definitions of this name: OAI/Combinatorics/MatchingCount/Main.lean:21 (same statement text; different proof or body). Qualify references as OAI.MatchingFPRAS.thm_main@path.

    theorem thm_main : MainStatement := by
    …

    Mentions: OAI.MatchingFPRAS.MainStatement