[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 two-even (conclusion) (back to tree)

⊦ 2 * i = j1 ^2 + j2 ^2 → i = ((j1 - j2) / 2)^2 + ((j1 + j2) / 2)^2

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof two-even (previous step) (back to tree)

2 * i = j1 ^2 + j2 ^2, i ≠ ((j1 - j2) / 2)^2 + ((j1 + j2) / 2)^2 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 3 from proof two-even (previous step) (back to tree)

2 * i = j1 ^2 + j2 ^2, i ≠ ((j1 - j2) / 2)^2 + ((j1 + j2) / 2)^2 ⊦

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: (j1 - j2) % 2 = 0

Additional information

Used formulas: (j1 - j2) % 2 = 0

Proof step 4 from proof two-even (previous step) (back to tree)

(j1 - j2) % 2 = 0, 2 * i = j1 ^2 + j2 ^2, i ≠ ((j1 - j2) / 2)^2 + ((j1 + j2) / 2)^2 ⊦

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: (j1 + j2) % 2 = 0

Additional information

Used formulas: (j1 + j2) % 2 = 0

Proof step 5 from proof two-even (previous step) (back to tree)

(j1 - j2) % 2 = 0, (j1 + j2) % 2 = 0, 2 * i = j1 ^2 + j2 ^2, i ≠ ((j1 - j2) / 2)^2 + ((j1 + j2) / 2)^2 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-div, name:modex, seq:j ≠ 0 ⊦ i % j = 0 ↔ (∃ j0. i = j0 * j), subst:[j, i] → [2, j1 + j2], <all paths>

Additional information

Used terms: 2, j1 + j2

Proof step 6 from proof two-even (previous step) (back to tree)

j ≠ 0 ⊦ i % j = 0 ↔ (∃ j0. i = j0 * j)

A spec-lemma

Proof step 7 from proof two-even (previous step) (back to tree)

(j1 - j2) % 2 = 0, 2 * i = j1 ^2 + j2 ^2, 2 ≠ 0, i ≠ ((j1 - j2) / 2)^2 + ((j1 + j2) / 2)^2, ∃ j0. j1 + j2 = j0 * 2 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: commutativity: ⊦ i * j = j * i; from specification int-mult associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult ⊦ 1 * i = i; (s) j ≠ 0, j0 % j = 0 ⊦ (i * (* j0)) / (* j) = i * j0 / j; (s)

Proof step 8 from proof two-even (previous step) (back to tree)

(j1 - j2) % 2 = 0, 2 * i = j1 ^2 + j2 ^2, j1 + j2 = j0 * 2, i ≠ ((j1 - j2) / 2)^2 + j0 ^2 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-div, name:modex, seq:j ≠ 0 ⊦ i % j = 0 ↔ (∃ j0. i = j0 * j), subst:[j, i] → [2, j1 - j2], <all paths>

Additional information

Used terms: 2, j1 - j2

Proof step 9 from proof two-even (previous step) (back to tree)

j ≠ 0 ⊦ i % j = 0 ↔ (∃ j0. i = j0 * j)

A spec-lemma

Proof step 10 from proof two-even (previous step) (back to tree)

2 * i = j1 ^2 + j2 ^2, j1 + j2 = j0 * 2, 2 ≠ 0, i ≠ ((j1 - j2) / 2)^2 + j0 ^2, ∃ j0. j1 - j2 = j0 * 2 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: commutativity: ⊦ i * j = j * i; from specification int-mult associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult ⊦ 1 * i = i; (s) j ≠ 0, j0 % j = 0 ⊦ (i * (* j0)) / (* j) = i * j0 / j; (s) add-c: ⊦ i + j = j + i; from specification int-basic2 add-a: ⊦ i + j + i0 = (i + j) + i0; from specification int-basic2 ⊦ i + j - i = j; (s) ⊦ i + i = 2 * i; (s) ⊦ i - j = i0 ↔ i = i0 + j; (s)

Proof step 11 from proof two-even (previous step) (back to tree)

2 * i = (j * 2 + j2)^2 + j2 ^2, 2 * j2 + j * 2 = j0 * 2, i ≠ j ^2 + j0 ^2 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:two-plus, seq: ⊦ (i + j)^2 = i ^2 + 2 * i * j + j ^2, subst:[j, i] → [j2, j * 2], <all paths>

Additional information

Used terms: j2, j * 2

Proof step 12 from proof two-even (previous step) (back to tree)

⊦ (i + j)^2 = i ^2 + 2 * i * j + j ^2

Lemma two-plus

Proof step 13 from proof two-even (previous step) (back to tree)

2 * i = ((j * 2)^2 + 2 * (j * 2) * j2 + j2 ^2) + j2 ^2, 2 * j2 + j * 2 = j0 * 2, i ≠ j ^2 + j0 ^2 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: add-a: ⊦ i + j + i0 = (i + j) + i0; from specification int-basic2 add-c: ⊦ i + j = j + i; from specification int-basic2 ⊦ i + i = 2 * i; (s) associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult commutativity: ⊦ i * j = j * i; from specification int-mult

Proof step 14 from proof two-even (previous step) (back to tree)

2 * i = 2 * j2 ^2 + (j * 2)^2 + 4 * j * j2, 2 * j2 + j * 2 = j0 * 2, i ≠ j ^2 + j0 ^2 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:Square-def, seq: ⊦ i ^2 = i * i, subst:[i] → [j * 2], <all paths>

Additional information

Used terms: j * 2

Proof step 15 from proof two-even (previous step) (back to tree)

⊦ i ^2 = i * i

Lemma Square-def

Proof step 16 from proof two-even (previous step) (back to tree)

2 * i = 2 * j2 ^2 + (j * 2) * j * 2 + 4 * j * j2, 2 * j2 + j * 2 = j0 * 2, i ≠ j ^2 + j0 ^2 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: add-a: ⊦ i + j + i0 = (i + j) + i0; from specification int-basic2 associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult commutativity: ⊦ i * j = j * i; from specification int-mult

Proof step 17 from proof two-even (previous step) (back to tree)

2 * i = 2 * j2 ^2 + 4 * j * j + 4 * j * j2, 2 * j2 + j * 2 = j0 * 2, i ≠ j ^2 + j0 ^2 ⊦

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: 2 * j2 ^2 + 4 * j * j + 4 * j * j2 = 2 * (j2 ^2 + 2 * j * j + 2 * j * j2)

Additional information

Used formulas: 2 * j2 ^2 + 4 * j * j + 4 * j * j2 = 2 * (j2 ^2 + 2 * j * j + 2 * j * j2)

Proof step 18 from proof two-even (previous step) (back to tree)

2 * i = 2 * j2 ^2 + 4 * j * j + 4 * j * j2, 2 * j2 + j * 2 = j0 * 2, 2 * j2 ^2 + 4 * j * j + 4 * j * j2 = 2 * (j2 ^2 + 2 * j * j + 2 * j * j2), i ≠ j ^2 + j0 ^2 ⊦

User applied rule subst equation

And obtained the following new goals

Rule argument

pos: left 3, flags: discard

Additional information

Proof step 19 from proof two-even (previous step) (back to tree)

2 * i = 2 * (j2 ^2 + 2 * j * j + 2 * j * j2), 2 * j2 + j * 2 = j0 * 2, i ≠ j ^2 + j0 ^2 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: commutativity: ⊦ i * j = j * i; from specification int-mult associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult ⊦ 0 < i → (i * j = i * j0 ↔ j = j0); (s)

Proof step 20 from proof two-even (previous step) (back to tree)

2 * j2 + j * 2 = j0 * 2, j2 ^2 + 2 * j * j + 2 * j * j2 ≠ j ^2 + j0 ^2 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-mult, name:dist-rmerge, seq: ⊦ i * j + i * j0 = i * (j + j0), subst:[j0, j, i] → [j, j2, 2], <all paths>

Additional information

Used simplifier rules: commutativity: ⊦ i * j = j * i; from specification int-mult Used terms: j, j2, 2

Proof step 21 from proof two-even (previous step) (back to tree)

⊦ i * j + i * j0 = i * (j + j0)

A spec-lemma

Proof step 22 from proof two-even (previous step) (back to tree)

2 * (j2 + j) = j0 * 2, j2 ^2 + 2 * j * j + 2 * j * j2 ≠ j ^2 + j0 ^2 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: commutativity: ⊦ i * j = j * i; from specification int-mult associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult ⊦ 0 < i → (i * j = i * j0 ↔ j = j0); (s)

Proof step 23 from proof two-even (previous step) (back to tree)

j2 ^2 + 2 * j * j + 2 * j * j2 ≠ j ^2 + (j2 + j)^2 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:two-plus, seq: ⊦ (i + j)^2 = i ^2 + 2 * i * j + j ^2, subst:[j, i] → [j, j2], <all paths>

Additional information

Used simplifier rules: neq: ⊦ j ^2 = j * j ↔ true; ⊦ i + i = 2 * i; (s) ⊦ i + j = i + i0 ↔ j = i0; (s) ⊦ 0 < i → (i * j = i * j0 ↔ j = j0); (s) associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult commutativity: ⊦ i * j = j * i; from specification int-mult add-a: ⊦ i + j + i0 = (i + j) + i0; from specification int-basic2 add-c: ⊦ i + j = j + i; from specification int-basic2 Used terms: j, j2

Proof step 24 from proof two-even (previous step) (back to tree)

⊦ (i + j)^2 = i ^2 + 2 * i * j + j ^2

Lemma two-plus

Proof step 25 from proof two-even (previous step) (back to tree)

2 * i = 2 * j2 ^2 + 4 * j * j + 4 * j * j2, 2 * j2 + j * 2 = j0 * 2, 2 * j2 ^2 + 4 * j * j + 4 * j * j2 ≠ 2 * (j2 ^2 + 2 * j * j + 2 * j * j2), i ≠ j ^2 + j0 ^2 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: add-c: ⊦ i + j = j + i; from specification int-basic2 add-a: ⊦ i + j + i0 = (i + j) + i0; from specification int-basic2 commutativity: ⊦ i * j = j * i; from specification int-mult associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult ⊦ (i + j) * i0 = j0 + j * i0 ↔ i * i0 = j0; (s)

Proof step 26 from proof two-even (previous step) (back to tree)

2 * i = 2 * j2 ^2 + 4 * j * j + 4 * j * j2, 2 * j2 + j * 2 = j0 * 2, (2 * j * j + 2 * j * j2) * 2 ≠ 4 * j * j + 4 * j * j2, i ≠ j ^2 + j0 ^2 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-mult, name:dist-lsplit, seq: ⊦ (i + i0) * j = i * j + i0 * j, subst:[j, i0, i] → [2, 2 * j * j2, 2 * j * j], <all paths>

Additional information

Used simplifier rules: commutativity: ⊦ i * j = j * i; from specification int-mult associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult ⊦ i + j = i + i0 ↔ j = i0; (s) add-a: ⊦ i + j + i0 = (i + j) + i0; from specification int-basic2 add-c: ⊦ i + j = j + i; from specification int-basic2 Used terms: 2, 2 * j * j2, 2 * j * j

Proof step 27 from proof two-even (previous step) (back to tree)

⊦ (i + i0) * j = i * j + i0 * j

A spec-lemma

Proof step 28 from proof two-even (previous step) (back to tree)

(j1 - j2) % 2 = 0, 2 * i = j1 ^2 + j2 ^2, (j1 + j2) % 2 ≠ 0, i ≠ ((j1 - j2) / 2)^2 + ((j1 + j2) / 2)^2 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-div, name:modex, seq:j ≠ 0 ⊦ i % j = 0 ↔ (∃ j0. i = j0 * j), subst:[j, i] → [2, j1 - j2], <all paths>

Additional information

Used terms: 2, j1 - j2

Proof step 29 from proof two-even (previous step) (back to tree)

j ≠ 0 ⊦ i % j = 0 ↔ (∃ j0. i = j0 * j)

A spec-lemma

Proof step 30 from proof two-even (previous step) (back to tree)

2 * i = j1 ^2 + j2 ^2, (j1 + j2) % 2 ≠ 0, 2 ≠ 0, i ≠ ((j1 - j2) / 2)^2 + ((j1 + j2) / 2)^2, ∃ j0. j1 - j2 = j0 * 2 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: add-a: ⊦ i + j + i0 = (i + j) + i0; from specification int-basic2 add-c: ⊦ i + j = j + i; from specification int-basic2 ⊦ i + i = 2 * i; (s) commutativity: ⊦ i * j = j * i; from specification int-mult associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult ⊦ 1 * i = i; (s) j ≠ 0, j0 % j = 0 ⊦ (i * (* j0)) / (* j) = i * j0 / j; (s) ⊦ i + j - i = j; (s) ⊦ i - j = i0 ↔ i = i0 + j; (s)

Proof step 31 from proof two-even (previous step) (back to tree)

2 * i = (j0 * 2 + j2)^2 + j2 ^2, (2 * j2 + j0 * 2) % 2 ≠ 0, i ≠ j0 ^2 + ((2 * j2 + j0 * 2) / 2)^2 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-mult, name:dist-rmerge, seq: ⊦ i * j + i * j0 = i * (j + j0), subst:[j0, j, i] → [j0, j2, 2], <all paths>

Additional information

Used simplifier rules: ⊦ (i * 2) % 2 = 0; (s) associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult commutativity: ⊦ i * j = j * i; from specification int-mult Used terms: j0, j2, 2

Proof step 32 from proof two-even (previous step) (back to tree)

⊦ i * j + i * j0 = i * (j + j0)

A spec-lemma

Proof step 33 from proof two-even (previous step) (back to tree)

2 * i = j1 ^2 + j2 ^2, (j1 - j2) % 2 ≠ 0, i ≠ ((j1 - j2) / 2)^2 + ((j1 + j2) / 2)^2 ⊦

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: (j1 + j2) % 2 = 0

Additional information

Used formulas: (j1 + j2) % 2 = 0

Proof step 34 from proof two-even (previous step) (back to tree)

(j1 + j2) % 2 = 0, 2 * i = j1 ^2 + j2 ^2, (j1 - j2) % 2 ≠ 0, i ≠ ((j1 - j2) / 2)^2 + ((j1 + j2) / 2)^2 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-div, name:modex, seq:j ≠ 0 ⊦ i % j = 0 ↔ (∃ j0. i = j0 * j), subst:[j, i] → [2, j1 + j2], <all paths>

Additional information

Used terms: 2, j1 + j2

Proof step 35 from proof two-even (previous step) (back to tree)

j ≠ 0 ⊦ i % j = 0 ↔ (∃ j0. i = j0 * j)

A spec-lemma

Proof step 36 from proof two-even (previous step) (back to tree)

2 * i = j1 ^2 + j2 ^2, (j1 - j2) % 2 ≠ 0, 2 ≠ 0, i ≠ ((j1 - j2) / 2)^2 + ((j1 + j2) / 2)^2, ∃ j0. j1 + j2 = j0 * 2 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: commutativity: ⊦ i * j = j * i; from specification int-mult associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult ⊦ 1 * i = i; (s) j ≠ 0, j0 % j = 0 ⊦ (i * (* j0)) / (* j) = i * j0 / j; (s)

Proof step 37 from proof two-even (previous step) (back to tree)

2 * i = j1 ^2 + j2 ^2, j1 + j2 = j0 * 2, (j1 - j2) % 2 ≠ 0, i ≠ ((j1 - j2) / 2)^2 + j0 ^2 ⊦

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: j1 = j0 * 2 - j2

Additional information

Used simplifier rules: ⊦ i - j = i0 ↔ i = i0 + j; (s) Used formulas: j1 = j0 * 2 - j2

Proof step 38 from proof two-even (previous step) (back to tree)

2 * i = j1 ^2 + j2 ^2, j1 + j2 = j0 * 2, j1 = j0 * 2 - j2, (j1 - j2) % 2 ≠ 0, i ≠ ((j1 - j2) / 2)^2 + j0 ^2 ⊦

User applied rule subst equation

And obtained the following new goals

Rule argument

pos: left 3, flags: discard

Additional information

Proof step 39 from proof two-even (previous step) (back to tree)

2 * i = (j0 * 2 - j2)^2 + j2 ^2, (j0 * 2 - j2) + j2 = j0 * 2, (j0 * 2 - j2 - j2) % 2 ≠ 0, i ≠ ((j0 * 2 - j2 - j2) / 2)^2 + j0 ^2 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: add-c: ⊦ i + j = j + i; from specification int-basic2 add-a: ⊦ i + j + i0 = (i + j) + i0; from specification int-basic2 ⊦ i + i = 2 * i; (s) ⊦ i - j - i0 = i - j + i0; (s) commutativity: ⊦ i * j = j * i; from specification int-mult associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult ⊦ 0 < i → (i * j = i * j0 ↔ j = j0); (s) ⊦ i + (j - i) = j; (s)

Proof step 40 from proof two-even (previous step) (back to tree)

2 * i = (j0 * 2 - j2)^2 + j2 ^2, (j0 * 2 - 2 * j2) % 2 ≠ 0, i ≠ ((j0 * 2 - 2 * j2) / 2)^2 + j0 ^2 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-mult, name:dist-sub-split, seq: ⊦ (i - j) * j0 = i * j0 - j * j0, subst:[j, j0, i] → [j2, 2, j0], <rotated> <all paths>

Additional information

Used simplifier rules: ⊦ (i * 2) % 2 = 0; (s) associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult commutativity: ⊦ i * j = j * i; from specification int-mult Used terms: j2, 2, j0

Proof step 41 from proof two-even (previous step) (back to tree)

⊦ (i - j) * j0 = i * j0 - j * j0

A spec-lemma

Proof step 42 from proof two-even (previous step) (back to tree)

2 * i = j1 ^2 + j2 ^2, (j1 + j2) % 2 ≠ 0, (j1 - j2) % 2 ≠ 0, i ≠ ((j1 - j2) / 2)^2 + ((j1 + j2) / 2)^2 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-div, name:even-not-ex, seq: ⊦ i % 2 = 0 ↔ ¬(∃ i0. i = 2 * i0 + 1), subst:[i] → [j1 + j2], <all paths>

Additional information

Used terms: j1 + j2

Proof step 43 from proof two-even (previous step) (back to tree)

⊦ i % 2 = 0 ↔ ¬(∃ i0. i = 2 * i0 + 1)

A spec-lemma

Proof step 44 from proof two-even (previous step) (back to tree)

2 * i = j1 ^2 + j2 ^2, (j1 - j2) % 2 ≠ 0, i ≠ ((j1 - j2) / 2)^2 + ((j1 + j2) / 2)^2, ∃ i0. j1 + j2 = 2 * i0 + 1 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 45 from proof two-even (previous step) (back to tree)

2 * i = j1 ^2 + j2 ^2, j1 + j2 = 2 * i0 + 1, (j1 - j2) % 2 ≠ 0, i ≠ ((j1 - j2) / 2)^2 + ((j1 + j2) / 2)^2 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-div, name:even-not-ex, seq: ⊦ i % 2 = 0 ↔ ¬(∃ i0. i = 2 * i0 + 1), subst:[i] → [j1 - j2], <all paths>

Additional information

Used terms: j1 - j2

Proof step 46 from proof two-even (previous step) (back to tree)

⊦ i % 2 = 0 ↔ ¬(∃ i0. i = 2 * i0 + 1)

A spec-lemma

Proof step 47 from proof two-even (previous step) (back to tree)

2 * i = j1 ^2 + j2 ^2, j1 + j2 = 2 * i0 + 1, i ≠ ((j1 - j2) / 2)^2 + ((j1 + j2) / 2)^2, ∃ i0. j1 - j2 = 2 * i0 + 1 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: add-a: ⊦ i + j + i0 = (i + j) + i0; from specification int-basic2 add-c: ⊦ i + j = j + i; from specification int-basic2 ⊦ i + i = 2 * i; (s) ⊦ i + j - i = j; (s) ⊦ i + j = i + i0 ↔ j = i0; (s) ⊦ i - j = i0 ↔ i = i0 + j; (s)

Proof step 48 from proof two-even (previous step) (back to tree)

2 * i = ((2 * i1 + 1) + j2)^2 + j2 ^2, 2 * j2 + 2 * i1 = 2 * i0, i ≠ ((2 * i1 + 1) / 2)^2 + ((2 * j2 + 2 * i1 + 1) / 2)^2 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-mult, name:dist-rmerge, seq: ⊦ i * j + i * j0 = i * (j + j0), subst:[j0, j, i] → [i1, j2, 2], <all paths>

Additional information

Used terms: i1, j2, 2

Proof step 49 from proof two-even (previous step) (back to tree)

⊦ i * j + i * j0 = i * (j + j0)

A spec-lemma

Proof step 50 from proof two-even (previous step) (back to tree)

2 * (j2 + i1) = 2 * i0, 2 * i = ((2 * i1 + 1) + j2)^2 + j2 ^2, i ≠ ((2 * i1 + 1) / 2)^2 + ((2 * j2 + 2 * i1 + 1) / 2)^2 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: commutativity: ⊦ i * j = j * i; from specification int-mult associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult ⊦ 0 < i → (i * j = i * j0 ↔ j = j0); (s)

Proof step 51 from proof two-even (previous step) (back to tree)

2 * i = ((2 * i1 + 1) + j2)^2 + j2 ^2, i ≠ ((2 * i1 + 1) / 2)^2 + ((2 * j2 + 2 * i1 + 1) / 2)^2 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:two-plus, seq: ⊦ (i + j)^2 = i ^2 + 2 * i * j + j ^2, subst:[j, i] → [j2, 2 * i1 + 1], <all paths>

Additional information

Used terms: j2, 2 * i1 + 1

Proof step 52 from proof two-even (previous step) (back to tree)

⊦ (i + j)^2 = i ^2 + 2 * i * j + j ^2

Lemma two-plus

Proof step 53 from proof two-even (previous step) (back to tree)

2 * i = ((2 * i1 + 1)^2 + 2 * (2 * i1 + 1) * j2 + j2 ^2) + j2 ^2, i ≠ ((2 * i1 + 1) / 2)^2 + ((2 * j2 + 2 * i1 + 1) / 2)^2 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: add-a: ⊦ i + j + i0 = (i + j) + i0; from specification int-basic2 add-c: ⊦ i + j = j + i; from specification int-basic2 ⊦ i + i = 2 * i; (s)

Proof step 54 from proof two-even (previous step) (back to tree)

2 * i = 2 * j2 ^2 + (2 * i1 + 1)^2 + 2 * (2 * i1 + 1) * j2, i ≠ ((2 * i1 + 1) / 2)^2 + ((2 * j2 + 2 * i1 + 1) / 2)^2 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:two-plus, seq: ⊦ (i + j)^2 = i ^2 + 2 * i * j + j ^2, subst:[j, i] → [1, 2 * i1], <all paths>

Additional information

Used terms: 1, 2 * i1

Proof step 55 from proof two-even (previous step) (back to tree)

⊦ (i + j)^2 = i ^2 + 2 * i * j + j ^2

Lemma two-plus

Proof step 56 from proof two-even (previous step) (back to tree)

2 * i = 2 * j2 ^2 + ((2 * i1)^2 + 2 * (2 * i1) * 1 + 1 ^2) + 2 * (2 * i1 + 1) * j2, i ≠ ((2 * i1 + 1) / 2)^2 + ((2 * j2 + 2 * i1 + 1) / 2)^2 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: add-a: ⊦ i + j + i0 = (i + j) + i0; from specification int-basic2 associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult commutativity: ⊦ i * j = j * i; from specification int-mult

Proof step 57 from proof two-even (previous step) (back to tree)

2 * i = 2 * j2 ^2 + (2 * i1)^2 + 4 * i1 + 1 ^2 + 2 * (2 * i1 + 1) * j2, i ≠ ((2 * i1 + 1) / 2)^2 + ((2 * j2 + 2 * i1 + 1) / 2)^2 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:one, seq: ⊦ 1 ^2 = 1, subst:, <all paths>

Additional information

Used terms:

Proof step 58 from proof two-even (previous step) (back to tree)

⊦ 1 ^2 = 1

Lemma one

Proof step 59 from proof two-even (previous step) (back to tree)

2 * i = 2 * j2 ^2 + (2 * i1)^2 + 4 * i1 + 1 + 2 * (2 * i1 + 1) * j2, i ≠ ((2 * i1 + 1) / 2)^2 + ((2 * j2 + 2 * i1 + 1) / 2)^2 ⊦

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: 2 * j2 ^2 + (2 * i1)^2 + 4 * i1 + 1 + 2 * (2 * i1 + 1) * j2 = 2 * (j2 ^2 + 2 * i1 ^2 + 2 * i1 + (2 * i1 + 1) * j2) + 1

Additional information

Used formulas: 2 * j2 ^2 + (2 * i1)^2 + 4 * i1 + 1 + 2 * (2 * i1 + 1) * j2 = 2 * (j2 ^2 + 2 * i1 ^2 + 2 * i1 + (2 * i1 + 1) * j2) + 1

Proof step 60 from proof two-even (previous step) (back to tree)

2 * i = 2 * j2 ^2 + (2 * i1)^2 + 4 * i1 + 1 + 2 * (2 * i1 + 1) * j2, 2 * j2 ^2 + (2 * i1)^2 + 4 * i1 + 1 + 2 * (2 * i1 + 1) * j2 = 2 * (j2 ^2 + 2 * i1 ^2 + 2 * i1 + (2 * i1 + 1) * j2) + 1, i ≠ ((2 * i1 + 1) / 2)^2 + ((2 * j2 + 2 * i1 + 1) / 2)^2 ⊦

User applied rule subst equation

And closed the goal!

Rule argument

pos: left 2, flags: discard

Additional information

Used simplifier rules: ⊦ 2 * i ≠ 2 * j + 1; (s) add-a: ⊦ i + j + i0 = (i + j) + i0; from specification int-basic2 add-c: ⊦ i + j = j + i; from specification int-basic2 associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult commutativity: ⊦ i * j = j * i; from specification int-mult

Proof step 61 from proof two-even (previous step) (back to tree)

2 * i = 2 * j2 ^2 + (2 * i1)^2 + 4 * i1 + 1 + 2 * (2 * i1 + 1) * j2, 2 * j2 ^2 + (2 * i1)^2 + 4 * i1 + 1 + 2 * (2 * i1 + 1) * j2 ≠ 2 * (j2 ^2 + 2 * i1 ^2 + 2 * i1 + (2 * i1 + 1) * j2) + 1, i ≠ ((2 * i1 + 1) / 2)^2 + ((2 * j2 + 2 * i1 + 1) / 2)^2 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: add-c: ⊦ i + j = j + i; from specification int-basic2 add-a: ⊦ i + j + i0 = (i + j) + i0; from specification int-basic2 commutativity: ⊦ i * j = j * i; from specification int-mult associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult ⊦ (i + j) * i0 = j0 + j * i0 ↔ i * i0 = j0; (s) ⊦ i + j = i + i0 ↔ j = i0; (s)

Proof step 62 from proof two-even (previous step) (back to tree)

2 * i = 2 * j2 ^2 + (2 * i1)^2 + 4 * i1 + 1 + 2 * (2 * i1 + 1) * j2, (2 * i1 ^2 + 2 * i1) * 2 ≠ (2 * i1)^2 + 4 * i1, i ≠ ((2 * i1 + 1) / 2)^2 + ((2 * j2 + 2 * i1 + 1) / 2)^2 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-mult, name:dist-lsplit, seq: ⊦ (i + i0) * j = i * j + i0 * j, subst:[j, i0, i] → [2, 2 * i1, 2 * i1 ^2], <all paths>

Additional information

Used terms: 2, 2 * i1, 2 * i1 ^2

Proof step 63 from proof two-even (previous step) (back to tree)

⊦ (i + i0) * j = i * j + i0 * j

A spec-lemma

Proof step 64 from proof two-even (previous step) (back to tree)

2 * i = 2 * j2 ^2 + (2 * i1)^2 + 4 * i1 + 1 + 2 * (2 * i1 + 1) * j2, (2 * i1 ^2) * 2 + (2 * i1) * 2 ≠ (2 * i1)^2 + 4 * i1, i ≠ ((2 * i1 + 1) / 2)^2 + ((2 * j2 + 2 * i1 + 1) / 2)^2 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: add-c: ⊦ i + j = j + i; from specification int-basic2 add-a: ⊦ i + j + i0 = (i + j) + i0; from specification int-basic2 ⊦ i + j = i + i0 ↔ j = i0; (s) associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult commutativity: ⊦ i * j = j * i; from specification int-mult

Proof step 65 from proof two-even (previous step) (back to tree)

2 * i = 2 * j2 ^2 + (2 * i1)^2 + 4 * i1 + 1 + 2 * (2 * i1 + 1) * j2, 4 * i1 ^2 ≠ (2 * i1)^2, i ≠ ((2 * i1 + 1) / 2)^2 + ((2 * j2 + 2 * i1 + 1) / 2)^2 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:two-mult, seq: ⊦ (i * j)^2 = i ^2 * j ^2, subst:[j, i] → [i1, 2], <all paths>

Additional information

Used terms: i1, 2

Proof step 66 from proof two-even (previous step) (back to tree)

⊦ (i * j)^2 = i ^2 * j ^2

Lemma two-mult

Proof step 67 from proof two-even (previous step) (back to tree)

2 * i = 2 * j2 ^2 + 2 ^2 * i1 ^2 + 4 * i1 + 1 + 2 * (2 * i1 + 1) * j2, 4 * i1 ^2 ≠ 2 ^2 * i1 ^2, i ≠ ((2 * i1 + 1) / 2)^2 + ((2 * j2 + 2 * i1 + 1) / 2)^2 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: zero: ⊦ i ^2 = 0 ↔ i = 0; commutativity: ⊦ i * j = j * i; from specification int-mult associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult neq-not-zero: ⊦ i * j ≠ i * j0 → i ≠ 0; (forward) from specification int-mult

Proof step 68 from proof two-even (previous step) (back to tree)

2 * i = 2 * j2 ^2 + 2 ^2 * i1 ^2 + 4 * i1 + 1 + 2 * (2 * i1 + 1) * j2, 4 * i1 ^2 ≠ 2 ^2 * i1 ^2, i ≠ ((2 * i1 + 1) / 2)^2 + ((2 * j2 + 2 * i1 + 1) / 2)^2, i1 ≠ 0 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:Square-def, seq: ⊦ i ^2 = i * i, subst:[i] → [2], <all paths>

Additional information

Used simplifier rules: add-a: ⊦ i + j + i0 = (i + j) + i0; from specification int-basic2 ⊦ 0 < i → (i * j = i * j0 ↔ j = j0); (s) associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult commutativity: ⊦ i * j = j * i; from specification int-mult Used terms: 2

Proof step 69 from proof two-even (previous step) (back to tree)

⊦ i ^2 = i * i

Lemma Square-def

Proof Tree for two-even (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