Skip to content

Commit 60e16ea

Browse files
committed
Merge branch 'EuclideanSpace' of https://github.com/QuCompLean/QCLib into EuclideanSpace
2 parents b4872ae + 1c79ae4 commit 60e16ea

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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

0 commit comments

Comments
 (0)