[Merged by Bors] - feat: port Mathlib 3's Nat.factors norm_num extension to a simproc#15420
[Merged by Bors] - feat: port Mathlib 3's Nat.factors norm_num extension to a simproc#15420eric-wieser wants to merge 18 commits intomasterfrom
Nat.factors norm_num extension to a simproc#15420Conversation
ccce0b1 to
3ad9f80
Compare
|
please_merge_master.md |
Nat.factors norm_num extension from Mathlib 3Nat.factors norm_num extension to a simproc
8a9e35c to
5ebced1
Compare
8343d39 to
16ed74f
Compare
YaelDillies
left a comment
There was a problem hiding this comment.
Could you add more inline comments in the meta code? It would help maintainability
|
@YaelDillies do you want to take another look? |
Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
|
please_merge_master.md |
1 similar comment
|
please_merge_master.md |
|
I still maintain that this shouldn't be in the |
Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
YaelDillies
left a comment
There was a problem hiding this comment.
Thanks! 🚀
maintainer merge
|
🚀 Pull request has been placed on the maintainer queue by YaelDillies. |
|
reviewing it right now |
Mathlib/Tactic/Simproc/Factors.lean
Outdated
| -- Otherwise when we recurse, we should use `b` as the new minimum factor. Note that | ||
| -- we must use `evalMinFac.core` to get a proof that `b` is what we computed it as. | ||
| have eb : Q(ℕ) := mkRawNatLit b | ||
| have ehb : Q(IsNat $eb $eb) := q(⟨rfl⟩) |
There was a problem hiding this comment.
Can you add ofNat here (and quickly check whether it needs to be added elsewhere)?
Otherwise, LGTM
bors d+
There was a problem hiding this comment.
Done, there was one more.
|
✌️ eric-wieser can now approve this pull request. To approve and merge a pull request, simply reply with |
|
As this PR is labelled bors merge |
#15420) This is a partial attempt at #15410, porting [#8009](leanprover-community/mathlib3#8009) Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
|
Pull request successfully merged into master. Build succeeded: |
Nat.factors norm_num extension to a simprocNat.factors norm_num extension to a simproc
leanprover-community#15420) This is a partial attempt at leanprover-community#15410, porting [leanprover-community#8009](leanprover-community/mathlib3#8009) Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
leanprover-community#15420) This is a partial attempt at leanprover-community#15410, porting [leanprover-community#8009](leanprover-community/mathlib3#8009) Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
leanprover-community#15420) This is a partial attempt at leanprover-community#15410, porting [leanprover-community#8009](leanprover-community/mathlib3#8009) Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
leanprover-community#15420) This is a partial attempt at leanprover-community#15410, porting [leanprover-community#8009](leanprover-community/mathlib3#8009) Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
This is a partial attempt at #15410, porting #8009