-
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.Finite (#5013)
- Loading branch information
Showing
2 changed files
with
49 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,48 @@ | ||
/- | ||
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.finite | ||
! leanprover-community/mathlib commit b5aecf07a179c60b6b37c1ac9da952f3b565c785 | ||
! Please do not edit these lines, except to modify the commit id | ||
! if you have ported upstream changes. | ||
-/ | ||
import Mathlib.RingTheory.RingHomProperties | ||
|
||
/-! | ||
# The meta properties of finite ring homomorphisms. | ||
-/ | ||
|
||
|
||
namespace RingHom | ||
|
||
open scoped TensorProduct | ||
|
||
open TensorProduct Algebra.TensorProduct | ||
|
||
theorem finite_stableUnderComposition : StableUnderComposition @Finite := by | ||
introv R hf hg | ||
exact hg.comp hf | ||
#align ring_hom.finite_stable_under_composition RingHom.finite_stableUnderComposition | ||
|
||
theorem finite_respectsIso : RespectsIso @Finite := by | ||
apply finite_stableUnderComposition.respectsIso | ||
intros | ||
exact Finite.of_surjective _ (RingEquiv.toEquiv _).surjective | ||
#align ring_hom.finite_respects_iso RingHom.finite_respectsIso | ||
|
||
theorem finite_stableUnderBaseChange : StableUnderBaseChange @Finite := by | ||
refine StableUnderBaseChange.mk _ finite_respectsIso ?_ | ||
classical | ||
introv h | ||
replace h : Module.Finite R T := by | ||
rw [RingHom.Finite] at h; convert h; ext; intros; simp_rw [Algebra.smul_def]; rfl | ||
suffices Module.Finite S (S ⊗[R] T) by | ||
rw [RingHom.Finite]; convert this; congr; ext; intros; simp_rw [Algebra.smul_def]; rfl | ||
exact inferInstance | ||
#align ring_hom.finite_stable_under_base_change RingHom.finite_stableUnderBaseChange | ||
|
||
end RingHom |