Offline · exact source
Exact Lean source

TensorLieLeibniz

formalization/Cloning/TensorLieLeibniz.lean

Source hash: de9ee4568c6b915dfd0be0481e595bb8248b4fb7b89f7f54ca541d57f6491b81

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.TensorLieFiltration
2 
3/-! Literal matrix-unit action on tensor vectors and the collective Leibniz identity. -/
4 
5noncomputable section
6open scoped BigOperators InnerProductSpace
7namespace Cloning.TensorLie
8open Cloning.PCT
9set_option maxHeartbeats 1000000
10set_option backward.isDefEq.respectTransparency false
11variable {A : Type*} [Fintype A] [DecidableEq A] {n : ℕ}
12 
13/-- One tensor-slot matrix unit acts on precisely its one-particle factor. -/
14theorem slotGenerator_tensorVector (t : Fin n) (a b : A)
15    (v : Fin n → Register A) :
16    slotGenerator t a b (tensorVector v) =
17      tensorVector (Function.update v t
18        (InnerProductSpace.rankOne ℂ (registerBasis A a) (registerBasis A b) (v t))) := by
19  ext w
20  rw [slotGenerator_apply, tensorVector_apply, tensorVector_apply]
21  let T := InnerProductSpace.rankOne ℂ (registerBasis A a) (registerBasis A b) (v t)
22  have hleft : (∏ j : Fin n, v j (Function.update w t b j)) =
23      v t b * ∏ j ∈ Finset.univ.erase t, v j (w j) := by
24    rw [← Finset.mul_prod_erase Finset.univ
25      (fun j => v j (Function.update w t b j)) (Finset.mem_univ t)]
26    simp only [Function.update_self]
27    congr 1
28    apply Finset.prod_congr rfl
29    intro j hj
30    rw [Function.update_of_ne (Finset.mem_erase.mp hj).1]
31  have hright : (∏ j : Fin n, Function.update v t T j (w j)) =
32      T (w t) * ∏ j ∈ Finset.univ.erase t, v j (w j) := by
33    rw [← Finset.mul_prod_erase Finset.univ
34      (fun j => Function.update v t T j (w j)) (Finset.mem_univ t)]
35    simp only [Function.update_self]
36    congr 1
37    apply Finset.prod_congr rfl
38    intro j hj
39    rw [Function.update_of_ne (Finset.mem_erase.mp hj).1]
40  rw [hleft, hright]
41  dsimp only [T]
42  simp only [InnerProductSpace.rankOne_apply, registerBasis_apply, register_inner_single,
43    lp.coeFn_smul, Pi.smul_apply, smul_eq_mul, lp.single_apply, Pi.single_apply]
44  by_cases h : w t = a <;> simp [h]
45 
46/-- The actual collective generator is the finite tensor Leibniz sum. -/
47theorem collectiveGenerator_tensorVector (a b : A) (v : Fin n → Register A) :
48    collectiveGenerator n a b (tensorVector v) =
49      ∑ t : Fin n, tensorVector (Function.update v t
50        (InnerProductSpace.rankOne ℂ (registerBasis A a) (registerBasis A b) (v t))) := by
51  simp only [collectiveGenerator, ContinuousLinearMap.sum_apply, slotGenerator_tensorVector]
52 
53end Cloning.TensorLie
54