VOOZH about

URL: https://en.wikiversity.org/wiki/User:Watchduck/Logic

⇱ User:Watchduck/Logic - Wikiversity


Jump to content
From Wikiversity

Operations

[edit | edit source]
👁 Image
Binary logical connectives       (zoom in)       (compare)





Relations

[edit | edit source]
👁 Image
Minterm relations (relations that can be the case) (zoom in)
👁 Image
Maxterm relations (zoom in)


👁 Image
Negative statements combined by AND (zoom in)
👁 Image
Affirmative statements combined by OR (zoom in)
XNOR and XOR
👁 Image
Negative statements combined by XNOR (zoom in)
👁 Image
Affirmative statements combined by XOR (zoom in)


👁 Image
Affirmative statements combined by AND (zoom in)
👁 Image
Negative statements combined by OR (zoom in)
XNOR and XOR
👁 Image
Affirmative statements combined by XNOR (zoom in)
👁 Image
Negative statements combined by XOR (zoom in)



In different universes

[edit | edit source]
Are operations relations in a 1-element universe?
👁 Image
Relations in a 1-element universe
(The matrices in the center of this file ...)
👁 Image
Operations
(... are the same as in the bottom right corner of this file.)


1-element universe:

👁 Negative statements combined by AND
👁 {\displaystyle ~\land }
👁 Affirmative statements combined by AND
👁 {\displaystyle ~\Leftrightarrow }
👁 Minterm relations


2-element universe:

👁 Negative statements combined by AND
👁 {\displaystyle ~\land }
👁 Affirmative statements combined by AND
👁 {\displaystyle ~\Leftrightarrow }
👁 Minterm relations


3-element universe:

👁 Negative statements combined by AND
👁 {\displaystyle ~\land }
👁 Affirmative statements combined by AND
👁 {\displaystyle ~\Leftrightarrow }
👁 Minterm relations


4-element universe - first example with 15 minterm relations:

👁 Negative statements combined by AND
👁 {\displaystyle ~\land }
👁 Affirmative statements combined by AND
👁 {\displaystyle ~\Leftrightarrow }
👁 Minterm relations


5-element universe:

👁 Negative statements combined by AND

(zoom in)
👁 {\displaystyle ~\land }
👁 Affirmative statements combined by AND

(zoom in)
👁 {\displaystyle ~\Leftrightarrow }
👁 Minterm relations

(zoom in)





Parity relations

[edit | edit source]

Usually the question is, if somewhere are no or some elements.
But one may also ask, if somewhere is an even or an odd number of elements.


Parity relations have a Hadamard pattern 👁 Image
where the others have a Sierpinski triangle 👁 Image
.


In a 1-element universe even means 0, and odd means 1:

👁 Negative statements combined by AND
👁 {\displaystyle ~\land }
👁 Affirmative statements combined by AND
👁 {\displaystyle ~\Leftrightarrow }
👁 Minterm relations


2-element universe:

👁 Even combined by AND
👁 {\displaystyle ~\land }
👁 Odd combined by AND
👁 {\displaystyle ~\Leftrightarrow }
👁 Minterm relations


3-element universe:

👁 Even combined by AND
👁 {\displaystyle ~\land }
👁 Odd combined by AND
👁 {\displaystyle ~\Leftrightarrow }
👁 Minterm relations


4-element universe:

👁 Even combined by AND
👁 {\displaystyle ~\land }
👁 Odd combined by AND
👁 {\displaystyle ~\Leftrightarrow }
👁 Minterm relations


5-element universe:

👁 Even combined by AND

(zoom in)
👁 {\displaystyle ~\land }
👁 Odd combined by AND

(zoom in)
👁 {\displaystyle ~\Leftrightarrow }
👁 Minterm relations

(zoom in)



Examples

[edit | edit source]
In 👁 A
is an even number of elements.
👁 Image
👁 Image
: In 👁 A without B
is an odd number of elements.
👁 {\displaystyle \land ~}
👁 Image
👁 Image
: In 👁 intersection of A and B
is an odd number of elements.
👁 {\displaystyle \Leftrightarrow ~}
👁 Image
👁 Image
👁 {\displaystyle \Rightarrow }
In 👁 A
is an even number of elements.
👁 Image
👁 Image
: In 👁 A without B
is an even number of elements.
👁 {\displaystyle \land ~}
👁 Image
👁 Image
: In 👁 intersection of A and B
is an even number of elements.
👁 {\displaystyle \Leftrightarrow ~}
👁 Image
👁 Image
👁 {\displaystyle \Rightarrow }
In 👁 A
is an even number of elements.


