Example. [004M]

  • \exists {n}: {\mathbb {N}}.\; P(n): This is a true proposition, since, for example, P(2) is true.
  • \exists {x}: {\Z }.\; x^2 = 16: This is a true proposition. Both 4 and -4 are integers which satisfy x^2 = 16.
  • \exists {x}: {\Z }.\; x^2 = 17: This is a false proposition. There is no integer whose square is 17.
  • \forall {x}: {\mathbb {N}}.\; \exists {y}: {\mathbb {N}}.\; J(x,y): This is true: for every natural number x, there is some other natural number y such that x < y^2.
  • \forall {y}: {\mathbb {N}}.\; \exists {x}: {\mathbb {N}}.\; J(x,y): This is false, since when y = 0, there is no natural number x such that J(x,y), that is, x < 0^2.

Disco> :test exists x:N. P(x)
  - Certainly true: ∃x. P(x)
    Found example:
      x = 3
Disco> :test exists x:Z. x^2 == 17
  - Possibly false: ∃x. x ^ 2 == 17
    No example was found; checked 100 possibilities.
Disco> :test exists x:Z. x^2 == 16
  - Certainly true: ∃x. x ^ 2 == 16
    Found example:
      x = 4
    - Left side:  16
    - Right side: 16
Disco> :test forall x:N. exists y:N. J(x,y)
  - Possibly true: ∀x. ∃y. J(x, y)
    Checked 100 possibilities without finding a counterexample.
Disco> :test forall y:N. exists x:N. J(x,y)
  - Possibly false: ∀y. ∃x. J(x, y)
    No example was found; checked 100 possibilities.
    Counterexample:
      y = 0