ComparatorChallenges/BinarySweep.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
19 declarations, 1 contain sorry, 0 declared as axioms
- abbrev
OAI.BinaryCoordinateSweeps.SlotThe positions of a binary deck of dimension d line 10Source documentation
The positions of a binary deck of dimension d.
L4DEL explanation
The positions of a binary deck of dimension d.
- 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/BinarySweep/Model.lean:10 (same declaration text).
abbrev Slot (d : ℕ) := Fin d → Bool
- def
OAI.BinaryCoordinateSweeps.coordinateLayerIndependent switches on the edges parallel to one coordinate line 13Source documentation
Independent switches on the edges parallel to one coordinate.
L4DEL explanation
Independent switches on the edges parallel to one coordinate.
- 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/BinarySweep/Model.lean:13 (same declaration text).
def coordinateLayer (d : ℕ) (j : Fin d) (c : (({i : Fin d // i ≠ j} → Bool)) → Bool) : Equiv.Perm (Slot d) := …Mentions: OAI.BinaryCoordinateSweeps.Slot
- abbrev
OAI.BinaryCoordinateSweeps.SweepCoinsline 23Also declared: OAI/Probability/BinarySweep/Model.lean:23 (same declaration text).
- def
OAI.BinaryCoordinateSweeps.binarySweepThe coordinate layers are applied in increasing coordinate order line 27Source documentation
The coordinate layers are applied in increasing coordinate order.
L4DEL explanation
The coordinate layers are applied in increasing coordinate 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/Probability/BinarySweep/Model.lean:27 (same declaration text).
def binarySweep (d : ℕ) (c : SweepCoins d) : Equiv.Perm (Slot d) := …
Mentions: OAI.BinaryCoordinateSweeps.SweepCoins, OAI.BinaryCoordinateSweeps.Slot
- def
OAI.BinaryCoordinateSweeps.finiteLawline 30Also declared: OAI/Probability/BinarySweep/Model.lean:30 (same declaration text).
- def
OAI.BinaryCoordinateSweeps.totalVariationHalf the unnormalized sum of absolute probability-mass differences line 35Source documentation
Half the unnormalized sum of absolute probability-mass differences.
L4DEL explanation
Half the unnormalized sum of absolute probability-mass differences.
- 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/BinarySweep/Model.lean:35 (same declaration text).
def totalVariation {G : Type*} [Fintype G] (p q : G → ℝ) : ℝ := … - def
OAI.BinaryCoordinateSweeps.uniformLawline 38Also declared: OAI/Probability/BinarySweep/Model.lean:38 (same declaration text).
- def
OAI.BinaryCoordinateSweeps.binaryLawline 41Also declared: OAI/Probability/BinarySweep/Model.lean:41 (same declaration text).
- abbrev
OAI.BinaryCoordinateSweeps.RepSpaceline 44Also declared: OAI/Probability/BinarySweep/Model.lean:44 (same declaration text).
- def
OAI.BinaryCoordinateSweeps.IsUnitaryRepline 46Also declared: OAI/Probability/BinarySweep/Model.lean:46 (same declaration text).
- def
OAI.BinaryCoordinateSweeps.averageOperatorline 50Also declared: OAI/Probability/BinarySweep/Model.lean:50 (same declaration text).
- def
OAI.BinaryCoordinateSweeps.BinaryContractionTargetline 55Also declared: OAI/Probability/BinarySweep/Model.lean:55 (same declaration text).
- def
OAI.BinaryCoordinateSweeps.realSignline 61Also declared: OAI/Probability/BinarySweep/Model.lean:61 (same declaration text).
- def
OAI.BinaryCoordinateSweeps.convolutionline 67Also declared: OAI/Probability/BinarySweep/Model.lean:67 (same declaration text).
- def
OAI.BinaryCoordinateSweeps.pointMassOneline 69Also declared: OAI/Probability/BinarySweep/Model.lean:69 (same declaration text).
- def
OAI.BinaryCoordinateSweeps.convolutionPowerThe law of independent repetitions, with the empty product at the identity line 74Source documentation
The law of independent repetitions, with the empty product at the identity.
L4DEL explanation
The law of independent repetitions, with the empty product at the identity.
- 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/BinarySweep/Model.lean:74 (same declaration text).
def convolutionPower (p : G → ℝ) : ℕ → G → ℝ | 0 => pointMassOne | n + 1 => convolution p (convolutionPower p n) end FiniteLaws
Mentions: OAI.BinaryCoordinateSweeps.pointMassOne, OAI.BinaryCoordinateSweeps.convolution
- def
OAI.BinaryCoordinateSweeps.sweepLawline 80Also declared: OAI/Probability/BinarySweep/Model.lean:80 (same declaration text).
- def
OAI.BinaryCoordinateSweeps.UniformSweepMixingTargetA single number of sweeps works uniformly over deterministic initial decks line 84Source documentation
A single number of sweeps works uniformly over deterministic initial decks.
L4DEL explanation
A single number of sweeps works uniformly over deterministic initial decks.
- 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/BinarySweep/Model.lean:84 (same declaration text).
def UniformSweepMixingTarget : Prop := …
- theorem
OAI.binary_sweep_contraction_and_mixingChallenge statement: Binary sweep contraction and mixing sorry line 95L4DEL explanation
This declaration is an exact comparator-selected statement. Read the Lean statement below for its mathematical content.
- 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.BinarySweep.Main as the released solution module checked against this declaration.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Distinct definitions of this name: OAI/Probability/BinarySweep/Main.lean:10 (same statement text; different proof or body). Qualify references as OAI.binary_sweep_contraction_and_mixing@path.
theorem binary_sweep_contraction_and_mixing : BinaryCoordinateSweeps.BinaryContractionTarget ∧ (∀ d : ℕ, 0 < d → ∑ g : Equiv.Perm (BinaryCoordinateSweeps.Slot d), BinaryCoordinateSweeps.binaryLaw d g * BinaryCoordinateSweeps.realSign g = 0) ∧ BinaryCoordinateSweeps.UniformSweepMixingTarget := by …Mentions: OAI.BinaryCoordinateSweeps.BinaryContractionTarget, OAI.BinaryCoordinateSweeps.Slot, OAI.BinaryCoordinateSweeps.binaryLaw, OAI.BinaryCoordinateSweeps.realSign, OAI.BinaryCoordinateSweeps.UniformSweepMixingTarget