👁 Image
👁 Image
👁 {\displaystyle \lor ~}
👁 Image
👁 Image
👁 {\displaystyle \Leftrightarrow ~}
👁 Image
In 👁 A
is an even number of elements.


In 👁 A
is an odd number of elements.
👁 Image
👁 Image
: In 👁 A without B
is an odd number of elements.
👁 {\displaystyle \land ~}
👁 Image
👁 Image
: In 👁 intersection of A and B
is an even number of elements.
👁 {\displaystyle \Leftrightarrow ~}
👁 Image
👁 Image
👁 {\displaystyle \Rightarrow }
In 👁 A
is an odd number of elements.
👁 Image
👁 Image
: In 👁 A without B
is an even number of elements.
👁 {\displaystyle \land ~}
👁 Image
👁 Image
: In 👁 intersection of A and B
is an odd number of elements.
👁 {\displaystyle \Leftrightarrow ~}
👁 Image
👁 Image
👁 {\displaystyle \Rightarrow }
In 👁 A
is an odd number of elements.


👁 Image
👁 Image
👁 {\displaystyle \lor ~}
👁 Image
👁 Image
👁 {\displaystyle \Leftrightarrow ~}
👁 Image
In 👁 A
is an odd number of elements.


👁 Image
In 👁 A
is an odd number of elements.
👁 {\displaystyle \oplus ~}
👁 Image
In 👁 B
is an odd number of elements.
👁 {\displaystyle \Leftrightarrow ~}
👁 Image
Either in 👁 A
or in 👁 B
is an odd number of elements.



This is a different way to write the same:

In 👁 symmetric difference of A and B
is an odd number of elements.
👁 Image
👁 Image
: In 👁 A without B
is an odd number of elements.
👁 {\displaystyle \land ~}
👁 Image
👁 Image
: In 👁 B without A
is an even number of elements.
👁 {\displaystyle \Leftrightarrow ~}
👁 Image
👁 Image
👁 {\displaystyle \Rightarrow }
In 👁 symmetric difference of A and B
is an odd number of elements.
👁 Image
👁 Image
: In 👁 A without B
is an even number of elements.
👁 {\displaystyle \land ~}
👁 Image
👁 Image
: In 👁 B without A
is an odd number of elements.
👁 {\displaystyle \Leftrightarrow ~}
👁 Image
👁 Image
👁 {\displaystyle \Rightarrow }
In 👁 symmetric difference of A and B
is an odd number of elements.


👁 Image
👁 Image
👁 {\displaystyle \lor ~}
👁 Image
👁 Image
👁 {\displaystyle \Leftrightarrow ~}
👁 Image
In 👁 symmeric difference of A and B
is an odd number of elements.




This is what the exclusive or excludes:

👁 Image
In 👁 A
and in 👁 B
is an odd number of elements.


It's not to be confused with:

👁 Image
👁 Image
: In 👁 intersection of A and B
is an odd number of elements.


Just another example:

👁 Image
What's that?




3-ary relations

[edit | edit source]
👁 Image
Venn and Euler diagrams
👁 {\displaystyle A\subseteq B}
👁 {\displaystyle \land ~}
👁 {\displaystyle B\subseteq C}
👁 {\displaystyle \Leftrightarrow }
👁 {\displaystyle A\subseteq B\subseteq C}
👁 Image

👁 Image
👁 Image

1011 1011

👁 {\displaystyle \land ~}
👁 Image

👁 Image
👁 Image

1100 1111

👁 {\displaystyle \Leftrightarrow ~}
👁 Image

👁 Image
👁 Image

1000 1011


There are 256 relations of this kind (corresponding to the 256 operations).
The 22 relations in the following table are shown in place of their mirrorings and rotations:


no and 1 one
👁 Image

👁 Image
👁 Image

