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

19 declarations, 1 contain sorry, 0 declared as axioms

  1. abbrev OAI.BinaryCoordinateSweeps.Slot The positions of a binary deck of dimension d line 10

    Source documentation

    The positions of a binary deck of dimension d.

    L4DEL explanation

    The positions of a binary deck of dimension d.

    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/Probability/BinarySweep/Model.lean:10 (same declaration text).

    abbrev Slot (d : ℕ) := Fin d → Bool
  2. def OAI.BinaryCoordinateSweeps.coordinateLayer Independent switches on the edges parallel to one coordinate line 13

    Source documentation

    Independent switches on the edges parallel to one coordinate.

    L4DEL explanation

    Independent switches on the edges parallel to one coordinate.

    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/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

  3. abbrev OAI.BinaryCoordinateSweeps.SweepCoins line 23

    Also declared: OAI/Probability/BinarySweep/Model.lean:23 (same declaration text).

  4. def OAI.BinaryCoordinateSweeps.binarySweep The coordinate layers are applied in increasing coordinate order line 27

    Source documentation

    The coordinate layers are applied in increasing coordinate order.

    L4DEL explanation

    The coordinate layers are applied in increasing coordinate order.

    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/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

  5. def OAI.BinaryCoordinateSweeps.finiteLaw line 30

    Also declared: OAI/Probability/BinarySweep/Model.lean:30 (same declaration text).

  6. def OAI.BinaryCoordinateSweeps.totalVariation Half the unnormalized sum of absolute probability-mass differences line 35

    Source documentation

    Half the unnormalized sum of absolute probability-mass differences.

    L4DEL explanation

    Half the unnormalized sum of absolute probability-mass differences.

    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/Probability/BinarySweep/Model.lean:35 (same declaration text).

    def totalVariation {G : Type*} [Fintype G] (p q : G → ℝ) : ℝ :=
    …
  7. def OAI.BinaryCoordinateSweeps.uniformLaw line 38

    Also declared: OAI/Probability/BinarySweep/Model.lean:38 (same declaration text).

  8. def OAI.BinaryCoordinateSweeps.binaryLaw line 41

    Also declared: OAI/Probability/BinarySweep/Model.lean:41 (same declaration text).

  9. abbrev OAI.BinaryCoordinateSweeps.RepSpace line 44

    Also declared: OAI/Probability/BinarySweep/Model.lean:44 (same declaration text).

  10. def OAI.BinaryCoordinateSweeps.IsUnitaryRep line 46

    Also declared: OAI/Probability/BinarySweep/Model.lean:46 (same declaration text).

  11. def OAI.BinaryCoordinateSweeps.averageOperator line 50

    Also declared: OAI/Probability/BinarySweep/Model.lean:50 (same declaration text).

  12. def OAI.BinaryCoordinateSweeps.BinaryContractionTarget line 55

    Also declared: OAI/Probability/BinarySweep/Model.lean:55 (same declaration text).

  13. def OAI.BinaryCoordinateSweeps.realSign line 61

    Also declared: OAI/Probability/BinarySweep/Model.lean:61 (same declaration text).

  14. def OAI.BinaryCoordinateSweeps.convolution line 67

    Also declared: OAI/Probability/BinarySweep/Model.lean:67 (same declaration text).

  15. def OAI.BinaryCoordinateSweeps.pointMassOne line 69

    Also declared: OAI/Probability/BinarySweep/Model.lean:69 (same declaration text).

  16. def OAI.BinaryCoordinateSweeps.convolutionPower The law of independent repetitions, with the empty product at the identity line 74

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

    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/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

  17. def OAI.BinaryCoordinateSweeps.sweepLaw line 80

    Also declared: OAI/Probability/BinarySweep/Model.lean:80 (same declaration text).

  18. def OAI.BinaryCoordinateSweeps.UniformSweepMixingTarget A single number of sweeps works uniformly over deterministic initial decks line 84

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

    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/Probability/BinarySweep/Model.lean:84 (same declaration text).

    def UniformSweepMixingTarget : Prop :=
    …
  19. theorem OAI.binary_sweep_contraction_and_mixing Challenge statement: Binary sweep contraction and mixing sorry line 95

    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 13 distinct comparator results, so its combined Scope prose is not copied onto this declaration.
    2. 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