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

feat: zetaUnused option (implementation) #6755

Merged
merged 10 commits into from
Jan 26, 2025
Merged

Conversation

nomeata
Copy link
Collaborator

@nomeata nomeata commented Jan 23, 2025

This PR implements the zetaUnused simp and reduction option (added in #6754).

True by default, and implied by zeta, this can be turned off to make simp even more careful about preserving the expression structure, including unused let and have expressions.

Breaking change: The split tactic no longer removes unused let and have expressions as a side-effect, in rare cases this may break proofs. dsimp only can be used to remove unused have and let expressions.

@nomeata nomeata added awaiting-mathlib We should not merge this until we have a successful Mathlib build changelog-language Language features, tactics, and metaprograms labels Jan 23, 2025
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc January 23, 2025 15:44 Inactive
@github-actions github-actions bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Jan 23, 2025
@leanprover-community-bot
Copy link
Collaborator

leanprover-community-bot commented Jan 23, 2025

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase ebda2d4d257d683efc7a2eb4ee67a41acdd62400 --onto f35a6020704e003995d585c7baa216982134d75f. (2025-01-23 15:55:44)
  • 💥 Mathlib branch lean-pr-testing-6755 build failed against this PR. (2025-01-24 18:54:20) View Log
  • ✅ Mathlib branch lean-pr-testing-6755 has successfully built against this PR. (2025-01-25 10:57:59) View Log
  • ✅ Mathlib branch lean-pr-testing-6755 has successfully built against this PR. (2025-01-25 11:48:33) View Log

@nomeata nomeata added the merge-ci Enable merge queue CI checks for PR. In particular, produce artifacts for all major platforms. label Jan 23, 2025
@nomeata nomeata removed the merge-ci Enable merge queue CI checks for PR. In particular, produce artifacts for all major platforms. label Jan 24, 2025
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Jan 24, 2025
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Jan 24, 2025
@leanprover-community-bot leanprover-community-bot added the breaks-mathlib This is not necessarily a blocker for merging: but there needs to be a plan label Jan 24, 2025
@leanprover-community-bot leanprover-community-bot added builds-mathlib CI has verified that Mathlib builds against this PR and removed awaiting-mathlib We should not merge this until we have a successful Mathlib build breaks-mathlib This is not necessarily a blocker for merging: but there needs to be a plan labels Jan 25, 2025
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc January 25, 2025 10:59 Inactive
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Jan 25, 2025
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Jan 25, 2025
@nomeata nomeata marked this pull request as ready for review January 26, 2025 11:13
@nomeata nomeata requested a review from leodemoura as a code owner January 26, 2025 11:13
@nomeata nomeata added this pull request to the merge queue Jan 26, 2025
Merged via the queue into master with commit ba95dbc Jan 26, 2025
22 checks passed
nomeata added a commit to leanprover-community/mathlib4 that referenced this pull request Jan 27, 2025
jcommelin added a commit to leanprover-community/mathlib4 that referenced this pull request Jan 30, 2025
* chore: bump to nightly-2025-01-09

* bump batteries

* bump deps

* fix

* chore: adaptations for nightly-2025-01-09

* chore: bump to nightly-2025-01-10

* remove upstreamed

* Update lean-toolchain for testing leanprover/lean4#6602

* Trigger CI for leanprover/lean4#6602

* fix breakage caused by leanprover/lean4#6602

* chore: adaptations for nightly-2025-01-10

* fix merge

* avoid nonrec for leanprover/lean4#6602

* Trigger CI for leanprover/lean4#6602

* chore: bump to nightly-2025-01-14

* bump

* fixes

* fixes

* fixes

* chore: bump to nightly-2025-01-15

* fix

* empty commit to bump CI

* Update lean-toolchain for testing leanprover/lean4#6660

* fixes for leanprover/lean4#6660

* chore: bump to nightly-2025-01-16

* .

* fix

* chore: bump to nightly-2025-01-17

* deprecation

* chore: bump to nightly-2025-01-18

* Merge master into nightly-testing

* chore: bump to nightly-2025-01-19

* fix

* chore: bump to nightly-2025-01-20

* fix and bump

* bump ProofWidgets

* chore: bump to nightly-2025-01-21

* bump

* Adaptations

* fixes

* fix

* fix

* chore: bump to nightly-2025-01-22

* chore: adaptations for nightly-2025-01-22

* remove deprecation for List.indexOf_lt_length

* chore: bump to nightly-2025-01-23

* chore: bump to nightly-2025-01-24

* Adjust expected output in MathlibTest.CountHeartbeats

* chore: adaptations for nightly-2025-01-24

* chore: bump to nightly-2025-01-25

* chore: bump to nightly-2025-01-26

* chore: bump to nightly-2025-01-27

* Merge master into nightly-testing

* Adaption for leanprover/lean4#6755

* Update lean-toolchain for testing leanprover/lean4#6800

* lake update for leanprover/lean4#6800

* Trigger CI for leanprover/lean4#6800

* fixes for leanprover/lean4#6800

* Trigger CI for leanprover/lean4#6800

* fix

* Update lean-toolchain for testing leanprover/lean4#6812

* chore: bump to nightly-2025-01-28

* lake update for leanprover/lean4#6812

* TrivSqZeroExt.snd_list_prod fix

* Update lean-toolchain for testing leanprover/lean4#6826

* Adaption

* fix

* fix

* remove deprecation/alias

* touch for CI for leanprover/lean4#6812

* fix for leanprover/lean4#6812

* Trigger CI for leanprover/lean4#6826

* chore: bump to nightly-2025-01-29

* .

* merge lean-pr-testing-6812

* .

* lake update

* lake update

* fixes and deprecations

* name clash

* fix

* fix

* update

* lint

* shake

---------

Co-authored-by: leanprover-community-mathlib4-bot <[email protected]>
Co-authored-by: Johan Commelin <[email protected]>
Co-authored-by: Parth Shastri <[email protected]>
Co-authored-by: Joachim Breitner <[email protected]>
Co-authored-by: Yakov Pechersky <[email protected]>
Co-authored-by: Ruben Van de Velde <[email protected]>
kim-em added a commit to leanprover-community/mathlib4 that referenced this pull request Feb 2, 2025
* fixes

* fixes

* chore: bump to nightly-2025-01-15

* fix

* empty commit to bump CI

* Update lean-toolchain for testing leanprover/lean4#6660

* fixes for leanprover/lean4#6660

* chore: bump to nightly-2025-01-16

* .

* fix

* chore: bump to nightly-2025-01-17

* deprecation

* chore: bump to nightly-2025-01-18

* Merge master into nightly-testing

* chore: bump to nightly-2025-01-19

* fix

* chore: bump to nightly-2025-01-20

* fix and bump

* bump ProofWidgets

* chore: bump to nightly-2025-01-21

* bump

* Adaptations

* fixes

* fix

* fix

* chore: bump to nightly-2025-01-22

* chore: adaptations for nightly-2025-01-22

* remove deprecation for List.indexOf_lt_length

* chore: bump to nightly-2025-01-23

* chore: bump to nightly-2025-01-24

* Adjust expected output in MathlibTest.CountHeartbeats

* chore: adaptations for nightly-2025-01-24

* chore: bump to nightly-2025-01-25

* chore: bump to nightly-2025-01-26

* chore: bump to nightly-2025-01-27

* Merge master into nightly-testing

* Adaption for leanprover/lean4#6755

* Update lean-toolchain for testing leanprover/lean4#6800

* lake update for leanprover/lean4#6800

* Trigger CI for leanprover/lean4#6800

* fixes for leanprover/lean4#6800

* Trigger CI for leanprover/lean4#6800

* fix

* Update lean-toolchain for testing leanprover/lean4#6812

* chore: bump to nightly-2025-01-28

* lake update for leanprover/lean4#6812

* TrivSqZeroExt.snd_list_prod fix

* Update lean-toolchain for testing leanprover/lean4#6826

* Adaption

* fix

* fix

* remove deprecation/alias

* touch for CI for leanprover/lean4#6812

* fix for leanprover/lean4#6812

* Trigger CI for leanprover/lean4#6826

* chore: bump to nightly-2025-01-29

* .

* merge lean-pr-testing-6812

* .

* lake update

* lake update

* fixes and deprecations

* name clash

* fix

* fix

* update

* lint

* shake

* fix(#count_heartbeats): add `approximately` flag to stabilise tests

* chore: bump to nightly-2025-01-30

* add option also to the linter

* use sleep_heartbeats in test

* update

* deprecation

* don't count heartbeats

* Update lean-toolchain for testing leanprover/lean4#6863

* use 'x * y' as match pattern

* Trigger CI for leanprover/lean4#6863

* Trigger CI for leanprover/lean4#6863

* Trigger CI for leanprover/lean4#6863

* wip

* Trigger Build

* chore: bump to nightly-2025-01-31

* update

* fix

* chore: bump to nightly-2025-02-01

* chore: bump to nightly-2025-02-02

---------

Co-authored-by: leanprover-community-mathlib4-bot <[email protected]>
Co-authored-by: Johan Commelin <[email protected]>
Co-authored-by: Joachim Breitner <[email protected]>
Co-authored-by: Yakov Pechersky <[email protected]>
Co-authored-by: Ruben Van de Velde <[email protected]>
Co-authored-by: adomani <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
builds-mathlib CI has verified that Mathlib builds against this PR changelog-language Language features, tactics, and metaprograms toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants