defpiRightInv : (ι →BalancedTensor k RFM) →ₗ[S] BalancedTensor k RF (ι →M) where
body · 3
lines
toFun z :=∑ i, mapRight (k := k) (S:=S) (LinearMap.single R (fun_ : ι =>M) i) (z i)
map_add' x y :=by simp only [Pi.add_apply, map_add, Finset.sum_add_distrib]
map_smul' s z :=by simp only [Pi.smul_apply, map_smul, RingHom.id_apply, Finset.smul_sum]
theorempiRightMap_single (i j : ι) (z : BalancedTensor k RFM) :
piRightMap (S:=S) (mapRight (k := k) (S:=S) (LinearMap.single R (fun_ : ι =>M) j) z) i = if i = j then z else0:=by
proof · 10
lines
induction z using induction_on with
| zero => simp
| tmul f m =>
simp only [mapRight_tmul, piRightMap_tmul, LinearMap.single_apply]
by_cases h : i = j
· subst i; simp
· simp [h]
| add x y hx hy =>
simp only [map_add, Pi.add_apply, hx, hy]
split_ifs <;> simp
defpiRight : BalancedTensor k RF (ι →M) ≃ₗ[S] (ι →BalancedTensor k RFM) where
body · 17
lines
__ := piRightMap
invFun := piRightInv
right_inv z :=by
ext i
change piRightMap (S:=S) (∑ j, mapRight (k := k) (S:=S) (LinearMap.single R (fun_ : ι =>M) j) (z j)) i = z i
simp only [map_sum, Finset.sum_apply, piRightMap_single]
simp
left_inv z :=by
change piRightInv (S:=S) (piRightMap (S:=S) z) = z
induction z using induction_on with
| zero => simp
| tmul f m =>
change (∑ i, tmul (k := k) (R:=R) f (Pi.single i (m i))) = tmul f m
rw [← tmul_sum]
congr
exact Finset.univ_sum_single m
| add x y hx hy => simp only [map_add, hx, hy]