Skip to content

Conversation

ppedrot
Copy link
Member

@ppedrot ppedrot commented Sep 29, 2025

This code is buggy, but I do not see a way to do this correctly without first changing the APIs. This patch makes it clear we need to access the section context of the global environment while still only caring for the locally defined constants of the monad-provided one.

@ppedrot ppedrot added this to the 9.2+rc1 milestone Sep 29, 2025
@ppedrot ppedrot requested a review from a team as a code owner September 29, 2025 13:04
@ppedrot ppedrot added kind: cleanup Code removal, deprecation, refactorings, etc. request: full CI Use this label when you want your next push to trigger a full CI. labels Sep 29, 2025
@coqbot-app coqbot-app bot removed the request: full CI Use this label when you want your next push to trigger a full CI. label Sep 29, 2025
including those defined by [tclABSTRACT]. *)
let kn = Lib.make_kn id in
let kn = Names.Constant.make1 kn in
Environ.mem_constant kn env
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this doesn't avoid inductive and constructor names though

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's try with a second variant expecting only constants to be locally defined in the environment and still checking the global safe env for other labels.

@SkySkimmer SkySkimmer self-assigned this Sep 29, 2025
@ppedrot
Copy link
Member Author

ppedrot commented Sep 29, 2025

@coqbot ci minimize

Copy link
Contributor

coqbot-app bot commented Sep 29, 2025

Error while attempting to find job minimization information:
Could not successfully find pipeline check for base commit 55d481c. Error: A check run (GitLab CI pipeline (branch)) was cancelled for base commit 55d481c.

This code is buggy, but I do not see a way to do this correctly without
first changing the APIs. This patch makes it clear we need to access the
section context of the global environment while still only caring for the
locally defined constants of the monad-provided one.
@ppedrot ppedrot added the request: full CI Use this label when you want your next push to trigger a full CI. label Sep 29, 2025
@ppedrot ppedrot force-pushed the abstract-generate-name-with-local-globenv branch from 41fd475 to 729d184 Compare September 29, 2025 17:43
@coqbot-app coqbot-app bot removed the request: full CI Use this label when you want your next push to trigger a full CI. label Sep 29, 2025
@SkySkimmer
Copy link
Contributor

@coqbot merge now

@coqbot-app coqbot-app bot merged commit e5cc816 into rocq-prover:master Sep 30, 2025
7 checks passed
@ppedrot ppedrot deleted the abstract-generate-name-with-local-globenv branch September 30, 2025 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: cleanup Code removal, deprecation, refactorings, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants