-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
255 lines (250 loc) · 13 KB
/
index.html
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
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
<!--
I/O Logic Workbench: Automated Reasoner for I/O Logics
Copyright (C) 2020 Alexander Steen <alexander.steen@uni.lu>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="none" name="referrer">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="Cache-control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<title>I/O Logic Workbench</title>
<meta name="application-name" content="I/O Logic Workbench">
<meta name="keywords" content="I/O Logic, Automated Reasoning, Deontic Logic, Automated Theorem Proving, Logical Reasoning, Input/Output logics, Logic Workbench">
<meta name="description" content="An automated reasoning system for Input/Output logics.">
<meta name="author" content="Alexander Steen">
<meta name="google-site-verification" content="93SdRdvJRhOdwO5Yx9VsFhpJGsolLNoOTL9bNmIN24A" />
<link rel="apple-touch-icon" sizes="180x180" href="img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="img/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="img/favicon-16x16.png">
<link rel="manifest" href="img/site.webmanifest">
<link rel="mask-icon" href="img/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#9f00a7">
<meta name="theme-color" content="#ffffff">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-sm text-center">
<div class="float-right h2 ml-0">
<span class="text-muted mr-2" style="font-size:small">Version 0.8</span>
<a href="about.html"><span style="font-size:medium;font-variant:small-caps">About</span></a>
</div>
<h1 class="h2" style="font-variant:small-caps">I/O Logics Workbench</h1>
</div>
</div>
<div class="row">
<div class="col-sm-4 p-3" style="border-left: 0px solid black;border-top: 0px solid black;border-bottom: 0px solid black;background-color:#f5f5f5;border-radius:1em 0em 0em 1em">
<h4 class="mt-0">Examples <span class="text-muted" style="font-size:x-small">(Click on buttons to load)</span></h4>
<div class="d-flex flex-wrap justify-content-between">
<button type="button" id="example1button" class="btn btn-sm btn-secondary mb-1">
<div>Example 1</div>
<div class="small">Simple</div>
</button>
<button type="button" id="example2button" class="btn btn-sm btn-secondary mb-1">
<div>Example 2</div>
<div class="small">Reasoning by cases</div>
</button>
<button type="button" id="example3button" class="btn btn-sm btn-secondary mb-1">
<div>Example 3</div>
<div class="small">Reusable scenario</div>
</button>
<button type="button" id="example4button" class="btn btn-sm btn-secondary mb-1">
<div>Example 4</div>
<div class="small">Chisholm</div>
</button>
<button type="button" id="example5button" class="btn btn-sm btn-secondary mb-1">
<div>Example 5</div>
<div class="small">Forrester</div>
</button>
<button type="button" id="example6button" class="btn btn-sm btn-secondary mb-1">
<div>Example 6</div>
<div class="small">Alternative Service</div>
</button>
<button type="button" id="example7button" class="btn btn-sm btn-secondary mb-1">
<div>Example 7</div>
<div class="small">Mission</div>
</button>
<button type="button" id="example8button" class="btn btn-sm btn-secondary mb-1">
<div>Example 8</div>
<div class="small">Cancer</div>
</button>
<button type="button" id="example9button" class="btn btn-sm btn-secondary mb-1">
<div>Example 9</div>
<div class="small">Order puzzle</div>
</button>
</div>
<h4 class="mt-1">Out operations</h4>
<div class="form-check">
<input class="form-check-input cursor-pointer" type="radio" name="out" id="radio-out1" value="out1" checked>
<label class="form-check-label cursor-pointer" for="radio-out1">
out<sub>1</sub> (Simple-minded)
</label>
</div>
<div class="form-check">
<input class="form-check-input cursor-pointer" type="radio" name="out" id="radio-out2" value="out2">
<label class="form-check-label cursor-pointer" for="radio-out2">
out<sub>2</sub> (Basic)
</label>
</div>
<div class="form-check">
<input class="form-check-input cursor-pointer" type="radio" name="out" id="radio-out3" value="out3">
<label class="form-check-label cursor-pointer" for="radio-out3">
out<sub>3</sub> (Reusable)
</label>
</div>
<div class="form-check">
<input class="form-check-input cursor-pointer" type="radio" name="out" id="radio-out4" value="out4">
<label class="form-check-label cursor-pointer" for="radio-out4">
out<sub>4</sub> (Basic Reusable)
</label>
</div>
<h4 class="mt-1">Parameters</h4>
<div class="form-check">
<input class="form-check-input cursor-pointer" type="checkbox" name="io-throughput" id="checkbox-io-throughput" value="">
<label class="form-check-label cursor-pointer" for="checkbox-io-throughput">
With throughput
</label>
</div>
<div class="form-check">
<input class="form-check-input cursor-pointer" type="checkbox" name="io-constrained" id="checkbox-constrained" value="">
<label class="form-check-label cursor-pointer" for="checkbox-constrained">
Constrained
</label>
</div>
<div class="ml-3">
<div class="form-check">
<input class="form-check-input cursor-pointer" type="radio" name="io-constrained-net" id="radio-net-credulous" value="net-credulous" disabled>
<label class="form-check-label cursor-pointer" for="radio-net-credulous">
Credulous net output
</label>
</div>
<div class="form-check">
<input class="form-check-input cursor-pointer" type="radio" name="io-constrained-net" id="radio-net-skeptical" value="net-skeptical" disabled>
<label class="form-check-label cursor-pointer" for="radio-net-skeptical">
Skeptical net output
</label>
</div>
<div class="form-check">
<input class="form-check-input cursor-pointer" type="checkbox" name="io-preferred-output" id="checkbox-preferred-output" value="" disabled>
<label class="form-check-label cursor-pointer" for="checkbox-preferred-output">
Preferred output
</label>
</div>
<div class="ml-3">
<div class="form-check">
<input class="form-check-input cursor-pointer" type="radio" name="io-preference-lifting" id="radio-preference-lifting-brass" value="lifting-brass" disabled>
<label class="form-check-label cursor-pointer" for="radio-preference-lifting-brass">
Brass lifting
</label>
</div>
<div class="form-check">
<input class="form-check-input cursor-pointer" type="radio" name="io-preference-lifting" id="radio-preference-lifting-fafa" value="lifting-fafa" disabled>
<label class="form-check-label cursor-pointer" for="radio-preference-lifting-fafa">
∀∀ lifting
</label>
</div>
</div>
</div>
</div>
<div class="col-sm-8 p-3" style="border-left: 1px solid black;background-color:#f5f5f5;border-radius:0em 1em 0em 0em">
<h4>Normative scenario editor</h4>
<hr class="mt-0 mb-1">
<div class="form-group">
<label for="input"><b>Input</b></label>
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">A</div>
</div>
<input type="text" class="form-control text-monospace" id="input" placeholder="Comma seperated list of formulas (may be empty) ...">
</div>
</div>
<div class="form-group">
<label for="norms"><b>Norms</b> <span class="text-muted small">(if using preferred output, earlier norms in this list have preference over later norms)</span></label>
<!--<span style="" class="text-muted small float-right">
<button class="btn btn-outline-secondary btn-sm cursor-na" type="button" disabled>
<img src="img/upload.svg" class="feather"> Import
</button>
</span>-->
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">N</div>
</div>
<textarea class="form-control text-monospace" id="norms" rows="3" placeholder="Newline separated list of norms (a,x)"></textarea>
</div>
</div>
<div class="form-group">
<label for="constraints"><b>Constraints</b></label>
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">C</div>
</div>
<input type="text" class="form-control text-monospace" id="constraints" placeholder="Comma seperated list of formulas (may be empty) ..." disabled>
<div class="input-group-append">
<button id="copy-constraints" class="btn btn-secondary cursor-na" type="button" disabled>Use A</button>
</div>
</div>
</div>
<div class="form-group">
<label for="output"><b>Output/Output set</b> <span class="text-muted small">(required for output checking, automatically populated when generating the output set)</span></label>
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">X</div>
</div>
<input type="text" class="form-control text-monospace" id="output" placeholder="A formula">
</div>
</div>
<div class="alert alert-success show" role="alert" id="response" style="visibility:collapse">
<b>Result:</b> <span id="response-text"></span>
</div>
<div class="d-flex justify-content-around">
<button id="checkButton" type="button" class="btn btn-primary flex-fill mr-1">Check given output</button>
<button id="outputButton" type="button" class="btn btn-secondary flex-fill cursor-na">Generate output set</button>
</div>
</div>
</div>
<div class="row">
<div class="col-sm">
<p style="font-size:x-small" class="mb-1">
Formulas are constructed via
<code>&</code> (conjunction),
<code>|</code> (disjunction),
<code>~</code> (negation) and parentheses. There are
no binding preferences between conjunction and disjunction, so they have to be
properly parenthesised. Atomic propositions
are any sequence of letters, e.g. <code>a</code>,
<code>abc</code> or
<code>veryLongNameForMyAtomicProposition</code>.
The literals <code>T</code> and
<code>F</code> are interpreted as truth and falsehood,
respectively.
An example formula is <code>x & (c | d) & ~e</code>.
</p>
</div>
</div>
</div>
<footer class="footer text-muted small d-flex justify-content-center">
(c) 2020-2021 by Alexander Steen
</footer>
</body>
<script src="lib/jquery-3.4.1.slim.min.js" ></script>
<script src="lib/lodash.js"></script>
<script src="lib/SAT.js"></script>
<script src="js/proplogicparser.js"></script>
<script src="js/pltk.js"></script>
<script src="js/inputoutput.js"></script>
</html>