0000 0000
👁 Image

👁 Image

👁 Image
👁 Image

0000 0001
👁 Image

7 and 8 ones
👁 Image

👁 Image
👁 Image

0111 1111
👁 Image

👁 Image

👁 Image
👁 Image

1111 1111
👁 Image

2 ones
👁 Image

👁 Image
👁 Image

1000 0001
👁 Image

👁 Image

👁 Image
👁 Image

0000 0101
👁 Image

👁 Image

👁 Image
👁 Image

0010 0001
👁 Image

6 ones
👁 Image

👁 Image
👁 Image

0111 1011
👁 Image

👁 Image

👁 Image
👁 Image

0101 1111
👁 Image

👁 Image

👁 Image
👁 Image

0111 1110
👁 Image

3 ones
👁 Image

👁 Image
👁 Image

0001 0110
👁 Image

👁 Image

👁 Image
👁 Image

1000 0101
👁 Image

👁 Image

👁 Image
👁 Image

0001 0011
👁 Image

5 ones
👁 Image

👁 Image
👁 Image

0011 0111
👁 Image

👁 Image

👁 Image
👁 Image

0101 1110
👁 Image

👁 Image

👁 Image
👁 Image

1001 0111
👁 Image

4 ones
👁 Image

👁 Image
👁 Image

0001 0111
👁 Image

👁 Image

👁 Image
👁 Image

0010 0111
👁 Image

👁 Image

👁 Image
👁 Image

0011 0011
👁 Image

👁 Image

👁 Image
👁 Image

0011 0110
👁 Image

👁 Image

👁 Image
👁 Image

0101 1010
👁 Image

👁 Image

👁 Image
👁 Image

0110 1001
👁 Image

Propositional calculus examples: drivers and medics

[edit | edit source]

A proposition is uniquely determined by the set of all cases, in which it is true.
This set could be called the proposition's validity set.
Two propositions are equal, when they have the same validity set.

The validity set of a negation is the complement of the initial proposition's validity set.
So to know the negation of a proposition, one has to know the set of all possible cases.

The set of all possible cases is the validity set of the tautology. It may be denoted 👁 {\displaystyle ~\Omega }
.
The empty set is the validity set of the contradiction.

Cases that can be the case and propositions that can be said are essentially different objects.
(Similar to outcomes and events in probability theory.)
When there are n possible cases, there are 2n possible propositions.
Among them are n elementary propositions (minterms). They have a 1-element validity set, and thus they are true in exactly one case.
(Cases and corresponding elementary propositions are easily mixed up - like outcomes and elementary events in probability theory.)


A single employee

[edit | edit source]

One may be interested, if an employee is a driver or a medic.
There are exactly four possibilities (cases), how he can have these qualities or not:

Exactly one of these statements will be true about a certain employee.
In respect to these qualities there are 24 = 16 statements (propositions), one can say about this employee:

  • 👁 Image
    "He is M."
  • 👁 Image
    "If he is D, then he is also M."
  • 👁 Image
    "He is D or M."   (E.g.: "He must be D or M, otherwise he would not be part of this project.")
  • 👁 Image
    "He is."   (i.e. True, the tautological case)

A group of employees

[edit | edit source]

One may be interested, which of the following statements are true about a certain group of employees:

These statements don't contradict each other. At least one will be true about a certain group of employees.
(Assumed, that the group consists of at least one employee.)
There are 15 possible cases:


So there are 215 = 32768 propositions one can say about a particular group of employees:

Examples

[edit | edit source]
with the validity set:   👁 Image
👁 Image
👁 Image
👁 Image
👁 Image
👁 Image
👁 Image
👁 Image
👁 Image
👁 Image
👁 Image
👁 Image
👁 Image
👁 Image
👁 Image


with the validity set:   👁 Image
👁 Image
👁 Image
👁 Image
👁 Image
👁 Image
👁 Image


with the validity set:   👁 Image
👁 Image
👁 Image
👁 Image
👁 Image
👁 Image
👁 Image


with the validity set:   👁 Image
👁 Image
👁 Image


with the validity set:   👁 Image
👁 Image
👁 Image
👁 Image
👁 Image
👁 Image
👁 Image


with the validity set:   👁 Image