ComparatorChallenges/BinaryMatching.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
15 declarations, 1 contain sorry, 0 declared as axioms
- structure
OAI.MatchingEntropy.LooplessGraphline 9Distinct definitions of this name: ComparatorChallenges/MatchingEntropy.lean:15 (different declaration text), ComparatorChallenges/SingletonLoopMatching.lean:8 (same declaration text), OAI/Combinatorics/PerfectMatching/Model.lean:8 (same declaration text). Qualify references as OAI.MatchingEntropy.LooplessGraph@path.
- def
OAI.MatchingEntropy.LooplessGraph.Incidentline 17Distinct definitions of this name: ComparatorChallenges/MatchingEntropy.lean:24 (same statement text; different proof or body), ComparatorChallenges/SingletonLoopMatching.lean:14 (same declaration text), OAI/Combinatorics/PerfectMatching/Model.lean:14 (same declaration text). Qualify references as OAI.MatchingEntropy.LooplessGraph.Incident@path.
- def
OAI.MatchingEntropy.LooplessGraph.IsPerfectMatchingline 19Distinct definitions of this name: ComparatorChallenges/MatchingEntropy.lean:27 (same statement text; different proof or body), OAI/Combinatorics/PerfectMatching/Model.lean:16 (same declaration text). Qualify references as OAI.MatchingEntropy.LooplessGraph.IsPerfectMatching@path.
- abbrev
OAI.MatchingEntropy.LooplessGraph.Matchingline 21Also declared: ComparatorChallenges/MatchingEntropy.lean:30 (same declaration text), OAI/Combinatorics/PerfectMatching/Model.lean:18 (same declaration text).
- instance
OAI.MatchingEntropy.LooplessGraph.matchingFintypeline 22Distinct definitions of this name: ComparatorChallenges/MatchingEntropy.lean:32 (different declaration text), OAI/Combinatorics/PerfectMatching/Model.lean:19 (same declaration text). Qualify references as OAI.MatchingEntropy.LooplessGraph.matchingFintype@path.
- abbrev
OAI.BinaryMatching.Pairline 31Also declared: ComparatorChallenges/SingletonLoopMatching.lean:20 (same declaration text), OAI/Combinatorics/PerfectMatching/Model.lean:25 (same declaration text).
- def
OAI.BinaryMatching.completeGraphline 32Also declared: ComparatorChallenges/SingletonLoopMatching.lean:21 (same declaration text), OAI/Combinatorics/PerfectMatching/Model.lean:26 (same declaration text).
- structure
OAI.BinaryMatching.Recordline 37Also declared: ComparatorChallenges/SingletonLoopMatching.lean:26 (same declaration text), OAI/Combinatorics/PerfectMatching/Model.lean:31 (same declaration text).
- structure
OAI.BinaryMatching.Inputline 43Also declared: ComparatorChallenges/SingletonLoopMatching.lean:32 (same declaration text), OAI/Combinatorics/PerfectMatching/Model.lean:37 (same declaration text).
- def
OAI.BinaryMatching.multiplicityline 49Also declared: ComparatorChallenges/SingletonLoopMatching.lean:38 (same declaration text), OAI/Combinatorics/PerfectMatching/Model.lean:43 (same declaration text).
- def
OAI.BinaryMatching.countline 54Also declared: OAI/Combinatorics/PerfectMatching/Model.lean:48 (same declaration text).
- def
OAI.BinaryMatching.encodeNatline 57Also declared: ComparatorChallenges/SingletonLoopMatching.lean:44 (same declaration text), OAI/Combinatorics/PerfectMatching/Model.lean:51 (same declaration text).
- def
OAI.BinaryMatching.encodeRecordline 60Also declared: ComparatorChallenges/SingletonLoopMatching.lean:47 (same declaration text), OAI/Combinatorics/PerfectMatching/Model.lean:54 (same declaration text).
- def
OAI.BinaryMatching.encodeInputline 63Also declared: ComparatorChallenges/SingletonLoopMatching.lean:50 (same declaration text), OAI/Combinatorics/PerfectMatching/Model.lean:57 (same declaration text).
- theorem
OAI.BinaryMatching.deterministic_approximate_countingChallenge statement: Deterministic approximate matching count sorry line 66L4DEL explanation
This declaration is an exact comparator-selected statement. Read the Lean statement below for its mathematical content.
- 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.Computability.MatchingCount.BinarySolve as the released solution module checked against this declaration.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Distinct definitions of this name: OAI/Computability/MatchingCount/BinarySolve.lean:143 (same statement text; different proof or body). Qualify references as OAI.BinaryMatching.deterministic_approximate_counting@path.
theorem deterministic_approximate_counting : ∃ A : Input → ℕ, ∃ machine : Turing.TM2ComputableInPolyTime encodeInput Nat.bits A, (∀ k, Finite (machine.tm.Γ k)) ∧ (∃ P : Polynomial ℕ, ∀ G,(A G).bits.length≤P.eval (encodeInput G).length) ∧ ∀ G,A G≤count G ∧ count G≤2^(9*G.n)*A G ∧ (A G=0 ↔ count G=0) := by …Mentions: OAI.BinaryMatching.Input, OAI.BinaryMatching.encodeInput, OAI.BinaryMatching.count