ComparatorChallenges/IndependentSets.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
16 declarations, 1 contain sorry, 0 declared as axioms
- structure
OAI.LargeIndependentSets.Literalline 7Also declared: OAI/Combinatorics/IndependentSets/Model.lean:7 (same declaration text).
- structure
OAI.LargeIndependentSets.Formulaline 12Also declared: OAI/Combinatorics/IndependentSets/Model.lean:12 (same declaration text).
- def
OAI.LargeIndependentSets.Formula.Satisfiableline 16Also declared: OAI/Combinatorics/IndependentSets/Model.lean:16 (same declaration text).
- def
OAI.LargeIndependentSets.frameBinary framing:true,bfor a payload bit andfalseas terminator line 21Source documentation
Binary framing:
true,bfor a payload bit andfalseas terminator.L4DEL explanation
Binary framing:
true,bfor a payload bit andfalseas terminator.- 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/IndependentSets/Model.lean:21 (same declaration text).
def frame : List Bool → List Bool | [] => [false] | b :: bs => true :: b :: frame bs
- def
OAI.LargeIndependentSets.nameBitsline 25Also declared: OAI/Combinatorics/IndependentSets/Model.lean:25 (same declaration text).
- def
OAI.LargeIndependentSets.literalBitsline 27Also declared: OAI/Combinatorics/IndependentSets/Model.lean:27 (same declaration text).
- def
OAI.LargeIndependentSets.clauseBitsline 29Also declared: OAI/Combinatorics/IndependentSets/Model.lean:29 (same declaration text).
- def
OAI.LargeIndependentSets.formulaBitsline 32Also declared: OAI/Combinatorics/IndependentSets/Model.lean:32 (same declaration text).
- structure
OAI.LargeIndependentSets.GraphA nonempty, finite, simple, undirected, unweighted graph line 36Source documentation
A nonempty, finite, simple, undirected, unweighted graph.
L4DEL explanation
A nonempty, finite, simple, undirected, unweighted 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/IndependentSets/Model.lean:36 (same declaration text).
structure Graph where …
- def
OAI.LargeIndependentSets.Graph.Independentline 43Also declared: OAI/Combinatorics/IndependentSets/Model.lean:43 (same declaration text).
- instance
OAI.LargeIndependentSets.(instance at line 46)line 46 - def
OAI.LargeIndependentSets.Graph.independenceNumberline 49Also declared: OAI/Combinatorics/IndependentSets/Model.lean:49 (same declaration text).
- def
OAI.LargeIndependentSets.Graph.ThreeColorableline 52Also declared: OAI/Combinatorics/IndependentSets/Model.lean:52 (same declaration text).
- def
OAI.LargeIndependentSets.graphBitsFull explicit adjacency matrix, row-major, with binary vertex count line 57Source documentation
Full explicit adjacency matrix, row-major, with binary vertex count.
L4DEL explanation
Full explicit adjacency matrix, row-major, with binary vertex count.
- 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/IndependentSets/Model.lean:57 (same declaration text).
def graphBits (G : Graph) : List Bool := …
Mentions: OAI.LargeIndependentSets.Graph
- structure
OAI.LargeIndependentSets.RealGraphReductionPolynomial-time graph reduction with a real independence-ratio threshold line 65Source documentation
Polynomial-time graph reduction with a real independence-ratio threshold.
L4DEL explanation
Polynomial-time graph reduction with a real independence-ratio threshold.
- 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/IndependentSets/Model.lean:65 (same declaration text).
structure RealGraphReduction (δ : ℝ) where …
- theorem
OAI.LargeIndependentSets.mainTheoremRealChallenge statement: Hardness of coloring three-colorable graphs sorry line 77Source documentation
Real-threshold graph reduction with explicit binary runtime and output-size bounds.
L4DEL explanation
The formalized result shows hardness of finding large independent sets even under a three-colorability promise. For every fixed $0<\delta<1/3$, a deterministic polynomial-time reduction maps binary 3SAT formulas to nonempty finite simple graphs. Satisfiable formulas produce three-colorable graphs; unsatisfiable formulas produce graphs whose largest independent set has fewer than $\delta$ times the number of vertices. The complete adjacency-matrix output is included in the runtime bound.
- This is an exact comparator target linked by the pinned repository's formalization note for this result.
- The repository's comparator configuration selects OAI.Combinatorics.IndependentSets.Main as the released solution module checked against this declaration.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Distinct definitions of this name: OAI/Combinatorics/IndependentSets/Main.lean:124 (same statement text; different proof or body). Qualify references as OAI.LargeIndependentSets.mainTheoremReal@path.
theorem mainTheoremReal : ∀ δ : ℝ, 0 < δ → δ < 1 / 3 → Nonempty (RealGraphReduction δ) := by …