File tree Expand file tree Collapse file tree
QCLib/Mathlib/LinearAlgebra Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import Mathlib
2+ import QCLib.Mathlib.LinearAlgebra.PiOuterProduct
3+
4+ open scoped PiOuterProduct
5+
6+ variable {ι : Type *} [Fintype ι]
7+
8+ variable {l : ι → Type *} [∀ i, Fintype (l i)]
9+
10+ -- family of vectors in an Euclidean space
11+ variable {f : (i : ι) → EuclideanSpace ℂ (l i)}
12+
13+ instance : PiOuterProduct (fun i ↦ EuclideanSpace ℂ (l i)) (EuclideanSpace ℂ (Π i, l i)) where
14+ tprod f := WithLp.toLp 2 (⨂ i, ((f i) : (l i → ℂ)))
15+
16+
17+ #synth SMul (Matrix (Fin 2 ) (Fin 2 ) ℂ) (EuclideanSpace ℂ (Fin 2 ))
18+
19+ #synth SMul (Matrix.unitaryGroup (Fin 2 ) ℂ) (EuclideanSpace ℂ (Fin 2 ))
20+
21+ variable (M : Matrix.unitaryGroup (Fin 2 ) ℂ) (v : EuclideanSpace ℂ (Fin 2 ))
22+
23+ #check M • v -- `M • v : EuclideanSpace ℂ (Fin 2)`
24+
25+ #check Metric.sphere (0 : (EuclideanSpace ℝ (Fin 2 ))) 1
26+
27+ #synth SMul (Matrix.unitaryGroup (Fin 2 ) ℝ) ((Metric.sphere (0 : (EuclideanSpace ℝ (Fin 2 ))) 1 ))
28+
29+ #check HSMul
30+ #check SMul
You can’t perform that action at this time.
0 commit comments