Skip to content

[main] Don't use unguarded assumption#1276

Open
JasonGross wants to merge 2 commits into
MetaRocq:mainfrom
JasonGross:main+fix-hint
Open

[main] Don't use unguarded assumption#1276
JasonGross wants to merge 2 commits into
MetaRocq:mainfrom
JasonGross:main+fix-hint

Conversation

@JasonGross

Copy link
Copy Markdown
Contributor

…Prop

PCUIC's predicate has pcontext : list (context_decl term) and branch
has bcontext : list (context_decl term), so quoting these during
quote_term's fixpoint induction requires converting the element-wise
ondecl/onctx/tCaseBrsProp hypotheses into quotation_of values.

Add the necessary chain of instances:
- quotation_of_option_default_unit: option_default quotation_of o unit → quotation_of o
- quotation_of_context_decl: ondecl quotation_of d → quotation_of d
- quotation_of_onctx: onctx quotation_of ctx → quotation_of ctx
- quotation_of_predicate: tCasePredProp quotation_of quotation_of p → quotation_of p
- quotation_of_branch: onctx + quotation_of bbody → quotation_of b
- quotation_of_branches: tCaseBrsProp quotation_of l → quotation_of l

Each paired with a Hint Extern 0 ... => assumption to bridge
eta-expanded forms from the induction hypotheses.

Co-Authored-By: Claude Opus 4.6 <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.

1 participant