math / data /lean /OAI /Analysis /GroupDeterminants /ProjectionData.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
3.28 kB
import OAI.Analysis.GroupDeterminants.DefectProjections
namespace OAI
noncomputable section
open scoped BigOperators Pointwise
namespace GroupRingDeterminant
open LampDraft LampProjectionDraft
variable {H d : Type} [Group H] [Fintype d] [DecidableEq d]
lemma lamp_projection_data (X Y : Matrix d d (MonoidAlgebra (ZMod 2) H))
(hXY : X * Y = 1) (hYX : Y * X β‰  1) :
βˆƒ (D : β„•), Odd D ∧ βˆƒ P : Matrix (d βŠ• Unit) (d βŠ• Unit) (MonoidAlgebra β„š (LampGroup H)),
P * P = P ∧ IsSelfAdjoint P ∧ (Fintype.card d : β„š) < βˆ‘ i, (P i i).coeff 1 ∧
βˆƒ Z : Matrix (d βŠ• Unit) (d βŠ• Unit) (MonoidAlgebra β„€ (LampGroup H)),
Z.map toRat = (D : β„š) β€’ P ∧
βˆƒ u : Matrix (d βŠ• Unit) d (MonoidAlgebra (ZMod 2) (LampGroup H)),
βˆƒ v : Matrix d (d βŠ• Unit) (MonoidAlgebra (ZMod 2) (LampGroup H)),
u * v = Z.map (toMod 2) := by
classical
obtain ⟨S, hS, u, v, huv⟩ := binary_defect_factorization_lamp X Y hXY hYX
let p := projection H S
let D := denominator H S
let P : Matrix (d βŠ• Unit) (d βŠ• Unit) (MonoidAlgebra β„š (LampGroup H)) :=
Matrix.fromBlocks 1 0 0 (Matrix.diagonal (fun _ : Unit => p))
let Z : Matrix (d βŠ• Unit) (d βŠ• Unit) (MonoidAlgebra β„€ (LampGroup H)) :=
Matrix.fromBlocks ((D : β„€) β€’ 1) 0 0 (Matrix.diagonal (fun _ : Unit => numerator H S))
have hp : p * p = p := (projection_idempotent H S).eq
have hps : star p = p := (projection_selfAdjoint H S).star_eq
refine ⟨D, denominator_odd H S, P, ?_, ?_, ?_, Z, ?_, u, v, ?_⟩
Β· dsimp only [P]
rw [Matrix.fromBlocks_multiply]
simp only [Matrix.one_mul, Matrix.mul_zero, Matrix.zero_mul, add_zero, zero_add,
Matrix.diagonal_mul_diagonal, hp]
Β· change Matrix.conjTranspose P = P
dsimp only [P]
rw [Matrix.fromBlocks_conjTranspose]
simp only [Matrix.conjTranspose_one, Matrix.conjTranspose_zero, Matrix.diagonal_conjTranspose]
congr 2
funext i
exact hps
Β· have he : (βˆ‘ i, (P i i).coeff 1) = (Fintype.card d : β„š) + (p.coeff 1) := by
simp [P, Fintype.sum_sum_type]
rw [he, lt_add_iff_pos_right]
rw [show p = projection H S from rfl, projection_trace H S hS]
positivity
Β· apply Matrix.ext
intro i j
rcases i with i | i <;> rcases j with j | j
Β· change fullIntToRat H (((D : β„€) β€’ (1 : Matrix d d _)) i j) =
(D : β„š) β€’ (1 : Matrix d d _) i j
rw [show (((D : β„€) β€’ (1 : Matrix d d _)) i j) = (D : β„€) β€’ ((1 : Matrix d d _) i j) from rfl,
fullIntToRat_zsmul]
simp [Matrix.one_apply]
Β· simp [Z, P, Matrix.map_apply]
Β· simp [Z, P, Matrix.map_apply]
Β· cases i; cases j
exact numerator_toRat H S
Β· rw [huv]
apply Matrix.ext
intro i j
rcases i with i | i <;> rcases j with j | j
Β· change (1 : Matrix d d _) i j = fullIntToBin H (((D : β„€) β€’ (1 : Matrix d d _)) i j)
rw [show (((D : β„€) β€’ (1 : Matrix d d _)) i j) = (D : β„€) β€’ ((1 : Matrix d d _) i j) from rfl,
fullIntToBin_zsmul]
simp [Matrix.one_apply, (denominator_odd H S).natCast_zmod_two, D]
Β· simp [Z, Matrix.map_apply, Matrix.fromBlocks]
Β· simp [Z, Matrix.map_apply, Matrix.fromBlocks]
Β· cases i; cases j
rfl
end GroupRingDeterminant
end
end OAI