Skip to content

Generate more concise identifiers for the Lean 4 definition #4722

@tothtamas28

Description

@tothtamas28

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions