openAI-math-dataset / lean /OAI /Algebra /AuslanderReiten /Triangular /TriangularProjective.lean
roseking's picture
Add lean source and binary files (part 6)
2c7d975 verified
Raw History Blame Contribute Delete
4.59 kB
11
private instance finitePiProjective {S P ι : Type*} [Ring S] [AddCommGroup P]
    [Module S P] [Module.Projective S P] [Fintype ι] : Module.Projective S (ι → P) :=
body · 2 lines
  Module.Projective.of_equiv (DFinsupp.linearEquivFunOnFintype :
    (Π₀ _ : ι, P) ≃ₗ[S] (ι → P))
21
def eRegularInclusion : TriangularE k R F R →ₗ[Triangular R F] Triangular R F where
body · 11 lines
  toFun x := ⟨x.top, 0, BalancedTensor.runitLeft (S := R) x.bottom⟩
  map_add' x y := by ext <;> simp
  map_smul' a x := by
    ext
    · rfl
    · simp
    · change BalancedTensor.runitLeft (S := R)
          (BalancedTensor.tmul a.off x.top + a.bottom • x.bottom) =
        a.bottom • BalancedTensor.runitLeft (S := R) x.bottom + MulOpposite.op x.top • a.off
      rw [map_add, map_smul]
      exact add_comm _ _
34
def eRegularProjection : Triangular R F →ₗ[Triangular R F] TriangularE k R F R where
body · 12 lines
  toFun a := ⟨a.top, (BalancedTensor.runitLeft (k := k) (R := R) (S := R)).symm a.off⟩
  map_add' a b := by ext <;> simp
  map_smul' a b := by
    ext
    · rfl
    · change (BalancedTensor.runitLeft (S := R)).symm
          (a.bottom • b.off + MulOpposite.op b.top • a.off) =
        BalancedTensor.tmul a.off b.top +
          a.bottom • (BalancedTensor.runitLeft (S := R)).symm b.off
      apply (BalancedTensor.runitLeft (S := R)).injective
      rw [LinearEquiv.apply_symm_apply, map_add, map_smul, LinearEquiv.apply_symm_apply]
      exact add_comm _ _
49
theorem eRegular_split :
    (eRegularProjection (k := k) (R := R) (F := F)).comp eRegularInclusion = LinearMap.id := by
proof · 5 lines
  apply LinearMap.ext
  intro x
  ext
  · rfl
  · exact (BalancedTensor.runitLeft (S := R)).symm_apply_apply x.bottom
57
instance eRegular_projective : Module.Projective (Triangular R F) (TriangularE k R F R) :=
body · 1 line
  Module.Projective.of_split eRegularInclusion eRegularProjection eRegular_split
60
def jRegularInclusion : TriangularJ k R F R →ₗ[Triangular R F] Triangular R F where
body · 3 lines
  toFun x := ⟨0, x.bottom, 0⟩
  map_add' x y := by ext <;> simp
  map_smul' a x := by ext <;> simp
65
def jRegularProjection : Triangular R F →ₗ[Triangular R F] TriangularJ k R F R where
body · 3 lines
  toFun a := ⟨0, a.bottom⟩
  map_add' a b := by ext; simp
  map_smul' a b := by ext; simp
72
theorem jRegular_split :
    (jRegularProjection (k := k) (R := R) (F := F)).comp jRegularInclusion = LinearMap.id := by
proof · 4 lines
  apply LinearMap.ext
  intro x
  ext
  exact rfl
79
instance jRegular_projective : Module.Projective (Triangular R F) (TriangularJ k R F R) :=
body · 1 line
  Module.Projective.of_split jRegularInclusion jRegularProjection jRegular_split
86
theorem eProjective [Module.Finite R M] [Module.Projective R M] :
    Module.Projective (Triangular R F) (TriangularE k R F M) := by
proof · 6 lines
  obtain ⟨n, p, hp⟩ := Module.Finite.exists_fin' R M
  obtain ⟨s, hs⟩ := Module.projective_lifting_property p (LinearMap.id : M →ₗ[R] M) hp
  let : Module.Projective (Triangular R F) (TriangularE k R F (Fin n → R)) :=
    Module.Projective.of_equiv (ePi (k := k) (R := R) (F := F) (M := R) (Fin n)).symm
  apply Module.Projective.of_split (eMap s) (eMap p)
  rw [← eMap_comp, hs, eMap_id]
96
theorem jProjective [Module.Finite R M] [Module.Projective R M] :
    Module.Projective (Triangular R F) (TriangularJ k R F M) := by
proof · 6 lines
  obtain ⟨n, p, hp⟩ := Module.Finite.exists_fin' R M
  obtain ⟨s, hs⟩ := Module.projective_lifting_property p (LinearMap.id : M →ₗ[R] M) hp
  let : Module.Projective (Triangular R F) (TriangularJ k R F (Fin n → R)) :=
    Module.Projective.of_equiv (jPi (k := k) (R := R) (F := F) (M := R) (Fin n)).symm
  apply Module.Projective.of_split (jMap s) (jMap p)
  rw [← jMap_comp, hs, jMap_id]