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 dae2036136
|
| File | Base Count | Head Count | Change |
|---|---|---|---|
| Mathlib.Topology.Instances.Sign | 866 | 878 | +12 (+1.39%) |
Import changes for all files
| Files | Import difference |
|---|---|
Mathlib.Topology.Instances.Sign |
12 |
Mathlib.Analysis.Polynomial.SignRight (new file) |
2143 |
Declarations diff (regex)
+ IsPreconnected.sign_eq_of_continuousOn
+ eventually_sign_eq_signRight
+ exists_eventually_sign_eq
+ gcd_map
+ signRight
+ signRight_C
+ signRight_C_mul
+ signRight_X_sub_C_pow
+ signRight_add
+ signRight_derivative_mul
+ signRight_eq_iff
+ signRight_eq_of_eventually
+ signRight_eq_zero_iff
+ signRight_mod
+ signRight_mul
+ signRight_mul_self
+ signRight_ne_zero
+ signRight_neg
+ signRight_of_eval_eq_zero
+ signRight_of_eval_ne_zero
+ signRight_zero
++ eval_mod_eq_self_of_root
You can run this locally as follows
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>
## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>The doc-module for scripts/pr_summary/declarations_diff.sh in the mathlib-ci repository contains some details about this script.
Declarations diff (Lean)
✅ Lean-aware diff — post-build, computed from the Lean environment (commit
a183fe1).
- +21 new declarations
- −0 removed declarations
+IsPreconnected.sign_eq_of_continuousOn
+Polynomial.eval_mod_eq_self_of_root
+Polynomial.eventually_sign_eq_signRight
+Polynomial.exists_eventually_sign_eq
+Polynomial.signRight
+Polynomial.signRight_C
+Polynomial.signRight_C_mul
+Polynomial.signRight_X_sub_C_pow
+Polynomial.signRight_add
+Polynomial.signRight_derivative_mul
+Polynomial.signRight_eq_iff
+Polynomial.signRight_eq_of_eventually
+Polynomial.signRight_eq_zero_iff
+Polynomial.signRight_mod
+Polynomial.signRight_mul
+Polynomial.signRight_mul_self
+Polynomial.signRight_ne_zero
+Polynomial.signRight_neg
+Polynomial.signRight_of_eval_eq_zero
+Polynomial.signRight_of_eval_ne_zero
+Polynomial.signRight_zeroNo changes to strong technical debt.
No changes to weak technical debt.
Current commit dae2036136
Reference commit 0f8a641e2e
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).
|
bors merge |
…e right of a point (#44248) This PR defines `Polynomial.signRight x p : SignType`, the sign that a real polynomial `p` takes on a sufficiently small interval `(x, x + ε)`, as the limit of `sign (p.eval y)` as `y → x` from the right, and develops its basic API: * `eventually_sign_eq_signRight`, `signRight_eq_iff`: the defining property and its uniqueness; * `signRight_eq_zero_iff`: `signRight x p = 0` iff `p = 0`; * `signRight_mul`, `signRight_neg`, `signRight_C`: `signRight x` is multiplicative, commutes with negation and agrees with `SignType.sign` on constants; * `signRight_of_eval_ne_zero`, `signRight_of_eval_eq_zero`: the computation rule `signRight x p = sign (p.eval x)` if `p.eval x ≠ 0`, and `signRight x p = signRight x (derivative p)` otherwise (via the mean value theorem). This is the local invariant behind Sturm's theorem: it determines the direction in which the sign of a Sturm sequence changes across a root, and it will be used to define the Cauchy index in the next PR of the series. This is the third PR of a series formalising the Sturm–Tarski theorem, following #43783 (`List.signVariations`) and #43954 (`Polynomial.sturmSeq`). Everything is stated over `ℝ`; the statements hold over any real closed field, and the implementation notes record what is needed to generalise them. Co-authored-by: Pedro Saccomani <[email protected]> Co-authored-by: Sarah Pereira <[email protected]> Co-authored-by: Kim Morrison <[email protected]> Co-authored-by: Oliver Nash <[email protected]> Co-authored-by: Oliver Nash <[email protected]>
|
Pull request successfully merged into master. Build succeeded: |
This PR defines
Polynomial.signRight x p : SignType, the sign that a real polynomialptakeson a sufficiently small interval
(x, x + ε), as the limit ofsign (p.eval y)asy → xfrom the right, anddevelops its basic API:
eventually_sign_eq_signRight,signRight_eq_iff: the defining property and its uniqueness;signRight_eq_zero_iff:signRight x p = 0iffp = 0;signRight_mul,signRight_neg,signRight_C:signRight xis multiplicative, commutes withnegation and agrees with
SignType.signon constants;signRight_of_eval_ne_zero,signRight_of_eval_eq_zero: the computation rulesignRight x p = sign (p.eval x)ifp.eval x ≠ 0, andsignRight x p = signRight x (derivative p)otherwise (via the mean value theorem).
This is the local invariant behind Sturm's theorem: it determines the direction in which the sign
of a Sturm sequence changes across a root, and it will be used to define the Cauchy index in the
next PR of the series.
This is the third PR of a series formalising the Sturm–Tarski theorem, following #43783
(
List.signVariations) and #43954 (Polynomial.sturmSeq). Everything is stated overℝ; thestatements hold over any real closed field, and the implementation notes record what is needed to
generalise them.
Co-authored-by: Pedro Saccomani [email protected]
Co-authored-by: Sarah Pereira [email protected]
Co-authored-by: Kim Morrison [email protected]
The original development was done manually. We used Claude (Fable 5.1) to review the code,
suggest improvements and help in the preparation of the PR.