lean4-htt/tests/lean/run/pred_using_structure_cmd.lean
2017-03-09 18:41:19 -08:00

13 lines
345 B
Text

variable {A : Type}
structure has_refl (R : A → A → Prop) : Prop :=
(refl : ∀ a, R a a)
structure is_equiv (R : A → A → Prop) extends has_refl R : Prop :=
(symm : ∀ a b, R a b → R b a)
(trans : ∀ a b c, R a b → R b c → R a c)
#check @is_equiv.refl
#check @is_equiv.symm
#check @is_equiv.trans
#check @is_equiv.to_has_refl