Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Dependency graphs for families indexed by an arbitrary type

Definition
QLLL_LocalLemma_Infinite

by sattath · Oct 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

lattice-theorylovasz-local-lemmaquantum-lll

Dependency graph on an arbitrary index set (IsDependencyGraphOn). Let LLL be a bounded lattice with a valuation RRR, let (Xi)i∈I(X_i)_{i \in I}(Xi​)i∈I​ be a family in LLL indexed by an arbitrary set III, and let Γ(i)⊆I\Gamma(i) \subseteq IΓ(i)⊆I be finite sets. They form a dependency graph if, for every iii and every finite S⊆IS \subseteq IS⊆I with i∉Si \notin Si∈/S and S∩Γ(i)=∅S \cap \Gamma(i) = \emptysetS∩Γ(i)=∅,

R(Xi∧⋀j∈SXj)=R(Xi) R(⋀j∈SXj).R\Big(X_i \wedge \bigwedge_{j \in S} X_j\Big) = R(X_i)\, R\Big(\bigwedge_{j \in S} X_j\Big).R(Xi​∧j∈S⋀​Xj​)=R(Xi​)R(j∈S⋀​Xj​).

For a finite index set this agrees with the dependency graph of QLLL_LocalLemma_Basic. It is the hypothesis of the local lemma for infinite families.

Definition code
import Definitions.Def_QLLL_LocalLemma_Basic
import Mathlib

/-
Copyright (c) 2026 Or Sattath. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Or Sattath
-/

/-!
# The local lemma for an infinite index set

`QuantumLocalLemma.LocalLemma.Basic` proves the local lemma for finitely many events, indexed by
`Fin n`. This file removes the finiteness of the index set.

The observation that makes it work: the proof of `key_mul` uses the dependency
hypothesis at exactly one point, to say that `X i` is independent of the finite
family `S \ Γ i` when `i ∉ S`. Phrased as "independent of every finite set of
non-neighbours not containing `i`", that condition never mentions `univ`, so the
index type need not be finite at all. `prod_le_inf_of` therefore bounds every
finite meet, for an arbitrary index type.

Only the last step, passing from all finite meets to the meet of the whole
family, needs anything new, and what it needs is continuity from above. That is
supplied here as an explicit hypothesis rather than assumed silently, because it
is exactly the axiom the finite theory lacks:

* `QuantumLocalLemma.Quantum.NoCompactness` shows the classical compactness route is unavailable
  for subspaces, so continuity cannot be dodged.
* `relDim X = dim X / dim V` cannot satisfy it, since it requires finite
  dimension in the first place.
* A normalised trace on a finite von Neumann algebra can: it is a `[0,1]`-valued
  dimension on a complete projection lattice, modularity is the Kaplansky
  formula, and normality of the trace is precisely continuity from above.

So the combinatorial content is proved unconditionally, and the analytic content
is isolated in one named hypothesis.
-/

namespace QLLL

open Finset

variable {α : Type*} [Lattice α] [BoundedOrder α] (R : Valuation α)
variable {ι : Type*} {X : ι → α} {Γ : ι → Finset ι} {y : ι → ℝ}

/-- A dependency graph, with no finiteness assumption on the index type: `X i` is
independent of any finite set of non-neighbours not containing `i`.

For a finite index type this is equivalent to `Valuation.IsDependencyGraph`,
since `S ⊆ (univ \ Γ i).erase i` says exactly `i ∉ S` and `Disjoint S (Γ i)`. -/
def IsDependencyGraphOn (X : ι → α) (Γ : ι → Finset ι) : Prop :=
  ∀ (i : ι) (S : Finset ι), i ∉ S → Disjoint S (Γ i) →
    R (X i ⊓ S.inf X) = R (X i) * R (S.inf X)

end QLLL

namespace QLLL

open Finset

variable {α : Type*} [CompleteLattice α] (R : Valuation α)
variable {ι : Type*} {X : ι → α} {Γ : ι → Finset ι} {y : ι → ℝ}

end QLLL
Source
Not in the paper; the dependency-graph notion for infinite families. Formalization companion to Ambainis, Kempe and Sattath, A Quantum Lovász Local Lemma, arXiv:0911.1696; see the blueprint https://sattath.github.io/Quantum-Lovasz-Local-Lemma/blueprint/

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me