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

17 declarations, 1 contain sorry, 0 declared as axioms

  1. structure OAI.BufferedIsing.FiniteGraph A finite graph given by its edge list line 11

    Source documentation

    A finite graph given by its edge list. Zero couplings can encode missing edges. Edges are indexed separately so parallel edges are counted separately.

    L4DEL explanation

    A finite graph given by its edge list. Zero couplings can encode missing edges. Edges are indexed separately so parallel edges are counted separately.

    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/Ising/Basic.lean:11 (same declaration text).

    structure FiniteGraph (n m : ℕ) where
    …
  2. abbrev OAI.BufferedIsing.Spins line 18

    Also declared: OAI/Probability/Ising/Basic.lean:18 (same declaration text).

  3. def OAI.BufferedIsing.spin line 20

    Also declared: OAI/Probability/Ising/Basic.lean:20 (same declaration text).

  4. def OAI.BufferedIsing.energy line 22

    Also declared: OAI/Probability/Ising/Basic.lean:22 (same declaration text).

  5. def OAI.BufferedIsing.weight line 27

    Also declared: OAI/Probability/Ising/Basic.lean:27 (same declaration text).

  6. def OAI.BufferedIsing.AgreesOn line 30

    Also declared: OAI/Probability/Ising/Basic.lean:30 (same declaration text).

  7. def OAI.BufferedIsing.constrainedSum line 33

    Also declared: OAI/Probability/Ising/Basic.lean:33 (same declaration text).

  8. def OAI.BufferedIsing.conditionalProb Conditional probability of σ_I=a, with σ_J=b and σ_F=τ prescribed line 40

    Source documentation

    Conditional probability of σ_I=a, with σ_J=b and σ_F=τ prescribed. All sums are finite and all fields are finite real numbers.

    L4DEL explanation

    Conditional probability of σ_I=a, with σ_J=b and σ_F=τ prescribed. All sums are finite and all fields are finite real numbers.

    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/Ising/Basic.lean:40 (same declaration text).

    noncomputable def conditionalProb {n m : ℕ} (G : FiniteGraph n m)
        (h : Fin n → ℝ) (I J F : Finset (Fin n)) (a b τ : Spins n) : ℝ :=
    …

    Mentions: OAI.BufferedIsing.FiniteGraph, OAI.BufferedIsing.Spins

  9. def OAI.BufferedIsing.keptEdges Edges remaining after DELETION, not pinning, of F line 46

    Source documentation

    Edges remaining after DELETION, not pinning, of F.

    L4DEL explanation

    Edges remaining after DELETION, not pinning, of F.

    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/Ising/Basic.lean:46 (same declaration text).

    def keptEdges {n m : ℕ} (G : FiniteGraph n m) (F : Finset (Fin n)) : Finset (Fin m) :=
    …

    Mentions: OAI.BufferedIsing.FiniteGraph

  10. abbrev OAI.BufferedIsing.KeptVertex line 49

    Also declared: OAI/Probability/Ising/Basic.lean:49 (same declaration text).

  11. def OAI.BufferedIsing.comparisonRel Open-edge adjacency together with the two separate terminal identifications line 53

    Source documentation

    Open-edge adjacency together with the two separate terminal identifications. No virtual identification of common pins is present: those vertices are absent.

    L4DEL explanation

    Open-edge adjacency together with the two separate terminal identifications. No virtual identification of common pins is present: those vertices are absent.

    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/Ising/Basic.lean:53 (same declaration text).

    def comparisonRel {n m : ℕ} (G : FiniteGraph n m)
        (I J F : Finset (Fin n)) (ω : Finset (Fin m)) (u v : KeptVertex F) : Prop :=
    …

    Mentions: OAI.BufferedIsing.FiniteGraph, OAI.BufferedIsing.KeptVertex

  12. def OAI.BufferedIsing.comparisonSetoid The equivalence closure implements components of the contracted open graph line 60

    Source documentation

    The equivalence closure implements components of the contracted open graph.

    L4DEL explanation

    The equivalence closure implements components of the contracted open graph.

    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/Ising/Basic.lean:60 (same declaration text).

    def comparisonSetoid {n m : ℕ} (G : FiniteGraph n m)
        (I J F : Finset (Fin n)) (ω : Finset (Fin m)) : Setoid (KeptVertex F) :=
    …

    Mentions: OAI.BufferedIsing.FiniteGraph, OAI.BufferedIsing.KeptVertex

  13. def OAI.BufferedIsing.clusterCount line 64

    Also declared: OAI/Probability/Ising/Basic.lean:64 (same declaration text).

  14. def OAI.BufferedIsing.fkWeight Zero-field FK weight with q=2 and p_e=1-exp(-2 K_e) line 72

    Source documentation

    Zero-field FK weight with q=2 and p_e=1-exp(-2 K_e). Parallel edges may be retained: the measure after summing them is the measure for the summed parallel coupling. Loops created by contraction do not change components and cancel from connection probabilities.

    L4DEL explanation

    Zero-field FK weight with q=2 and p_e=1-exp(-2 K_e). Parallel edges may be retained: the measure after summing them is the measure for the summed parallel coupling. Loops created by contraction do not change components and cancel from connection probabilities.

    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/Ising/Basic.lean:72 (same declaration text).

    noncomputable def fkWeight {n m : ℕ} (G : FiniteGraph n m)
        (I J F : Finset (Fin n)) (ω : Finset (Fin m)) : ℝ := by
    …

    Mentions: OAI.BufferedIsing.FiniteGraph

  15. def OAI.BufferedIsing.qZero Choose any i in I and j in J line 81

    Source documentation

    Choose any i in I and j in J. The terminal connection is independent of these choices because I and J are each identified.

    L4DEL explanation

    Choose any i in I and j in J. The terminal connection is independent of these choices because I and J are each identified.

    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/Ising/Basic.lean:81 (same declaration text).

    noncomputable def qZero {n m : ℕ} (G : FiniteGraph n m)
        (I J F : Finset (Fin n)) (i j : KeptVertex F) : ℝ := by
    …

    Mentions: OAI.BufferedIsing.FiniteGraph, OAI.BufferedIsing.KeptVertex

  16. def OAI.BufferedIsing.mixtureProb Any probability mixture of source prescriptions line 91

    Source documentation

    Any probability mixture of source prescriptions. Full configurations index the mixture, but only their restrictions to J are used. Thus this is exactly the class of all mixtures on {-1,+1}^J.

    L4DEL explanation

    Any probability mixture of source prescriptions. Full configurations index the mixture, but only their restrictions to J are used. Thus this is exactly the class of all mixtures on {-1,+1}^J.

    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/Ising/Basic.lean:91 (same declaration text).

    noncomputable def mixtureProb {n m : ℕ} (G : FiniteGraph n m)
        (h : Fin n → ℝ) (I J F : Finset (Fin n)) (a τ : Spins n)
        (mix : Spins n → ℝ) : ℝ :=
    …

    Mentions: OAI.BufferedIsing.FiniteGraph, OAI.BufferedIsing.Spins

  17. theorem OAI.BufferedIsing.finite_graph_comparison Challenge statement: Conformal universality for weakly interacting and random-bond Ising models sorry line 98

    Source documentation

    Finite-graph comparison for arbitrary probability mixtures on both sides. Dirac mixtures recover the conditional laws.

    L4DEL explanation

    The formalized result compares conditional Ising probabilities on finite graphs when two boundary mixtures differ but a common set of spins is pinned. If $q_0$ is the associated zero-field Fortuin–Kasteleyn connection probability after deleting the pinned vertices, the likelihood ratio lies between $\exp(-4\mathrm{artanh}\,q_0)$ and $\exp(4\mathrm{artanh}\,q_0)$. The statement allows arbitrary external fields and arbitrary probability mixtures satisfying the stated disjointness conditions. The paper's finite stopping-band approximation theorem is outside this selected statement.

    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.Ising.Main as the released solution module checked against this declaration.

    Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)

    Distinct definitions of this name: OAI/Probability/Ising/Main.lean:72 (same statement text; different proof or body). Qualify references as OAI.BufferedIsing.finite_graph_comparison@path.

    Checked implications (found by the pipeline and checked by Lean's kernel when it ran; a recorded result, not checked again in this build: what these are)

    1 more checked entries are routine (the same statement, a restatement, a generated lemma, one challenge file, a field of a structure, a route the released proof already takes, a duplicate): in the catalogue.

    theorem finite_graph_comparison {n m : ℕ} (G : FiniteGraph n m)
        (h : Fin n → ℝ) (I J F : Finset (Fin n))
        (hIJ : Disjoint I J) (hIF : Disjoint I F) (hJF : Disjoint J F)
        (i j : KeptVertex F) (hi : i.val ∈ I) (hj : j.val ∈ J)
        (a τ : Spins n) (mix mix' : Spins n → ℝ)
        (hmix : ∀ b, 0 ≤ mix b) (hmix' : ∀ b, 0 ≤ mix' b)
        (hmixsum : ∑ b, mix b = 1) (hmix'sum : ∑ b, mix' b = 1) :
        Real.exp (-4 * Real.artanh (qZero G I J F i j)) ≤
            mixtureProb G h I J F a τ mix / mixtureProb G h I J F a τ mix' ∧
          mixtureProb G h I J F a τ mix / mixtureProb G h I J F a τ mix' ≤
            Real.exp (4 * Real.artanh (qZero G I J F i j)) := by
    …

    Mentions: OAI.BufferedIsing.FiniteGraph, OAI.BufferedIsing.KeptVertex, OAI.BufferedIsing.Spins, OAI.BufferedIsing.qZero, OAI.BufferedIsing.mixtureProb