Skip to content

Commit

Permalink
chore (Ideal.Cotangent): simplify term for cotangentIdeal (#6156)
Browse files Browse the repository at this point in the history
This removes an extraneous `have` and reduces a `let` binding.
  • Loading branch information
mattrobball committed Jul 31, 2023
1 parent c8aaaf2 commit 8b42c6f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Mathlib/RingTheory/Ideal/Cotangent.lean
Expand Up @@ -114,10 +114,8 @@ theorem toCotangent_to_quotient_square (x : I) :
#align ideal.to_cotangent_to_quotient_square Ideal.toCotangent_to_quotient_square

/-- `I ⧸ I ^ 2` as an ideal of `R ⧸ I ^ 2`. -/
def cotangentIdeal (I : Ideal R) : Ideal (R ⧸ I ^ 2) := by
haveI : @RingHomSurjective R (R ⧸ I ^ 2) _ _ _ := ⟨Ideal.Quotient.mk_surjective⟩
let rq := Quotient.mk (I ^ 2)
exact Submodule.map rq.toSemilinearMap I
def cotangentIdeal (I : Ideal R) : Ideal (R ⧸ I ^ 2) :=
Submodule.map (Quotient.mk (I ^ 2)|>.toSemilinearMap) I
#align ideal.cotangent_ideal Ideal.cotangentIdeal

theorem cotangentIdeal_square (I : Ideal R) : I.cotangentIdeal ^ 2 = ⊥ := by
Expand Down

0 comments on commit 8b42c6f

Please sign in to comment.