You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 .
Copy file name to clipboardExpand all lines: packages/proveit/logic/booleans/implication/testing_20230426.ipynb
+7-25
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,6 @@
3
3
{
4
4
"cell_type": "code",
5
5
"execution_count": null,
6
-
"id": "4efc48b0",
7
6
"metadata": {},
8
7
"outputs": [],
9
8
"source": [
@@ -21,15 +20,13 @@
21
20
},
22
21
{
23
22
"cell_type": "markdown",
24
-
"id": "7ebef9d8",
25
23
"metadata": {},
26
24
"source": [
27
25
"### _Modus Ponens_"
28
26
]
29
27
},
30
28
{
31
29
"cell_type": "markdown",
32
-
"id": "4db20489",
33
30
"metadata": {},
34
31
"source": [
35
32
"Some quick and simple testing involving the most basic _modus ponens_ judgment."
@@ -38,7 +35,6 @@
38
35
{
39
36
"cell_type": "code",
40
37
"execution_count": null,
41
-
"id": "112872a9",
42
38
"metadata": {},
43
39
"outputs": [],
44
40
"source": [
@@ -48,7 +44,6 @@
48
44
{
49
45
"cell_type": "code",
50
46
"execution_count": null,
51
-
"id": "5ff4502c",
52
47
"metadata": {},
53
48
"outputs": [],
54
49
"source": [
@@ -58,7 +53,6 @@
58
53
{
59
54
"cell_type": "code",
60
55
"execution_count": null,
61
-
"id": "403a7b97",
62
56
"metadata": {},
63
57
"outputs": [],
64
58
"source": [
@@ -68,7 +62,6 @@
68
62
{
69
63
"cell_type": "code",
70
64
"execution_count": null,
71
-
"id": "796d2d92",
72
65
"metadata": {},
73
66
"outputs": [],
74
67
"source": [
@@ -77,15 +70,13 @@
77
70
},
78
71
{
79
72
"cell_type": "markdown",
80
-
"id": "695c4c4c",
81
73
"metadata": {},
82
74
"source": [
83
75
"### Subsets"
84
76
]
85
77
},
86
78
{
87
79
"cell_type": "markdown",
88
-
"id": "8ced89a1",
89
80
"metadata": {},
90
81
"source": [
91
82
"Some review about lists as “subsets” of other lists …"
@@ -94,7 +85,6 @@
94
85
{
95
86
"cell_type": "code",
96
87
"execution_count": null,
97
-
"id": "91d22ac9",
98
88
"metadata": {},
99
89
"outputs": [],
100
90
"source": [
@@ -104,7 +94,6 @@
104
94
},
105
95
{
106
96
"cell_type": "markdown",
107
-
"id": "7de856e3",
108
97
"metadata": {},
109
98
"source": [
110
99
"For “comparable” list items, we can utilize `<` and `<=`:"
@@ -113,7 +102,6 @@
113
102
{
114
103
"cell_type": "code",
115
104
"execution_count": null,
116
-
"id": "b957870a",
117
105
"metadata": {},
118
106
"outputs": [],
119
107
"source": [
@@ -122,7 +110,6 @@
122
110
},
123
111
{
124
112
"cell_type": "markdown",
125
-
"id": "2f7a9c1b",
126
113
"metadata": {},
127
114
"source": [
128
115
"But our situation is more complicated:"
@@ -131,7 +118,6 @@
131
118
{
132
119
"cell_type": "code",
133
120
"execution_count": null,
134
-
"id": "354e03c7",
135
121
"metadata": {},
136
122
"outputs": [],
137
123
"source": [
@@ -143,7 +129,6 @@
143
129
},
144
130
{
145
131
"cell_type": "markdown",
146
-
"id": "05eac8a6",
147
132
"metadata": {},
148
133
"source": [
149
134
"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 @@
152
137
{
153
138
"cell_type": "code",
154
139
"execution_count": null,
155
-
"id": "65cad4ad",
156
140
"metadata": {},
157
141
"outputs": [],
158
142
"source": [
@@ -162,7 +146,6 @@
162
146
{
163
147
"cell_type": "code",
164
148
"execution_count": null,
165
-
"id": "651ed9c3",
166
149
"metadata": {},
167
150
"outputs": [],
168
151
"source": [
@@ -172,7 +155,6 @@
172
155
{
173
156
"cell_type": "code",
174
157
"execution_count": null,
175
-
"id": "b3b90519",
176
158
"metadata": {},
177
159
"outputs": [],
178
160
"source": [
@@ -181,15 +163,13 @@
181
163
},
182
164
{
183
165
"cell_type": "markdown",
184
-
"id": "bc2d24db",
185
166
"metadata": {},
186
167
"source": [
187
168
"### sqlite Database Investigations"
188
169
]
189
170
},
190
171
{
191
172
"cell_type": "markdown",
192
-
"id": "5cd3ef7d",
193
173
"metadata": {},
194
174
"source": [
195
175
"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):"
0 commit comments