Download data/lean/OAI/Analysis/GroupDeterminants/TransferTrace.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 4.84 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/GroupDeterminants/TransferTrace.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/GroupDeterminants/TransferTrace.lean
-
curl -L -o TransferTrace.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/GroupDeterminants/TransferTrace.lean
4.84 kB
| import OAI.Analysis.GroupDeterminants.ShearTrace | |
| namespace OAI | |
| noncomputable section | |
| open scoped BigOperators Pointwise | |
| namespace GroupRingDeterminant | |
| section TransferTrace | |
| variable {G r m : Type} [Group G] [Fintype r] [Fintype m] [DecidableEq r] [DecidableEq m] | |
| def topBlockIdentity : Matrix (r β m) (r β m) (MonoidAlgebra β G) := | |
| Matrix.fromBlocks 1 0 0 0 | |
| def bottomBlock (P : Matrix m m (MonoidAlgebra β G)) : | |
| Matrix (r β m) (r β m) (MonoidAlgebra β G) := Matrix.fromBlocks 0 0 0 P | |
| def lowerNil (U : Matrix m r (MonoidAlgebra β G)) : | |
| Matrix (r β m) (r β m) (MonoidAlgebra β G) := Matrix.fromBlocks 0 0 U 0 | |
| def upperNil (V : Matrix r m (MonoidAlgebra β G)) : | |
| Matrix (r β m) (r β m) (MonoidAlgebra β G) := Matrix.fromBlocks 0 V 0 0 | |
| lemma lowerNil_square (U : Matrix m r (MonoidAlgebra β G)) : lowerNil U * lowerNil U = 0 := by | |
| simp [lowerNil, Matrix.fromBlocks_multiply, Matrix.fromBlocks_zero] | |
| lemma upperNil_square (V : Matrix r m (MonoidAlgebra β G)) : upperNil V * upperNil V = 0 := by | |
| simp [upperNil, Matrix.fromBlocks_multiply, Matrix.fromBlocks_zero] | |
| omit [Fintype r] [Fintype m] in | |
| lemma lowerShear_eq_one_add (U : Matrix m r (MonoidAlgebra β G)) : | |
| lowerShear U = 1 + lowerNil U := by | |
| rw [lowerShear, lowerNil, β Matrix.fromBlocks_one, Matrix.fromBlocks_add] | |
| simp | |
| omit [Fintype r] [Fintype m] in | |
| lemma upperShear_eq_one_add (V : Matrix r m (MonoidAlgebra β G)) : | |
| upperShear V = 1 + upperNil V := by | |
| rw [upperShear, upperNil, β Matrix.fromBlocks_one, Matrix.fromBlocks_add] | |
| simp | |
| lemma transfer_diagonal_weightedPair (q : β) (P : Matrix m m (MonoidAlgebra β G)) : | |
| Matrix.fromBlocks (q β’ (1 : Matrix r r (MonoidAlgebra β G))) 0 0 | |
| (projectionReweight P (-qβ»ΒΉ) (-1 : β)) = | |
| weightedPair topBlockIdentity (bottomBlock P) q (-qβ»ΒΉ) (-1) := by | |
| apply Matrix.ext | |
| intro i j | |
| rcases i with i | i <;> rcases j with j | j | |
| Β· by_cases hij : i = j <;> | |
| simp [weightedPair, topBlockIdentity, bottomBlock, Matrix.fromBlocks, hij] | |
| Β· simp [weightedPair, topBlockIdentity, bottomBlock, Matrix.fromBlocks] | |
| Β· simp [weightedPair, topBlockIdentity, bottomBlock, Matrix.fromBlocks] | |
| Β· simp [weightedPair, topBlockIdentity, bottomBlock, projectionReweight, | |
| Matrix.fromBlocks, Matrix.one_apply] | |
| lemma transfer_trace_log (q : β) (hq : 0 < q) | |
| (P : Matrix m m (MonoidAlgebra β G)) (hP : P * P = P) | |
| (U : Matrix m r (MonoidAlgebra β G)) (V : Matrix r m (MonoidAlgebra β G)) : | |
| let M := indexedComplexRepresentation (transferMatrix q P U V) | |
| groupTrace (CFC.log (star M * M)) = | |
| (2 * ((Fintype.card r : β) - (β i, (P i i).coeff 1).re) * Real.log q : β) := by | |
| let Q : Matrix (r β m) (r β m) (MonoidAlgebra β G) := topBlockIdentity | |
| let R : Matrix (r β m) (r β m) (MonoidAlgebra β G) := bottomBlock P | |
| have hQ : Q * Q = Q := by simp [Q, topBlockIdentity, Matrix.fromBlocks_multiply] | |
| have hR : R * R = R := by simp [R, bottomBlock, Matrix.fromBlocks_multiply, hP] | |
| have hQR : Q * R = 0 := by | |
| simp [Q, R, topBlockIdentity, bottomBlock, Matrix.fromBlocks_multiply, Matrix.fromBlocks_zero] | |
| have hRQ : R * Q = 0 := by | |
| simp [Q, R, topBlockIdentity, bottomBlock, Matrix.fromBlocks_multiply, Matrix.fromBlocks_zero] | |
| have hQs : IsSelfAdjoint Q := by | |
| change Matrix.conjTranspose Q = Q | |
| simp [Q, topBlockIdentity, Matrix.fromBlocks_conjTranspose] | |
| let B := weightedPair Q R q (-qβ»ΒΉ) (-1) | |
| have hB : IsUnit B := weightedPair_unit Q R hQ hR hQR hRQ _ _ _ | |
| hq.ne' (neg_ne_zero.mpr (inv_ne_zero hq.ne')) (by norm_num) | |
| let S := lowerNil (qβ»ΒΉ β’ U) | |
| let T := upperNil (qβ»ΒΉ β’ V) | |
| have htS : β i, (S i i).coeff 1 = 0 := by simp [S, lowerNil, Fintype.sum_sum_type] | |
| have htT : β i, (T i i).coeff 1 = 0 := by simp [T, upperNil, Fintype.sum_sum_type] | |
| have hf : transferMatrix q P U V = (1 + S) * B * (1 + T) := by | |
| rw [β transferMatrix_factorization q hq.ne', transfer_diagonal_weightedPair, | |
| lowerShear_eq_one_add, upperShear_eq_one_add] | |
| have H := indexed_trace_log_shear B S T hB (lowerNil_square _) (upperNil_square _) htS htT | |
| have H' := indexed_trace_log_weightedPair Q R hQ hR hQR hRQ hQs (Real.log q) | |
| have hexp : Real.exp (Real.log q) = q := Real.exp_log hq | |
| have hexpn : Real.exp (-Real.log q) = qβ»ΒΉ := by rw [Real.exp_neg, hexp] | |
| dsimp only at H H' β’ | |
| rw [hf, H] | |
| have ht : (β i, ((Q - R) i i).coeff 1) = | |
| (Fintype.card r : β) - β i, (P i i).coeff 1 := by | |
| simp [Q, R, topBlockIdentity, bottomBlock, Fintype.sum_sum_type] | |
| rw [hexp, hexpn, ht] at H' | |
| calc | |
| _ = ((Real.log q * (2 * ((Fintype.card r : β) - β i, (P i i).coeff 1).re) : β) : β) := H' | |
| _ = _ := by congr 1; simp only [Complex.sub_re, Complex.natCast_re]; ring | |
| end TransferTrace | |
| end GroupRingDeterminant | |
| end | |
| end OAI | |