ComparatorChallenges/OptimalMaxCut.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
25 declarations, 1 contain sorry, 0 declared as axioms
- structure
OAI.MaxCutGames.BinaryFormula.Literalline 7Also declared: OAI/Computability/MaxCut/Model.lean:7 (same declaration text).
- def
OAI.MaxCutGames.BinaryFormula.Literal.evalline 12Also declared: OAI/Computability/MaxCut/Model.lean:12 (same declaration text).
- abbrev
OAI.MaxCutGames.BinaryFormula.Clauseline 15Also declared: OAI/Computability/MaxCut/Model.lean:15 (same declaration text).
- def
OAI.MaxCutGames.BinaryFormula.Clause.evalline 17Also declared: OAI/Computability/MaxCut/Model.lean:17 (same declaration text).
- structure
OAI.MaxCutGames.BinaryFormula.FormulaAn ordinary conjunction of three-slot clauses with sparse variable names line 22Source documentation
An ordinary conjunction of three-slot clauses with sparse variable names. Repeated names and repeated literals are permitted in every clause.
L4DEL explanation
An ordinary conjunction of three-slot clauses with sparse variable names. Repeated names and repeated literals are permitted in every clause.
- 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/Computability/MaxCut/Model.lean:22 (same declaration text).
structure Formula where …
- def
OAI.MaxCutGames.BinaryFormula.Formula.Satisfiableline 25Also declared: OAI/Computability/MaxCut/Model.lean:25 (same declaration text).
- def
OAI.MaxCutGames.BinaryEncoding.bitsValueline 34Also declared: OAI/Computability/MaxCut/Model.lean:34 (same declaration text).
- def
OAI.MaxCutGames.BinaryEncoding.framePrefix-free framing on the two-symbol input alphabet line 39Source documentation
Prefix-free framing on the two-symbol input alphabet.
L4DEL explanation
Prefix-free framing on the two-symbol input alphabet.
- 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/Computability/MaxCut/Model.lean:39 (same declaration text).
def frame : List Bool → List Bool | [] => [false] | b :: bits => true :: b :: frame bits
- def
OAI.MaxCutGames.BinaryEncoding.parseFrameline 43Also declared: OAI/Computability/MaxCut/Model.lean:43 (same declaration text).
- def
OAI.MaxCutGames.BinaryEncoding.nameBitsline 50Also declared: OAI/Computability/MaxCut/Model.lean:50 (same declaration text).
- def
OAI.MaxCutGames.BinaryEncoding.parseNameEquality with the canonical digits rejects alternate padded encodings line 53Source documentation
Equality with the canonical digits rejects alternate padded encodings.
L4DEL explanation
Equality with the canonical digits rejects alternate padded encodings.
- 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/Computability/MaxCut/Model.lean:53 (same declaration text).
def parseName (input : List Bool) : Option (Nat × List Bool) := do …
- def
OAI.MaxCutGames.BinaryEncoding.parseLiteralline 58Also declared: OAI/Computability/MaxCut/Model.lean:58 (same declaration text).
- def
OAI.MaxCutGames.BinaryEncoding.parseClauseline 64Also declared: OAI/Computability/MaxCut/Model.lean:64 (same declaration text).
- def
OAI.MaxCutGames.BinaryEncoding.parseClausesFuel bounds the number of clause iterations, not the size of any name line 71Source documentation
Fuel bounds the number of clause iterations, not the size of any name.
L4DEL explanation
Fuel bounds the number of clause iterations, not the size of any name.
- 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/Computability/MaxCut/Model.lean:71 (same declaration text).
def parseClauses : Nat → List Bool → Option (List Clause × List Bool) | 0, _ => none | _ + 1, false :: rest => some ([], rest) | fuel + 1, true :: input => do let (clause, input) ← parseClause input let (clauses, rest) ← parseClauses fuel input return (clause :: clauses, rest) | _ + 1, [] => none - def
OAI.MaxCutGames.BinaryEncoding.decodeFormulaline 80Also declared: OAI/Computability/MaxCut/Model.lean:80 (same declaration text).
- def
OAI.OptimalMaxCut.alphaGWThe exact Goemans–Williamson ratio, as an infimum over -1 ≤ ρ < 1 line 91Source documentation
The exact Goemans–Williamson ratio, as an infimum over -1 ≤ ρ < 1.
L4DEL explanation
The exact Goemans–Williamson ratio, as an infimum over -1 ≤ ρ < 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/Computability/MaxCut/Model.lean:91 (same declaration text).
noncomputable def alphaGW : ℝ := …
- def
OAI.OptimalMaxCut.binary3SATThe ordinary binary 3SAT language, including rejection of malformed words line 96Source documentation
The ordinary binary 3SAT language, including rejection of malformed words.
L4DEL explanation
The ordinary binary 3SAT language, including rejection of malformed words.
- 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/Computability/MaxCut/Model.lean:96 (same declaration text).
def binary3SAT (input : List Bool) : Prop := …
- structure
OAI.OptimalMaxCut.GraphA finite simple unweighted graph with its full Boolean adjacency table line 101Source documentation
A finite simple unweighted graph with its full Boolean adjacency table.
L4DEL explanation
A finite simple unweighted graph with its full Boolean adjacency 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: OAI/Computability/MaxCut/Model.lean:101 (same declaration text).
structure Graph where …
- def
OAI.OptimalMaxCut.Graph.cutSizeEach unordered distinct edge crossing the cut is counted exactly once line 108Source documentation
Each unordered distinct edge crossing the cut is counted exactly once.
L4DEL explanation
Each unordered distinct edge crossing the cut is counted exactly once.
- 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/Computability/MaxCut/Model.lean:108 (same declaration text).
def Graph.cutSize (G : Graph) (cut : Fin G.vertices → Bool) : ℕ := …
Mentions: OAI.OptimalMaxCut.Graph
- def
OAI.OptimalMaxCut.Graph.maxCutThe maximum over all Boolean cuts of the finite vertex set line 113Source documentation
The maximum over all Boolean cuts of the finite vertex set.
L4DEL explanation
The maximum over all Boolean cuts of the finite vertex set.
- 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/Computability/MaxCut/Model.lean:113 (same declaration text).
def Graph.maxCut (G : Graph) : ℕ := …
Mentions: OAI.OptimalMaxCut.Graph
- structure
OAI.OptimalMaxCut.ScaledGraphThe positive integer scale Q is part of the output line 118Source documentation
The positive integer scale Q is part of the output. It need not equal the number of graph edges.
L4DEL explanation
The positive integer scale Q is part of the output. It need not equal the number of graph edges.
- 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/Computability/MaxCut/Model.lean:118 (same declaration text).
structure ScaledGraph where …
- def
OAI.OptimalMaxCut.ScaledGraph.bitsCanonical delimited binary vertex count and scale, followed by the full adjacency table in lexicographic order line 125Source documentation
Canonical delimited binary vertex count and scale, followed by the full adjacency table in lexicographic order.
L4DEL explanation
Canonical delimited binary vertex count and scale, followed by the full adjacency table in lexicographic order.
- 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/Computability/MaxCut/Model.lean:125 (same declaration text).
def ScaledGraph.bits (G : ScaledGraph) : List Bool := …
Mentions: OAI.OptimalMaxCut.ScaledGraph
- structure
OAI.OptimalMaxCut.GapReductionThe rational gap bounds and the finite machine are fixed before the input line 133Source documentation
The rational gap bounds and the finite machine are fixed before the input. The bounds compare the maximum cut divided by the positive output scale.
L4DEL explanation
The rational gap bounds and the finite machine are fixed before the input. The bounds compare the maximum cut divided by the positive output scale.
- 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/Computability/MaxCut/Model.lean:133 (same declaration text).
structure GapReduction (α : ℝ) where …
- def
OAI.OptimalMaxCut.MainStatementline 148Also declared: OAI/Computability/MaxCut/Model.lean:148 (same declaration text).
- theorem
OAI.OptimalMaxCut.mainChallenge statement: Optimal Max-Cut hardness gap sorry line 153L4DEL explanation
This declaration is an exact comparator-selected statement. Read the Lean statement below for its mathematical content.
- The linked formalization note covers 5 distinct comparator results, so its combined Scope prose is not copied onto this declaration.
- The repository's comparator configuration selects OAI.Computability.MaxCut.Main as the released solution module checked against this declaration.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Distinct definitions of this name: OAI/Computability/MaxCut/Main.lean:53 (different declaration text). Qualify references as OAI.OptimalMaxCut.main@path.
theorem OptimalMaxCut.main : OptimalMaxCut.MainStatement := by …
Mentions: OAI.OptimalMaxCut.MainStatement