Repository navigation
Conversation
PR summary 82f6ec79afImport changes for modified filesNo significant changes to the import graph Import changes for all files
|
| Current number | Change | Type (strong) |
|---|---|---|
| 407 | -1 | porting notes |
Current commit 82f6ec79af
Reference commit 13152f691c
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).
|
This pull request has conflicts, please merge |
# Conflicts: # Mathlib/Data/Nat/Squarefree.lean
|
This pull request has conflicts, please merge |
Add a
norm_numextension decidingSquarefree nfor numeralsninℕandℤ.If
nis not squarefree, the proof uses a witnessa > 1witha * a ∣ n, found withNat.minSqFac. Ifnis squarefree, the proof is a trial division ofnby the odd numbersk = 3, 5, 7, …, keeping the invariant that every prime divisor of the cofactor is at leastk.This is adapted from the Mathlib 3 extension by Mario Carneiro (mathlib#11666), which was left commented out in
Mathlib.Data.Nat.Squarefreeduring the port. This commented-out code is removed, and the corresponding tests are restored.As for the
Nat.Primeextension, the proof is a certificate rather than a kernel evaluation ofNat.minSqFacviaNat.squarefree_iff_minSqFac. The certificate is also faster to check, but, as forNat.Prime, large numbers need a highermaxRecDepth.Note. I have read and checked the ordinary Lean statements and their proofs, but I am not familiar with metaprogramming, so I cannot really vouch for the meta code itself, which was written with the help of an LLM (although it looks reasonable to me). A review by someone who is comfortable with
norm_numextensions would be very welcome.Created with Claude Code 🤖