openAI-math-dataset / lean /OAI /Algebra /AuslanderReiten /Tensor /BalancedTensorAction.lean
roseking's picture
Add lean source and binary files (part 6)
2c7d975 verified
Raw History Blame Contribute Delete
2.15 kB
14
theorem smul_mem_relations (s : S) {z : F ⊗[k] M}
    (hz : z ∈ balancingRelations k R F M) : s • z ∈ balancingRelations k R F M := by
proof · 11 lines
  induction hz using Submodule.span_induction with
  | mem z hz =>
      obtain ⟨f, r, m, rfl⟩ := hz
      rw [smul_sub, TensorProduct.smul_tmul', TensorProduct.smul_tmul', smul_comm s]
      exact Submodule.subset_span ⟨s • f, r, m, rfl⟩
  | zero => simp
  | add x y hx hy ihx ihy =>
      simpa only [smul_add] using (balancingRelations k R F M).add_mem ihx ihy
  | smul c z hz ih =>
      rw [← smul_comm c s z]
      exact (balancingRelations k R F M).smul_mem c ih
28
def relationsAsLeft : Submodule S (F ⊗[k] M) where
body · 2 lines
  __ := (balancingRelations k R F M).toAddSubmonoid
  smul_mem' := fun s _ hz => smul_mem_relations s hz
32
instance (priority := 100) : Module S (BalancedTensor k R F M) :=
body · 1 line
  Submodule.Quotient.module (relationsAsLeft (k := k) (R := R) (S := S) (F := F) (M := M))
35
@[simp] theorem smul_tmul (s : S) (f : F) (m : M) :
    s • tmul (k := k) (R := R) f m = tmul (s • f) m := rfl
40
instance : IsScalarTower k S (BalancedTensor k R F M) where
body · 6 lines
  smul_assoc c s z := by
    induction z using Submodule.Quotient.induction_on with
    | H z =>
        change Submodule.Quotient.mk ((c • s) • z) =
          (Submodule.Quotient.mk (c • s • z) : BalancedTensor k R F M)
        rw [smul_assoc]
48
instance : SMulCommClass k S (BalancedTensor k R F M) where
body · 6 lines
  smul_comm c s z := by
    induction z using Submodule.Quotient.induction_on with
    | H z =>
        change Submodule.Quotient.mk (c • s • z) =
          (Submodule.Quotient.mk (s • c • z) : BalancedTensor k R F M)
        rw [smul_comm]