--- /dev/null
+(**************************************************************************)
+(* ___ *)
+(* ||M|| *)
+(* ||A|| A project by Andrea Asperti *)
+(* ||T|| *)
+(* ||I|| Developers: *)
+(* ||T|| The HELM team. *)
+(* ||A|| http://helm.cs.unibo.it *)
+(* \ / *)
+(* \ / This file is distributed under the terms of the *)
+(* v GNU General Public License Version 2 *)
+(* *)
+(**************************************************************************)
+
+include "sets/sets.ma".
+
+nrecord magma (A: Type) : Type ≝
+ { carr: Ω \sup A(*;
+ op: A → A → A;
+ op_closed: ∀x,y. x ∈ carr → y ∈ carr → op x y ∈ carr*)
+ }.
\ No newline at end of file
-sets/sets.ma logic/connectives.ma
+sets/sets.ma logic/equality.ma
+logic/equality.ma logic/connectives.ma
logic/connectives.ma logic/pts.ma
+algebra/magmas.ma sets/sets.ma
logic/pts.ma
digraph g {
"sets/sets.ma" [];
- "sets/sets.ma" -> "logic/connectives.ma" [];
+ "sets/sets.ma" -> "logic/equality.ma" [];
+ "logic/equality.ma" [];
+ "logic/equality.ma" -> "logic/connectives.ma" [];
"logic/connectives.ma" [];
"logic/connectives.ma" -> "logic/pts.ma" [];
+ "algebra/magmas.ma" [];
+ "algebra/magmas.ma" -> "sets/sets.ma" [];
"logic/pts.ma" [];
}
\ No newline at end of file
--- /dev/null
+(**************************************************************************)
+(* ___ *)
+(* ||M|| *)
+(* ||A|| A project by Andrea Asperti *)
+(* ||T|| *)
+(* ||I|| Developers: *)
+(* ||T|| The HELM team. *)
+(* ||A|| http://helm.cs.unibo.it *)
+(* \ / *)
+(* \ / This file is distributed under the terms of the *)
+(* v GNU General Public License Version 2 *)
+(* *)
+(**************************************************************************)
+
+include "logic/connectives.ma".
+
+ninductive eq (A: Type) (a: A) : A → Prop ≝
+ refl: eq A a a.
+
+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
(* *)
(**************************************************************************)
-include "logic/connectives.ma".
+include "logic/equality.ma".
nrecord powerset (A: Type) : Type[1] ≝ { mem: A → CProp }.
(* This is a projection! *)
interpretation "union" 'union U V = (union ? U V).
-(*
ndefinition singleton ≝ λA.λa:A.{b | a=b}.
interpretation "singleton" 'singl a = (singleton ? a).
-*)
\ No newline at end of file