Skip to content

[Merged by Bors] - chore: replace by_contra! and contrapose! with plain versions#31600

Closed
grunweg wants to merge 4 commits intoleanprover-community:masterfrom
grunweg:shouting-too-hard
Closed

[Merged by Bors] - chore: replace by_contra! and contrapose! with plain versions#31600
grunweg wants to merge 4 commits intoleanprover-community:masterfrom
grunweg:shouting-too-hard

Conversation

@grunweg
Copy link
Copy Markdown
Contributor

@grunweg grunweg commented Nov 13, 2025

When the push_neg step in these tactics does nothing, write just by_contra resp. contrapose.

Not exhaustive.


Spun out of #31596.

Open in Gitpod

@grunweg grunweg added the WIP Work in progress label Nov 13, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 13, 2025

PR summary 21f7dcba68

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 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 Nov 17, 2025
@mathlib4-merge-conflict-bot
Copy link
Copy Markdown
Collaborator

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

@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 23, 2025
contrapose! ha
simp [ha]
contrapose ha
simp [not_nonempty_iff_eq_empty.1 ha]
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.

I'm happy to revert this one if preferred

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.

It's not entirely clear to me which option is better, but I think I'd prefer the original

@grunweg grunweg removed the WIP Work in progress label Dec 23, 2025
@grunweg grunweg requested a review from JovanGerb December 23, 2025 12:11
@JovanGerb
Copy link
Copy Markdown
Contributor

Thanks 🎉

maintainer merge

@github-actions
Copy link
Copy Markdown

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

@ghost ghost added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Dec 23, 2025
Comment thread Mathlib/RingTheory/HahnSeries/Multiplication.lean Outdated
@adomani
Copy link
Copy Markdown
Contributor

adomani commented Dec 23, 2025

Should the title of the PR mention contrapose/by_contra, instead of by_cases?

@grunweg grunweg changed the title chore: replace by_cases! with by_cases when the push_neg step does no… chore: replace by_contra! and contrapose! with plain versions Dec 23, 2025
Copy link
Copy Markdown
Contributor

@adomani adomani left a comment

Choose a reason for hiding this comment

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

Thanks! 🐙

bors d+

Comment thread Mathlib/RingTheory/HahnSeries/Multiplication.lean Outdated
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Dec 24, 2025

✌️ grunweg 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 Dec 24, 2025
@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Dec 24, 2025

Thanks for the reviews!
bors r+

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Dec 24, 2025
mathlib-bors bot pushed a commit that referenced this pull request Dec 24, 2025
When the push_neg step in these tactics does nothing, write just `by_contra` resp. `contrapose`.

Not exhaustive.
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Dec 24, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore: replace by_contra! and contrapose! with plain versions [Merged by Bors] - chore: replace by_contra! and contrapose! with plain versions Dec 24, 2025
@mathlib-bors mathlib-bors bot closed this Dec 24, 2025
@grunweg grunweg deleted the shouting-too-hard branch December 24, 2025 12:46
kim-em pushed a commit to kim-em/mathlib4 that referenced this pull request Jan 6, 2026
…over-community#31600)

When the push_neg step in these tactics does nothing, write just `by_contra` resp. `contrapose`.

Not exhaustive.
goliath-klein pushed a commit to PrParadoxy/mathlib4 that referenced this pull request Jan 24, 2026
…over-community#31600)

When the push_neg step in these tactics does nothing, write just `by_contra` resp. `contrapose`.

Not exhaustive.
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). ready-to-merge This PR has been sent to bors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants