Skip to content

[Merged by Bors] - feat: add a positivity extension for Real.toNNReal#31956

Closed
urkud wants to merge 7 commits intoleanprover-community:masterfrom
urkud:positivity-toNNReal
Closed

[Merged by Bors] - feat: add a positivity extension for Real.toNNReal#31956
urkud wants to merge 7 commits intoleanprover-community:masterfrom
urkud:positivity-toNNReal

Conversation

@urkud
Copy link
Copy Markdown
Member

@urkud urkud commented Nov 22, 2025


Open in Gitpod

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 22, 2025

PR summary 567fa05a2e

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ nnabs_pos

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for script/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@github-actions github-actions bot added the t-data Data (lists, quotients, numbers, etc) label Nov 22, 2025
@urkud urkud marked this pull request as draft November 22, 2025 17:29
@urkud urkud marked this pull request as ready for review November 22, 2025 17:32
@urkud urkud requested a review from YaelDillies November 25, 2025 14:24
Copy link
Copy Markdown
Contributor

@YaelDillies YaelDillies left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

maintainer delegate

example (a : ℝ) : 0 ≤ a.nnabs := by positivity
example (a : ℝ) (ha : 0 < a) : 0 < a.nnabs := by positivity
example (a : ℝ) (ha : a ≠ 0) : 0 < a.nnabs := by positivity
example (a : ℝ≥0) (ha : 0 < a) : 0 < (a : ℝ) := by positivity
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similarly,

Suggested change
example (a : ℝ≥0) (ha : 0 < a) : 0 < (a : ℝ) := by positivity
example (a : ℝ≥0) (ha : a ≠ 0) : 0 < (a : ℝ) := by positivity

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I meant to add a new test, not replace the existing one!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We know that positivity transforms a ≠ 0 into 0 < a for NNReals anyway.

Copy link
Copy Markdown
Contributor

@YaelDillies YaelDillies Nov 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know, but that's not a guarantee that adding this extra example will not uncover a bug

@github-actions
Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by YaelDillies.

@ghost ghost added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Nov 25, 2025
@jcommelin
Copy link
Copy Markdown
Member

bors d+

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Nov 25, 2025

✌️ urkud can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@ghost ghost added delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Nov 25, 2025
urkud and others added 3 commits November 25, 2025 11:05
@urkud urkud added the auto-merge-after-CI Please do not add manually. Requests for a bot to merge automatically once CI is done. label Nov 25, 2025
@ghost
Copy link
Copy Markdown

ghost commented Nov 25, 2025

As this PR is labelled auto-merge-after-CI, we are now sending it to bors:

bors merge

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Nov 25, 2025
mathlib-bors bot pushed a commit that referenced this pull request Nov 25, 2025
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Nov 25, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat: add a positivity extension for Real.toNNReal [Merged by Bors] - feat: add a positivity extension for Real.toNNReal Nov 25, 2025
@mathlib-bors mathlib-bors bot closed this Nov 25, 2025
euprunin pushed a commit to euprunin/mathlib4 that referenced this pull request Nov 25, 2025
@urkud urkud deleted the positivity-toNNReal branch December 2, 2025 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-after-CI Please do not add manually. Requests for a bot to merge automatically once CI is done. delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). ready-to-merge This PR has been sent to bors. t-data Data (lists, quotients, numbers, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants