-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmath_preamble
More file actions
172 lines (144 loc) · 3.91 KB
/
math_preamble
File metadata and controls
172 lines (144 loc) · 3.91 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
#### start preamble
# the following is already hardcoded:
# $var -> pred pairs bool bool
# we defined some very important variables
$var true bool
$var false bool
$var in pred pairs set set
## some boolean logic:
# axiom: true is always true
$asm axiom-true true
# axiom that bool functions only need to be shown for true, false
$asm axiom-forall-bool . ! pred bool \ f pred bool
. -> : . f false
. -> : . f true
. ! bool f
# we define some logical functions
$def not \ x bool . -> : x false
$def and \ x pairs bool bool . not . -> : fst x . not snd x
$def or \ x pairs bool bool . -> : . not fst x snd x
$def iff \ x pairs bool bool . and : . -> x . -> : snd x fst x
# some useful definitions:
# define existence for sets
$def exists \ f pred set
. not . ! set \ x set . not . f x
# define set equality
$def eq \ xy pairs set set
. ! set \ z set
. iff : . in : z fst xy
. in : z snd xy
# define subset
$def subset \ xy pairs set set
. ! set \ z set
. -> : . in : z fst xy
. in : z snd xy
# define property of empty set
$def isempty \ x set
. ! set \ y set
. not . in : y x
$def nonempty \ x set
. not . isempty x
# define disjoint
$def disjoint \ x pairs set set
. ! set \ y set
. -> : . and :
. subset : y fst x
. subset : y snd x
. isempty y
# define unique existence
$def exists_uniq \ f pred set
. and : . exists f
. ! pairs set set \ xy pairs set set
. -> : . and : . f fst xy . f snd xy
. eq xy
# list of ZFC axioms
# axiom of extensionality
$def axiom-ext . ! pairs set set \ xy pairs set set
. -> : . eq xy
. ! set \ z set . iff :
. in : fst xy z
. in : snd xy z
# axiom schema of specification
$def axiom-spec . ! pred set \ f pred set
. ! set \ x set . exists \ y set
. ! set \ z set . iff :
. in : z y
. and : . in : z x . f z
# axiom of pairing
$def axiom-pairing . ! pairs set set \ xy pairs set set
. exists \ z set
. and : . in : z fst xy
. in : z snd xy
# axiom of union
$def axiom-union . ! set \ xx set
. exists \ u set
. ! pairs set set \ xy pairs set set
. -> : . and : . in xy . in : snd xy xx
. in : fst xy u
# axiom of power set
$def axiom-powerset . ! set \ x set
. exists \ p set
. ! set \ y set
. -> : . subset : y x
. in : y p
# axiom of infinity
$def axiom-infinity . exists \ xx set . and :
. exists \ x set
. and : . in : x xx . isempty x
. ! set \ x set
. -> : . in : x xx
. exists \ y set
. and : . in : y xx
. ! set \ z set
. iff : . in : z y
. or : . eq : z x
. in : z x
# . and : . in : x y
# . subset : x y
# axiom of regularity
$def axiom-regularity . ! set \ x set
. or : . isempty x
. exists \ y set
. and : . in : y x
. disjoint : y x
# axiom of replacement
$def axiom-replace . ! set \ a set
. ! pred pairs set set \ f pred pairs set set
. -> : . ! set \ x set
. -> : . in : x a
. exists_uniq \ y set . f : x y # f is a function
. exists \ b set . ! set \ x set # b is a superset of image
. -> : . in : x a
. exists \ y set
. and : . in : y b . f : x y
# axiom of choice: every collection of disjoint nonempty sets
# has a choice set
$def axiom-choice . ! set \ a set
. -> :
. and : . nonempty a
. and : . ! set \ b set
. -> : . in : b a . nonempty b
. ! pairs set set \ xy pairs set set
. -> : . and :
. not . eq xy
. and : . in : fst xy a
. in : snd xy a
. disjoint xy
. exists \ d set . ! set \ b set # d is the choice set
. -> : . in : b a
. exists_uniq \ c set
. and : . in : c b
. in : c d
# collect the axioms as zfc
$def zfc-axiom-collection . and : axiom-ext
. and : axiom-spec
. and : axiom-pairing
. and : axiom-union
. and : axiom-powerset
. and : axiom-infinity
. and : axiom-regularity
. and : axiom-replace
axiom-choice
## main assumption:
$asm zfc-axioms zfc-axiom-collection
### end preamble