Skip to content

Conversation

@SkySkimmer
Copy link
Contributor

This adds an option Printing All Names off by default which does 2 things when on:

  • stop printing _ for binders of unused variable (eg forall H:nat, nat isn't printed as forall _:nat, nat)

  • print the original name (before renaming to avoid shadowing) in comments so eg forall x x : Prop, x prints forall x (* x *) x0 (* x *) : Prop, x0 (* x *)

If we ever want to merge the second part should be implemented in a less hacky way, and maybe separate the 2 parts to use separate options.

This adds an option `Printing All Names` off by default which does 2
things when on:

- stop printing `_` for binders of unused variable
  (eg `forall H:nat, nat` isn't printed as `forall _:nat, nat`)

- print the original name (before renaming to avoid shadowing) in comments
  so eg `forall x x : Prop, x` prints `forall x (* x *) x0 (* x *) : Prop, x0 (* x *)`

If we ever want to merge the second part should be implemented in a
less hacky way, and maybe separate the 2 parts to use separate options.
@SkySkimmer SkySkimmer added the kind: user messages Error messages, warnings, etc. label Nov 14, 2025
@coqbot-app coqbot-app bot added the needs: full CI The latest GitLab pipeline that ran was a light CI. Say "@coqbot run full ci" to get a full CI. label Nov 14, 2025
@thomas-lamiaux
Copy link
Contributor

I once again had issues with that, and I do think it would be a simple but useful feature to have for people that do meta-programming

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

Labels

kind: user messages Error messages, warnings, etc. needs: full CI The latest GitLab pipeline that ran was a light CI. Say "@coqbot run full ci" to get a full CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants