Skip to content

Commit 20af8f3

Browse files
committed
piOuterProduct_ofLp_apply
1 parent b9f5a10 commit 20af8f3

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

QCLib/LinearAlgebra/StdBasis.lean

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,20 @@ open EuclideanSpace
3939

4040
variable {ι : Type*} [Fintype ι]
4141

42+
namespace PiOuterProduct
43+
44+
variable {α : Type*} [CommMonoid α] (l : ι → Type*)
45+
46+
instance : PiOuterProduct (fun i => EuclideanSpace α (l i)) (EuclideanSpace α (Π i, l i)) where
47+
tprod f := WithLp.toLp 2 (⨂ i, ((f i) : (l i → α)))
48+
49+
@[simp]
50+
theorem piOuterProduct_ofLp_apply (f : (i : ι) → EuclideanSpace α (l i)) (j) :
51+
(⨂ i, f i ).ofLp j = ∏ i, f i (j i) := by
52+
simp [PiOuterProduct.tprod, ← Multiset.prod_eq_foldr]
53+
54+
end PiOuterProduct
55+
4256
noncomputable def BasisVector (i : ι) :=
4357
basisFun ι ℂ i
4458

0 commit comments

Comments
 (0)