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

refactor: WF: create unfold theorems eagerly #6898

Draft
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

nomeata
Copy link
Collaborator

@nomeata nomeata commented Feb 1, 2025

This PR changes how the unfold theorems for well-founded recursion are created. They are created eagerly (anticipating that the behaivor may be affected by simp sets soon), and without the detour of going through equational theorems.

This PR changes how the unfold theorems for well-founded recursion are created.
They are created eagerly (anticipating that the behaivor may be affected by simp
sets soon), and without the detour of going through equational theorems.
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc February 1, 2025 11:28 Inactive
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc February 1, 2025 11:36 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 Feb 1, 2025
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Feb 1, 2025
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Feb 1, 2025
@leanprover-community-bot
Copy link
Collaborator

leanprover-community-bot commented Feb 1, 2025

Mathlib CI status (docs):

  • 💥 Mathlib branch lean-pr-testing-6898 build failed against this PR. (2025-02-01 12:28:01) View Log
  • 💥 Mathlib branch lean-pr-testing-6898 build failed against this PR. (2025-02-01 17:02:39) View Log
  • 🟡 Mathlib branch lean-pr-testing-6898 build against this PR was cancelled. (2025-02-01 17:31:37) View Log
  • ✅ Mathlib branch lean-pr-testing-6898 has successfully built against this PR. (2025-02-01 18:57:19) View Log
  • ✅ Mathlib branch lean-pr-testing-6898 has successfully built against this PR. (2025-02-01 20:12:53) View Log
  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase deb3299263b8d43324d60b82df262f7ca4a97b7c --onto 66471ba6e248a9dffe869880c88f8b3f098afc1a. (2025-02-01 20:35:26)
  • ❗ Batteries CI can not be attempted yet, as the nightly-testing-2025-02-02 tag does not exist there yet. We will retry when you push more commits. If you rebase your branch onto nightly-with-mathlib, Batteries CI should run now. (2025-02-02 11:55:54)

@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 Feb 1, 2025
This PR changes the `simpMatch` function, used inside the equation generator for
WF-rec functions, to not do eta-expansion.

This makes the process a bit more robust and disciplined, and avoids removing
match-statements (and introduce projections and dependencies) that we'd rather
split instead.
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc February 1, 2025 16:18 Inactive
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Feb 1, 2025
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Feb 1, 2025
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc February 1, 2025 16:44 Inactive
but thread the tryRefl flag through, as well as the declNames.
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc February 1, 2025 16:52 Inactive
@github-actions github-actions bot added the changes-stage0 Contains stage0 changes, merge manually using rebase label Feb 1, 2025
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Feb 1, 2025
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Feb 1, 2025
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc February 1, 2025 17:19 Inactive
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Feb 1, 2025
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Feb 1, 2025
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc February 1, 2025 17:57 Inactive
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Feb 1, 2025
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Feb 1, 2025
@leanprover-community-bot leanprover-community-bot added builds-mathlib CI has verified that Mathlib builds against this PR and removed breaks-mathlib This is not necessarily a blocker for merging: but there needs to be a plan labels Feb 1, 2025
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc February 1, 2025 19:10 Inactive
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Feb 1, 2025
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Feb 1, 2025
github-merge-queue bot pushed a commit that referenced this pull request Feb 1, 2025
This PR changes the `simpMatch` function, used inside the equation
generator for WF-rec functions, to not do eta-expansion.

This makes the process a bit more robust and disciplined, and avoids
removing match-statements (and introduce projections and dependencies)
that we'd rather split instead.

Also adds more tracing to the equational theorem generator.

Extracted from #6898.
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc February 1, 2025 20:29 Inactive
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc February 2, 2025 11:29 Inactive
@github-actions github-actions bot removed the changes-stage0 Contains stage0 changes, merge manually using rebase label Feb 2, 2025
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc February 2, 2025 11:49 Inactive
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc February 2, 2025 16:34 Inactive
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 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