Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
syllogistic logic + reasoning about the sizes of finite sets
Reasoning about the sizes of sets
A worksheet on the semantics and the proof system.
You need to enter each of the grey cells below by clicking and they pressing shift-enter.
Welcome to our evaluator of some syllogistic arguments.
The basic syntax which we handle includes the standard syllogistic repertoire: 'All x are y', 'Some x are y', and 'No x are y'. We allow negation on nouns. We extend the system to include 'There are at least as many x as y' and 'There are more x than y'. The semantics for these are what one would expect. The goal is to study semantic consequence on finite models, to do proof search and counter-model construction.
Type 'examples( )' for examples of queries. You might want to copy them into text boxes and then enter them to get an answer.
Type 'syntax( )' for the general syntax of queries and other things you can enter.
Type 'rules( )' for the full set of proof rules of the system.
Syntax of the fragment
category | construction |
---|---|
noun n | a, b, c, d, e, . . . , x, y, z |
polarized noun p, q | n, non-n |
sentence s | All p are q, |
Some p are q, | |
No p are q, | |
There are at least as many p as q, | |
There are more p than q |
The semantics for this fragment is what one would expect. We restrict attention to finite models in this notebook; it is possible to handle inference on infinite sets, but the rules of proof would be different.
The goal is to study the semantic consequence relation on finite models, and to do proof search and counter-model construction.
Examples of queries
You can start a box below to copy and modify these, or to make up your own.
The conclusion follows from the assumptions.
Here is a formal proof in our system:
The conclusion follows from the assumptions.
Here is a formal proof in our system:
The conclusion follows from the assumptions.
Here is a formal proof in our system:
The conclusion follows from the assumptions.
Here is a formal proof in our system:
The conclusion does not follow from the assumptions.
Here is a counter-model.
We take the universe of the model to be {0, 1, 2, 3, 4, 5, 6, 7}.
The conclusion does not follow from the assumptions.
Here is a counter-model.
We take the universe of the model to be {0, 1, 2, 3}.
The conclusion does not follow from the assumptions.
Here is a counter-model.
We take the universe of the model to be {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}.
The conclusion does not follow from the assumptions.
Here is a counter-model.
We take the universe of the model to be {0, 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}.
interpretation of a: {3, 13}
size of interpretation: 2
complement: {0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 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}
size of complement: 51
interpretation of b: {3, 13}
size of interpretation: 2
complement: {0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 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}
size of complement: 51
interpretation of c: {4, 14, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52}
size of interpretation: 18
complement: {0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36}
size of complement: 35
interpretation of d: {4, 9, 14, 19, 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}
size of interpretation: 36
complement: {0, 1, 2, 3, 5, 6, 7, 8, 10, 11, 12, 13, 15, 16, 17, 18, 20}
size of complement: 17
interpretation of e: {8, 18}
size of interpretation: 2
complement: {0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 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}
size of complement: 51
interpretation of f: {8, 18, 20}
size of interpretation: 3
complement: {0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 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}
size of complement: 50
interpretation of g: {20}
size of interpretation: 1
complement: {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 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}
size of complement: 52
interpretation of k: {}
size of interpretation: 0
complement: {0, 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}
size of complement: 53
interpretation of r: {9, 19, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36}
size of interpretation: 18
complement: {0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15, 16, 17, 18, 20, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52}
size of complement: 35
interpretation of w: {}
size of interpretation: 0
complement: {0, 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}
size of complement: 53
interpretation of y: {}
size of interpretation: 0
complement: {0, 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}
size of complement: 53
The conclusion follows from the assumptions.
Here is a formal proof in our system:
The conclusion does not follow from the assumptions.
Here is a counter-model.
We take the universe of the model to be {}.