[Imprint][Data Privacy Statement][E-Mail]



View long theorem info. View the proof. Back to main index. View the specification. View theorem base summary, View theorem base listing, the used properties by spec, the dependency list, the symbol table,

Proof step 1 from proof prime-23 (conclusion) (back to tree)

⊦ prime(23)

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof prime-23 (previous step) (back to tree)

¬ prime(23) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:prime-def-mod, seq: ⊦ 1 < j → (prime(j) ↔ (∀ i. 1 < i ∧ i * i ≤ j → j % i ≠ 0)), subst:[j] → [23], <all paths>

Additional information

Used terms: 23

Proof step 3 from proof prime-23 (previous step) (back to tree)

⊦ 1 < j → (prime(j) ↔ (∀ i. 1 < i ∧ i * i ≤ j → j % i ≠ 0))

Lemma prime-def-mod

Proof step 4 from proof prime-23 (previous step) (back to tree)

1 < 23, ∃ i. ¬(1 < i ∧ i * i ≤ 23 → 23 % i ≠ 0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: forward-le-05: ⊦ i < j ∧ 0 ≤ i → 0 < j; (forward) from specification int-abs forward-pos: ⊦ i < j ∧ 0 < i → 0 < j ∧ 1 < j; (forward) from specification int-basic1

Proof step 5 from proof prime-23 (previous step) (back to tree)

23 % i = 0, 0 < i, 1 < i, i * i ≤ 23 ⊦

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: 5 * 5 ≤ i * i

Additional information

Used simplifier rules: associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult commutativity: ⊦ i * j = j * i; from specification int-mult forward-le: ⊦ i ≤ j ∧ 0 < i → 0 < j; (forward) from specification int-abs forward-le-01: ⊦ i ≤ j ∧ 0 ≤ i → 0 ≤ j; (forward) from specification int-abs forward-lele: ⊦ j ≤ j0 ∧ j0 ≤ j1 → j ≤ j1; (forward) from specification int-abs Used formulas: 5 * 5 ≤ i * i

Proof step 6 from proof prime-23 (previous step) (back to tree)

23 % i = 0, 1 < i, 0 < i, i * i ≤ 23, ¬ 5 * 5 ≤ i * i ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-mult, name:square-le, seq: ⊦ i * i ≤ j * j ↔ abs(i) ≤ abs(j), subst:[j, i] → [i, 5], <all paths>

Additional information

Used terms: i, 5

Proof step 7 from proof prime-23 (previous step) (back to tree)

⊦ i * i ≤ j * j ↔ abs(i) ≤ abs(j)

A spec-lemma

Proof step 8 from proof prime-23 (previous step) (back to tree)

23 % i = 0, 0 < i, 1 < i, i * i ≤ 23, ¬ abs(5) ≤ abs(i) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: forward-pos: ⊦ i < j ∧ 0 < i → 0 < j ∧ 1 < j; (forward) from specification int-basic1 ⊦ i ≤ j ↔ ¬ j < i; (ss) ⊦ 1 < i → abs(i) = i; (s)

Proof step 9 from proof prime-23 (previous step) (back to tree)

23 % i = 0, 1 < i, 0 < i, i < 5, i * i ≤ 23 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-basic1, name:ls-rec, seq: ⊦ i ≠ j -1 → (i < j ↔ i < j -1), subst:[j, i] → [5, i], <all paths>

Additional information

Used terms: 5, i

Proof step 10 from proof prime-23 (previous step) (back to tree)

⊦ i ≠ j -1 → (i < j ↔ i < j -1)

A spec-lemma

Proof step 11 from proof prime-23 (previous step) (back to tree)

23 % i = 0, i ≠ 5 -1, i < 5 -1, 0 < i, 1 < i, i * i ≤ 23 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 12 from proof prime-23 (previous step) (back to tree)

23 % i = 0, i ≠ 4, 1 < i, 0 < i, i < 4, i * i ≤ 23 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-basic1, name:ls-rec, seq: ⊦ i ≠ j -1 → (i < j ↔ i < j -1), subst:[j, i] → [4, i], <all paths>

Additional information

Used terms: 4, i

Proof step 13 from proof prime-23 (previous step) (back to tree)

⊦ i ≠ j -1 → (i < j ↔ i < j -1)

A spec-lemma

Proof step 14 from proof prime-23 (previous step) (back to tree)

23 % i = 0, i ≠ 4 -1, i ≠ 4, i < 4 -1, 0 < i, 1 < i, i * i ≤ 23 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 15 from proof prime-23 (previous step) (back to tree)

23 % i = 0, i ≠ 4, i ≠ 3, 1 < i, 0 < i, i < 3, i * i ≤ 23 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-basic1, name:ls-rec, seq: ⊦ i ≠ j -1 → (i < j ↔ i < j -1), subst:[j, i] → [3, i], <all paths>

Additional information

Used simplifier rules: ⊦ 0 < j → (j < 2 ↔ j = 1); (s) ⊦ i = 1 → j % i = 0; (s) ⊦ i = 1 → i * j = j; (s) associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult commutativity: ⊦ i * j = j * i; from specification int-mult forward-le: ⊦ i ≤ j ∧ 0 < i → 0 < j; (forward) from specification int-abs Used terms: 3, i

Proof step 16 from proof prime-23 (previous step) (back to tree)

⊦ i ≠ j -1 → (i < j ↔ i < j -1)

A spec-lemma

Proof Tree for prime-23 (View conclusion)

The following image shows the proof tree of sequent calculus. The proved goal is at the bottom. You can click on the nodes to view additional rules. See here for details on colors in a proof tree.

the proof tree