ComparatorChallenges/MatchingFPRAS.lean
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
- structure
OAI.MatchingFPRAS.GraphInputEach unordered edge is represented once, by increasing endpoints line 8Source documentation
Each unordered edge is represented once, by increasing endpoints.
L4DEL explanation
Each unordered edge is represented once, by increasing endpoints.
- 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 …
- def
OAI.MatchingFPRAS.PerfectExactly one selected edge is incident to every vertex line 14Source documentation
Exactly one selected edge is incident to every vertex.
L4DEL explanation
Exactly one selected edge is incident to every vertex.
- 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
- def
OAI.MatchingFPRAS.perfectMatchingsline 17Also declared: OAI/Combinatorics/MatchingCount/Model.lean:17 (same declaration text).
- def
OAI.MatchingFPRAS.ZThe exact unweighted count, including the empty graph line 23Source documentation
The exact unweighted count, including the empty graph.
L4DEL explanation
The exact unweighted count, including the empty graph.
- 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
- abbrev
OAI.MatchingFPRAS.Symbolline 25Also declared: ComparatorChallenges/ContingencyTables.lean:7 (same declaration text), OAI/Combinatorics/MatchingCount/Model.lean:25 (same declaration text).
- def
OAI.MatchingFPRAS.encodeNatBinary numeral followed by a delimiter line 28Source 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.
- 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
- def
OAI.MatchingFPRAS.encodeIntline 31Also declared: ComparatorChallenges/ContingencyTables.lean:13 (same declaration text), OAI/Combinatorics/MatchingCount/Model.lean:31 (same declaration text).
- def
OAI.MatchingFPRAS.encodeRatA rational encoded by its reduced numerator and positive denominator line 35Source documentation
A rational encoded by its reduced numerator and positive denominator.
L4DEL explanation
A rational encoded by its reduced numerator and positive denominator.
- 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
- def
OAI.MatchingFPRAS.encodeInputExplicit sparse graph encoding, then the two rational parameters line 38Source documentation
Explicit sparse graph encoding, then the two rational parameters.
L4DEL explanation
Explicit sparse graph encoding, then the two rational parameters.
- 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
- structure
OAI.MatchingFPRAS.RandomMachineA uniform randomized Post-Turing machine: a single finite transition table line 45Source 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.
- 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 …
- structure
OAI.MatchingFPRAS.Configurationline 50Also declared: ComparatorChallenges/ContingencyTables.lean:25 (same declaration text), OAI/Combinatorics/MatchingCount/Model.lean:50 (same declaration text).
- def
OAI.MatchingFPRAS.tickA halted configuration is absorbing line 56Source 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.
- 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
- def
OAI.MatchingFPRAS.initialline 66Also declared: ComparatorChallenges/ContingencyTables.lean:41 (same declaration text), OAI/Combinatorics/MatchingCount/Model.lean:66 (same declaration text).
- def
OAI.MatchingFPRAS.runBounded execution on a finite prefix of the random tape line 70Source documentation
Bounded execution on a finite prefix of the random tape.
L4DEL explanation
Bounded execution on a finite prefix of the random tape.
- 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
- def
OAI.MatchingFPRAS.Outputsline 74Also declared: ComparatorChallenges/ContingencyTables.lean:49 (same declaration text), OAI/Combinatorics/MatchingCount/Model.lean:74 (same declaration text).
- def
OAI.MatchingFPRAS.timeBoundA fixed-degree polynomial in input bits, ε⁻¹, and log δ⁻¹ line 81Source 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.
- 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
- def
OAI.MatchingFPRAS.goodTapesline 84Also declared: OAI/Combinatorics/MatchingCount/Model.lean:84 (same declaration text).
- def
OAI.MatchingFPRAS.MainStatementA uniform approximation scheme using independent fair bits line 94Source 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.
- 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 := …
- theorem
OAI.MatchingFPRAS.thm_mainChallenge statement: Randomized approximation of the perfect-matching count sorry line 105Source 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.
- This explanation is a condensed rendering of this declaration's own doc comment at the pinned source commit.
- The linked formalization note covers 6 distinct comparator results, so its combined Scope prose is not copied onto this declaration.
- 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