-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfitch.html
More file actions
226 lines (226 loc) · 5.73 KB
/
fitch.html
File metadata and controls
226 lines (226 loc) · 5.73 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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript" src="javascripts/fitch.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="javascripts/bootstrap.min.js"></script>
<link href="stylesheets/bootstrap.min.css" rel="stylesheet">
<link href="stylesheets/core.css" rel="stylesheet">
<link rel="icon" type="image/x-icon" href="favicon.ico"/>
<title>Fitch</title>
<style>
p
{
font-size: 24pt;
}
div
{
text-align: center;
}
input
{
width: 20px;
}
table
{
display: inline-block;
margin-right: 30px;
font-size: 24pt;
}
</style>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Pages</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="index.html">Home</a></li>
<li class="active"><a href="fitch.html"> Fitch </a></li>
<li><a href='games.html'>Games</a></li>
<li><a href='gre_vocab.html'>GRE Vocab</a></li>
<li><a href="league_skins.html">League Skins</a></li>
<li><a href="music.html">Music</a></li>
<li><a href='photos.html'>Photos</a></li>
<li><a href='projects.html'>Projects</a></li>
<li><a href='volunteering.html'>Volunteering</a></li>
</ul>
</div>
</div>
</nav>
</head>
<div class="container">
<div class="starter-template">
<p>
Fitch is a formal logic system for proofs. To use this application input values for each part of the
expression as well as what you think the proper values of the connectives(implication, and, or, etc.) should
be then press evaluate. The program will then tell you whether you were correct or not. Valid inputs for
the variables/connectives are T/t or F/f. The program will tell you if your connective guesses are
correct or incorrect. If there are multiple connectives, it will evaluate them in left to right order
prioritizing parenthesis first. It will evaluate each connective, so if you get an early part
incorrect it will not proceed.
<br />
Here are some truth tables for reference. The last coulmn represents the connective value.
</p>
<table>
<tr>
<th> P </th>
<th> Q </th>
<th> ∧ </th>
</tr>
<tr>
<td> T </td>
<td> T </td>
<td> T </td>
</tr>
<tr>
<td> T </td>
<td> F </td>
<td> F </td>
</tr>
<tr>
<td> F </td>
<td> T </td>
<td> F </td>
</tr>
<tr>
<td> F </td>
<td> F </td>
<td> F </td>
</tr>
</table>
<table>
<tr>
<th> P </th>
<th> Q </th>
<th> ∨ </th>
</tr>
<tr>
<td> T </td>
<td> T </td>
<td> T </td>
</tr>
<tr>
<td> T </td>
<td> F </td>
<td> T </td>
</tr>
<tr>
<td> F </td>
<td> T </td>
<td> T </td>
</tr>
<tr>
<td> F </td>
<td> F </td>
<td> F </td>
</tr>
</table>
<table>
<tr>
<th> P </th>
<th> Q </th>
<th> → </th>
</tr>
<tr>
<td> T </td>
<td> T </td>
<td> T </td>
</tr>
<tr>
<td> T </td>
<td> F </td>
<td> F </td>
</tr>
<tr>
<td> F </td>
<td> T </td>
<td> T </td>
</tr>
<tr>
<td> F </td>
<td> F </td>
<td> T </td>
</tr>
</table>
<table>
<tr>
<th> P </th>
<th> Q </th>
<th> ↔ </th>
</tr>
<tr>
<td> T </td>
<td> T </td>
<td> T </td>
</tr>
<tr>
<td> T </td>
<td> F </td>
<td> F </td>
</tr>
<tr>
<td> F </td>
<td> T </td>
<td> F </td>
</tr>
<tr>
<td> F </td>
<td> F </td>
<td> T </td>
</tr>
</table>
<div>
P
<select id="operation_one">
<option value="1">∧</option>
<option value="2">∨</option>
<option value="3">→</option>
<option value="4">↔</option>
</select>
Q
<br/ >
<input type="text" id="P">
<input type="text" id="operation">
<input type="text" id="Q">
<!--<input type="text" id="result1" readonly> -->
<br />
<button onclick="fitch_one()">Evaluate</button>
<br />
(P
<select id="operation_two_one">
<option value="1">∧</option>
<option value="2">∨</option>
<option value="3">→</option>
<option value="4">↔</option>
</select>
Q)
<select id="operation_two_two">
<option value="1">∧</option>
<option value="2">∨</option>
<option value="3">→</option>
<option value="4">↔</option>
</select>
R
<br />
<input type="text" id="P1">
<input type="text" id="OP11">
<input type="text" id="Q1">
<input type="text" id="OP12">
<input type="text" id="R1">
<br />
<button onclick="fitch_two()">Evaluate</button>
</div>
</div>
</div>
</html>