Skip to content

[Usability] No refl tactic — users must write exact (same ...) for reflexivity goals #184

Description

@MarcusMa06-code

Usability issue

There is no refl tactic. Closing a reflexivity goal (e.g. (= Nat zero zero)) requires writing exact (same ...) explicitly. This is the single most common proof step in any dependently-typed proof assistant, and its absence creates unnecessary friction especially for new users.

Context

Encountered constantly when working through even basic Pie proofs in the interactive proof assistant. Any proof that ends with a reflexive equality requires dropping out of the tactic palette and writing an exact term, breaking the flow of tactic-based proof construction.

Suggested improvement

Add a refl tactic that automatically closes goals of the form (= A a a) by applying same. If the two sides are not definitionally equal, produce a clear error message explaining why reflexivity does not apply.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions