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

fix: keep track of pexpr data #226

Merged
merged 1 commit into from
Jan 31, 2023
Merged

fix: keep track of pexpr data #226

merged 1 commit into from
Jan 31, 2023

Conversation

rwbarton
Copy link
Contributor

@rwbarton rwbarton commented Jan 31, 2023

When a non-fully-qualified name occurred directly as one of:

  • the entire body of a definition/theorem
  • an argument to notation (e.g., a in a + 1)

mathport did not keep track of the pexpr containing the fully-qualified name, and as a result, would not in general translate it to the aligned Lean 4 version. Fix this by passing along the pexpr data.

When a non-fully-qualified name occurred directly as one of:
* the entire body of a definition/theorem
* an argument to notation (e.g., `a` in `a + 1`)
mathport did not keep track of the pexpr containing
the fully-qualified name, and as a result, would not
in general translate it to the aligned Lean 4 version.
Fix this by passing along the pexpr data.
@jcommelin jcommelin requested a review from digama0 January 31, 2023 16:20
@digama0
Copy link
Member

digama0 commented Jan 31, 2023

Does this fix #167?

@digama0 digama0 merged commit 9aa1e19 into master Jan 31, 2023
@digama0 digama0 deleted the keep-pexpr branch January 31, 2023 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants