Skip to content

[Merged by Bors] - feat(push): push annotations for Real.log#30039

Closed
JovanGerb wants to merge 10 commits intoleanprover-community:masterfrom
JovanGerb:Jovan-push-log
Closed

[Merged by Bors] - feat(push): push annotations for Real.log#30039
JovanGerb wants to merge 10 commits intoleanprover-community:masterfrom
JovanGerb:Jovan-push-log

Conversation

@JovanGerb
Copy link
Copy Markdown
Contributor

@JovanGerb JovanGerb commented Sep 27, 2025

This PR adds push annotations, and tests for Real.log.

It also updates the #push and #pull commands so that they can take a discharger, and can take any head.


Open in Gitpod

@github-actions
Copy link
Copy Markdown

github-actions bot commented Sep 27, 2025

PR summary ee728d5a73

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

No declarations were harmed in the making of this PR! 🐙

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).

@mathlib4-merge-conflict-bot
Copy link
Copy Markdown
Collaborator

This pull request has conflicts, please merge master and resolve them.

@mathlib4-merge-conflict-bot mathlib4-merge-conflict-bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Oct 20, 2025
@github-actions github-actions bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Nov 5, 2025
@kex-y kex-y removed their assignment Nov 6, 2025
Copy link
Copy Markdown
Contributor

@grunweg grunweg left a comment

Choose a reason for hiding this comment

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

First set of comments.

rw [← prod_map_toList, log_list_prod (by simp_all)]
simp

@[push]
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.

This side condition seems somewhat non-trivial to discharge --- so currently, this lemma will not always apply. That said, there's not much harm in having it anyway, you can probably use a discharger to prove it in practice (and we will hopefully have support for discharging side goals properly).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, we would like to have push create side goals, so that this side goal can be shown to the user.

example (a b : ℝ) (ha : 0 < a) (hb : 0 < b) : Real.log (a * b) = Real.log a + Real.log b := by
pull (disch := positivity) Real.log
rfl

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.

Can you also add a test for some of the other lemmas, and a test for the rpow bug?

@grunweg grunweg changed the title feat(push): @[push] annotations for Real.log feat(push): push annotations for Real.log Nov 11, 2025
@grunweg grunweg added the t-meta Tactics, attributes or user commands label Nov 11, 2025
@grunweg grunweg self-assigned this Nov 11, 2025
Copy link
Copy Markdown
Contributor

@grunweg grunweg left a comment

Choose a reason for hiding this comment

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

Thanks! Looks good to me, with comments addressed. Please also mention the reason for allowing a term head in the PR description; that's really useful context!

@grunweg grunweg added the awaiting-author A reviewer has asked the author a question or requested changes. label Nov 11, 2025
@grunweg grunweg added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Dec 5, 2025
@grunweg
Copy link
Copy Markdown
Contributor

grunweg commented Dec 5, 2025

LGTM with master merged and a test for log_rpow added. Thanks!
bors d+

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Dec 5, 2025

✌️ JovanGerb 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 awaiting-author A reviewer has asked the author a question or requested changes. labels Dec 5, 2025
@github-actions github-actions bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Dec 5, 2025
@JovanGerb
Copy link
Copy Markdown
Contributor Author

bors r+

mathlib-bors bot pushed a commit that referenced this pull request Dec 5, 2025
This PR adds `push` annotations, and tests for `Real.log`.

It also updates the `#push` and `#pull` commands so that they can take a discharger, and can take any head.
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Dec 5, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat(push): push annotations for Real.log [Merged by Bors] - feat(push): push annotations for Real.log Dec 5, 2025
@mathlib-bors mathlib-bors bot closed this Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). t-meta Tactics, attributes or user commands

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants