Skip to content

printing: add "Printing Fully Qualified" flag for global objects#10

Closed
aa755 wants to merge 1 commit into
SkyLabsAI:skylabs-masterfrom
aa755:skylabs-master
Closed

printing: add "Printing Fully Qualified" flag for global objects#10
aa755 wants to merge 1 commit into
SkyLabsAI:skylabs-masterfrom
aa755:skylabs-master

Conversation

@aa755
Copy link
Copy Markdown

@aa755 aa755 commented May 10, 2026

cherry-picked an upstream PR (NOT MY WORK). there was a merge conflict which codex fixed.

Introduce the "Printing Fully Qualified" flag to print global objects
using fully qualified names. The flag is implemented in printer.ml and
affects the core NAMETAB_gen.shortest_qualid_gen function so that all
nametabs (XRefs, Modules, ModTypes, Univs, etc.) respect the flag
consistently.

Add ~force_short:bool parameter (default false) to all shortest_qualid
functions. When true, always returns the shortest qualid regardless of
the flag. Internal callers that need short names for name-avoidance
(termops, namegen, glob_ops, abbreviation, primNotations, extraction)
pass ~force_short:true.

This provides a simple way to disambiguate same-named constants across modules
when using `Search`, `Print Assumptions`, etc.

(rocq-prover#21443, fixes rocq-prover#11852)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: JasonGross <396076+JasonGross@users.noreply.github.com>
Co-authored-by: Gaëtan Gilbert <gaetan.gilbert@skyskimmer.net>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.

2 participants