I have this code:
Module Type tDecType.
Parameter T: Type.
Parameter is_eq: T -> T -> bool.
Axiom is_eq_reflexivity: forall x, is_eq x x = true.
Axiom is_eq_equality: forall x y, is_eq x y = true -> x = y.
End tDecType.
Module NAT <: tDecType.
Definition T := nat.
Definition is_eq (x: T) y := x = y.
Lemma is_eq_reflexivity:
forall x,
is_eq x x = True.
Proof.
intro x.
?
And I want to rewrite the current subgoal by using the is_eq definition. How can I do this ?