Skip to content

fix: make cdot anonymous function notation handle ambiguous notation#4833

Merged
kmill merged 4 commits intoleanprover:masterfrom
kmill:fix_4832
Aug 9, 2024
Merged

fix: make cdot anonymous function notation handle ambiguous notation#4833
kmill merged 4 commits intoleanprover:masterfrom
kmill:fix_4832

Conversation

@kmill
Copy link
Copy Markdown
Collaborator

@kmill kmill commented Jul 25, 2024

Fixes an issue where each alternative in choice nodes would get their own arguments. Now cdot function expansion is aware of choice nodes.

Also modifies the variable naming so that multi-argument functions like (· + ·) expand as fun x1 x2 => x1 + x2 rather than fun x x_1 => x + x_1.

Closes #4832

@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 Jul 25, 2024
ghost pushed a commit to leanprover-community/batteries that referenced this pull request Jul 25, 2024
ghost pushed a commit to leanprover-community/mathlib4 that referenced this pull request Jul 25, 2024
@ghost ghost added breaks-mathlib This is not necessarily a blocker for merging: but there needs to be a plan release-ci Enable all CI checks for a PR, like is done for releases labels Jul 25, 2024
@ghost
Copy link
Copy Markdown

ghost commented Jul 25, 2024

Mathlib CI status (docs):

  • ❌ Mathlib branch lean-pr-testing-4833 built against this PR, but testing failed. (2024-07-25 22:32:09) View Log
  • ✅ Mathlib branch lean-pr-testing-4833 has successfully built against this PR. (2024-07-25 23:01:39) View Log
  • ✅ Mathlib branch lean-pr-testing-4833 has successfully built against this PR. (2024-07-25 23:43:22) View Log
  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase 30cf3bb3bfdac33a7ab385b25e0d262e0e3d8599 --onto dd6ed124baef64a26ef5860f49597fdcef371239. (2024-08-09 21:26:01)

@ghost ghost 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 Jul 25, 2024
ghost pushed a commit to leanprover-community/batteries that referenced this pull request Jul 25, 2024
ghost pushed a commit to leanprover-community/mathlib4 that referenced this pull request Jul 25, 2024
kmill added 3 commits August 9, 2024 10:54
Fixes an issue where each alternative in choice nodes would get their own arguments. Now cdot function expansion is aware of choice nodes.

Also modifies the variable naming so that multi-argument functions like `(· + ·)` expand as `fun x1 x2 => x1 + x2` rather than `fun x x_1 => x + x_1`.

Closes leanprover#4832
@kmill kmill marked this pull request as ready for review August 9, 2024 18:10
@kmill kmill enabled auto-merge August 9, 2024 18:10
@kmill kmill added this pull request to the merge queue Aug 9, 2024
Merged via the queue into leanprover:master with commit 95bf679 Aug 9, 2024
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 release-ci Enable all CI checks for a PR, like is done for releases 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.

cdot function notation fails to macro expand properly when there is ambiguous syntax

1 participant