Skip to content

Commit bfdaaa0

Browse files
committed
Update testing nbs and gitignore
Update testing nbs in booleans and booleans/implications pkgs and update .gitignore file to include .db files (i.e. database files). Related Issue(s): #312 .
1 parent 7e90be4 commit bfdaaa0

File tree

3 files changed

+8
-43
lines changed

3 files changed

+8
-43
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ doc/doctrees
1616
doc/html
1717
*.DS_Store
1818
.DS_Store
19+
*.db

packages/proveit/logic/booleans/implication/testing_20230426.ipynb

+7-25
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
{
44
"cell_type": "code",
55
"execution_count": null,
6-
"id": "4efc48b0",
76
"metadata": {},
87
"outputs": [],
98
"source": [
@@ -21,15 +20,13 @@
2120
},
2221
{
2322
"cell_type": "markdown",
24-
"id": "7ebef9d8",
2523
"metadata": {},
2624
"source": [
2725
"### _Modus Ponens_"
2826
]
2927
},
3028
{
3129
"cell_type": "markdown",
32-
"id": "4db20489",
3330
"metadata": {},
3431
"source": [
3532
"Some quick and simple testing involving the most basic _modus ponens_ judgment."
@@ -38,7 +35,6 @@
3835
{
3936
"cell_type": "code",
4037
"execution_count": null,
41-
"id": "112872a9",
4238
"metadata": {},
4339
"outputs": [],
4440
"source": [
@@ -48,7 +44,6 @@
4844
{
4945
"cell_type": "code",
5046
"execution_count": null,
51-
"id": "5ff4502c",
5247
"metadata": {},
5348
"outputs": [],
5449
"source": [
@@ -58,7 +53,6 @@
5853
{
5954
"cell_type": "code",
6055
"execution_count": null,
61-
"id": "403a7b97",
6256
"metadata": {},
6357
"outputs": [],
6458
"source": [
@@ -68,7 +62,6 @@
6862
{
6963
"cell_type": "code",
7064
"execution_count": null,
71-
"id": "796d2d92",
7265
"metadata": {},
7366
"outputs": [],
7467
"source": [
@@ -77,15 +70,13 @@
7770
},
7871
{
7972
"cell_type": "markdown",
80-
"id": "695c4c4c",
8173
"metadata": {},
8274
"source": [
8375
"### Subsets"
8476
]
8577
},
8678
{
8779
"cell_type": "markdown",
88-
"id": "8ced89a1",
8980
"metadata": {},
9081
"source": [
9182
"Some review about lists as “subsets” of other lists …"
@@ -94,7 +85,6 @@
9485
{
9586
"cell_type": "code",
9687
"execution_count": null,
97-
"id": "91d22ac9",
9888
"metadata": {},
9989
"outputs": [],
10090
"source": [
@@ -104,7 +94,6 @@
10494
},
10595
{
10696
"cell_type": "markdown",
107-
"id": "7de856e3",
10897
"metadata": {},
10998
"source": [
11099
"For “comparable” list items, we can utilize `<` and `<=`:"
@@ -113,7 +102,6 @@
113102
{
114103
"cell_type": "code",
115104
"execution_count": null,
116-
"id": "b957870a",
117105
"metadata": {},
118106
"outputs": [],
119107
"source": [
@@ -122,7 +110,6 @@
122110
},
123111
{
124112
"cell_type": "markdown",
125-
"id": "2f7a9c1b",
126113
"metadata": {},
127114
"source": [
128115
"But our situation is more complicated:"
@@ -131,7 +118,6 @@
131118
{
132119
"cell_type": "code",
133120
"execution_count": null,
134-
"id": "354e03c7",
135121
"metadata": {},
136122
"outputs": [],
137123
"source": [
@@ -143,7 +129,6 @@
143129
},
144130
{
145131
"cell_type": "markdown",
146-
"id": "05eac8a6",
147132
"metadata": {},
148133
"source": [
149134
"So we can convert to set and use issubset(), which should work for us since any repeated list elements can be safely eliminated anyway:"
@@ -152,7 +137,6 @@
152137
{
153138
"cell_type": "code",
154139
"execution_count": null,
155-
"id": "65cad4ad",
156140
"metadata": {},
157141
"outputs": [],
158142
"source": [
@@ -162,7 +146,6 @@
162146
{
163147
"cell_type": "code",
164148
"execution_count": null,
165-
"id": "651ed9c3",
166149
"metadata": {},
167150
"outputs": [],
168151
"source": [
@@ -172,7 +155,6 @@
172155
{
173156
"cell_type": "code",
174157
"execution_count": null,
175-
"id": "b3b90519",
176158
"metadata": {},
177159
"outputs": [],
178160
"source": [
@@ -181,15 +163,13 @@
181163
},
182164
{
183165
"cell_type": "markdown",
184-
"id": "bc2d24db",
185166
"metadata": {},
186167
"source": [
187168
"### sqlite Database Investigations"
188169
]
189170
},
190171
{
191172
"cell_type": "markdown",
192-
"id": "5cd3ef7d",
193173
"metadata": {},
194174
"source": [
195175
"We begin by creating a database (db) and then a table within that db (later we create a separate file of database functions to simplify this process):"
@@ -198,7 +178,6 @@
198178
{
199179
"cell_type": "code",
200180
"execution_count": null,
201-
"id": "a8649d85",
202181
"metadata": {},
203182
"outputs": [],
204183
"source": [
@@ -237,7 +216,6 @@
237216
},
238217
{
239218
"cell_type": "markdown",
240-
"id": "2d894eb0",
241219
"metadata": {},
242220
"source": [
243221
"Now we can put things into the table:"
@@ -246,7 +224,6 @@
246224
{
247225
"cell_type": "code",
248226
"execution_count": null,
249-
"id": "2499ef7b",
250227
"metadata": {},
251228
"outputs": [],
252229
"source": [
@@ -271,7 +248,6 @@
271248
{
272249
"cell_type": "code",
273250
"execution_count": null,
274-
"id": "be1b8739",
275251
"metadata": {},
276252
"outputs": [],
277253
"source": [
@@ -296,7 +272,6 @@
296272
{
297273
"cell_type": "code",
298274
"execution_count": null,
299-
"id": "825ff0d0",
300275
"metadata": {},
301276
"outputs": [],
302277
"source": [
@@ -318,6 +293,13 @@
318293
"conn.close()"
319294
]
320295
},
296+
{
297+
"cell_type": "markdown",
298+
"metadata": {},
299+
"source": [
300+
"## REMOVED CELL “id” lines up through here."
301+
]
302+
},
321303
{
322304
"cell_type": "markdown",
323305
"id": "040b98b4",

packages/proveit/logic/booleans/testing_20230812.ipynb

-18
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
{
44
"cell_type": "code",
55
"execution_count": null,
6-
"id": "49be756f",
76
"metadata": {},
87
"outputs": [],
98
"source": [
@@ -20,7 +19,6 @@
2019
},
2120
{
2221
"cell_type": "markdown",
23-
"id": "958b3c4b",
2422
"metadata": {},
2523
"source": [
2624
"## Looking at Axiom attributes"
@@ -29,7 +27,6 @@
2927
{
3028
"cell_type": "code",
3129
"execution_count": null,
32-
"id": "e88da35c",
3330
"metadata": {},
3431
"outputs": [],
3532
"source": [
@@ -40,7 +37,6 @@
4037
{
4138
"cell_type": "code",
4239
"execution_count": null,
43-
"id": "3c419b78",
4440
"metadata": {},
4541
"outputs": [],
4642
"source": [
@@ -51,7 +47,6 @@
5147
{
5248
"cell_type": "code",
5349
"execution_count": null,
54-
"id": "35b93e5f",
5550
"metadata": {},
5651
"outputs": [],
5752
"source": [
@@ -61,7 +56,6 @@
6156
{
6257
"cell_type": "code",
6358
"execution_count": null,
64-
"id": "2746e2e7",
6559
"metadata": {},
6660
"outputs": [],
6761
"source": [
@@ -72,7 +66,6 @@
7266
{
7367
"cell_type": "code",
7468
"execution_count": null,
75-
"id": "65f66fe0",
7669
"metadata": {},
7770
"outputs": [],
7871
"source": [
@@ -82,7 +75,6 @@
8275
{
8376
"cell_type": "code",
8477
"execution_count": null,
85-
"id": "096a7bbb",
8678
"metadata": {},
8779
"outputs": [],
8880
"source": [
@@ -91,7 +83,6 @@
9183
},
9284
{
9385
"cell_type": "markdown",
94-
"id": "cad3597e",
9586
"metadata": {},
9687
"source": [
9788
"## Looking at Common Expression attributes"
@@ -100,7 +91,6 @@
10091
{
10192
"cell_type": "code",
10293
"execution_count": null,
103-
"id": "3e22d3ae",
10494
"metadata": {},
10595
"outputs": [],
10696
"source": [
@@ -111,7 +101,6 @@
111101
{
112102
"cell_type": "code",
113103
"execution_count": null,
114-
"id": "02d909af",
115104
"metadata": {},
116105
"outputs": [],
117106
"source": [
@@ -120,7 +109,6 @@
120109
},
121110
{
122111
"cell_type": "markdown",
123-
"id": "02c69912",
124112
"metadata": {},
125113
"source": [
126114
"## Theory Package and Database"
@@ -129,7 +117,6 @@
129117
{
130118
"cell_type": "code",
131119
"execution_count": null,
132-
"id": "e30a5c5e",
133120
"metadata": {},
134121
"outputs": [],
135122
"source": [
@@ -140,7 +127,6 @@
140127
{
141128
"cell_type": "code",
142129
"execution_count": null,
143-
"id": "2e758a75",
144130
"metadata": {},
145131
"outputs": [],
146132
"source": [
@@ -150,7 +136,6 @@
150136
{
151137
"cell_type": "code",
152138
"execution_count": null,
153-
"id": "93845463",
154139
"metadata": {},
155140
"outputs": [],
156141
"source": [
@@ -199,7 +184,6 @@
199184
{
200185
"cell_type": "code",
201186
"execution_count": null,
202-
"id": "6740c3cc",
203187
"metadata": {},
204188
"outputs": [],
205189
"source": [
@@ -210,7 +194,6 @@
210194
{
211195
"cell_type": "code",
212196
"execution_count": null,
213-
"id": "15b30516",
214197
"metadata": {},
215198
"outputs": [],
216199
"source": [
@@ -220,7 +203,6 @@
220203
{
221204
"cell_type": "code",
222205
"execution_count": null,
223-
"id": "1015ccf9",
224206
"metadata": {},
225207
"outputs": [],
226208
"source": []

0 commit comments

Comments
 (0)