Skip to content

Allow to declare instances on (fun ... => key ...)#594

Draft
pi8027 wants to merge 1 commit into
masterfrom
skip-fun
Draft

Allow to declare instances on (fun ... => key ...)#594
pi8027 wants to merge 1 commit into
masterfrom
skip-fun

Conversation

@pi8027

@pi8027 pi8027 commented Jun 2, 2026

Copy link
Copy Markdown
Member

Let's say I want to declare a morphism instance on fun x => f x y (f ^~ y in MC) for some binary function f and y. Currently, HB complains:

Error:
term->gref: input has no global reference: ...

Canonical structures allow such instance declarations (cf. https://rocq-prover.org/doc/v9.2/refman/language/extensions/canonical.html#declaration-of-canonical-structures). So, this PR tries to relax the restriction on the HB side.

I'm unsure whether this small change suffices. I will test it with my real example and add a test case.

@pi8027 pi8027 marked this pull request as draft June 3, 2026 12:27
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