Skip to content
Snippets Groups Projects
Commit 8db97649 authored by Robbert Krebbers's avatar Robbert Krebbers
Browse files

Merge branch 'robbert/TCEq_hint' into 'master'

Change mode of `TCEq`.

See merge request iris/stdpp!123
parents 20ef8941 e626f081
No related branches found
No related tags found
1 merge request!123Change mode of `TCEq`.
Pipeline #25042 passed
...@@ -146,14 +146,14 @@ Existing Instance TCElemOf_here. ...@@ -146,14 +146,14 @@ Existing Instance TCElemOf_here.
Existing Instance TCElemOf_further. Existing Instance TCElemOf_further.
Hint Mode TCElemOf ! ! ! : typeclass_instances. Hint Mode TCElemOf ! ! ! : typeclass_instances.
(** Similarly to [TCForall2], we declare the modes of [TCEq x y] in both (** We declare both arguments [x] and [y] of [TCEq x y] as outputs, which means
directions, i.e., either [x] input and [y] output, or [y] input and [x] [TCEq] can also be used to unify evars. This is harmless: since the only
output. *) instance of [TCEq] is [TCEq_refl] below, it can never cause loops. See
https://gitlab.mpi-sws.org/iris/iris/merge_requests/391 for a use case. *)
Inductive TCEq {A} (x : A) : A Prop := TCEq_refl : TCEq x x. Inductive TCEq {A} (x : A) : A Prop := TCEq_refl : TCEq x x.
Existing Class TCEq. Existing Class TCEq.
Existing Instance TCEq_refl. Existing Instance TCEq_refl.
Hint Mode TCEq ! ! - : typeclass_instances. Hint Mode TCEq ! - - : typeclass_instances.
Hint Mode TCEq ! - ! : typeclass_instances.
Inductive TCDiag {A} (C : A Prop) : A A Prop := Inductive TCDiag {A} (C : A Prop) : A A Prop :=
| TCDiag_diag x : C x TCDiag C x x. | TCDiag_diag x : C x TCDiag C x x.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment