defmapRight (b : M→ₗ[R] N) : BalancedTensor k RFM→ₗ[S] BalancedTensor k RFN:=
body · 9
lines
liftLeft
{ toFun :=fun f => (mk f).comp (b.restrictScalars k)
map_add' :=by intros; ext m; simp
map_smul' :=by intros; ext m; simp }
(by
intro f r m
change tmul (MulOpposite.op r • f) (b m) = tmul f (b (r • m))
rw [b.map_smul, balance])
(by intro s f m; exact (smul_tmul s f (b m)).symm)
@[ext]theoremleftHom_ext {Q : Type*} [AddCommGroupQ] [ModuleSQ]
(f g : BalancedTensor k RFM→ₗ[S] Q)
(h : ∀ x y, f (tmul x y) = g (tmul x y)) : f = g :=by
proof · 6
lines
apply LinearMap.ext
intro z
induction z using induction_on with
| zero => simp
| tmul x y => exact h x y
| add x y hx hy => simp only [map_add, hx, hy]
theoremmapRight_surjective (b : M→ₗ[R] N) (hb : Function.Surjective b) :
Function.Surjective (mapRight (k := k) (F:=F) (S:=S) b) :=by
proof · 10
lines
intro z
induction z using induction_on with
| zero => exact ⟨0, map_zero _⟩
| tmul f n =>
obtain ⟨m, rfl⟩ := hb n
exact ⟨tmul f m, rfl⟩
| add x y hx hy =>
obtain ⟨x, rfl⟩ := hx
obtain ⟨y, rfl⟩ := hy
exact ⟨x + y, map_add _ x y⟩