File size: 10,956 Bytes
e320e82 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 | import OAI.Combinatorics.GotsmanLinial.BinomialMoments
import OAI.Combinatorics.GotsmanLinial.FiniteCoupling
import OAI.Combinatorics.GotsmanLinial.ProjectionBlocks
import Mathlib.Data.Fintype.BigOperators
namespace OAI
/-!
# The finite block coupling
Normalize a nonnegative matrix of block masses, identify its two binomial
marginals, and reflect its first index. The low-degree block vanishing gives
the one-sided displacement bound required by the finite coupling lemma.
-/
open scoped BigOperators
namespace LeanBlast.GotsmanLinial
/-- Normalize finite two-index masses by their total mass. -/
noncomputable def normalizedPairWeight {α β : Type*}
(B : α → β → ℝ) (Z : ℝ) (t : α × β) : ℝ :=
B t.1 t.2 / Z
theorem normalizedPairWeight_nonneg {α β : Type*}
(B : α → β → ℝ) (Z : ℝ) (hB : ∀ r s, 0 ≤ B r s) (hZ : 0 ≤ Z)
(t : α × β) : 0 ≤ normalizedPairWeight B Z t :=
div_nonneg (hB t.1 t.2) hZ
theorem normalizedPairWeight_row {α β : Type*} [Fintype β]
(B : α → β → ℝ) (Z : ℝ) (r : α) :
(∑ s : β, normalizedPairWeight B Z (r, s)) = (∑ s : β, B r s) / Z := by
simp only [normalizedPairWeight, ← Finset.sum_div]
theorem normalizedPairWeight_column {α β : Type*} [Fintype α]
(B : α → β → ℝ) (Z : ℝ) (s : β) :
(∑ r : α, normalizedPairWeight B Z (r, s)) = (∑ r : α, B r s) / Z := by
simp only [normalizedPairWeight, ← Finset.sum_div]
/-- First-coordinate expectations are computed from the row sums. -/
theorem normalizedPairWeight_expect_fst {α β : Type*} [Fintype α] [Fintype β]
(B : α → β → ℝ) (Z : ℝ) (φ : α → ℝ) :
(∑ t : α × β, normalizedPairWeight B Z t * φ t.1) =
∑ r : α, ((∑ s : β, B r s) / Z) * φ r := by
rw [Fintype.sum_prod_type]
apply Finset.sum_congr rfl
intro r _
simp only [normalizedPairWeight]
rw [← Finset.sum_mul, ← Finset.sum_div]
/-- Second-coordinate expectations are computed from the column sums. -/
theorem normalizedPairWeight_expect_snd {α β : Type*} [Fintype α] [Fintype β]
(B : α → β → ℝ) (Z : ℝ) (φ : β → ℝ) :
(∑ t : α × β, normalizedPairWeight B Z t * φ t.2) =
∑ s : β, ((∑ r : α, B r s) / Z) * φ s := by
rw [Fintype.sum_prod_type_right]
apply Finset.sum_congr rfl
intro s _
simp only [normalizedPairWeight]
rw [← Finset.sum_mul, ← Finset.sum_div]
/-- Finite masses with binomial row and column sums, supported above the
anti-diagonal `r+s=n-d`, have the required centered quadratic bound. -/
theorem binomial_block_coupling_bound
(n d : ℕ) (B : Fin (n + 1) → Fin (n + 1) → ℝ)
(hB : ∀ r s, 0 ≤ B r s)
(hrow : ∀ r, (∑ s : Fin (n + 1), B r s) = (n.choose r.val : ℝ))
(hcol : ∀ s, (∑ r : Fin (n + 1), B r s) = (n.choose s.val : ℝ))
(hvanish : ∀ r s, r.val + s.val < n - d → B r s = 0) :
(∑ r : Fin (n + 1), ∑ s : Fin (n + 1),
((s.val : ℝ) + (r.val : ℝ) - (n : ℝ)) ^ 2 * B r s) ≤
4 * (d : ℝ) * Real.sqrt (n : ℝ) * (2 : ℝ) ^ n := by
let w : Fin (n + 1) × Fin (n + 1) → ℝ :=
normalizedPairWeight B ((2 : ℝ) ^ n)
let U : Fin (n + 1) × Fin (n + 1) → ℝ := fun t => (t.2.val : ℝ)
let V : Fin (n + 1) × Fin (n + 1) → ℝ :=
fun t => (n : ℝ) - (t.1.val : ℝ)
have hU (φ : ℝ → ℝ) :
(∑ t : Fin (n + 1) × Fin (n + 1), w t * φ (U t)) =
∑ s : Fin (n + 1), binomialWeight n s * φ (s.val : ℝ) := by
simpa only [w, U, hcol, binomialWeight] using
normalizedPairWeight_expect_snd B ((2 : ℝ) ^ n)
(fun s => φ (s.val : ℝ))
have hV (φ : ℝ → ℝ) :
(∑ t : Fin (n + 1) × Fin (n + 1), w t * φ (V t)) =
∑ r : Fin (n + 1),
binomialWeight n r * φ ((n : ℝ) - (r.val : ℝ)) := by
simpa only [w, V, hrow, binomialWeight] using
normalizedPairWeight_expect_fst B ((2 : ℝ) ^ n)
(fun r => φ ((n : ℝ) - (r.val : ℝ)))
have hw : ∀ t, 0 ≤ w t :=
normalizedPairWeight_nonneg B _ hB (binomialDenominator_pos n).le
have hprob : (∑ t, w t) = 1 := by
have h := hU (fun _ => 1)
simpa only [mul_one, sum_binomialWeight] using h
have hsame : ∀ φ : ℝ → ℝ,
(∑ t, w t * φ (U t)) = ∑ t, w t * φ (V t) := by
intro φ
rw [hU, hV, binomialWeight_reflect]
have hvariance :
(∑ t, w t * (U t - (n : ℝ) / 2) ^ 2) =
(Real.sqrt (n : ℝ) / 2) ^ 2 := by
rw [hU (fun z => (z - (n : ℝ) / 2) ^ 2)]
rw [binomialWeight_variance, binomialSigma_sq]
have hstep : ∀ t, w t ≠ 0 → V t - U t ≤ (d : ℝ) := by
rintro ⟨r, s⟩ ht
have hnonzero : B r s ≠ 0 := by
intro hz
exact ht (by simp only [w, normalizedPairWeight, hz, zero_div])
have hnat : n - d ≤ r.val + s.val :=
Nat.le_of_not_gt (fun hlt => hnonzero (hvanish r s hlt))
have hnat' : n ≤ r.val + s.val + d := by omega
have hreal : (n : ℝ) ≤ (r.val : ℝ) + (s.val : ℝ) + (d : ℝ) := by
exact_mod_cast hnat'
dsimp only [U, V]
linarith
have hbound := finite_one_sided_coupling_bound w U V
((n : ℝ) / 2) (Real.sqrt (n : ℝ) / 2) (d : ℝ)
hw hprob hsame (binomialSigma_nonneg n) (Nat.cast_nonneg d) hvariance hstep
calc
_ = (2 : ℝ) ^ n * (∑ t, w t * (U t - V t) ^ 2) := by
rw [Fintype.sum_prod_type, Finset.mul_sum]
apply Finset.sum_congr rfl
intro r _
rw [Finset.mul_sum]
apply Finset.sum_congr rfl
intro s _
dsimp only [w, U, V, normalizedPairWeight]
field_simp [binomialDenominator_ne_zero n]
ring
_ ≤ (2 : ℝ) ^ n * (8 * (d : ℝ) * (Real.sqrt (n : ℝ) / 2)) :=
mul_le_mul_of_nonneg_left hbound (binomialDenominator_pos n).le
_ = 4 * (d : ℝ) * Real.sqrt (n : ℝ) * (2 : ℝ) ^ n := by ring
/-- The actual finite probability weights supplied by the Hilbert--Schmidt
blocks of an operator in a binomial orthogonal grading. -/
noncomputable def blockCouplingWeight {n : ℕ} {ι : Type*} [Fintype ι]
(P : Fin (n + 1) → Matrix ι ι ℂ) (H : Matrix ι ι ℂ)
(t : Fin (n + 1) × Fin (n + 1)) : ℝ :=
normalizedPairWeight (fun r s => hsNormSq (P s * H * P r)) ((2 : ℝ) ^ n) t
theorem blockCouplingWeight_nonneg {n : ℕ} {ι : Type*} [Fintype ι]
(P : Fin (n + 1) → Matrix ι ι ℂ) (H : Matrix ι ι ℂ)
(t : Fin (n + 1) × Fin (n + 1)) : 0 ≤ blockCouplingWeight P H t :=
normalizedPairWeight_nonneg _ _ (fun _ _ => hsNormSq_nonneg _)
(binomialDenominator_pos n).le t
/-- The first block index has the binomial distribution. -/
theorem blockCouplingWeight_fst_marginal {n : ℕ} {ι : Type*}
[Fintype ι] [DecidableEq ι]
{P : Fin (n + 1) → Matrix ι ι ℂ} (hP : OrthogonalProjectionFamily P)
(H : Matrix ι ι ℂ) (hH : H.conjTranspose * H = 1)
(hmult : ∀ k, hsNormSq (P k) = (n.choose k.val : ℝ))
(r : Fin (n + 1)) :
(∑ s : Fin (n + 1), blockCouplingWeight P H (r, s)) = binomialWeight n r := by
unfold blockCouplingWeight
rw [normalizedPairWeight_row, sum_hsNormSq_blocks_column hP H r hH, hmult]
rfl
/-- The second block index has the same binomial distribution. -/
theorem blockCouplingWeight_snd_marginal {n : ℕ} {ι : Type*}
[Fintype ι] [DecidableEq ι]
{P : Fin (n + 1) → Matrix ι ι ℂ} (hP : OrthogonalProjectionFamily P)
(H : Matrix ι ι ℂ) (hH : H * H.conjTranspose = 1)
(hmult : ∀ k, hsNormSq (P k) = (n.choose k.val : ℝ))
(s : Fin (n + 1)) :
(∑ r : Fin (n + 1), blockCouplingWeight P H (r, s)) = binomialWeight n s := by
unfold blockCouplingWeight
rw [normalizedPairWeight_column, sum_hsNormSq_blocks_row hP H s hH, hmult]
rfl
/-- Unitarity and the grading multiplicities make the block weights a
probability distribution without any additional normalization assumption. -/
theorem sum_blockCouplingWeight {n : ℕ} {ι : Type*}
[Fintype ι] [DecidableEq ι]
{P : Fin (n + 1) → Matrix ι ι ℂ} (hP : OrthogonalProjectionFamily P)
(H : Matrix ι ι ℂ) (hH : H.conjTranspose * H = 1)
(hmult : ∀ k, hsNormSq (P k) = (n.choose k.val : ℝ)) :
(∑ t : Fin (n + 1) × Fin (n + 1), blockCouplingWeight P H t) = 1 := by
rw [Fintype.sum_prod_type]
simp_rw [blockCouplingWeight_fst_marginal hP H hH hmult]
exact sum_binomialWeight n
/-- A nonzero block probability lies on or above the required anti-diagonal. -/
theorem blockCouplingWeight_support {n d : ℕ} {ι : Type*} [Fintype ι]
(P : Fin (n + 1) → Matrix ι ι ℂ) (H : Matrix ι ι ℂ)
(hvanish : ∀ r s, r.val + s.val < n - d → P s * H * P r = 0)
(r s : Fin (n + 1)) (ht : blockCouplingWeight P H (r, s) ≠ 0) :
n - d ≤ r.val + s.val := by
apply Nat.le_of_not_gt
intro hlt
apply ht
simp only [blockCouplingWeight, normalizedPairWeight, hvanish r s hlt,
hsNormSq_zero, zero_div]
/-- The spectral block coupling bounds the actual centered grading
anticommutator. Its hypotheses are the orthogonal grading, its binomial
multiplicities, unitarity, and the separately proved low-degree vanishing. -/
theorem hsNormSq_centeredGrading_anticommutator_le {ι : Type*}
[Fintype ι] [DecidableEq ι]
(n d : ℕ) (P : Fin (n + 1) → Matrix ι ι ℂ)
(hP : OrthogonalProjectionFamily P) (H : Matrix ι ι ℂ)
(hleft : H.conjTranspose * H = 1) (hright : H * H.conjTranspose = 1)
(hmult : ∀ k, hsNormSq (P k) = (n.choose k.val : ℝ))
(hvanish : ∀ r s, r.val + s.val < n - d → P s * H * P r = 0) :
hsNormSq (centeredGrading P * H + H * centeredGrading P) ≤
4 * (d : ℝ) * Real.sqrt (n : ℝ) * (2 : ℝ) ^ n := by
rw [hsNormSq_centered_anticommutator hP H]
apply binomial_block_coupling_bound n d (fun r s => hsNormSq (P s * H * P r))
· intro r s
exact hsNormSq_nonneg _
· intro r
rw [sum_hsNormSq_blocks_column hP H r hleft, hmult]
· intro s
rw [sum_hsNormSq_blocks_row hP H s hright, hmult]
· intro r s hrs
rw [hvanish r s hrs, hsNormSq_zero]
/-- Trace-multiplicity form, for direct use with finite-dimensional orthogonal
projections whose ranks have already been computed. -/
theorem hsNormSq_centeredGrading_anticommutator_le_of_trace {ι : Type*}
[Fintype ι] [DecidableEq ι]
(n d : ℕ) (P : Fin (n + 1) → Matrix ι ι ℂ)
(hP : OrthogonalProjectionFamily P) (H : Matrix ι ι ℂ)
(hleft : H.conjTranspose * H = 1) (hright : H * H.conjTranspose = 1)
(htrace : ∀ k, (Matrix.trace (P k)).re = (n.choose k.val : ℝ))
(hvanish : ∀ r s, r.val + s.val < n - d → P s * H * P r = 0) :
hsNormSq (centeredGrading P * H + H * centeredGrading P) ≤
4 * (d : ℝ) * Real.sqrt (n : ℝ) * (2 : ℝ) ^ n := by
apply hsNormSq_centeredGrading_anticommutator_le n d P hP H hleft hright _ hvanish
intro k
rw [hsNormSq_projection (P k) (hP.conjTranspose_eq k) (hP.idempotent k), htrace]
end LeanBlast.GotsmanLinial
end OAI
|