-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Merged by Bors] - refactor(FreeModule/IdealQuotient): Generalize to submodule of full rank #22902
Conversation
PR summary fd99444ffeImport changes for modified filesNo significant changes to the import graph Import changes for all files
|
theorem Submodule.natAbs_det_basis_change {ι : Type*} [Fintype ι] [DecidableEq ι] (b : Basis ι ℤ M) | ||
(N : Submodule ℤ M) (bN : Basis ι ℤ N) : | ||
(b.det ((↑) ∘ bN)).natAbs = Nat.card (M ⧸ N) := by | ||
let e := b.equiv bN (Equiv.refl _) | ||
calc | ||
(b.det (N.subtype ∘ bN)).natAbs = (LinearMap.det (N.subtype ∘ₗ (e : M →ₗ[ℤ] N))).natAbs := by | ||
rw [Basis.det_comp_basis] | ||
_ = _ := natAbs_det_equiv N e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you provide a variant:
{E : Type*} [AddCommGroup E] (N : AddSubgroup E)
{ι : Type*} [DecidableEq ι] [Fintype ι] (bN : Basis ι ℤ N) (bE : Basis ι ℤ E) :
N.index = (bE.det (bN ·)).natAbs
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also need
{E : Type*} [AddCommGroup E] [Module ℚ E] (L₁ L₂ : AddSubgroup E) (H : L₁ ≤ L₂)
{ι : Type*} [DecidableEq ι] [Fintype ι] (b₁ b₂ : Basis ι ℚ E)
(h₁ : L₁ = .closure (Set.range b₁)) (h₂ : L₂ = .closure (Set.range b₂)) :
L₁.relindex L₂ = |b₂.det b₁| := by
But I think this is too much work and I'm happy to add this myself after this PR is merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The first one is easy and I added it. The second one is more work indeed and somehow I think it would make more sense to state in terms of ZLattice
over ℚ
.
/-- A submodule of full rank of a free finite `ℤ`-module has a finite quotient. | ||
|
||
Can't be an instance because of the side condition and more importantly, | ||
because the choice of `Fintype` instance is non-canonical. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But you could phrase the conclusion as Finite (M ⧸ N)
instead, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I just copied the original statement of Ideal.fintypeQuotientOfFreeOfNeBot. So I guess it would make more sense to change both of them. In which case, should I do it in this PR or maybe it's better to do that in a new PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A new PR is fine with me.
Thanks 🎉 bors merge |
…ank (#22902) Many results using Smith Normal Form for ideals of a finite free ring over a PID are also true in the case of submodules of full rank. Therefore we generalize the existing proofs to this case (usually the proofs work almost as is) and prove the corresponding results for submodules of full rank in two new files: - `LinearAlgebra.FreeModule.Finite.Quotient`: we prove in particular that for `M` a free finite module over a PID `R` and a submodule `N` of `M` of same rank, we have ```lean (M ⧸ N) ≃ₗ[R] Π i, R ⧸ Ideal.span ({smithNormalFormCoeffs b h i} : Set R) ``` - `LinearAlgebra.FreeModule.Finite.CardQuotient`: we prove in particular that if `M` is a free finite `ℤ`-module of basis `b` and `N` is a submodule of basis `bN` of the same dimension, then ```lean (b.det ((↑) ∘ bN)).natAbs = Nat.card (M ⧸ N) ``` The original proofs about ideals are deduced as consequences of the generalized proofs.
Pull request successfully merged into master. Build succeeded: |
As discussed [here](#22902 (comment))
…vProdLpPiLp` (#22993) * feat: scalar tower instances for quotients (#22951) We already have the `SMulCommClass` and `IsScalarTower` versions for `RingQuot`; this develops them for `Con` and `RingCon`, with the eventual aim of replacing `RingQuot` with `RingCon.Quotient`. * chore(Order/Group/Abs): use `@[to_additive]` (#22468) * feat(FieldTheory/Finite/Basic): lemmas about the prime subfield in positive characteristic (#22843) This PR adds some elementary results about the prime subfield of a characteristic p field, e.g., size is p, elements are integer multiples of one, and elements are characterized by being fixed by the p-th power map. * docs(Data/Real/EReal): fix capitalization error (#22943) Changes `Ereal` to `EReal` in the module docstring for `Data/Real/EReal`. * chore(Ideal/Quotient): change `Fintype` to `Finite` (#22947) As discussed [here](#22902 (comment)) * feat: add `norm_num` extensions for factorials (#8832) Add `norm_num` extensions to evaluate `Nat.factorial`, `Nat.ascFactorial` and `Nat.descFactorial`. Co-authored-by: Eric Wieser <[email protected]> * perf(CategoryTheory/Limits/Shapes): reorder instance arguments (#22968) This PR is in the same spirit as #22953. The problem is that some instances about category theoretical limits have silly side conditions that end up searching through the whole algebraic type class hierarchy. This PR attempts to keep the type class search limited to category theoretical type classes. * feat(LinearAlgebra/FreeModule/CardQuotient): compute indices of subgroups via determinant (#22940) * feat: API for continuous extension of meromorphic functions (#22867) Defines the normal form of meromorphic functions and provides API for continuous extension, as discussed [on Zulip](https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/API.20for.20continuous.20extension.20of.20meromorphic.20functions). More material will be provided in upcoming PRs. This material is used in [Project VD](https://github.com/kebekus/ProjectVD), which aims to formalize Value Distribution Theory for meromorphic functions on the complex plane. * feat(Data/Complex/Trigonometric): closer upper bound for cos 1 (#22945) cos 1 is approximately 0.5403..., so this bound is fairly tight. Co-authored-by: Vlad Tsyrklevich <[email protected]> * chore: move `List.Lex` lemmas out of the `List.Lex` namespace (#22935) This better matches the naming convention. * working on it. * Added sup_disjSum and inf_disjSum. * Finished one branch. * Finished proof. --------- Co-authored-by: Eric Wieser <[email protected]> Co-authored-by: Yury G. Kudryashov <[email protected]> Co-authored-by: Scott Carnahan <[email protected]> Co-authored-by: plp127 <[email protected]> Co-authored-by: Xavier Roblot <[email protected]> Co-authored-by: Sebastian Zimmer <[email protected]> Co-authored-by: JovanGerb <[email protected]> Co-authored-by: Stefan Kebekus <[email protected]> Co-authored-by: Vlad Tsyrklevich <[email protected]> Co-authored-by: Vlad Tsyrklevich <[email protected]> Co-authored-by: Yaël Dillies <[email protected]>
Many results using Smith Normal Form for ideals of a finite free ring over a PID are also true in the case of submodules of full rank.
Therefore we generalize the existing proofs to this case (usually the proofs work almost as is) and prove the corresponding results for submodules of full rank in two new files:
LinearAlgebra.FreeModule.Finite.Quotient
: we prove in particular that forM
a free finite module over a PIDR
and a submoduleN
ofM
of same rank, we haveLinearAlgebra.FreeModule.Finite.CardQuotient
: we prove in particular that ifM
is a free finiteℤ
-module of basisb
andN
is a submodule of basisbN
of the same dimension, thenThe original proofs about ideals are deduced as consequences of the generalized proofs.