ComparatorChallenges/CoordinateSweeps.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
64 declarations, 2 contain sorry, 0 declared as axioms
Conditional moments for one ordered coordinate sweep on power-of-two rectangular grids. The line law mixes uniform permutations with a binary coordinate sweep. The trace is unnormalized, and the trajectory cost uses falling factorials.
- structure
OAI.CoordinateSweeps.FiniteLawline 19Also declared: OAI/Probability/CoordinateSweeps/Grid.lean:28 (same declaration text).
- instance
OAI.CoordinateSweeps.FiniteLaw.(instance at line 28)line 28 - theorem
OAI.CoordinateSweeps.FiniteLaw.extline 30Also declared: OAI/Probability/CoordinateSweeps/Grid.lean:39 (same declaration text).
- theorem
OAI.CoordinateSweeps.FiniteLaw.sum_massline 38Also declared: OAI/Probability/CoordinateSweeps/Grid.lean:47 (same declaration text).
- def
OAI.CoordinateSweeps.FiniteLaw.uniformline 41Also declared: OAI/Probability/CoordinateSweeps/Grid.lean:51 (same declaration text).
- def
OAI.CoordinateSweeps.FiniteLaw.mapline 49Also declared: OAI/Probability/CoordinateSweeps/Grid.lean:60 (same declaration text).
- abbrev
OAI.CoordinateSweeps.Cubeline 60Also declared: OAI/Probability/CoordinateSweeps/Grid.lean:177 (same declaration text).
- def
OAI.CoordinateSweeps.pairSwitchline 62Distinct definitions of this name: OAI/Probability/CoordinateSweeps/Grid.lean:180 (same statement text; different proof or body). Qualify references as OAI.CoordinateSweeps.pairSwitch@path.
- def
OAI.CoordinateSweeps.binaryLayerline 74Also declared: OAI/Probability/CoordinateSweeps/Grid.lean:193 (same declaration text).
- def
OAI.CoordinateSweeps.orderedProductCoordinate zero acts first line 79Source documentation
Coordinate zero acts first.
L4DEL explanation
Coordinate zero acts first.
- 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/Probability/CoordinateSweeps/Grid.lean:198 (same declaration text).
def orderedProduct {G : Type*} [Monoid G] {d : ℕ} (g : Fin d → G) : G := … - abbrev
OAI.CoordinateSweeps.BinaryChoicesline 82Also declared: OAI/Probability/CoordinateSweeps/Grid.lean:202 (same declaration text).
- instance
OAI.CoordinateSweeps.(instance at line 84)line 84 - def
OAI.CoordinateSweeps.binarySweepline 86Also declared: OAI/Probability/CoordinateSweeps/Grid.lean:207 (same declaration text).
- def
OAI.CoordinateSweeps.binaryLawline 89Also declared: OAI/Probability/CoordinateSweeps/Grid.lean:211 (same declaration text).
- structure
OAI.CoordinateSweeps.Gridline 92Also declared: OAI/Probability/CoordinateSweeps/Grid.lean:221 (same declaration text).
- def
OAI.CoordinateSweeps.Grid.sizeline 99Also declared: OAI/Probability/CoordinateSweeps/Grid.lean:228 (same declaration text).
- abbrev
OAI.CoordinateSweeps.Grid.Slotline 101Also declared: OAI/Probability/CoordinateSweeps/Grid.lean:230 (same declaration text).
- abbrev
OAI.CoordinateSweeps.Grid.Lineline 103Also declared: OAI/Probability/CoordinateSweeps/Grid.lean:232 (same declaration text).
- abbrev
OAI.CoordinateSweeps.Grid.Choicesline 105Also declared: OAI/Probability/CoordinateSweeps/Grid.lean:234 (same declaration text).
- def
OAI.CoordinateSweeps.Grid.fiberPermline 107Also declared: OAI/Probability/CoordinateSweeps/Grid.lean:237 (same declaration text).
- def
OAI.CoordinateSweeps.Grid.stageline 113Also declared: OAI/Probability/CoordinateSweeps/Grid.lean:243 (same declaration text).
- def
OAI.CoordinateSweeps.Grid.boundaryline 117Also declared: OAI/Probability/CoordinateSweeps/Grid.lean:248 (same declaration text).
- def
OAI.CoordinateSweeps.Grid.sweepline 120Also declared: OAI/Probability/CoordinateSweeps/Grid.lean:251 (same declaration text).
- def
OAI.CoordinateSweeps.Grid.AllowedThe side lengths are in[R, R²], where the single global scale isR = 2^rline 123Source documentation
The side lengths are in
[R, R²], where the single global scale isR = 2^r.L4DEL explanation
The side lengths are in
[R, R²], where the single global scale isR = 2^r.- 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/Probability/CoordinateSweeps/Grid.lean:263 (same declaration text).
def Allowed (G : Grid) (r : ℕ) : Prop := ∀ j, r ≤ G.bits j ∧ G.bits j ≤ 2 * r
Mentions: OAI.CoordinateSweeps.Grid
- structure
OAI.CoordinateSweeps.Grid.HolesFull disjoint paths, including every boundary of the ordered sweep line 126Source documentation
Full disjoint paths, including every boundary of the ordered sweep.
L4DEL explanation
Full disjoint paths, including every boundary of the ordered sweep.
- 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/Probability/CoordinateSweeps/Grid.lean:266 (same declaration text).
structure Holes (G : Grid) (h : ℕ) where …
Mentions: OAI.CoordinateSweeps.Grid
- def
OAI.CoordinateSweeps.Grid.Holes.Compatibleline 136Also declared: OAI/Probability/CoordinateSweeps/Grid.lean:276 (same declaration text).
- def
OAI.CoordinateSweeps.Grid.Holes.Feasibleline 139Also declared: OAI/Probability/CoordinateSweeps/Grid.lean:279 (same declaration text).
- def
OAI.CoordinateSweeps.Grid.Holes.lineCountline 141Also declared: OAI/Probability/CoordinateSweeps/Grid.lean:282 (same declaration text).
- def
OAI.CoordinateSweeps.Grid.Holes.costline 145Also declared: OAI/Probability/CoordinateSweeps/Grid.lean:287 (same declaration text).
- def
OAI.CoordinateSweeps.Grid.Holes.stabilizerThe symmetric group on the unmarked input sites line 151Source documentation
The symmetric group on the unmarked input sites.
L4DEL explanation
The symmetric group on the unmarked input sites.
- 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/Probability/CoordinateSweeps/Grid.lean:337 (same declaration text).
def stabilizer (H : G.Holes h) : Subgroup (Equiv.Perm G.Slot) where …
- def
OAI.CoordinateSweeps.Grid.Holes.referenceline 160Also declared: OAI/Probability/CoordinateSweeps/Grid.lean:348 (same declaration text).
- theorem
OAI.CoordinateSweeps.Grid.Holes.reference_compatibleline 162Also declared: OAI/Probability/CoordinateSweeps/Grid.lean:350 (same declaration text).
- def
OAI.CoordinateSweeps.Grid.Holes.residualA reference completion identifies the free input and output sites line 166Source documentation
A reference completion identifies the free input and output sites.
L4DEL explanation
A reference completion identifies the free input and output sites.
- 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/Probability/CoordinateSweeps/Grid.lean:354 (same declaration text).
def residual (H : G.Holes h) (hf : H.Feasible) (ω : {ω : G.Choices // H.Compatible ω}) : H.stabilizer := … - def
OAI.CoordinateSweeps.Grid.choiceWeightIndependent line permutations with law(1-z) U + z Bline 177Source documentation
Independent line permutations with law
(1-z) U + z B.L4DEL explanation
Independent line permutations with law
(1-z) U + z B.- 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/Probability/CoordinateSweeps/Grid.lean:365 (same declaration text).
def choiceWeight (G : Grid) (z : ℝ) (ω : G.Choices) : ℝ := …
Mentions: OAI.CoordinateSweeps.Grid
- def
OAI.CoordinateSweeps.Grid.Holes.probabilityline 186Also declared: OAI/Probability/CoordinateSweeps/Grid.lean:673 (same declaration text).
- def
OAI.CoordinateSweeps.Grid.eventDistanceline 191Also declared: OAI/Probability/CoordinateSweeps/SparseBound.lean:562 (same declaration text).
- structure
OAI.CoordinateSweeps.UnitaryIrrepline 197Also declared: OAI/RepresentationTheory/Unitary/Basic.lean:10 (same declaration text).
- def
OAI.CoordinateSweeps.schattenMomentUnnormalized Schatten2qmoment, without division by the dimension line 206Source documentation
Unnormalized Schatten
2qmoment, without division by the dimension.L4DEL explanation
Unnormalized Schatten
2qmoment, without division by the dimension.- 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/Analysis/Matrix/TensorMoment.lean:614 (same declaration text).
def schattenMoment {D : ℕ} (q : ℕ) (K : Matrix (Fin D) (Fin D) ℂ) : ℝ := … - def
OAI.CoordinateSweeps.Grid.Holes.conditionalAverageline 213Also declared: OAI/Probability/CoordinateSweeps/Conditioning.lean:980 (same declaration text).
- def
OAI.CoordinateSweeps.aline 221Also declared: OAI/Probability/CoordinateSweeps/Conditioning.lean:1035 (same declaration text).
- def
OAI.CoordinateSweeps.c0line 222Also declared: OAI/Probability/CoordinateSweeps/Conditioning.lean:1036 (same declaration text).
- def
OAI.CoordinateSweeps.e0line 223Also declared: OAI/Probability/CoordinateSweeps/Conditioning.lean:1037 (same declaration text).
- def
OAI.CoordinateSweeps.cline 224Also declared: OAI/Probability/CoordinateSweeps/Conditioning.lean:1038 (same declaration text).
- def
OAI.CoordinateSweeps.eline 225Also declared: OAI/Probability/CoordinateSweeps/Conditioning.lean:1039 (same declaration text).
- def
OAI.CoordinateSweeps.logMomentThe logarithm of a zero moment is minus infinity line 228Source documentation
The logarithm of a zero moment is minus infinity.
L4DEL explanation
The logarithm of a zero moment is minus infinity.
- 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/Probability/CoordinateSweeps/Conditioning.lean:1042 (same declaration text).
def logMoment (t : ℝ) : EReal := if t = 0 then ⊥ else (Real.log t : EReal)
- def
OAI.CoordinateSweeps.ConditionalMainline 230Also declared: OAI/Probability/CoordinateSweeps/Conditioning.lean:1046 (same declaration text).
- def
OAI.CoordinateSweeps.MomentBoundline 237Also declared: OAI/Probability/CoordinateSweeps/Main.lean:100 (same declaration text).
- def
OAI.CoordinateSweeps.ScaleLargeline 242Also declared: OAI/Probability/CoordinateSweeps/BaseCase.lean:346 (same declaration text).
- def
OAI.CoordinateSweeps.baseWidthline 245Also declared: OAI/Probability/CoordinateSweeps/BaseCase.lean:458 (same declaration text).
- def
OAI.CoordinateSweeps.baseZetaline 246Also declared: OAI/Probability/CoordinateSweeps/BaseCase.lean:459 (same declaration text).
- structure
OAI.CoordinateSweeps.ScalarInduction.MainSizeReadyline 250Also declared: OAI/Probability/CoordinateSweeps/Scales.lean:244 (same declaration text).
- def
OAI.CoordinateSweeps.SparseScalar.thetaline 260Also declared: OAI/Probability/CoordinateSweeps/SparseBound.lean:34 (same declaration text).
- def
OAI.CoordinateSweeps.SparseScalar.K0line 261Also declared: OAI/Probability/CoordinateSweeps/SparseBound.lean:35 (same declaration text).
- def
OAI.CoordinateSweeps.SparseScalar.B0line 262Also declared: OAI/Probability/CoordinateSweeps/SparseBound.lean:36 (same declaration text).
- def
OAI.CoordinateSweeps.SparseScalar.xiline 263Also declared: OAI/Probability/CoordinateSweeps/SparseBound.lean:37 (same declaration text).
- def
OAI.CoordinateSweeps.SparseScalar.rholine 264Also declared: OAI/Probability/CoordinateSweeps/SparseBound.lean:38 (same declaration text).
- def
OAI.CoordinateSweeps.SparseScalar.qline 265Also declared: OAI/Probability/CoordinateSweeps/SparseBound.lean:39 (same declaration text).
- def
OAI.CoordinateSweeps.SparseScalar.uniformRateline 267Also declared: OAI/Probability/CoordinateSweeps/SparseBound.lean:384 (same declaration text).
- structure
OAI.CoordinateSweeps.SparseScalar.SizeReadyline 272Also declared: OAI/Probability/CoordinateSweeps/Perturbation.lean:63 (same declaration text).
- structure
OAI.CoordinateSweeps.SparseScalar.ScaleReadyline 283Also declared: OAI/Probability/CoordinateSweeps/Perturbation.lean:81 (same declaration text).
- def
OAI.CoordinateSweeps.SparseScalar.slackline 289Also declared: OAI/Probability/CoordinateSweeps/Perturbation.lean:100 (same declaration text).
- def
OAI.CoordinateSweeps.SparsePerturbline 294Also declared: OAI/Probability/CoordinateSweeps/Perturbation.lean:316 (same declaration text).
- theorem
OAI.CoordinateSweeps.all_grid_momentChallenge statement: Conditional coordinate-sweep moment estimate sorry line 300Source documentation
The quantitative all-grid estimate under the explicit scale and perturbation bounds.
L4DEL explanation
The quantitative all-grid estimate under the explicit scale and perturbation bounds.
- This explanation is a condensed rendering of this declaration's own doc comment at the pinned source commit.
- The linked formalization note covers 13 distinct comparator results, so its combined Scope prose is not copied onto this declaration.
- The repository's comparator configuration selects OAI.Probability.CoordinateSweeps.Main as the released solution module checked against this declaration.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Distinct definitions of this name: OAI/Probability/CoordinateSweeps/Main.lean:412 (same statement text; different proof or body). Qualify references as OAI.CoordinateSweeps.all_grid_moment@path.
theorem all_grid_moment {r : ℕ} (hr : ScaleLarge r) (hrS : SparseScalar.ScaleReady r) (hS : ∀ G : Grid, G.Allowed r → ScalarInduction.MainSizeReady SparseScalar.q G.size) {zStar : ℝ} (hζ : SparsePerturb r zStar) {z : ℝ} (hz : z∈Set.Icc 0 zStar) : ∀ G : Grid, G.Allowed r → MomentBound G SparseScalar.q z := by …Mentions: OAI.CoordinateSweeps.ScaleLarge, OAI.CoordinateSweeps.SparseScalar.ScaleReady, OAI.CoordinateSweeps.Grid, OAI.CoordinateSweeps.ScalarInduction.MainSizeReady, OAI.CoordinateSweeps.SparseScalar.q, OAI.CoordinateSweeps.SparsePerturb, OAI.CoordinateSweeps.MomentBound
- theorem
OAI.CoordinateSweeps.conditional_mainChallenge statement: Conditional coordinate-sweep moment estimate sorry line 307Source documentation
One global choice of scale, moment order, and positive perturbation interval.
L4DEL explanation
One global choice of scale, moment order, and positive perturbation interval.
- This explanation is a condensed rendering of this declaration's own doc comment at the pinned source commit.
- The linked formalization note covers 13 distinct comparator results, so its combined Scope prose is not copied onto this declaration.
- The repository's comparator configuration selects OAI.Probability.CoordinateSweeps.Main as the released solution module checked against this declaration.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Distinct definitions of this name: OAI/Probability/CoordinateSweeps/Main.lean:454 (same statement text; different proof or body). Qualify references as OAI.CoordinateSweeps.conditional_main@path.
theorem conditional_main : ConditionalMain := by …
Mentions: OAI.CoordinateSweeps.ConditionalMain