[Merged by Bors] - refactor(NumberTheory): golf Mathlib/NumberTheory/Cyclotomic/Gal#38495
[Merged by Bors] - refactor(NumberTheory): golf Mathlib/NumberTheory/Cyclotomic/Gal#38495yuanyi-350 wants to merge 2 commits intoleanprover-community:masterfrom
Mathlib/NumberTheory/Cyclotomic/Gal#38495Conversation
|
!bench |
|
Benchmark results for 8418eab against 9268b22 are in. No significant results found. @yuanyi-350
Small changes (2🟥)
|
PR summary 9268b22206Import changes for modified filesNo significant changes to the import graph Import changes for all files
Declarations diffNo declarations were harmed in the making of this PR! 🐙 You can run this locally as follows## summary with just the declaration names:
./scripts/pr_summary/declarations_diff.sh <optional_commit>
## more verbose report:
./scripts/pr_summary/declarations_diff.sh long <optional_commit>The doc-module for No changes to technical debt.This script lives in the
|
|
I ran a profiler comparison for the changed declarations in this PR. Results (seconds):
Overall:
|
MichaelStollBayreuth
left a comment
There was a problem hiding this comment.
LGTM
maintainer merge
|
🚀 Pull request has been placed on the maintainer queue by MichaelStollBayreuth. |
|
Are you abusing defeq here? |
|
@riccardobrasca , My bad, I definitely used the defeq between |
Code: Actual state transition in the proof: After: Designed state transition from the theorem type:
Code: Actual state transition in the proof: After: Designed state transition from the theorem type: |
|
Are these answers written by an LLM? |
|
The initial commit was LLM-generated, but I made the subsequent changes myself based on your feedback. Currently, LLMs just don't understand defeq abuse. |
|
The state analysis below is the experimental workflow I typed out manually. If I were to automate this part and provide this kind of information for every PR, do you think it would significantly reduce occurrences of defeq abuse? |
|
There are already various discussion on Zulip about this, it's not completely clear how much of defeq abuse we want, so we currently decide case by case. Anyway this PR lgtm, thanks! bors merge |
…38495) - simplifies `autToPow_injective` in `Mathlib/NumberTheory/Cyclotomic/Gal` by reusing `IsPrimitiveRoot.autToPow_spec` instead of expanding the proof through roots of unity and `pow_eq_pow_iff_modEq` - keeps the proof structured as an `algHom_ext` argument on the power basis, but removes the intermediate bookkeeping lemmas and coercion manipulations Extracted from #38144 [](https://gitpod.io/from-referrer/)
|
Pull request successfully merged into master. Build succeeded: |
Mathlib/NumberTheory/Cyclotomic/GalMathlib/NumberTheory/Cyclotomic/Gal
autToPow_injectiveinMathlib/NumberTheory/Cyclotomic/Galby reusingIsPrimitiveRoot.autToPow_specinstead of expanding the proof through roots of unity andpow_eq_pow_iff_modEqalgHom_extargument on the power basis, but removes the intermediate bookkeeping lemmas and coercion manipulationsExtracted from #38144