refactor(library/logic/classes/decidable): rename 'decidable_eq_to_decidable' theorem to 'of_decidable_eq'

This commit is contained in:
Leonardo de Moura 2014-09-08 09:01:29 -07:00
parent 4088cdc139
commit 5087f03889

View file

@ -99,7 +99,7 @@ end decidable
inductive decidable_eq [class] (A : Type) : Type :=
intro : (Π x y : A, decidable (x = y)) → decidable_eq A
theorem decidable_eq_to_decidable [instance] {A : Type} (H : decidable_eq A) (x y : A) : decidable (x = y) :=
theorem of_decidable_eq [instance] {A : Type} (H : decidable_eq A) (x y : A) : decidable (x = y) :=
decidable_eq.rec (λ H, H) H x y
coercion decidable_eq_to_decidable : decidable_eq
coercion of_decidable_eq : decidable_eq