Repository navigation
Conversation
PR summary d7739ee6baImport changes for modified filesNo significant changes to the import graph Import changes for all files
|
…-map # Conflicts: # Mathlib/Algebra/QuadraticAlgebra/Basic.lean
Whysoserioushah
left a comment
There was a problem hiding this comment.
I left some minor golf (and suggestions) but it generally looks OK!
| theorem map_injective (a b u k : R) {a' b' : R} (ha : a' = u ^ 2 * a - u * b * k - k ^ 2) | ||
| (hb : b' = u * b + 2 * k) (hu : IsRegular u) : | ||
| Function.Injective (map a b u k ha hb) := by | ||
| intro z w h | ||
| have hy : z.im = w.im := hu.right <| by simpa using congr_arg im h | ||
| exact QuadraticAlgebra.ext (by simpa [hy] using congr_arg re h) hy |
There was a problem hiding this comment.
| theorem map_injective (a b u k : R) {a' b' : R} (ha : a' = u ^ 2 * a - u * b * k - k ^ 2) | |
| (hb : b' = u * b + 2 * k) (hu : IsRegular u) : | |
| Function.Injective (map a b u k ha hb) := by | |
| intro z w h | |
| have hy : z.im = w.im := hu.right <| by simpa using congr_arg im h | |
| exact QuadraticAlgebra.ext (by simpa [hy] using congr_arg re h) hy | |
| theorem map_injective (a b u k : R) {a' b' : R} (ha : a' = u ^ 2 * a - u * b * k - k ^ 2) | |
| (hb : b' = u * b + 2 * k) (hu : IsRightRegular u) : | |
| Function.Injective (map a b u k ha hb) := fun z w h ↦ | |
| have hy : z.im = w.im := hu <| by simpa using congr(im $h) | |
| QuadraticAlgebra.ext (by simpa [hy] using congr(re $h)) hy |
IsRightRegular is enough :-)
There was a problem hiding this comment.
I am not sure this one is worth it. The ring is commutative here, so the notions are the same and nothing is really being generalized. I do find IsRegular a bit more natural to read in a commutative setting.
There was a problem hiding this comment.
I agree that it doesn't make much of a difference. So author's preference in this case.
| theorem map_injective (a b u k : R) {a' b' : R} (ha : a' = u ^ 2 * a - u * b * k - k ^ 2) | ||
| (hb : b' = u * b + 2 * k) (hu : IsRegular u) : | ||
| Function.Injective (map a b u k ha hb) := by | ||
| intro z w h | ||
| have hy : z.im = w.im := hu.right <| by simpa using congr_arg im h | ||
| exact QuadraticAlgebra.ext (by simpa [hy] using congr_arg re h) hy |
There was a problem hiding this comment.
I agree that it doesn't make much of a difference. So author's preference in this case.
Add `QuadraticAlgebra.map`, the `R`-algebra map induced by a change of generator `ω ↦ u • ω + k`, and `QuadraticAlgebra.mapEquiv`, its packaging as an isomorphism when `u` is a unit.
|
Pull request successfully merged into master. Build succeeded: |
* origin/master: (417 commits) feat(CategoryTheory/Presentable): more basic API for κ-filtered categories (leanprover-community#41184) feat(Tactic/Linter/UnusedTactic): mark `isIgnoreTacticKind` and `addIgnoreTacticKind` as public (leanprover-community#41993) doc: sync area READMEs with the directory tree (leanprover-community#42224) feat(CategoryTheory/Presentable): new constructor for `IsCardinalFilteredGenerator` (leanprover-community#41183) feat(Data/Finset): `insert a (s.erase a) = insert a s` (leanprover-community#40775) feat(CategoryTheory/Limits): morphisms between filtered limits are initially level-wise (leanprover-community#41009) chore: fix more linter warnings encountered by `scripts/rm_set_option.py` (leanprover-community#42659) chore(Algebra/Module/Submodule/Pointwise): remove `@[simp]` (leanprover-community#42643) feat(Algebra/QuadraticAlgebra): change of generator (leanprover-community#42209) chore(Condensed): reduce imports (leanprover-community#42022) chore: remove @[expose] from def-free public sections (leanprover-community#39388) feat: make `TFAE.out` 1-indexed (leanprover-community#42663) feat(Topology/Order): convergence of suprema and infima (leanprover-community#40578) feat: composition of Fredholm operators (leanprover-community#41601) chore: remove unused open declarations (leanprover-community#42235) chore(Algebra/Order/GroupWithZero/Canonical): remove unnecessary typeclass assumptions (leanprover-community#42539) chore(Algebra/Homology): make `HomologicalComplex.eval` `implicit_reducible` (leanprover-community#42648) chore: update Mathlib dependencies 2026-08-11 (leanprover-community#42651) chore: improve `Set` / `Finset` congruence API (leanprover-community#42640) feat(Geometry/Convex): a topology on StdSimplex (leanprover-community#42131) ... # Conflicts: # Mathlib/Tactic/Linter/DirectoryDependency.lean
…nity#42209) Add `QuadraticAlgebra.map`, the `R`-algebra map induced by a change of generator `ω ↦ u • ω + k`, and `QuadraticAlgebra.mapEquiv`, its packaging as an isomorphism when `u` is a unit.
Add
QuadraticAlgebra.map, theR-algebra map induced by a change of generatorω ↦ u • ω + k, andQuadraticAlgebra.mapEquiv, its packaging as an isomorphism whenuis a unit.