Skip to content

Printing: rename bound variables if they occur in the context #1237

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

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

fblanqui
Copy link
Member

@fblanqui fblanqui commented Apr 11, 2025

  • print: add new argument providing the names to avoid for bound variables
  • proof: add get_names to avoid for bound variables when printing hypotheses and goals + some renamings in printing functions
  • pure: avoid context variable names when printing hypotheses and goals
  • query: avoid context variable names when printing query results
  • tactic, unif: avoid context variable names when printing errors
  • extra: reimplement (and fix) get_safe_prefix, and add unit tests
  • ctxt: add names and fresh
  • env: add names
  • tactic: move gen_valid_idopts to env.ml

TODO:

  • Lplib.Extra.root_and_index: handle leading sequences of zeros
  • reset idset when printing an error message
  • pass idset as an argument to printing functions ?
  • in tactic, etc. remove directs settings of idset and use printing functions taking an env or a ctxt as argument ?
  • use a more efficient data structure than StrSet.t to test/generate names
  • fix Renaming bound variables equal to a symbol name #344

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.

Renaming bound variables equal to a symbol name
1 participant