| 1 |
Parameter monotonic : forall {A B} (leA : A -> A -> Prop) (leB : B -> B -> Prop), |
| 2 |
(A -> B) -> Prop. |
| 3 |
|
| 4 |
Axiom monotonic_cst : forall A B (leA : A -> A -> Prop) (leB : B -> B -> Prop), |
| 5 |
forall (b:B), monotonic leA leB (fun _ : A => b). |
| 6 |
|
| 7 |
#[local] Hint Extern 0 (monotonic _ _ (fun _ => ?x)) => |
| 8 |
simple apply monotonic_cst : mymonotonic. |
| 9 |
|
| 10 |
Parameter (foo : nat -> nat). |
| 11 |
|
| 12 |
Goal (forall a, monotonic le le (fun _ => foo a)). |
| 13 |
Proof. |
| 14 |
typeclasses eauto with mymonotonic. |
| 15 |
Qed. |
| 16 |
|
| 17 |
#[local] Hint Extern 999999 (monotonic _ _ _) => shelve : mymonotonic. |
| 18 |
|
| 19 |
Goal (forall a, monotonic le le (fun _ => foo a)). |
| 20 |
Proof. |
| 21 |
unshelve typeclasses eauto with mymonotonic. |
| 22 |
Qed. |