Exact Lean source
TensorFundamentalBranchingWedge
formalization/Cloning/TensorFundamentalBranchingWedge.lean
Source hash: cf8a8623af7a4144da55e2fdba0d5543b54dcbec4d4fb0fbc3a1352f1607b1e4
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.TensorFundamentalBranchingSlices
2import Cloning.TensorWedgeHighest
3import Mathlib.LinearAlgebra.Matrix.Determinant.Basic
4
5/-! The literal last-slot contraction of an antisymmetric column. -/
6noncomputable section
7open scoped BigOperators InnerProductSpace Matrix
8namespace Cloning.TensorLie
9open Cloning.PCT
10set_option maxHeartbeats 800000
11set_option backward.isDefEq.respectTransparency false
12variable {n d : ℕ}
13
14/-- Coefficients of the actual antisymmetrization are literal determinants. -/
15theorem wedgeTensor_coefficient_det (v : Fin n → Register (Fin d)) (w : Fin n → Fin d) :
16 wedgeTensor n v w = Matrix.det (fun i j => v i (w j)) := by
17 simp only [wedgeTensor_apply, Matrix.det_apply, lp.coeFn_sum, Finset.sum_apply,
18 Units.smul_def, ← Int.cast_smul_eq_zsmul ℂ, lp.coeFn_smul, Pi.smul_apply,
19 tensorVector_apply]
20
21/-- Contracting the highest letter from the last slot of an antisymmetric
22column leaves exactly the shorter unnormalized antisymmetric column. -/
23theorem lastSlice_columnTensorRaw {h d : ℕ} (hd : h + 1 ≤ d) :
24 lastSlice (⟨h, by omega⟩ : Fin d) (columnTensorRaw hd) =
25 columnTensorRaw (Nat.le_trans (Nat.le_succ h) hd) := by
26 ext w
27 simp only [lastSlice_apply, columnTensorRaw, wedgeTensor_coefficient_det]
28 rw [Matrix.det_succ_column _ (Fin.last h)]
29 rw [Finset.sum_eq_single (Fin.last h)]
30 · have hdiag : registerBasis (Fin d) (columnLetters hd (Fin.last h))
31 ((Fin.snoc w (⟨h, by omega⟩ : Fin d) : Fin (h + 1) → Fin d) (Fin.last h)) = 1 := by
32 rw [Fin.snoc_last]
33 simp [registerBasis_apply, columnLetters, lp.single_apply]
34 rw [hdiag, mul_one]
35 have hsign : (-1 : ℂ) ^ ((Fin.last h : Fin (h + 1)).val + (Fin.last h : Fin (h + 1)).val) = 1 := by
36 simp [← two_mul, pow_mul]
37 rw [hsign, one_mul]
38 congr 1
39 ext i j
40 simp only [Matrix.submatrix_apply, Fin.succAbove_last, Fin.snoc_castSucc]
41 congr 2
42 · intro i _ hi
43 have hne : columnLetters hd i ≠ (⟨h, by omega⟩ : Fin d) := by
44 intro he
45 apply hi
46 apply Fin.ext
47 simpa only [columnLetters_val, Fin.val_last] using congrArg (fun a : Fin d => a.val) he
48 simp [Fin.snoc_last, registerBasis_apply, lp.single_apply, Ne.symm hne]
49 · simp
50
51/-- Last-slot contraction respects a tensor factor lying wholly to its left. -/
52theorem lastSlice_tensorJoin_last {n h d : ℕ} (r : Fin d)
53 (x : TensorRegister n (Fin d)) (y : TensorRegister (h + 1) (Fin d)) :
54 lastSlice (n := n + h) r (tensorJoin (n := n) (m := h + 1) x y) =
55 tensorJoin x (lastSlice (n := h) r y) := by
56 ext w
57 simp only [lastSlice_apply, tensorJoin_apply]
58 apply congrArg₂ (· * ·)
59 · apply congrArg (fun z : Fin n → Fin d => x z)
60 funext i
61 exact Fin.snoc_castAdd (α := fun _ => Fin d) w r i
62 · exact congrArg (fun z : Fin (h + 1) → Fin d => y z) (Fin.snoc_comp_natAdd w r)
63
64end Cloning.TensorLie