roseking's picture
Add lean source and binary files (part 6)
2c7d975 verified
Raw History Blame Contribute Delete
2.95 kB
12
theorem diagonal_kernel_square :
    (RingHom.ker (diagonal (R := R) (F := F))) ^ 2 = ⊥ := by
proof · 12 lines
  apply le_antisymm _ bot_le
  rw [Submodule.pow_succ, Submodule.pow_one]
  apply Ideal.mul_le.mpr
  intro a ha b hb
  change (a.top, a.bottom) = (0, 0) at ha
  change (b.top, b.bottom) = (0, 0) at hb
  have ha₁ : a.top = 0 := congrArg Prod.fst ha
  have ha₂ : a.bottom = 0 := congrArg Prod.snd ha
  have hb₁ : b.top = 0 := congrArg Prod.fst hb
  have hb₂ : b.bottom = 0 := congrArg Prod.snd hb
  change a * b = 0
  ext <;> simp [ha₁, ha₂, hb₁, hb₂]
27
theorem radical_eq_comap :
    Ring.jacobson (Triangular R F) = Ideal.comap diagonal (Ring.jacobson (R × R)) := by
proof · 5 lines
  apply jacobson_eq_comap_of_nil_kernel _ diagonal_surjective
  intro a ha
  refine ⟨2, ?_⟩
  have h := Ideal.pow_mem_pow ha 2
  simpa only [diagonal_kernel_square, Ideal.mem_bot] using h
35
theorem mem_jacobson_iff (a : Triangular R F) :
    a ∈ Ring.jacobson (Triangular R F) ↔
      a.top ∈ Ring.jacobson R ∧ a.bottom ∈ Ring.jacobson R := by
proof · 2 lines
  rw [radical_eq_comap]
  exact mem_jacobson_prod_iff (a.top, a.bottom)
47
def diagonalAlg : Triangular R F →ₐ[k] R × R where
body · 4 lines
  __ := diagonal
  commutes' c := by
    simp only [Algebra.algebraMap_eq_smul_one]
    rfl
55
def quotientMap (f : R →ₐ[k] S) : Triangular R F →ₐ[k] S × S :=
body · 1 line
  (f.prodMap f).comp (diagonalAlg k)
58
theorem quotientMap_surjective (f : R →ₐ[k] S) (hf : Function.Surjective f) :
    Function.Surjective (quotientMap (F := F) k f) := by
proof · 4 lines
  rintro ⟨s, t⟩
  obtain ⟨r, hr⟩ := hf s
  obtain ⟨r', hr'⟩ := hf t
  exact ⟨⟨r, r', 0⟩, Prod.ext hr hr'⟩
65
theorem radical_eq_ker_quotientMap (f : R →ₐ[k] S)
    (hf : Ring.jacobson R = RingHom.ker f) :
    Ring.jacobson (Triangular R F) = RingHom.ker (quotientMap k f) := by
proof · 4 lines
  ext a
  rw [mem_jacobson_iff, hf]
  change (f a.top = 0 ∧ f a.bottom = 0) ↔ (f a.top, f a.bottom) = (0, 0)
  simp only [Prod.mk.injEq]
73
noncomputable def semisimpleQuotientEquiv (f : R →ₐ[k] S)
    (hsurj : Function.Surjective f) (hker : Ring.jacobson R = RingHom.ker f) :
    (Triangular R F ⧸ Ring.jacobson (Triangular R F)) ≃ₐ[k] S × S :=
body · 2 lines
  (Ideal.quotientEquivAlgOfEq k (radical_eq_ker_quotientMap k f hker)).trans
    (Ideal.quotientKerAlgEquivOfSurjective (quotientMap_surjective k f hsurj))