-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: port RingTheory.RingHom.Integral (#5004)
- Loading branch information
1 parent
dd23585
commit a121cf8
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/- | ||
Copyright (c) 2021 Andrew Yang. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Andrew Yang | ||
! This file was ported from Lean 3 source module ring_theory.ring_hom.integral | ||
! leanprover-community/mathlib commit a7c017d750512a352b623b1824d75da5998457d0 | ||
! Please do not edit these lines, except to modify the commit id | ||
! if you have ported upstream changes. | ||
-/ | ||
import Mathlib.RingTheory.RingHomProperties | ||
import Mathlib.RingTheory.IntegralClosure | ||
|
||
/-! | ||
# The meta properties of integral ring homomorphisms. | ||
-/ | ||
|
||
|
||
namespace RingHom | ||
|
||
open scoped TensorProduct | ||
|
||
open TensorProduct Algebra.TensorProduct | ||
|
||
theorem isIntegral_stableUnderComposition : StableUnderComposition fun f => f.IsIntegral := by | ||
introv R hf hg; exact RingHom.isIntegral_trans _ _ hf hg | ||
#align ring_hom.is_integral_stable_under_composition RingHom.isIntegral_stableUnderComposition | ||
|
||
theorem isIntegral_respectsIso : RespectsIso fun f => f.IsIntegral := by | ||
apply isIntegral_stableUnderComposition.respectsIso | ||
introv x | ||
rw [← e.apply_symm_apply x] | ||
apply RingHom.is_integral_map | ||
#align ring_hom.is_integral_respects_iso RingHom.isIntegral_respectsIso | ||
|
||
theorem isIntegral_stableUnderBaseChange : StableUnderBaseChange fun f => f.IsIntegral := by | ||
refine' StableUnderBaseChange.mk _ isIntegral_respectsIso _ | ||
introv h x | ||
refine' TensorProduct.induction_on x _ _ _ | ||
· apply isIntegral_zero | ||
· intro x y; exact IsIntegral.tmul x (h y) | ||
· intro x y hx hy; exact isIntegral_add hx hy | ||
#align ring_hom.is_integral_stable_under_base_change RingHom.isIntegral_stableUnderBaseChange | ||
|
||
end RingHom |