Reputation: 33
I do not really understand how to work with coercions in Coq. Example:
Inductive T1:=
| P1: T1.
Inductive T2:=
| T1_of: T1 -> T2.
Coercion T1_of: T1 >-> T2.
Variable S: Set.
Variable f: T2 -> Set.
Lemma L: f P1 -> True.
intro.
I get the following assumption:
H : f P1
I have two questions:
H : f (T1_of P1)
?
Upvotes: 0
Views: 117
Reputation: 291
Set Printing Coercions
command or the option provided in your IDE.Upvotes: 1