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

31 declarations, 3 contain sorry, 0 declared as axioms

  1. def OAI.Problem315.graphDegree line 11

    Also declared: OAI/Probability/SwitchChain/Definitions.lean:11 (same declaration text).

  2. def OAI.Problem315.Realizes line 15

    Also declared: OAI/Probability/SwitchChain/Definitions.lean:15 (same declaration text).

  3. abbrev OAI.Problem315.GraphState line 18

    Also declared: OAI/Probability/SwitchChain/Definitions.lean:18 (same declaration text).

  4. def OAI.Problem315.Graphical line 21

    Also declared: OAI/Probability/SwitchChain/Definitions.lean:21 (same declaration text).

  5. abbrev OAI.Problem315.FourSet line 24

    Also declared: OAI/Probability/SwitchChain/Definitions.lean:24 (same declaration text).

  6. def OAI.Problem315.IsPerfectMatchingOn line 26

    Also declared: OAI/Probability/SwitchChain/Definitions.lean:26 (same declaration text).

  7. abbrev OAI.Problem315.PerfectMatching line 31

    Also declared: OAI/Probability/SwitchChain/Definitions.lean:31 (same declaration text).

  8. abbrev OAI.Problem315.SwitchProposal line 34

    Also declared: OAI/Probability/SwitchChain/Definitions.lean:34 (same declaration text).

  9. def OAI.Problem315.removedMatching line 38

    Also declared: OAI/Probability/SwitchChain/Definitions.lean:38 (same declaration text).

  10. def OAI.Problem315.addedMatching line 41

    Also declared: OAI/Probability/SwitchChain/Definitions.lean:41 (same declaration text).

  11. def OAI.Problem315.validSwitch line 44

    Also declared: OAI/Probability/SwitchChain/Definitions.lean:44 (same declaration text).

  12. def OAI.Problem315.replaceEdges line 49

    Also declared: OAI/Probability/SwitchChain/Definitions.lean:49 (same declaration text).

  13. def OAI.Problem315.proposalResult line 67

    Also declared: OAI/Probability/SwitchChain/Definitions.lean:67 (same declaration text).

  14. def OAI.Problem315.allGraphStates line 75

    Also declared: OAI/Probability/SwitchChain/Definitions.lean:75 (same declaration text).

  15. def OAI.Problem315.allProposals line 80

    Also declared: OAI/Probability/SwitchChain/Definitions.lean:80 (same declaration text).

  16. def OAI.Problem315.stateCount line 84

    Also declared: OAI/Probability/SwitchChain/Definitions.lean:84 (same declaration text).

  17. def OAI.Problem315.switchKernel line 87

    Also declared: OAI/Probability/SwitchChain/Definitions.lean:87 (same declaration text).

  18. def OAI.Problem315.kernelPow line 96

    Also declared: OAI/Probability/SwitchChain/Definitions.lean:96 (same declaration text).

  19. def OAI.Problem315.uniformAverage line 108

    Also declared: OAI/Probability/SwitchChain/Definitions.lean:108 (same declaration text).

  20. def OAI.Problem315.uniformInner line 113

    Also declared: OAI/Probability/SwitchChain/Definitions.lean:113 (same declaration text).

  21. def OAI.Problem315.uniformVariance line 117

    Also declared: OAI/Probability/SwitchChain/Definitions.lean:117 (same declaration text).

  22. def OAI.Problem315.markovApply line 122

    Also declared: OAI/Probability/SwitchChain/Definitions.lean:122 (same declaration text).

  23. def OAI.Problem315.dirichletEnergy line 127

    Also declared: OAI/Probability/SwitchChain/Definitions.lean:127 (same declaration text).

  24. def OAI.Problem315.hasSpectralGapAtLeast line 131

    Also declared: OAI/Probability/SwitchChain/Definitions.lean:131 (same declaration text).

  25. def OAI.Problem315.tvDistanceFrom line 135

    Also declared: OAI/Probability/SwitchChain/Definitions.lean:135 (same declaration text).

  26. def OAI.Problem315.MixedAt line 142

    Also declared: OAI/Probability/SwitchChain/Definitions.lean:142 (same declaration text).

  27. def OAI.Problem315.mixingTime line 145

    Also declared: OAI/Probability/SwitchChain/Definitions.lean:145 (same declaration text).

  28. def OAI.Problem315.SwitchStep line 150

    Also declared: OAI/Probability/SwitchChain/Definitions.lean:150 (same declaration text).

  29. theorem OAI.Problem315.switch_chain_main Challenge statement: Rapid mixing of graph switches for every degree sequence sorry line 155

    L4DEL explanation

    The Kannan–Tetali–Vempala conjecture asks for polynomial mixing of the switch chain for every graphical degree sequence. The formalization proves the simple undirected case: for $n\ge4$, the lazy chain that proposes switches on four vertices has total-variation mixing time at distance $1/4$ at most $2n^8$. It also proves switch connectivity, the stated exponential total-variation bound, and a spectral gap of at least $1/(24n^2\binom n4)$ when more than one graph realizes the degree sequence. The paper's exactly uniform sampling algorithm is outside these selected chain estimates.

    1. This is an exact comparator target linked by the pinned repository's formalization note for this result.
    2. The repository's comparator configuration selects OAI.Probability.SwitchChain.Main as the released solution module checked against this declaration.

    Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)

    Distinct definitions of this name: OAI/Probability/SwitchChain/Main.lean:18 (same statement text; different proof or body). Qualify references as OAI.Problem315.switch_chain_main@path.

    theorem switch_chain_main :
        ∀ (n : Nat) (d : Fin n → Nat), 4 ≤ n → (∀ v, d v ≤ n - 1) → Graphical n d → ((∃ h : (∃ t : Nat, MixedAt n d t), mixingTime n d h ≤ 2 * n ^ 8) ∧ (stateCount n d = 1 → (MixedAt n d 0 ∧ ∀ h : (∃ t : Nat, MixedAt n d t), mixingTime n d h = 0)) ∧ (1 < stateCount n d → hasSpectralGapAtLeast n d ((1 : ℝ) / (24 * (n : ℝ) ^ 2 * (Nat.choose n 4 : ℝ))))) := by
    …

    Mentions: OAI.Problem315.Graphical, OAI.Problem315.MixedAt, OAI.Problem315.mixingTime, OAI.Problem315.stateCount, OAI.Problem315.hasSpectralGapAtLeast

  30. theorem OAI.Problem315.switch_chain_tv_bound Challenge statement: Rapid mixing of graph switches for every degree sequence sorry line 159

    L4DEL explanation

    The Kannan–Tetali–Vempala conjecture asks for polynomial mixing of the switch chain for every graphical degree sequence. The formalization proves the simple undirected case: for $n\ge4$, the lazy chain that proposes switches on four vertices has total-variation mixing time at distance $1/4$ at most $2n^8$. It also proves switch connectivity, the stated exponential total-variation bound, and a spectral gap of at least $1/(24n^2\binom n4)$ when more than one graph realizes the degree sequence. The paper's exactly uniform sampling algorithm is outside these selected chain estimates.

    1. This is an exact comparator target linked by the pinned repository's formalization note for this result.
    2. The repository's comparator configuration selects OAI.Probability.SwitchChain.Main as the released solution module checked against this declaration.

    Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)

    Distinct definitions of this name: OAI/Probability/SwitchChain/Main.lean:30 (same statement text; different proof or body). Qualify references as OAI.Problem315.switch_chain_tv_bound@path.

    theorem switch_chain_tv_bound :
        ∀ (n : Nat) (d : Fin n → Nat), 4 ≤ n → (∀ v, d v ≤ n - 1) → Graphical n d → 1 < stateCount n d → ∀ (t : Nat) (G : GraphState n d), tvDistanceFrom n d t G ≤ Real.sqrt (stateCount n d : ℝ) / 2 * Real.exp (- (t : ℝ) / (24 * (n : ℝ) ^ 2 * (Nat.choose n 4 : ℝ))) := by
    …

    Mentions: OAI.Problem315.Graphical, OAI.Problem315.stateCount, OAI.Problem315.GraphState, OAI.Problem315.tvDistanceFrom

  31. theorem OAI.Problem315.switch_connectivity Challenge statement: Rapid mixing of graph switches for every degree sequence sorry line 163

    L4DEL explanation

    The Kannan–Tetali–Vempala conjecture asks for polynomial mixing of the switch chain for every graphical degree sequence. The formalization proves the simple undirected case: for $n\ge4$, the lazy chain that proposes switches on four vertices has total-variation mixing time at distance $1/4$ at most $2n^8$. It also proves switch connectivity, the stated exponential total-variation bound, and a spectral gap of at least $1/(24n^2\binom n4)$ when more than one graph realizes the degree sequence. The paper's exactly uniform sampling algorithm is outside these selected chain estimates.

    1. This is an exact comparator target linked by the pinned repository's formalization note for this result.
    2. The repository's comparator configuration selects OAI.Probability.SwitchChain.Main as the released solution module checked against this declaration.

    Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)

    Distinct definitions of this name: OAI/Probability/SwitchChain/Main.lean:36 (same statement text; different proof or body). Qualify references as OAI.Problem315.switch_connectivity@path.

    theorem switch_connectivity :
        ∀ (n : Nat) (d : Fin n → Nat), 4 ≤ n → (∀ v, d v ≤ n - 1) → Graphical n d → ∀ G H : GraphState n d, Relation.ReflTransGen (SwitchStep n d) G H := by
    …

    Mentions: OAI.Problem315.Graphical, OAI.Problem315.GraphState, OAI.Problem315.SwitchStep