I. Equations, inequalities and expressions

18. Logic and sets

A proposition with the connectives ¬, ∧, ∨, ⇒, ⇔ is evaluated by a truth table – a column for every connective, ones for true – and the app says whether it is a tautology, a contradiction or merely satisfiable; for a satisfiable one it adds the disjunctive and conjunctive normal forms and a simplified form.

With the "Negation" chip the app negates the proposition step by step by De Morgan's laws and the negations of an implication and an equivalence. A proposition with quantifiers (∀x ∈ ℝ: x² ≥ 0) is negated directly – the universal quantifier becomes existential, an inequality the opposite one. For an implication it also offers the contrapositive and the converse.

Sets given by their elements ({1, 2, 3}) or as intervals ((1; 5), ⟨3; 7)) and their union, intersection, difference, complement in the universe U and symmetric difference are computed operation by operation. Listed sets get a Venn diagram with the elements in its regions, intervals the result on the number line.

Without elements (A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C)) the app checks an equality of set expressions by a membership table and Venn diagrams of both sides; an expression alone, (A ∖ B) ∪ (B ∖ C), is shaded in a Venn diagram. It also decides whether 3 ∈ A or A ⊆ B holds.

How to enter it

¬p, p ∧ q, p ∨ q, p ⇒ q, p ⇔ qThe connectives from the app's keyboard (the ∧∪ tab) or from a photo (\neg, \wedge, \vee, \Rightarrow, \Leftrightarrow).
p => q, p <=> qAn implication and an equivalence as arrows from an ordinary keyboard. &, | and ! are not read as connectives – they are the absolute value and the factorial.
∀x ∈ ℝ: x^2 ≥ 0, ∃x > 0: x^2 < xQuantifiers with a domain (∈ ℝ) or a condition (> 0), the proposition after a colon.
negace(p ∧ q), obmena(p ⇒ q), obracena(p ⇒ q)The task as a word – the negation, the contrapositive and the converse (also negace, obmena, obracena).
A = {1, 2, 3}, B = (1; 5), U = {1, 2, ..., 10}A set by its elements (separated by commas, by semicolons with a decimal comma), an interval, the universe U; each definition on its own line or after a comma.
A ∪ B, A ∩ B, A ∖ B, A', A △ BThe union, intersection, difference (also \), complement A', symmetric difference; the intersection goes before the others.
3 ∈ A, A ⊆ BAn element of a set and a subset – true or false.

Examples

A tautology – an implication is equivalent to its contrapositive.
Input: (p ⇒ q) ⇔ (¬q ⇒ ¬p)
(p ⇒ q) ⇔ (¬q ⇒ ¬p)
A satisfiable proposition with its normal forms.
Input: (p ∨ q) ⇒ r
(p ∨ q) ⇒ r
(p ∨ q) ⇒ r(p ∨ q) ⇒ r
A negation by De Morgan's laws step by step.
Input: p ∧ (q ⇒ r) Negation
p ∧ (q ⇒ r)
The negation of a quantified proposition.
Input: ∀x ∈ ℝ: x^2 + 1 > 0
∀x ∈ ℝ: x^2 + 1 > 0
The contrapositive.
Input: p ⇒ ¬q Contrapositive
p ⇒ ¬q
The complement of a union with a Venn diagram.
Input: A = {1, 2, 3, 4}, B = {3, 4, 5}, U = {1, 2, ..., 6}, (A ∪ B)'
A = {1, 2, 3, 4}, B = {3, 4, 5}, U = {1, 2, ..., 6}, (A ∪ B)'
The intersection of intervals on the number line.
Input: A = (1; 5), B = ⟨3; 7), A ∩ B
A = (1; 5), B = ⟨3; 7), A ∩ B
The distributive law by a membership table.
Input: A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C)
A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C)
A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C)A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C)
A set expression in a Venn diagram.
Input: (A ∖ B) ∪ (B ∖ C)
(A ∖ B) ∪ (B ∖ C)

Known limitations