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: Canonicalizer: run getFunInfo on expression, not key #3875

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

nomeata
Copy link
Collaborator

@nomeata nomeata commented Apr 10, 2024

The Canonicalizer creates a “key” expression eliding certain information
(implicit parameters, levels), and getFunInfo can be
confused by these terms (in particular, wrong number of level
parameters).

By running getFunInfo on the original expression we avoid this, and
can just put [] as the level list in the key.

The Canonicalizer creates a “key” expression eliding certain information
(implicit parameters, levels), and `getFunInfo` can be
confused by these terms (in particular, wrong number of level
parameters).

By running `getFunInfo` on the original expression we avoid this, and
can just put `[]` as the level list in the key.
@nomeata nomeata changed the title refactor: Canonicalizer: run getFunInfo on expression refactor: Canonicalizer: run getFunInfo on expression, not key Apr 10, 2024
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc April 10, 2024 17:07 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 Apr 10, 2024
@nomeata nomeata added this pull request to the merge queue Apr 10, 2024
Merged via the queue into master with commit 36db040 Apr 10, 2024
13 checks passed
@nomeata nomeata deleted the joachim/canonical-getFunInfo branch April 10, 2024 21:45
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant