Offline · exact source
Exact Lean source

TensorHighestExtractionBasic

formalization/Cloning/TensorHighestExtractionBasic.lean

Source hash: 93ee6bd11ef56838b69067570d3ad4dc351d002f8243d6bba867c9621d31f3db

Full source copied without mathematical changes from the snapshot whose input hash matches the passing audit. Select a line number for a stable source pointer.

The declarations belong to the compiled inventory covered by the project’s shared axiom audit. That audit records an aggregate union, without attributing axioms to individual declarations.

Declarations in this module
1import Cloning.TensorCyclicSectorCovariance
2import Cloning.TensorRootBounds
3 
4/-! Computational support of projected Cartan weight vectors. -/
5noncomputable section
6open scoped BigOperators InnerProductSpace
7namespace Cloning.TensorLie
8open Cloning.PCT
9set_option maxHeartbeats 1000000
10set_option backward.isDefEq.respectTransparency false
11variable {n d : ℕ}
12 
13local instance : FiniteDimensional ℂ (TensorRegister n (Fin d)) :=
14  (registerBasis (Fin n → Fin d)).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
15 
16def physicalWordHeight (w : Fin n → Fin d) : ℕ := ∑ t, (w t).val
17 
18theorem physicalWordHeight_update (w : Fin n → Fin d) (t : Fin n) (a : Fin d) :
19    physicalWordHeight (Function.update w t a) + (w t).val = physicalWordHeight w + a.val := by
20  have he := Finset.sum_congr (s₁ := (Finset.univ : Finset (Fin n))) rfl
21    (fun u _ => show (Function.update w t a u).val + (if u = t then (w t).val else 0) =
22      (w u).val + (if u = t then a.val else 0) from by
23        by_cases h : u = t
24        · subst u; simp [Nat.add_comm]
25        · simp [h])
26  simpa only [physicalWordHeight, Finset.sum_add_distrib, Finset.sum_ite_eq',
27    Finset.mem_univ, if_true] using he
28 
29theorem physicalWordHeight_eq_occupancy (w : Fin n → Fin d) :
30    physicalWordHeight w = ∑ a : Fin d, a.val * occupancy w a := by
31  simp only [occupancy, Finset.card_filter, Finset.mul_sum, mul_ite, mul_one, mul_zero]
32  rw [Finset.sum_comm]
33  simp [physicalWordHeight]
34 
35theorem cartan_weight_coefficient (Ω : TensorRegister n (Fin d)) (mu : Fin d → ℕ)
36    (hweight : ∀ a, collectiveGenerator n a a Ω = (mu a : ℂ) • Ω)
37    (w : Fin n → Fin d) (hw : Ω w ≠ 0) (a : Fin d) : occupancy w a = mu a := by
38  have he := congrArg (fun x : TensorRegister n (Fin d) => x w) (hweight a)
39  simp only [collectiveGenerator_diagonal, lp.coeFn_smul, Pi.smul_apply, smul_eq_mul] at he
40  have hc : (occupancy w a : ℂ) = (mu a : ℂ) := mul_right_cancel₀ hw he
41  exact_mod_cast hc
42 
43theorem invariant_projection_basis_cartan
44    (W : Submodule ℂ (TensorRegister n (Fin d)))
45    (hW : ∀ a b x, x ∈ W → collectiveGenerator n a b x ∈ W)
46    (w : Fin n → Fin d) (a : Fin d) :
47    collectiveGenerator n a a (W.starProjection (registerBasis _ w)) =
48      (occupancy w a : ℂ) • W.starProjection (registerBasis _ w) := by
49  rw [← invariant_starProjection_commutes W hW, collectiveGenerator_diagonal_basis, map_smul]
50 
51theorem invariant_exists_projection_basis_ne_zero
52    (W : Submodule ℂ (TensorRegister n (Fin d))) (hWne : W ≠ ⊥) :
53    ∃ w : Fin n → Fin d, W.starProjection (registerBasis _ w) ≠ 0 := by
54  by_contra! hz
55  have hP : W.starProjection = 0 := by
56    apply register_operator_ext
57    intro a c
58    simpa only [registerBasis_apply, ContinuousLinearMap.zero_apply] using
59      congrArg (fun x : TensorRegister n (Fin d) => x a) (hz c)
60  obtain ⟨x, hx, hxne⟩ := W.ne_bot_iff.mp hWne
61  have he := Submodule.starProjection_eq_self_iff.mpr hx
62  rw [hP, ContinuousLinearMap.zero_apply] at he
63  exact hxne he.symm
64 
65/-- A nonzero coordinate of a vector in a subspace forces the corresponding
66projected computational basis vector to be nonzero. -/
67theorem projection_basis_ne_zero_of_coefficient
68    (W : Submodule ℂ (TensorRegister n (Fin d)))
69    {x : TensorRegister n (Fin d)} (hx : x ∈ W) (w : Fin n → Fin d) (hw : x w ≠ 0) :
70    W.starProjection (registerBasis _ w) ≠ 0 := by
71  intro hz
72  have he := W.inner_starProjection_left_eq_right (registerBasis _ w) x
73  rw [hz, Submodule.starProjection_eq_self_iff.mpr hx, inner_zero_left,
74    registerBasis_apply, register_inner_single] at he
75  exact hw he.symm
76 
77/-- Positivity of the actual root norm forces every highest Cartan weight to
78be weakly decreasing. -/
79theorem highest_weight_antitone (Ω : TensorRegister n (Fin d)) (mu : Fin d → ℕ)
80    (hweight : ∀ a, collectiveGenerator n a a Ω = (mu a : ℂ) • Ω)
81    (hraise : ∀ a b, a < b → collectiveGenerator n a b Ω = 0)
82    (hΩ : ‖Ω‖ = 1) : Antitone mu := by
83  intro a b hab
84  rcases eq_or_lt_of_le hab with rfl | hab
85  · rfl
86  · have hc := root_diagonal_commutator a b Ω
87    rw [hraise a b hab, map_zero, sub_zero, hweight a, hweight b, ← sub_smul] at hc
88    have hi : ⟪collectiveGenerator n b a Ω, collectiveGenerator n b a Ω⟫_ℂ =
89        (mu a : ℂ) - mu b := by
90      rw [collectiveGenerator_inner_adjoint, hc, inner_smul_right,
91        inner_self_eq_norm_sq_to_K, hΩ]
92      norm_num
93    have hp : 0 ≤ ((mu a : ℂ) - mu b).re := by
94      rw [← hi]
95      exact inner_self_nonneg (𝕜 := ℂ)
96    simp only [Complex.sub_re, Complex.natCast_re] at hp
97    exact_mod_cast (sub_nonneg.mp hp)
98 
99end Cloning.TensorLie