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

Generate more concise identifiers for the Lean 4 definition #4722

Closed
tothtamas28 opened this issue Jan 8, 2025 · 0 comments · Fixed by #4729
Closed

Generate more concise identifiers for the Lean 4 definition #4722

tothtamas28 opened this issue Jan 8, 2025 · 0 comments · Fixed by #4729

Comments

@tothtamas28
Copy link
Contributor

Munged KORE identifiers tend to be very long. The current implementation only replaces - by _ to obtain a valid Lean identifier.

Instead, we could do the following:

  • Drop the Lbl prefix (if any), then unmunge. If it is a valid Lean 4 identifier, done.
  • Otherwise, surround it by « and ».

Note that since Lbl is dropped from the symbol identifier, the Sort prefix has to be preserved in sort identifiers to avoid collision.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant