(* LOGIC ********************************************************************)
+definition negation (A:Prop): Prop ≝
+ A → ⊥.
+
(* Constructions with land **************************************************)
lemma commutative_and (A) (B):
(* *)
(**************************************************************************)
+include "ground/lib/relations.ma".
include "ground/notation/functions/powerclass_1.ma".
include "ground/notation/relations/epsilon_3.ma".
-include "ground/lib/relations.ma".
+include "ground/notation/relations/not_epsilon_3.ma".
(* SUBSETS ******************************************************************)
interpretation
"membership (subset)"
'Epsilon A a u = (subset_in A u a).
+
+interpretation
+ "negated membership (subset)"
+ 'NotEpsilon A a u = (negation (subset_in A u a)).
--- /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 "ground/lib/subset.ma".
+
+(* EXTENSIONS FOR SUBSETS ***************************************************)
+
+definition subset_ext_f1 (A1) (A0) (f:A1→A0): 𝒫❨A1❩ → 𝒫❨A0❩ ≝
+ λu1,a0. ∃∃a1. a1 ϵ u1 & f a1 = a0.
+
+definition subset_ext_p1 (A1) (Q:predicate A1): predicate (𝒫❨A1❩) ≝
+ λu1. ∀a1. a1 ϵ u1 → Q a1.
+
+(* Basic constructions ******************************************************)
+
+lemma subset_in_ext_f1_dx (A1) (A0) (f) (u1) (a1):
+ a1 ϵ u1 → f a1 ϵ subset_ext_f1 A1 A0 f u1.
+/2 width=3 by ex2_intro/ qed.
+
+(* Basic inversions *********************************************************)
+
+lemma subset_in_inv_ext_p1_dx (A1) (Q) (u1) (a1):
+ a1 ϵ u1 → subset_ext_p1 A1 Q u1 → Q a1.
+/2 width=1 by/ qed-.
--- /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 "ground/lib/subset_ext_inclusion.ma".
+include "ground/lib/subset_equivalence.ma".
+
+(* EXTENSIONS FOR SUBSETS ***************************************************)
+
+(* Constructions with subset_equivalence ************************************)
+
+lemma subset_equivalence_ext_f1_bi (A1) (A0) (f) (u1) (v1):
+ u1 ⇔ v1 → subset_ext_f1 A1 A0 f u1 ⇔ subset_ext_f1 A1 A0 f v1.
+#A1 #A0 #f #u1 #v1 * #Huv1 #Hvu1
+/3 width=3 by subset_inclusion_ext_f1_bi, conj/
+qed.
--- /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 "ground/lib/subset_inclusion.ma".
+include "ground/lib/subset_ext.ma".
+
+(* EXTENSIONS FOR SUBSETS ***************************************************)
+
+(* Constructions with subset_inclusion **************************************)
+
+lemma subset_inclusion_ext_f1_bi (A1) (A0) (f) (u1) (v1):
+ u1 ⊆ v1 → subset_ext_f1 A1 A0 f u1 ⊆ subset_ext_f1 A1 A0 f v1.
+#A1 #A0 #f #u1 #v1 #Huv1 #a0 * #a1 #Hau1 #H destruct
+/3 width=3 by subset_in_ext_f1_dx/
+qed.
+
+lemma subset_inclusion_ext_p1_trans (A1) (Q) (u1) (v1):
+ u1 ⊆ v1 → subset_ext_p1 A1 Q v1 → subset_ext_p1 A1 Q u1.
+#A1 #Q #u1 #v1 #Huv1 #Hv1
+/3 width=1 by/
+qed-.
--- /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 *)
+(* *)
+(**************************************************************************)
+
+(* GROUND NOTATION **********************************************************)
+
+notation < "hvbox( a ⧸ϵ break term 46 u )"
+ non associative with precedence 45
+ for @{ 'NotEpsilon $S $a $u }.
+
+notation > "hvbox( a ⧸ϵ break term 46 u )"
+ non associative with precedence 45
+ for @{ 'NotEpsilon ? $a $u }.
+
+notation > "hvbox( a ⧸ϵ{ break term 46 S } break term 46 u )"
+ non associative with precedence 45
+ for @{ 'NotEpsilon $S $a $u }.
;;
let predefined_classes = [
+ ["/"; "⧸"; ];
["&"; "⅋"; ];
["|"; "❘"; "∥"; ];
["!"; "¡"; "⫯"; "⫰"; "⟟"; "⫱"; ];