]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/matita/nlibrary/logic/equality.ma
freescale porting, work in progress
[helm.git] / helm / software / matita / nlibrary / logic / equality.ma
index d940b97c0eec3fcc80694496fdc9a1c9022ed2b8..2418f2a7c504da2a7f8b68957604c30ad224a4be 100644 (file)
 
 include "logic/connectives.ma".
 
-ninductive eq (A: Type) (a: A) : A → Prop ≝
+ninductive eq (A: Type) (a: A) : A → CProp ≝
  refl: eq A a a.
+
+nlet rec eq_rect (A: Type) (x: A) (P: ∀y:A. eq A x y → CProp) (q: P x (refl A x))
+ (y: A) (p: eq A x y) on p : P y p ≝
+ match p with
+  [ refl ⇒ q ].
  
 interpretation "leibnitz's equality" 'eq t x y = (eq t x y).
 
-interpretation "leibnitz's non-equality" 'neq t x y = (Not (eq t x y)).
\ No newline at end of file
+interpretation "leibnitz's non-equality" 'neq t x y = (Not (eq t x y)).