-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[Merged by Bors] - feat: strengthen Cayley-Hamilton #37872
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
Closed
artie2000
wants to merge
23
commits into
leanprover-community:master
from
artie2000:generalise_natDegree_le
Closed
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
f0a25b3
initial commit
artie2000 1734e83
fix
artie2000 a2b4ef5
remove redundant line
artie2000 6181e21
Merge branch 'master' into generalise_natDegree_le
artie2000 33b3f87
min imports?
artie2000 b465e62
Merge branch 'master' into generalise_natDegree_le
artie2000 ee9038c
review comments
artie2000 211da66
lint
artie2000 2ca250b
update docs
artie2000 583d722
small golf
artie2000 b94c63d
swich to nontriviality from simp
artie2000 93a285d
inline instance
artie2000 e56157f
Merge branch 'master' into generalise_natDegree_le
artie2000 1f7f6ca
Merge branch 'master' into generalise_natDegree_le
artie2000 62b97ce
update
artie2000 a487f95
clean up
artie2000 3e52823
Merge branch 'master' into generalise_natDegree_le
artie2000 c00f87a
fix imports
artie2000 6ced952
Merge branch 'generalise_natDegree_le' of https://github.com/artie200…
artie2000 84ee0bb
Update Mathlib/LinearAlgebra/Matrix/Charpoly/LinearMap.lean
artie2000 423ad87
Update Mathlib/FieldTheory/Minpoly/Finite.lean
artie2000 e34a00a
Merge branch 'master' into generalise_natDegree_le
artie2000 c513243
lint
artie2000 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,44 @@ | ||
| /- | ||
| Copyright (c) 2026 Artie Khovanov. All rights reserved. | ||
| Released under Apache 2.0 license as described in the file LICENSE. | ||
| Authors: Artie Khovanov | ||
| -/ | ||
| module | ||
|
|
||
| public import Mathlib.FieldTheory.Minpoly.Basic | ||
| public import Mathlib.LinearAlgebra.Matrix.Charpoly.LinearMap | ||
| public import Mathlib.RingTheory.FiniteType | ||
|
|
||
| /-! | ||
| # Minimal polynomials on a finite algebra | ||
|
|
||
| This file proves the bound on the degree of a minimal polynomial on an algebra | ||
| that is finite as a module. | ||
|
|
||
| -/ | ||
|
|
||
| @[expose] public section | ||
|
|
||
| variable {A B : Type*} [CommRing A] [Ring B] [Algebra A B] [Module.Finite A B] (x : B) | ||
|
|
||
| open Polynomial | ||
|
|
||
| namespace minpoly | ||
|
|
||
| variable (A) in | ||
| theorem natDegree_le_spanFinrank : | ||
| (minpoly A x).natDegree ≤ (⊤ : Submodule A B).spanFinrank := by | ||
| rcases LinearMap.exists_monic_and_natDegree_eq_and_aeval_eq_zero _ (Algebra.lmul A _ x) with | ||
| ⟨f, f_monic, f_deg, f_aeval⟩ | ||
| refine f_deg ▸ (natDegree_le_natDegree <| minpoly.min _ _ f_monic ?_) | ||
| rw [aeval_algHom_apply] at f_aeval | ||
| exact Algebra.lmul_injective (R := A) <| by simpa using f_aeval | ||
|
|
||
| theorem natDegree_le [Module.Free A B] : (minpoly A x).natDegree ≤ Module.finrank A B := by | ||
| nontriviality A | ||
| simpa [Module.finrank_eq_spanFinrank_of_free] using natDegree_le_spanFinrank A x | ||
|
|
||
| theorem degree_le [Module.Free A B] : (minpoly A x).degree ≤ Module.finrank A B := | ||
| degree_le_of_natDegree_le <| natDegree_le x | ||
|
|
||
| end minpoly |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.