Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - chore(Logic/Equiv): change type of sumEquivSigmaBool to simp normal form #21338

Closed
wants to merge 2 commits into from

Conversation

lambda-fairy
Copy link
Collaborator

simp eagerly rewrites Bool.casesOn to Bool.rec, so using the former in the type signature prevents related simp lemmas from firing.

See Zulip discussion.


Open in Gitpod

…ivSigmaBool`

`simp` eagerly rewrites `Bool.casesOn` to `Bool.rec`, so using the former in the type signature prevents related `simp` lemmas from firing.

See [Zulip discussion](https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/.60.40.5Bsimp.5D.60.20lemmas.20about.20Equiv.2EsumEquivSigmaBool.20don't.20fire).
@github-actions github-actions bot added the t-logic Logic (model theory, etc) label Feb 2, 2025
Copy link

github-actions bot commented Feb 2, 2025

PR summary 1ffe26d864

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

@lambda-fairy lambda-fairy added the easy < 20s of review time. See the lifecycle page for guidelines. label Feb 2, 2025
@lambda-fairy lambda-fairy changed the title chore(Logic/Equiv): change sumEquivSigmaBool definition to simp normal form chore(Logic/Equiv): change sumEquivSigmaBool signature to simp normal form Feb 2, 2025
@lambda-fairy lambda-fairy changed the title chore(Logic/Equiv): change sumEquivSigmaBool signature to simp normal form chore(Logic/Equiv): change type of sumEquivSigmaBool to simp normal form Feb 2, 2025
Copy link
Collaborator

@Ruben-VandeVelde Ruben-VandeVelde left a comment

Choose a reason for hiding this comment

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

Huh.

maintainer merge

Copy link

github-actions bot commented Feb 2, 2025

🚀 Pull request has been placed on the maintainer queue by Ruben-VandeVelde.

Copy link
Member

@jcommelin jcommelin 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 merge

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added ready-to-merge This PR has been sent to bors. and removed maintainer-merge labels Feb 3, 2025
mathlib-bors bot pushed a commit that referenced this pull request Feb 3, 2025
… form (#21338)

`simp` eagerly rewrites `Bool.casesOn` to `Bool.rec`, so using the former in the type signature prevents related `simp` lemmas from firing.

See [Zulip discussion](https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/.60.40.5Bsimp.5D.60.20lemmas.20about.20Equiv.2EsumEquivSigmaBool.20don't.20fire).
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Feb 3, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore(Logic/Equiv): change type of sumEquivSigmaBool to simp normal form [Merged by Bors] - chore(Logic/Equiv): change type of sumEquivSigmaBool to simp normal form Feb 3, 2025
@mathlib-bors mathlib-bors bot closed this Feb 3, 2025
@mathlib-bors mathlib-bors bot deleted the equiv-bool-rec branch February 3, 2025 08:01
jt496 pushed a commit that referenced this pull request Feb 3, 2025
… form (#21338)

`simp` eagerly rewrites `Bool.casesOn` to `Bool.rec`, so using the former in the type signature prevents related `simp` lemmas from firing.

See [Zulip discussion](https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/.60.40.5Bsimp.5D.60.20lemmas.20about.20Equiv.2EsumEquivSigmaBool.20don't.20fire).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy < 20s of review time. See the lifecycle page for guidelines. ready-to-merge This PR has been sent to bors. t-logic Logic (model theory, etc)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants