Repository navigation
Conversation
Welcome new contributor!Thank you for contributing to Mathlib! If you haven't done so already, please review our contribution guidelines, as well as the style guide and naming conventions. In particular, we kindly remind contributors that we have guidelines regarding the use of AI when making pull requests. We use a review queue to manage reviews. If your PR does not appear there, it is probably because it is not successfully building (i.e., it doesn't have a green checkmark), has the If you haven't already done so, please come to Zulip and join the Lean community. |
PR summary 59c808238cImport changes for modified filesNo significant changes to the import graph Import changes for all files
|
| Current number | Change | Type (strong) |
|---|---|---|
| 488 | -2 | erw |
| 373 | -1 | adaptation notes |
| 410 | -2 | porting notes |
Current commit 59c808238c
Reference commit 893812301f
This script lives in the mathlib-ci repository. To run it locally, from your mathlib4 directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
../mathlib-ci/scripts/reporting/technical-debt-metrics.py pr_summary
- The
relativevalue is the weighted sum of the differences with weight given by the inverse of the current value of the statistic. - The
absolutevalue is therelativevalue divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).
grunweg
left a comment
There was a problem hiding this comment.
Thanks for the clean-up. I like many of the changes, and have questions about a few of them. In particular, we should ensure the underlying TODO is fixed when we delete it.
awaiting-author
| -- Porting note: proof was `simp` | ||
| rw [Prod.ext_iff] | ||
| simp | ||
| · exact fun _ _ h ↦ congrArg Prod.snd h |
There was a problem hiding this comment.
Does simp work here? (If not, perhaps the porting note should stay.)
Also, can you use the congr elaborator instead of congrArg? (If simp works, that would be even better.)
There was a problem hiding this comment.
simp doesn't work here: on its own it makes no progress, and intro _ _; simp leaves the injectivity goal open. So I kept the porting note and switched the proof to the congr elaborator: fun _ _ h ↦ congr($h.2).
| rw [← SetLike.mem_coe] -- TODO : mem version of TopologicalSpace.Opens.map_coe | ||
| simp only [TopologicalSpace.Opens.map_coe, Set.mem_preimage, | ||
| ← Scheme.Hom.comp_apply, fromOfGlobalSections] | ||
| simp only [Scheme.Hom.mem_preimage, ← Scheme.Hom.comp_apply, fromOfGlobalSections] |
There was a problem hiding this comment.
Can this be combined with the subsequent simp?
There was a problem hiding this comment.
Not as a single simp: putting ← Scheme.Hom.comp_apply into a full simp loops (it fights Scheme.Hom.comp_base) and hits the max recursion depth. Leaving it out, or dropping comp_base, leaves goals unsolved. The closest I got is one rw followed by one simp:
rw [Scheme.Hom.mem_preimage, ← Scheme.Hom.comp_apply]
simp [fromOfGlobalSections]I've pushed that. Happy to go back to the previous version if you prefer it.
|
-awaiting-author |
Several proofs still carried workarounds marked by TODOs, porting notes, an adaptation note, or
erw, for problems that have since been fixed: the missing lemmas now exist, or Lean no longer needs the hint. This PR removes those workarounds. Only proofs change; every statement stays the same.PullbackCone.isLimitOfFactors: uset.condition_assoc hinstead of the manual reassoc workaroundScheme.basicOpen_add_le: useOpens.mem_sup(resolves the TODO)Cardinal.toNat_congr: usemk_congr_lift, dropping the universe hintLieIdeal.map_of_image: replaceerw [h]withexact h.subsetisPullback_inl_inl_coprodMap: plainsimpworks now thatScheme.Hom.mem_opensRangeexists (resolves the TODO)Proj.fromOfGlobalSections_preimage_basicOpen: useScheme.Hom.mem_preimage(resolves the TODO)Tuple.graph.card: one-line injectivity proofStarModule.decomposeProdAdjoint: drop theerwand its outdated noteskyscraperPresheaf_isSheaf: the universe annotation is no longer neededCreated with Claude Opus 5.5 in Claude Code.
🤖 Generated with Claude Code