Skip to content
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

Force links when input of a subsequent premise #6

Closed
FissoreD opened this issue May 30, 2024 · 1 comment
Closed

Force links when input of a subsequent premise #6

FissoreD opened this issue May 30, 2024 · 1 comment

Comments

@FissoreD
Copy link
Owner

FissoreD commented May 30, 2024

TC.Pending_mode "+".
Class A (i: nat -> nat -> nat).

Global Hint Mode A + : typeclass_instances.

Axiom (f : nat -> nat -> nat).
Instance instA: A f := {}.

Class B (i: nat).
Instance instB : forall R, A R -> forall x y, B (R x y) := {}.

Goal B (f 2 3).
  apply _.
Qed.

The problem:

  1. R x y is a potential beta producing the link $X =_\beta R\ x\ y$
  2. This link is not triggered, when $X$ is assigned to f 2 3 since we still hope someone "correctily" instantiate $R$
  3. $R$ is still flexible and the recursive call $A\ R` is made
  4. The first arg of $A$ should be not flexible
  5. Here the failure...
@FissoreD
Copy link
Owner Author

here the test

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

No branches or pull requests

1 participant