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

15 declarations, 1 contain sorry, 0 declared as axioms

  1. structure OAI.MatchingEntropy.LooplessGraph line 9

    Distinct 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.

  2. def OAI.MatchingEntropy.LooplessGraph.Incident line 17

    Distinct 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.

  3. def OAI.MatchingEntropy.LooplessGraph.IsPerfectMatching line 19

    Distinct 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.

  4. abbrev OAI.MatchingEntropy.LooplessGraph.Matching line 21

    Also declared: ComparatorChallenges/MatchingEntropy.lean:30 (same declaration text), OAI/Combinatorics/PerfectMatching/Model.lean:18 (same declaration text).

  5. instance OAI.MatchingEntropy.LooplessGraph.matchingFintype line 22

    Distinct 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.

  6. abbrev OAI.BinaryMatching.Pair line 31

    Also declared: ComparatorChallenges/SingletonLoopMatching.lean:20 (same declaration text), OAI/Combinatorics/PerfectMatching/Model.lean:25 (same declaration text).

  7. def OAI.BinaryMatching.completeGraph line 32

    Also declared: ComparatorChallenges/SingletonLoopMatching.lean:21 (same declaration text), OAI/Combinatorics/PerfectMatching/Model.lean:26 (same declaration text).

  8. structure OAI.BinaryMatching.Record line 37

    Also declared: ComparatorChallenges/SingletonLoopMatching.lean:26 (same declaration text), OAI/Combinatorics/PerfectMatching/Model.lean:31 (same declaration text).

  9. structure OAI.BinaryMatching.Input line 43

    Also declared: ComparatorChallenges/SingletonLoopMatching.lean:32 (same declaration text), OAI/Combinatorics/PerfectMatching/Model.lean:37 (same declaration text).

  10. def OAI.BinaryMatching.multiplicity line 49

    Also declared: ComparatorChallenges/SingletonLoopMatching.lean:38 (same declaration text), OAI/Combinatorics/PerfectMatching/Model.lean:43 (same declaration text).

  11. def OAI.BinaryMatching.count line 54

    Also declared: OAI/Combinatorics/PerfectMatching/Model.lean:48 (same declaration text).

  12. def OAI.BinaryMatching.encodeNat line 57

    Also declared: ComparatorChallenges/SingletonLoopMatching.lean:44 (same declaration text), OAI/Combinatorics/PerfectMatching/Model.lean:51 (same declaration text).

  13. def OAI.BinaryMatching.encodeRecord line 60

    Also declared: ComparatorChallenges/SingletonLoopMatching.lean:47 (same declaration text), OAI/Combinatorics/PerfectMatching/Model.lean:54 (same declaration text).

  14. def OAI.BinaryMatching.encodeInput line 63

    Also declared: ComparatorChallenges/SingletonLoopMatching.lean:50 (same declaration text), OAI/Combinatorics/PerfectMatching/Model.lean:57 (same declaration text).

  15. theorem OAI.BinaryMatching.deterministic_approximate_counting Challenge statement: Deterministic approximate matching count sorry line 66

    L4DEL explanation

    This declaration is an exact comparator-selected statement. Read the Lean statement below for its mathematical content.

    1. The linked formalization note covers 6 distinct comparator results, so its combined Scope prose is not copied onto this declaration.
    2. 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