openAI-math-dataset / lean /OAI /Algebra /AuslanderReiten /Tensor /BalancedTensorProjective.lean
roseking's picture
Add lean source and binary files (part 6)
2c7d975 verified
Raw History Blame Contribute Delete
2.21 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))
22
theorem projective [Module.Projective S F] [Module.Finite R M] [Module.Projective R M] :
    Module.Projective S (BalancedTensor k R F M) := by
proof · 8 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 S (BalancedTensor k R F R) :=
    Module.Projective.of_equiv (runitLeft (k := k) (R := R) (S := S) (F := F)).symm
  let : Module.Projective S (BalancedTensor k R F (Fin n → R)) :=
    Module.Projective.of_equiv (piRight (k := k) (R := R) (S := S) (F := F) (M := R)).symm
  apply Module.Projective.of_split (mapRight (k := k) (S := S) s) (mapRight (k := k) (S := S) p)
  rw [← mapRight_comp, hs, mapRight_id]
33
theorem finite [Module.Finite S F] [Module.Finite R M] :
    Module.Finite S (BalancedTensor k R F M) := by
proof · 6 lines
  obtain ⟨n, p, hp⟩ := Module.Finite.exists_fin' R M
  let : Module.Finite S (BalancedTensor k R F R) :=
    Module.Finite.equiv (runitLeft (k := k) (R := R) (S := S) (F := F)).symm
  let : Module.Finite S (BalancedTensor k R F (Fin n → R)) :=
    Module.Finite.equiv (piRight (k := k) (R := R) (S := S) (F := F) (M := R)).symm
  exact Module.Finite.of_surjective (mapRight (k := k) (S := S) p) (mapRight_surjective p hp)