ComparatorChallenges/BufferedIsing.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
17 declarations, 1 contain sorry, 0 declared as axioms
- structure
OAI.BufferedIsing.FiniteGraphA finite graph given by its edge list line 11Source 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.
- 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 …
- abbrev
OAI.BufferedIsing.Spinsline 18Also declared: OAI/Probability/Ising/Basic.lean:18 (same declaration text).
- def
OAI.BufferedIsing.spinline 20Also declared: OAI/Probability/Ising/Basic.lean:20 (same declaration text).
- def
OAI.BufferedIsing.energyline 22Also declared: OAI/Probability/Ising/Basic.lean:22 (same declaration text).
- def
OAI.BufferedIsing.weightline 27Also declared: OAI/Probability/Ising/Basic.lean:27 (same declaration text).
- def
OAI.BufferedIsing.AgreesOnline 30Also declared: OAI/Probability/Ising/Basic.lean:30 (same declaration text).
- def
OAI.BufferedIsing.constrainedSumline 33Also declared: OAI/Probability/Ising/Basic.lean:33 (same declaration text).
- def
OAI.BufferedIsing.conditionalProbConditional probability of σ_I=a, with σ_J=b and σ_F=τ prescribed line 40Source 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.
- 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
- def
OAI.BufferedIsing.keptEdgesEdges remaining after DELETION, not pinning, of F line 46Source documentation
Edges remaining after DELETION, not pinning, of F.
L4DEL explanation
Edges remaining after DELETION, not pinning, of F.
- 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
- abbrev
OAI.BufferedIsing.KeptVertexline 49Also declared: OAI/Probability/Ising/Basic.lean:49 (same declaration text).
- def
OAI.BufferedIsing.comparisonRelOpen-edge adjacency together with the two separate terminal identifications line 53Source 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.
- 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
- def
OAI.BufferedIsing.comparisonSetoidThe equivalence closure implements components of the contracted open graph line 60Source documentation
The equivalence closure implements components of the contracted open graph.
L4DEL explanation
The equivalence closure implements components of the contracted open graph.
- 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
- def
OAI.BufferedIsing.clusterCountline 64Also declared: OAI/Probability/Ising/Basic.lean:64 (same declaration text).
- def
OAI.BufferedIsing.fkWeightZero-field FK weight with q=2 and p_e=1-exp(-2 K_e) line 72Source 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.
- 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
- def
OAI.BufferedIsing.qZeroChoose any i in I and j in J line 81Source 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.
- 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
- def
OAI.BufferedIsing.mixtureProbAny probability mixture of source prescriptions line 91Source 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.
- 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
- theorem
OAI.BufferedIsing.finite_graph_comparisonChallenge statement: Conformal universality for weakly interacting and random-bond Ising models sorry line 98Source 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.
- This is an exact comparator target linked by the pinned repository's formalization note for this result.
- 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