-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathset-util.ath
More file actions
35 lines (26 loc) · 975 Bytes
/
Copy pathset-util.ath
File metadata and controls
35 lines (26 loc) · 975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#
#cvarela: unable to load without a functioning SPASS/other theorem prover
# to-do: create a light version of "sets" w/o ATP use.
#load "sets"
load "sets-notp" #forces all prior uses of SPASS
extend-module Set {
# cvarela: should be in Set
define [v A B] := [?v:'S ?A:(Set 'S) ?B:(Set 'S)]
define in-disjointA :=
(forall v A B . ((v in A \/ B & ~ v in B) ==> (v in A)))
conclude in-disjointA
pick-any v A B
(!chain [(v in A \/ B & ~ v in B)
==> ((v in A | v in B) & ~ v in B) [UC]
==> (v in A) [prop-taut]])
define in-disjointB :=
(forall v A B . ((v in B \/ A & ~ v in B) ==> (v in A)))
conclude in-disjointB
pick-any v A B
(!chain [(v in B \/ A & ~ v in B)
==> ((v in B | v in A) & ~ v in B) [UC]
==> (v in A) [prop-taut]])
define in-disjoint := (in-disjointA & in-disjointB)
conclude in-disjoint
(!both in-disjointA in-disjointB)
} # close module Set