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: MatcherApp.transform: Try to preserve alt’s variable name #3620

Merged
merged 2 commits into from
Mar 6, 2024

Conversation

nomeata
Copy link
Contributor

@nomeata nomeata commented Mar 6, 2024

this makes the ugly fst/snd variable names in the functional
induction principles go away.

Ironically I thought in order to fix these name, I should touch the
mutual/n-ary argument packing code used for well-founded recursion, and
embarked on a big refactor/rewrite of that code, only to find that at
least this particular instance of the issue was somewhere else. Hence
breaking this into its own PR; the refactoring will follow (and will
also improve some other variable names.)

this makes the ugly `fst`/`snd` variable names in the functional
induction principles go away.

Ironically I thought in order to fix these name, I should touch the
mutual/n-ary argument packing code used for well-founded recursion, and
embarked on a big refactor/rewrite of that code, only to find that at
least this particular instance of the issue was somewhere else. Hence
breaking this into its own PR; the refactoring will follow (and will
also improve some other variable names.)
@nomeata nomeata added the will-merge-soon …unless someone speaks up label Mar 6, 2024
@nomeata nomeata changed the title MatcherApp.transform: Try to preserve alt’s variable name feat: MatcherApp.transform: Try to preserve alt’s variable name Mar 6, 2024
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc March 6, 2024 14:49 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 Mar 6, 2024
@leanprover-community-mathlib4-bot
Copy link
Collaborator

Mathlib CI status (docs):

  • ❗ Std/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase f0a762ea4d2a78b1f0e484ffa9154c5f495d4c39 --onto ae492265fec103aa834d897bf9f68c94d10f0785. (2024-03-06 14:53:50)

@nomeata nomeata mentioned this pull request Mar 6, 2024
@nomeata nomeata enabled auto-merge March 6, 2024 15:42
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc March 6, 2024 15:49 Inactive
@nomeata nomeata added this pull request to the merge queue Mar 6, 2024
Merged via the queue into master with commit 0072d13 Mar 6, 2024
11 checks passed
@nomeata nomeata deleted the joachim/matcherapp-names branch March 6, 2024 17:06
nomeata added a commit that referenced this pull request Mar 10, 2024
this makes the ugly `fst`/`snd` variable names in the functional
induction principles go away.

Ironically I thought in order to fix these name, I should touch the
mutual/n-ary argument packing code used for well-founded recursion, and
embarked on a big refactor/rewrite of that code, only to find that at
least this particular instance of the issue was somewhere else. Hence
breaking this into its own PR; the refactoring will follow (and will
also improve some other variable names.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN will-merge-soon …unless someone speaks up
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants