[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 square-neq-any-pos-02 (conclusion) (back to tree)

0 < i, 0 < j, 0 < j0, gcd(j, j0) = 1, j * j = i * j0 * j0 ⊦ ∃ i0. i = i0 * i0

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j = i * j0 * j0, gcd(j, j0) = 1, 0 < j0, 0 < j, 0 < i ⊦ ∃ i0. i = i0 * i0

User applied rule induction

And obtained the following new goals

Rule argument

indvar: i→n(i) wfpred: <

Additional information

Used simplifier rules: <; (wellfounded) Used terms: i→n(i)

Proof step 3 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j = i * j0 * j0, gcd(j, j0) = 1, 0 < j0, 0 < j, 0 < i, ∀ i0, j, j0. i→n(i0) < i→n(i) → j * j = i0 * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i0 → (∃ i1. i0 = i1 * i1) ⊦ ∃ i0. i = i0 * i0

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

Proof step 4 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j = i * j0 * j0, gcd(j, j0) = 1, 0 < i, 0 < j, 0 < j0, ∀ i0, j, j0. i→n(i0) < i→n(i) → j * j = i0 * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i0 → (∃ i1. i0 = i1 * i1) ⊦ ∃ i0. i = i0 * i0

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:square-neq-pos-h, seq: ⊦ prime(i) ∧ gcd(j, j0) = 1 ∧ 0 < j ∧ 0 ≤ j0 → j * j ≠ i * j0 * j0, subst:[j0, i, j] → [j0, i, j], <all paths>

Additional information

Used terms: j0, i, j

Proof step 5 from proof square-neq-any-pos-02 (previous step) (back to tree)

⊦ prime(i) ∧ gcd(j, j0) = 1 ∧ 0 < j ∧ 0 ≤ j0 → j * j ≠ i * j0 * j0

Lemma square-neq-pos-h

Proof step 6 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j = i * j0 * j0, gcd(j, j0) = 1, 0 < j0, 0 < j, 0 < i, ∀ i0, j, j0. i→n(i0) < i→n(i) → j * j = i0 * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i0 → (∃ i1. i0 = i1 * i1) ⊦ ∃ i0. i = i0 * i0, prime(i) ∧ gcd(j, j0) = 1 ∧ 0 < j ∧ 0 ≤ j0

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

Proof step 7 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j = i * j0 * j0, gcd(j, j0) = 1, 0 < j0, 0 < j, 0 < i, 0 ≤ j0, ¬ prime(i), ∀ i0, j, j0. i→n(i0) < i→n(i) → j * j = i0 * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i0 → (∃ i1. i0 = i1 * i1) ⊦ ∃ i0. i = i0 * i0

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: 1 < i

Additional information

Used formulas: 1 < i

Proof step 8 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j = i * j0 * j0, gcd(j, j0) = 1, 0 < i, 0 < j, 0 < j0, 1 < i, 0 ≤ j0, ¬ prime(i), ∀ i0, j, j0. i→n(i0) < i→n(i) → j * j = i0 * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i0 → (∃ i1. i0 = i1 * i1) ⊦ ∃ i0. i = i0 * i0

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

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

Additional information

Used terms: i

Proof step 9 from proof square-neq-any-pos-02 (previous step) (back to tree)

⊦ 1 < i → (prime(i) ↔ (∀ j. prime(j) ∧ j * j ≤ i → ¬ j | i))

Lemma prime-def-prime

Proof step 10 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j = i * j0 * j0, gcd(j, j0) = 1, 0 < j0, 0 < j, 0 < i, 1 < i, 0 ≤ j0, ∃ j. ¬(prime(j) ∧ j * j ≤ i → ¬ j | i), ∀ i0, j, j0. i→n(i0) < i→n(i) → j * j = i0 * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i0 → (∃ i1. i0 = i1 * i1) ⊦ ∃ i0. i = i0 * i0

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

Proof step 11 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j = i * j0 * j0, gcd(j, j0) = 1, 0 < j, 0 < j0, 1 < i, 0 < i, prime(j1), j1 | i, j1 * j1 ≤ i, 0 ≤ j0, ∀ i0, j, j0. i→n(i0) < i→n(i) → j * j = i0 * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i0 → (∃ i1. i0 = i1 * i1) ⊦ ∃ i0. i = i0 * i0

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:divides, seq: ⊦ i | j ↔ (∃ i0. i * i0 = j), subst:[j, i] → [i, j1], <all paths>

Additional information

Used terms: i, j1

Proof step 12 from proof square-neq-any-pos-02 (previous step) (back to tree)

⊦ i | j ↔ (∃ i0. i * i0 = j)

Lemma divides

Proof step 13 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j = i * j0 * j0, gcd(j, j0) = 1, 0 < i, 1 < i, 0 < j0, 0 < j, prime(j1), 0 ≤ j0, j1 * j1 ≤ i, ∃ i0. j1 * i0 = i, ∀ i0, j, j0. i→n(i0) < i→n(i) → j * j = i0 * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i0 → (∃ i1. i0 = i1 * i1) ⊦ ∃ i0. i = i0 * i0

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 forward-le-05: ⊦ i < j ∧ 0 ≤ i → 0 < j; (forward) from specification int-abs

Proof step 14 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j = (j1 * i0) * j0 * j0, gcd(j, j0) = 1, 0 < j, 0 < j0, 1 < j1 * i0, 0 < j1 * i0, prime(j1), j1 * j1 ≤ j1 * i0, 0 ≤ j0, ∀ i1, j, j0. i→n(i1) < i→n(j1 * i0) → j * j = i1 * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i1 → (∃ i. i1 = i * i) ⊦ ∃ i1. j1 * i0 = i1 * i1

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: j1 | i0

Additional information

Used formulas: j1 | i0

Proof step 15 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j = (j1 * i0) * j0 * j0, gcd(j, j0) = 1, 0 < j1 * i0, 1 < j1 * i0, 0 < j0, 0 < j, prime(j1), j1 | i0, 0 ≤ j0, j1 * j1 ≤ j1 * i0, ∀ i1, j, j0. i→n(i1) < i→n(j1 * i0) → j * j = i1 * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i1 → (∃ i. i1 = i * i) ⊦ ∃ i1. j1 * i0 = i1 * i1

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:divides, seq: ⊦ i | j ↔ (∃ i0. i * i0 = j), subst:[j, i] → [i0, j1], <all paths>

Additional information

Used terms: i0, j1

Proof step 16 from proof square-neq-any-pos-02 (previous step) (back to tree)

⊦ i | j ↔ (∃ i0. i * i0 = j)

Lemma divides

Proof step 17 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j = (j1 * i0) * j0 * j0, gcd(j, j0) = 1, 0 < j, 0 < j0, 1 < j1 * i0, 0 < j1 * i0, prime(j1), j1 * j1 ≤ j1 * i0, 0 ≤ j0, ∃ i1. j1 * i1 = i0, ∀ i1, j, j0. i→n(i1) < i→n(j1 * i0) → j * j = i1 * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i1 → (∃ i. i1 = i * i) ⊦ ∃ i1. j1 * i0 = i1 * i1

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 18 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j = (j1 * j1 * i1) * j0 * j0, gcd(j, j0) = 1, 0 < j0, 0 < j, 0 < j1 * j1 * i1, 1 < j1 * j1 * i1, prime(j1), 0 ≤ j0, j1 * j1 ≤ j1 * j1 * i1, ∀ i, j, j0. i→n(i) < i→n(j1 * j1 * i1) → j * j = i * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i → (∃ i0. i = i0 * i0) ⊦ ∃ i. j1 * j1 * i1 = i * i

User applied rule apply induction

And obtained the following new goals

Rule argument

subst: [i, j, j0] → [i1, j, j0 * j1]

Additional information

Used terms: i1, j, j0 * j1

Proof step 19 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j = (j1 * j1 * i1) * j0 * j0, gcd(j, j0) = 1, 1 < j1 * j1 * i1, 0 < j1 * j1 * i1, 0 < j, 0 < j0, prime(j1), j1 * j1 ≤ j1 * j1 * i1, 0 ≤ j0, ¬ i→n(i1) < i→n(j1 * j1 * i1), ∀ i, j, j0. i→n(i) < i→n(j1 * j1 * i1) → j * j = i * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i → (∃ i0. i = i0 * i0) ⊦ ∃ i. j1 * j1 * i1 = i * i

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: prime-abs: ⊦ prime(j) → abs(j) = j; ⊦ i < j ↔ ¬ j ≤ i; (ss) commutativity: ⊦ i * j = j * i; from specification int-mult associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult ⊦ abs(i * j) = abs(i) * abs(j); (s) ⊦ i→n(i) < i→n(j) ↔ abs(i) < abs(j); (s)

Proof step 20 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j = (j1 * j1 * i1) * j0 * j0, gcd(j, j0) = 1, 0 < j0, 0 < j, 0 < j1 * j1 * i1, 1 < j1 * j1 * i1, prime(j1), 0 ≤ j0, j1 * j1 ≤ j1 * j1 * i1, j1 * j1 * abs(i1) ≤ abs(i1), ∀ i, j, j0. i→n(i) < i→n(j1 * j1 * i1) → j * j = i * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i → (∃ i0. i = i0 * i0) ⊦ ∃ i. j1 * j1 * i1 = i * i

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-mult, name:le-same-05, seq: ⊦ 1 < i → (i * abs(j) ≤ abs(j) ↔ j = 0), subst:[i, j] → [j1 * j1, i1], <all paths>

Additional information

Used simplifier rules: ⊦ i * i = 0 ↔ i = 0; (s) ⊦ i * i ≤ 0 ↔ i = 0; (s) ⊦ i * 0 = 0; (s) commutativity: ⊦ i * j = j * i; from specification int-mult associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult Used terms: j1 * j1, i1

Proof step 21 from proof square-neq-any-pos-02 (previous step) (back to tree)

⊦ 1 < i → (i * abs(j) ≤ abs(j) ↔ j = 0)

A spec-lemma

Proof step 22 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j = (j1 * j1 * i1) * j0 * j0, gcd(j, j0) = 1, 1 < j1 * j1 * i1, 0 < j1 * j1 * i1, 0 < j, 0 < j0, prime(j1), j1 * j1 * abs(i1) ≤ abs(i1), j1 * j1 ≤ j1 * j1 * i1, 0 ≤ j0, ¬ 1 < j1 * j1, ∀ i, j, j0. i→n(i) < i→n(j1 * j1 * i1) → j * j = i * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i → (∃ i0. i = i0 * i0) ⊦ ∃ i. j1 * j1 * i1 = i * i

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 ls-forward: ⊦ i * j < i * j0 → i ≠ 0; (forward) from specification int-mult forward-lels: ⊦ i ≤ j ∧ j < j0 → i < j0; (forward) from specification int-abs ⊦ i < j ↔ ¬ j ≤ i; (ss)

Proof step 23 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j = (j1 * j1 * i1) * j0 * j0, gcd(j, j0) = 1, j1 ≠ 0, j1 * j1 < j1 * j1 * i1, 1 < j1 * j1 * i1, 0 < j1 * j1 * i1, 0 < j, 0 < j0, prime(j1), j1 * j1 ≤ 1, j1 * j1 * abs(i1) ≤ abs(i1), j1 * j1 ≤ j1 * j1 * i1, 0 ≤ j0, ∀ i, j, j0. i→n(i) < i→n(j1 * j1 * i1) → j * j = i * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i → (∃ i0. i = i0 * i0) ⊦ ∃ i. j1 * j1 * i1 = i * i

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-mult, name:le-one, seq: ⊦ 1 < j → (i * j ≤ 1 ↔ i ≤ 0), subst:[j, i] → [j1, j1], <all paths>

Additional information

Used simplifier rules: prime-one: ⊦ i ≤ 1 → ¬ prime(i); prime-not-neg: ⊦ j < 0 → ¬ prime(j); ⊦ i ≠ j → (i ≤ j ↔ i < j); (s) ⊦ i < 0 → (i * j ≤ i * i0 ↔ i0 ≤ j); (s) ⊦ i < 0 → (i * j ≤ i ↔ 1 ≤ j); (s) ⊦ 1 ≤ i ↔ 0 < i; (s) associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult commutativity: ⊦ i * j = j * i; from specification int-mult ⊦ i < j ↔ ¬ j ≤ i; (ss) Used terms: j1, j1

Proof step 24 from proof square-neq-any-pos-02 (previous step) (back to tree)

⊦ 1 < j → (i * j ≤ 1 ↔ i ≤ 0)

A spec-lemma

Proof step 25 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j = (j1 * j1 * i1) * j0 * j0, gcd(j, j0) = 1, 1 < j1 * j1 * i1, 0 < j1 * j1 * i1, 0 < j, 0 < j0, prime(j1), j1 * j1 ≤ j1 * j1 * i1, 0 ≤ j0, ∀ i, j, j0. i→n(i) < i→n(j1 * j1 * i1) → j * j = i * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i → (∃ i0. i = i0 * i0) ⊦ ∃ i. j1 * j1 * i1 = i * i, j * j = i1 * (j0 * j1) * j0 * j1 ∧ gcd(j, j0 * j1) = 1 ∧ 0 < j0 * j1 ∧ 0 < j ∧ 0 < i1

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: prime-not-neg-01: ⊦ j ≤ 0 → ¬ prime(j); forward-le-05: ⊦ i < j ∧ 0 ≤ i → 0 < j; (forward) from specification int-abs commutativity: ⊦ i * j = j * i; from specification int-mult associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult ⊦ 0 < i → (0 < i * j ↔ 0 < j); (s) ⊦ ¬ i * i < 0; (s) ⊦ i ≤ 0 → (0 < i * j ↔ j < 0 ∧ i ≠ 0); (s) ⊦ i < j ↔ ¬ j ≤ i; (ss)

Proof step 26 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j = (j1 * j1 * i1) * j0 * j0, gcd(j, j0) = 1, gcd(j, j0 * j1) ≠ 1, 0 < j, 0 < j0, 1 < j1 * j1 * i1, 0 < j1, 0 < i1, prime(j1), j1 * j1 ≤ j1 * j1 * i1, 0 ≤ j0, ∀ i, j, j0. i→n(i) < i→n(j1 * j1 * i1) → j * j = i * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i → (∃ i0. i = i0 * i0) ⊦ ∃ i. j1 * j1 * i1 = i * i

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: (j1 * j1 * i1) * j0 * j0 = i1 * (j0 * j1) * j0 * j1

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 Used formulas: (j1 * j1 * i1) * j0 * j0 = i1 * (j0 * j1) * j0 * j1

Proof step 27 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j = (j1 * j1 * i1) * j0 * j0, (j1 * j1 * i1) * j0 * j0 = i1 * (j0 * j1) * j0 * j1, gcd(j, j0) = 1, gcd(j, j0 * j1) ≠ 1, 0 < i1, 0 < j1, 1 < j1 * j1 * i1, 0 < j0, 0 < j, prime(j1), 0 ≤ j0, j1 * j1 ≤ j1 * j1 * i1, ∀ i, j, j0. i→n(i) < i→n(j1 * j1 * i1) → j * j = i * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i → (∃ i0. i = i0 * i0) ⊦ ∃ i. j1 * j1 * i1 = i * i

User applied rule subst equation

And obtained the following new goals

Rule argument

pos: left 2, flags: discard

Additional information

Proof step 28 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j = i1 * (j0 * j1) * j0 * j1, gcd(j, j0) = 1, gcd(j, j0 * j1) ≠ 1, 0 < j, 0 < j0, 1 < j1 * j1 * i1, 0 < j1, 0 < i1, prime(j1), j1 * j1 ≤ j1 * j1 * i1, 0 ≤ j0, ∀ i, j, j0. i→n(i) < i→n(j1 * j1 * i1) → j * j = i * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i → (∃ i0. i = i0 * i0) ⊦ ∃ i. j1 * j1 * i1 = i * i

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: (j * j) / gcd(j, j0 * j1) = (i1 * (j0 * j1) * j0 * j1) / gcd(j, j0 * j1)

Additional information

Used simplifier rules: neqf: ⊦ i / j ≠ i / i0 → j ≠ i0; (forward) from specification int-div Used formulas: (j * j) / gcd(j, j0 * j1) = (i1 * (j0 * j1) * j0 * j1) / gcd(j, j0 * j1)

Proof step 29 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j = i1 * (j0 * j1) * j0 * j1, (j * j) / gcd(j, j0 * j1) = (i1 * (j0 * j1) * j0 * j1) / gcd(j, j0 * j1), gcd(j, j0) = 1, gcd(j, j0 * j1) ≠ 1, 0 < i1, 0 < j1, 1 < j1 * j1 * i1, 0 < j0, 0 < j, prime(j1), 0 ≤ j0, j1 * j1 ≤ j1 * j1 * i1, ∀ i, j, j0. i→n(i) < i→n(j1 * j1 * i1) → j * j = i * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i → (∃ i0. i = i0 * i0) ⊦ ∃ i. j1 * j1 * i1 = i * i

User applied rule weakening

And obtained the following new goals

Rule argument

poslist: left 1

Additional information

Proof step 30 from proof square-neq-any-pos-02 (previous step) (back to tree)

(j * j) / gcd(j, j0 * j1) = (i1 * (j0 * j1) * j0 * j1) / gcd(j, j0 * j1), gcd(j, j0) = 1, gcd(j, j0 * j1) ≠ 1, 0 < j, 0 < j0, 1 < j1 * j1 * i1, 0 < j1, 0 < i1, prime(j1), j1 * j1 ≤ j1 * j1 * i1, 0 ≤ j0, ∀ i, j, j0. i→n(i) < i→n(j1 * j1 * i1) → j * j = i * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i → (∃ i0. i = i0 * i0) ⊦ ∃ i. j1 * j1 * i1 = i * i

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:gcd-div-shift, seq: ⊦ i0 ≠ 0 → (i0 * j) / gcd(i0, j0) = i0 / gcd(i0, j0) * j, subst:[j0, j, i0] → [j0 * j1, j, j], <all paths>

Additional information

Used simplifier rules: gcd-zero-04: ⊦ gcd(i, 0) = abs(i); gcd-com: ⊦ gcd(i, j) = gcd(j, i); ⊦ 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 ⊦ 0 < j → abs(j) = j; (s) Used terms: j0 * j1, j, j

Proof step 31 from proof square-neq-any-pos-02 (previous step) (back to tree)

⊦ i0 ≠ 0 → (i0 * j) / gcd(i0, j0) = i0 / gcd(i0, j0) * j

Lemma gcd-div-shift

Proof step 32 from proof square-neq-any-pos-02 (previous step) (back to tree)

j / gcd(j, j0 * j1) * j = (i1 * (j0 * j1) * j0 * j1) / gcd(j, j0 * j1), gcd(j, j0) = 1, gcd(j, j0 * j1) ≠ 1, j ≠ 0, 0 < i1, 0 < j1, 1 < j1 * j1 * i1, 0 < j0, 0 < j, prime(j1), 0 ≤ j0, j1 * j1 ≤ j1 * j1 * i1, ∀ i, j, j0. i→n(i) < i→n(j1 * j1 * i1) → j * j = i * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i → (∃ i0. i = i0 * i0) ⊦ ∃ i. j1 * j1 * i1 = i * i

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: i1 * (j0 * j1) * j0 * j1 = (j0 * j1) * i1 * j0 * j1

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 Used formulas: i1 * (j0 * j1) * j0 * j1 = (j0 * j1) * i1 * j0 * j1

Proof step 33 from proof square-neq-any-pos-02 (previous step) (back to tree)

j / gcd(j, j0 * j1) * j = (i1 * (j0 * j1) * j0 * j1) / gcd(j, j0 * j1), i1 * (j0 * j1) * j0 * j1 = (j0 * j1) * i1 * j0 * j1, gcd(j, j0) = 1, gcd(j, j0 * j1) ≠ 1, j ≠ 0, 0 < j, 0 < j0, 1 < j1 * j1 * i1, 0 < j1, 0 < i1, prime(j1), j1 * j1 ≤ j1 * j1 * i1, 0 ≤ j0, ∀ i, j, j0. i→n(i) < i→n(j1 * j1 * i1) → j * j = i * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i → (∃ i0. i = i0 * i0) ⊦ ∃ i. j1 * j1 * i1 = i * i

User applied rule subst equation

And obtained the following new goals

Rule argument

pos: left 2, flags: discard

Additional information

Proof step 34 from proof square-neq-any-pos-02 (previous step) (back to tree)

j / gcd(j, j0 * j1) * j = ((j0 * j1) * i1 * j0 * j1) / gcd(j, j0 * j1), gcd(j, j0) = 1, gcd(j, j0 * j1) ≠ 1, j ≠ 0, 0 < i1, 0 < j1, 1 < j1 * j1 * i1, 0 < j0, 0 < j, prime(j1), 0 ≤ j0, j1 * j1 ≤ j1 * j1 * i1, ∀ i, j, j0. i→n(i) < i→n(j1 * j1 * i1) → j * j = i * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i → (∃ i0. i = i0 * i0) ⊦ ∃ i. j1 * j1 * i1 = i * i

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:gcd-com, seq: ⊦ gcd(i, j) = gcd(j, i), subst:[j, i] → [j0 * j1, j], <all paths>

Additional information

Used terms: j0 * j1, j

Proof step 35 from proof square-neq-any-pos-02 (previous step) (back to tree)

⊦ gcd(i, j) = gcd(j, i)

Lemma gcd-com

Proof step 36 from proof square-neq-any-pos-02 (previous step) (back to tree)

j / gcd(j0 * j1, j) * j = ((j0 * j1) * i1 * j0 * j1) / gcd(j0 * j1, j), gcd(j, j0) = 1, gcd(j0 * j1, j) ≠ 1, j ≠ 0, 0 < j, 0 < j0, 1 < j1 * j1 * i1, 0 < j1, 0 < i1, prime(j1), j1 * j1 ≤ j1 * j1 * i1, 0 ≤ j0, ∀ i, j, j0. i→n(i) < i→n(j1 * j1 * i1) → j * j = i * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i → (∃ i0. i = i0 * i0) ⊦ ∃ i. j1 * j1 * i1 = i * i

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:gcd-div-shift, seq: ⊦ i0 ≠ 0 → (i0 * j) / gcd(i0, j0) = i0 / gcd(i0, j0) * j, subst:[j0, j, i0] → [j, i1 * j0 * j1, j0 * j1], <all paths>

Additional information

Used simplifier rules: gcd-zero-03: ⊦ i ≠ 0 → gcd(i, 0) = abs(i); gcd-com: ⊦ gcd(i, j) = gcd(j, i); ⊦ 0 < i → (i * j = 0 ↔ j = 0); (s) i ≠ 0 ⊦ i / i = 1; (s) ⊦ 1 * i = i; (s) ⊦ i * 0 = 0; (s) associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult commutativity: ⊦ i * j = j * i; from specification int-mult ⊦ 0 < j → abs(j) = j; (s) j ≠ 0 ⊦ 0 / j = 0; (s) Used terms: j, i1 * j0 * j1, j0 * j1

Proof step 37 from proof square-neq-any-pos-02 (previous step) (back to tree)

⊦ i0 ≠ 0 → (i0 * j) / gcd(i0, j0) = i0 / gcd(i0, j0) * j

Lemma gcd-div-shift

Proof step 38 from proof square-neq-any-pos-02 (previous step) (back to tree)

j / gcd(j0 * j1, j) * j = (j0 * j1) / gcd(j0 * j1, j) * i1 * j0 * j1, gcd(j, j0) = 1, j0 * j1 ≠ 0, gcd(j0 * j1, j) ≠ 1, j ≠ 0, 0 < i1, 0 < j1, 1 < j1 * j1 * i1, 0 < j0, 0 < j, prime(j1), 0 ≤ j0, j1 * j1 ≤ j1 * j1 * i1, ∀ i, j, j0. i→n(i) < i→n(j1 * j1 * i1) → j * j = i * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i → (∃ i0. i = i0 * i0) ⊦ ∃ i. j1 * j1 * i1 = i * i

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

Proof step 39 from proof square-neq-any-pos-02 (previous step) (back to tree)

j / gcd(j0 * j1, j) * j = (j0 * j1) / gcd(j0 * j1, j) * i1 * j0 * j1, gcd(j, j0) = 1, gcd(j0 * j1, j) ≠ 1, j ≠ 0, j0 ≠ 0, j1 ≠ 0, 0 < j, 1 < j1 * j1 * i1, 0 < j1, 0 < i1, 0 < j0, prime(j1), j1 * j1 ≤ j1 * j1 * i1, ∀ i, j, j0. i→n(i) < i→n(j1 * j1 * i1) → j * j = i * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i → (∃ i0. i = i0 * i0) ⊦ ∃ i. j1 * j1 * i1 = i * i

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: (j / gcd(j0 * j1, j) * j) / gcd(j0 * j1, j) = ((j0 * j1) / gcd(j0 * j1, j) * i1 * j0 * j1) / gcd(j0 * j1, j)

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 neqf: ⊦ i / j ≠ i / i0 → j ≠ i0; (forward) from specification int-div Used formulas: (j / gcd(j0 * j1, j) * j) / gcd(j0 * j1, j) = ((j0 * j1) / gcd(j0 * j1, j) * i1 * j0 * j1) / gcd(j0 * j1, j)

Proof step 40 from proof square-neq-any-pos-02 (previous step) (back to tree)

j / gcd(j0 * j1, j) * j = (j0 * j1) / gcd(j0 * j1, j) * i1 * j0 * j1, (j / gcd(j0 * j1, j) * j) / gcd(j0 * j1, j) = ((j0 * j1) / gcd(j0 * j1, j) * i1 * j0 * j1) / gcd(j0 * j1, j), gcd(j, j0) = 1, gcd(j0 * j1, j) ≠ 1, j ≠ 0, j0 ≠ 0, j1 ≠ 0, 0 < j0, 0 < i1, 0 < j1, 1 < j1 * j1 * i1, 0 < j, prime(j1), j1 * j1 ≤ j1 * j1 * i1, ∀ i, j, j0. i→n(i) < i→n(j1 * j1 * i1) → j * j = i * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i → (∃ i0. i = i0 * i0) ⊦ ∃ i. j1 * j1 * i1 = i * i

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-mult, name:commutativity, seq: ⊦ i * j = j * i, subst:[j, i] → [j, j / gcd(j0 * j1, j)], <all paths>

Additional information

Used terms: j, j / gcd(j0 * j1, j)

Proof step 41 from proof square-neq-any-pos-02 (previous step) (back to tree)

⊦ i * j = j * i

A spec-lemma

Proof step 42 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j / gcd(j0 * j1, j) = (j0 * j1) / gcd(j0 * j1, j) * i1 * j0 * j1, (j * j / gcd(j0 * j1, j)) / gcd(j0 * j1, j) = ((j0 * j1) / gcd(j0 * j1, j) * i1 * j0 * j1) / gcd(j0 * j1, j), gcd(j, j0) = 1, gcd(j0 * j1, j) ≠ 1, j ≠ 0, j0 ≠ 0, j1 ≠ 0, 0 < j, 1 < j1 * j1 * i1, 0 < j1, 0 < i1, 0 < j0, prime(j1), j1 * j1 ≤ j1 * j1 * i1, ∀ i, j, j0. i→n(i) < i→n(j1 * j1 * i1) → j * j = i * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i → (∃ i0. i = i0 * i0) ⊦ ∃ i. j1 * j1 * i1 = i * i

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:gcd-div-shift, seq: ⊦ i0 ≠ 0 → (i0 * j) / gcd(i0, j0) = i0 / gcd(i0, j0) * j, subst:[j0, j, i0] → [j0 * j1, j / gcd(j0 * j1, j), j], <all paths>

Additional information

Used simplifier rules: gcd-com: ⊦ gcd(i, j) = gcd(j, i); Used terms: j0 * j1, j / gcd(j0 * j1, j), j

Proof step 43 from proof square-neq-any-pos-02 (previous step) (back to tree)

⊦ i0 ≠ 0 → (i0 * j) / gcd(i0, j0) = i0 / gcd(i0, j0) * j

Lemma gcd-div-shift

Proof step 44 from proof square-neq-any-pos-02 (previous step) (back to tree)

j / gcd(j, j0 * j1) * j / gcd(j0 * j1, j) = ((j0 * j1) / gcd(j0 * j1, j) * i1 * j0 * j1) / gcd(j0 * j1, j), j * j / gcd(j0 * j1, j) = (j0 * j1) / gcd(j0 * j1, j) * i1 * j0 * j1, gcd(j, j0) = 1, gcd(j0 * j1, j) ≠ 1, j ≠ 0, j0 ≠ 0, j1 ≠ 0, 0 < j0, 0 < i1, 0 < j1, 1 < j1 * j1 * i1, 0 < j, prime(j1), j1 * j1 ≤ j1 * j1 * i1, ∀ i, j, j0. i→n(i) < i→n(j1 * j1 * i1) → j * j = i * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i → (∃ i0. i = i0 * i0) ⊦ ∃ i. j1 * j1 * i1 = i * i

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: (j0 * j1) / gcd(j0 * j1, j) * i1 * j0 * j1 = (j0 * j1) * (j0 * j1) / gcd(j0 * j1, j) * i1

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 Used formulas: (j0 * j1) / gcd(j0 * j1, j) * i1 * j0 * j1 = (j0 * j1) * (j0 * j1) / gcd(j0 * j1, j) * i1

Proof step 45 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j / gcd(j0 * j1, j) = (j0 * j1) / gcd(j0 * j1, j) * i1 * j0 * j1, j / gcd(j, j0 * j1) * j / gcd(j0 * j1, j) = ((j0 * j1) / gcd(j0 * j1, j) * i1 * j0 * j1) / gcd(j0 * j1, j), (j0 * j1) / gcd(j0 * j1, j) * i1 * j0 * j1 = (j0 * j1) * (j0 * j1) / gcd(j0 * j1, j) * i1, gcd(j, j0) = 1, gcd(j0 * j1, j) ≠ 1, j ≠ 0, j0 ≠ 0, j1 ≠ 0, 0 < j, 1 < j1 * j1 * i1, 0 < j1, 0 < i1, 0 < j0, prime(j1), j1 * j1 ≤ j1 * j1 * i1, ∀ i, j, j0. i→n(i) < i→n(j1 * j1 * i1) → j * j = i * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i → (∃ i0. i = i0 * i0) ⊦ ∃ i. j1 * j1 * i1 = i * i

User applied rule subst equation

And obtained the following new goals

Rule argument

pos: left 3, flags: discard

Additional information

Proof step 46 from proof square-neq-any-pos-02 (previous step) (back to tree)

j / gcd(j, j0 * j1) * j / gcd(j0 * j1, j) = ((j0 * j1) * (j0 * j1) / gcd(j0 * j1, j) * i1) / gcd(j0 * j1, j), j * j / gcd(j0 * j1, j) = (j0 * j1) * (j0 * j1) / gcd(j0 * j1, j) * i1, gcd(j, j0) = 1, gcd(j0 * j1, j) ≠ 1, j ≠ 0, j0 ≠ 0, j1 ≠ 0, 0 < j0, 0 < i1, 0 < j1, 1 < j1 * j1 * i1, 0 < j, prime(j1), j1 * j1 ≤ j1 * j1 * i1, ∀ i, j, j0. i→n(i) < i→n(j1 * j1 * i1) → j * j = i * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i → (∃ i0. i = i0 * i0) ⊦ ∃ i. j1 * j1 * i1 = i * i

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:gcd-div-shift, seq: ⊦ i0 ≠ 0 → (i0 * j) / gcd(i0, j0) = i0 / gcd(i0, j0) * j, subst:[j0, j, i0] → [j, (j0 * j1) / gcd(j0 * j1, j) * i1, j0 * j1], <all paths>

Additional information

Used simplifier rules: ⊦ i * j = 0 ↔ i = 0 ∨ j = 0; (ws) associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult commutativity: ⊦ i * j = j * i; from specification int-mult Used terms: j, (j0 * j1) / gcd(j0 * j1, j) * i1, j0 * j1

Proof step 47 from proof square-neq-any-pos-02 (previous step) (back to tree)

⊦ i0 ≠ 0 → (i0 * j) / gcd(i0, j0) = i0 / gcd(i0, j0) * j

Lemma gcd-div-shift

Proof step 48 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j / gcd(j0 * j1, j) = (j0 * j1) * (j0 * j1) / gcd(j0 * j1, j) * i1, j / gcd(j, j0 * j1) * j / gcd(j0 * j1, j) = (j0 * j1) / gcd(j0 * j1, j) * (j0 * j1) / gcd(j0 * j1, j) * i1, gcd(j, j0) = 1, j0 * j1 ≠ 0, gcd(j0 * j1, j) ≠ 1, j ≠ 0, j0 ≠ 0, j1 ≠ 0, 0 < j, 1 < j1 * j1 * i1, 0 < j1, 0 < i1, 0 < j0, prime(j1), j1 * j1 ≤ j1 * j1 * i1, ∀ i, j, j0. i→n(i) < i→n(j1 * j1 * i1) → j * j = i * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i → (∃ i0. i = i0 * i0) ⊦ ∃ i. j1 * j1 * i1 = i * i

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 ⊦ i * j = 0 ↔ i = 0 ∨ j = 0; (ws)

Proof step 49 from proof square-neq-any-pos-02 (previous step) (back to tree)

j / gcd(j, j0 * j1) * j / gcd(j0 * j1, j) = (j0 * j1) / gcd(j0 * j1, j) * (j0 * j1) / gcd(j0 * j1, j) * i1, j * j / gcd(j0 * j1, j) = (j0 * j1) * (j0 * j1) / gcd(j0 * j1, j) * i1, gcd(j, j0) = 1, gcd(j0 * j1, j) ≠ 1, j ≠ 0, j0 ≠ 0, j1 ≠ 0, 0 < j0, 0 < i1, 0 < j1, 1 < j1 * j1 * i1, 0 < j, prime(j1), j1 * j1 ≤ j1 * j1 * i1, ∀ i, j, j0. i→n(i) < i→n(j1 * j1 * i1) → j * j = i * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i → (∃ i0. i = i0 * i0) ⊦ ∃ i. j1 * j1 * i1 = i * i

User applied rule apply induction

And obtained the following new goals

Rule argument

subst: [i, j, j0] → [i1, j / gcd(j, j0 * j1), (j0 * j1) / gcd(j0 * j1, j)]

Additional information

Used terms: i1, j / gcd(j, j0 * j1), (j0 * j1) / gcd(j0 * j1, j)

Proof step 50 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j / gcd(j0 * j1, j) = (j0 * j1) * (j0 * j1) / gcd(j0 * j1, j) * i1, j / gcd(j, j0 * j1) * j / gcd(j0 * j1, j) = (j0 * j1) / gcd(j0 * j1, j) * (j0 * j1) / gcd(j0 * j1, j) * i1, gcd(j, j0) = 1, gcd(j0 * j1, j) ≠ 1, j ≠ 0, j0 ≠ 0, j1 ≠ 0, 0 < j, 1 < j1 * j1 * i1, 0 < j1, 0 < i1, 0 < j0, prime(j1), j1 * j1 ≤ j1 * j1 * i1, ¬ i→n(i1) < i→n(j1 * j1 * i1), ∀ i, j, j0. i→n(i) < i→n(j1 * j1 * i1) → j * j = i * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i → (∃ i0. i = i0 * i0) ⊦ ∃ i. j1 * j1 * i1 = i * i

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

Proof step 51 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j / gcd(j0 * j1, j) = (j0 * j1) * (j0 * j1) / gcd(j0 * j1, j) * i1, j / gcd(j, j0 * j1) * j / gcd(j0 * j1, j) = (j0 * j1) / gcd(j0 * j1, j) * (j0 * j1) / gcd(j0 * j1, j) * i1, gcd(j, j0) = 1, gcd(j0 * j1, j) ≠ 1, j ≠ 0, j0 ≠ 0, j1 ≠ 0, 0 < j, 1 < j1 * j1 * i1, 0 < j1, 0 < j0, j1 * j1 < i1, 1 < i1, 0 < i1, prime(j1), j1 * j1 ≤ 1, j1 * j1 ≤ j1 * j1 * i1, ∀ i, j, j0. i→n(i) < i→n(j1 * j1 * i1) → j * j = i * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i → (∃ i0. i = i0 * i0) ⊦ ∃ i. j1 * j1 * i1 = i * i

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-mult, name:le-one, seq: ⊦ 1 < j → (i * j ≤ 1 ↔ i ≤ 0), subst:[j, i] → [j1, j1], <all paths>

Additional information

Used simplifier rules: gcd-com: ⊦ gcd(i, j) = gcd(j, i); ⊦ i ≠ j → (i ≤ j ↔ i < j); (s) ⊦ i < j → ¬ j < i; (s) ⊦ i < j ↔ ¬ j ≤ i; (ss) ⊦ 0 < i → (i ≤ 1 ↔ i = 1); (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 Used terms: j1, j1

Proof step 52 from proof square-neq-any-pos-02 (previous step) (back to tree)

⊦ 1 < j → (i * j ≤ 1 ↔ i ≤ 0)

A spec-lemma

Proof step 53 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j / gcd(j0 * j1, j) = (j0 * j1) * (j0 * j1) / gcd(j0 * j1, j) * i1, j / gcd(j, j0 * j1) * j / gcd(j0 * j1, j) = (j0 * j1) / gcd(j0 * j1, j) * (j0 * j1) / gcd(j0 * j1, j) * i1, gcd(j, j0) = 1, gcd(j0 * j1, j) ≠ 1, j ≠ 0, j0 ≠ 0, j1 ≠ 0, 0 < j, 1 < j1 * j1 * i1, 0 < j1, 0 < i1, 0 < j0, prime(j1), j1 * j1 ≤ j1 * j1 * i1, ∀ i, j, j0. i→n(i) < i→n(j1 * j1 * i1) → j * j = i * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i → (∃ i0. i = i0 * i0) ⊦ ∃ i. j1 * j1 * i1 = i * i, j / gcd(j, j0 * j1) * j / gcd(j, j0 * j1) = i1 * (j0 * j1) / gcd(j0 * j1, j) * (j0 * j1) / gcd(j0 * j1, j) ∧ gcd(j / gcd(j, j0 * j1), (j0 * j1) / gcd(j0 * j1, j)) = 1 ∧ 0 < (j0 * j1) / gcd(j0 * j1, j) ∧ 0 < j / gcd(j, j0 * j1) ∧ 0 < i1

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: gcd-div-gcd: ⊦ i ≠ 0 → gcd(i / gcd(i, j), j / gcd(i, j)) = 1; gcd-com: ⊦ gcd(i, j) = gcd(j, i); div-gcd-not-neg: ⊦ 0 < i → ¬ i / gcd(i, i0) ≤ 0; forward-le-05: ⊦ i < j ∧ 0 ≤ i → 0 < j; (forward) from specification int-abs forward-le-04: ⊦ j ≤ i ∧ i ≤ 0 → j ≤ 0; (forward) from specification int-abs forward-lels: ⊦ i ≤ j ∧ j < j0 → i < j0; (forward) from specification int-abs ⊦ i < j ↔ ¬ j ≤ i; (ss) commutativity: ⊦ i * j = j * i; from specification int-mult associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult

Proof step 54 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j / gcd(j0 * j1, j) = (j0 * j1) * (j0 * j1) / gcd(j0 * j1, j) * i1, j / gcd(j, j0 * j1) * j / gcd(j0 * j1, j) = (j0 * j1) / gcd(j0 * j1, j) * (j0 * j1) / gcd(j0 * j1, j) * i1, gcd(j, j0) = 1, gcd(j0 * j1, j) ≠ 1, j ≠ 0, j0 ≠ 0, j1 ≠ 0, 0 < j, 1 < j1 * j1 * i1, 0 < j1, 0 < i1, 0 < j0, 0 < j / gcd(j, j0 * j1), (j0 * j1) / gcd(j0 * j1, j) < j, (j0 * j1) / gcd(j0 * j1, j) < j1, (j0 * j1) / gcd(j0 * j1, j) < i1, (j0 * j1) / gcd(j0 * j1, j) < j0, (j0 * j1) / gcd(j0 * j1, j) < j / gcd(j, j0 * j1), prime(j1), j1 * j1 ≤ j1 * j1 * i1, (j0 * j1) / gcd(j0 * j1, j) ≤ 0, ∀ i, j, j0. i→n(i) < i→n(j1 * j1 * i1) → j * j = i * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i → (∃ i0. i = i0 * i0) ⊦ ∃ i. j1 * j1 * i1 = i * i

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-div, name:div-lezero, seq: ⊦ 0 < j → (i / j ≤ 0 ↔ i < j), subst:[j, i] → [gcd(j0 * j1, j), j0 * j1], <all paths>

Additional information

Used simplifier rules: gcd-less-eq-zero: ⊦ gcd(i, j) ≤ 0 ↔ gcd(i, j) = 0; gcd-zero-zero: ⊦ gcd(i, j) = 0 ↔ i = 0 ∧ j = 0; ⊦ i < j ↔ ¬ j ≤ i; (ss) ⊦ i * j = 0 ↔ i = 0 ∨ j = 0; (ws) associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult commutativity: ⊦ i * j = j * i; from specification int-mult Used terms: gcd(j0 * j1, j), j0 * j1

Proof step 55 from proof square-neq-any-pos-02 (previous step) (back to tree)

⊦ 0 < j → (i / j ≤ 0 ↔ i < j)

A spec-lemma

Proof step 56 from proof square-neq-any-pos-02 (previous step) (back to tree)

j / gcd(j, j0 * j1) * j / gcd(j0 * j1, j) = (j0 * j1) / gcd(j0 * j1, j) * (j0 * j1) / gcd(j0 * j1, j) * i1, j * j / gcd(j0 * j1, j) = (j0 * j1) * (j0 * j1) / gcd(j0 * j1, j) * i1, gcd(j, j0) = 1, gcd(j0 * j1, j) ≠ 1, j ≠ 0, j0 ≠ 0, j1 ≠ 0, j0 * j1 < gcd(j0 * j1, j), (j0 * j1) / gcd(j0 * j1, j) < j / gcd(j, j0 * j1), (j0 * j1) / gcd(j0 * j1, j) < j0, (j0 * j1) / gcd(j0 * j1, j) < i1, (j0 * j1) / gcd(j0 * j1, j) < j1, (j0 * j1) / gcd(j0 * j1, j) < j, 0 < j / gcd(j, j0 * j1), 0 < j0, 0 < i1, 0 < j1, 1 < j1 * j1 * i1, 0 < j, 0 < gcd(j0 * j1, j), prime(j1), j1 * j1 ≤ j1 * j1 * i1, ∀ i, j, j0. i→n(i) < i→n(j1 * j1 * i1) → j * j = i * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i → (∃ i0. i = i0 * i0) ⊦ ∃ i. j1 * j1 * i1 = i * i

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:not-less-gcd, seq: ⊦ 0 < i → ¬ i < gcd(i, j), subst:[j, i] → [j, j0 * j1], <all paths>

Additional information

Used simplifier rules: ⊦ 0 < i → (0 < i * j ↔ 0 < j); (s) ⊦ i < j ↔ ¬ j ≤ i; (ss) ⊦ i ≠ j → (i ≤ j ↔ i < j); (s) ⊦ i < j → ¬ j < i; (s) associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult commutativity: ⊦ i * j = j * i; from specification int-mult Used terms: j, j0 * j1

Proof step 57 from proof square-neq-any-pos-02 (previous step) (back to tree)

⊦ 0 < i → ¬ i < gcd(i, j)

Lemma not-less-gcd

Proof step 58 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j / gcd(j0 * j1, j) = (j0 * j1) * (j0 * j1) / gcd(j0 * j1, j) * i1, j / gcd(j, j0 * j1) * j / gcd(j0 * j1, j) = (j0 * j1) / gcd(j0 * j1, j) * (j0 * j1) / gcd(j0 * j1, j) * i1, gcd(j, j0) = 1, gcd(j0 * j1, j) ≠ 1, j ≠ 0, j0 ≠ 0, j1 ≠ 0, 0 < j, 1 < j1 * j1 * i1, 0 < j1, 0 < i1, 0 < j0, prime(j1), j1 * j1 ≤ j1 * j1 * i1, ∃ i0. i1 = i0 * i0, ∀ i, j, j0. i→n(i) < i→n(j1 * j1 * i1) → j * j = i * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i → (∃ i0. i = i0 * i0) ⊦ ∃ i. j1 * j1 * i1 = i * i

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: gcd-com: ⊦ gcd(i, j) = gcd(j, i); gcd-zero-zero: ⊦ gcd(i, j) = 0 ↔ i = 0 ∧ j = 0; gcd-abs: ⊦ abs(gcd(i, j)) = gcd(i, j); commutativity: ⊦ i * j = j * i; from specification int-mult associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult ⊦ 0 < i → (0 < i * j ↔ 0 < j); (s) 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 ⊦ 0 < j → abs(j) = j; (s) ⊦ abs(i * j) = abs(i) * abs(j); (s) ⊦ i * i = j * j ↔ abs(i) = abs(j); (s) j ≠ 0 ⊦ abs(i / j) = abs(i) / abs(j); (s) ⊦ i * j = 0 ↔ i = 0 ∨ j = 0; (ws)

Proof step 59 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j / gcd(j0 * j1, j) = (j0 * j1) * (j0 * j1) / gcd(j0 * j1, j) * i0 * i0, j / gcd(j, j0 * j1) = (j0 * j1) / gcd(j0 * j1, j) * abs(i0), gcd(j, j0) = 1, gcd(j0 * j1, j) ≠ 1, j ≠ 0, j0 ≠ 0, j1 ≠ 0, 0 < j, 0 < j1, 0 < j0, 1 < j1 * j1 * i0 * i0, 0 < i0 * i0, prime(j1), j1 * j1 ≤ j1 * j1 * i0 * i0, ∀ i, j, j0. i→n(i) < i→n(j1 * j1 * i0 * i0) → j * j = i * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i → (∃ i0. i = i0 * i0) ⊦ ∃ i. j1 * abs(i0) = abs(i)

User applied rule exists right

And closed the goal!

Rule argument

pos: right 1 terms: j1 * abs(i0) abort: F discard: T computed: F

Additional information

Used simplifier rules: prime-abs: ⊦ prime(j) → abs(j) = j; ⊦ abs(i * j) = abs(i) * abs(j); (s) ⊦ abs(abs(i)) = abs(i); (s) ⊦ i ≠ 0 → (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: j1 * abs(i0)

Proof step 60 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j = (j1 * j1 * i1) * j0 * j0, gcd(j, j0) = 1, 1 < j1 * j1 * i1, 0 < j1 * j1 * i1, 0 < j, 0 < j0, prime(j1), j1 * j1 ≤ j1 * j1 * i1, 0 ≤ j0, ∃ i0. i1 = i0 * i0, ∀ i, j, j0. i→n(i) < i→n(j1 * j1 * i1) → j * j = i * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i → (∃ i0. i = i0 * i0) ⊦ ∃ i. j1 * j1 * i1 = i * i

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: prime-abs: ⊦ prime(j) → abs(j) = j; gcd-mult-01: ⊦ gcd(i, i * j) = abs(i); gcd-com: ⊦ gcd(i, j) = gcd(j, i); forward-le-05: ⊦ i < j ∧ 0 ≤ i → 0 < j; (forward) from specification int-abs associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult commutativity: ⊦ i * j = j * i; from specification int-mult ⊦ i = 1 → i * j = j; (s) ⊦ 0 < j → abs(j) = j; (s) forward-pos: ⊦ i < j ∧ 0 < i → 0 < j ∧ 1 < j; (forward) from specification int-basic1 ⊦ abs(i * j) = abs(i) * abs(j); (s) ⊦ i * i = j * j ↔ abs(i) = abs(j); (s) ⊦ i * i ≤ j * j ↔ abs(i) ≤ abs(j); (s)

Proof step 61 from proof square-neq-any-pos-02 (previous step) (back to tree)

0 < j1 * abs(i0), 0 < j1 * j1 * i0 * i0, 1 < j1 * j1 * i0 * i0, prime(j1), j1 ≤ j1 * abs(i0), ∀ i, j, j0. i→n(i) < i→n(j1 * j1 * i0 * i0) → j * j = i * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i → (∃ i0. i = i0 * i0) ⊦ ∃ i. j1 * abs(i0) = abs(i)

User applied rule exists right

And closed the goal!

Rule argument

pos: right 1 terms: j1 * i0 abort: F discard: T computed: F

Additional information

Used simplifier rules: prime-abs: ⊦ prime(j) → abs(j) = j; ⊦ abs(i * j) = abs(i) * abs(j); (s) associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult commutativity: ⊦ i * j = j * i; from specification int-mult Used terms: j1 * i0

Proof step 62 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j = (j1 * i0) * j0 * j0, gcd(j, j0) = 1, 0 < j1 * i0, 1 < j1 * i0, 0 < j0, 0 < j, prime(j1), 0 ≤ j0, j1 * j1 ≤ j1 * i0, ¬ j1 | i0, ∀ i1, j, j0. i→n(i1) < i→n(j1 * i0) → j * j = i1 * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i1 → (∃ i. i1 = i * i) ⊦ ∃ i1. j1 * i0 = i1 * i1

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: j1 | j

Additional information

Used formulas: j1 | j

Proof step 63 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j = (j1 * i0) * j0 * j0, gcd(j, j0) = 1, 0 < j, 0 < j0, 1 < j1 * i0, 0 < j1 * i0, prime(j1), j1 | j, j1 * j1 ≤ j1 * i0, 0 ≤ j0, ¬ j1 | i0, ∀ i1, j, j0. i→n(i1) < i→n(j1 * i0) → j * j = i1 * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i1 → (∃ i. i1 = i * i) ⊦ ∃ i1. j1 * i0 = i1 * i1

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:divides, seq: ⊦ i | j ↔ (∃ i0. i * i0 = j), subst:[j, i] → [j, j1], <all paths>

Additional information

Used terms: j, j1

Proof step 64 from proof square-neq-any-pos-02 (previous step) (back to tree)

⊦ i | j ↔ (∃ i0. i * i0 = j)

Lemma divides

Proof step 65 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j = (j1 * i0) * j0 * j0, gcd(j, j0) = 1, 0 < j1 * i0, 1 < j1 * i0, 0 < j0, 0 < j, prime(j1), 0 ≤ j0, j1 * j1 ≤ j1 * i0, ¬ j1 | i0, ∃ i0. j1 * i0 = j, ∀ i1, j, j0. i→n(i1) < i→n(j1 * i0) → j * j = i1 * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i1 → (∃ i. i1 = i * i) ⊦ ∃ i1. j1 * i0 = i1 * i1

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

Proof step 66 from proof square-neq-any-pos-02 (previous step) (back to tree)

(j1 * i) * j1 * i = (j1 * i0) * j0 * j0, gcd(j1 * i, j0) = 1, 0 < j0, 1 < j1 * i0, 0 < j1 * i0, 0 < j1 * i, prime(j1), j1 * j1 ≤ j1 * i0, 0 ≤ j0, ¬ j1 | i0, ∀ i1, j, j0. i→n(i1) < i→n(j1 * i0) → j * j = i1 * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i1 → (∃ i. i1 = i * i) ⊦ ∃ i1. j1 * i0 = i1 * i1

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-mult, name:eq-nonzero, seq: ⊦ i ≠ 0 → (i * j = i * j0 ↔ j = j0), subst:[j0, j, i] → [j0 * j0 * i0, i * j1 * i, j1], <all paths>

Additional information

Used simplifier rules: gcd-zero-04: ⊦ gcd(i, 0) = abs(i); gcd-com: ⊦ gcd(i, j) = gcd(j, i); prime-small: ⊦ j < 2 → ¬ prime(j); ⊦ 0 < j → abs(j) = j; (s) ⊦ i * 0 = 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 * j0 * i0, i * j1 * i, j1

Proof step 67 from proof square-neq-any-pos-02 (previous step) (back to tree)

⊦ i ≠ 0 → (i * j = i * j0 ↔ j = j0)

A spec-lemma

Proof step 68 from proof square-neq-any-pos-02 (previous step) (back to tree)

i * j1 * i = j0 * j0 * i0, gcd(j1 * i, j0) = 1, j1 ≠ 0, 0 < j1 * i, 0 < j1 * i0, 1 < j1 * i0, 0 < j0, prime(j1), 0 ≤ j0, j1 * j1 ≤ j1 * i0, ¬ j1 | i0, ∀ i1, j, j0. i→n(i1) < i→n(j1 * i0) → j * j = i1 * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i1 → (∃ i. i1 = i * i) ⊦ ∃ i1. j1 * i0 = i1 * i1

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 69 from proof square-neq-any-pos-02 (previous step) (back to tree)

i * j1 * i = j0 * j0 * i0, gcd(j1 * i, j0) = 1, j1 ≠ 0, 0 < j0, 1 < j1 * i0, 0 < j1 * i0, 0 < j1 * i, prime(j1), j1 * j1 ≤ j1 * i0, 0 ≤ j0, ¬ j1 | i0, ∀ i1, j, j0. i→n(i1) < i→n(j1 * i0) → j * j = i1 * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i1 → (∃ i. i1 = i * i) ⊦ ∃ i1. j1 * i0 = i1 * i1

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: j1 | j0 * j0 * i0

Additional information

Used formulas: j1 | j0 * j0 * i0

Proof step 70 from proof square-neq-any-pos-02 (previous step) (back to tree)

i * j1 * i = j0 * j0 * i0, gcd(j1 * i, j0) = 1, j1 ≠ 0, 0 < j1 * i, 0 < j1 * i0, 1 < j1 * i0, 0 < j0, prime(j1), j1 | j0 * j0 * i0, 0 ≤ j0, j1 * j1 ≤ j1 * i0, ¬ j1 | i0, ∀ i1, j, j0. i→n(i1) < i→n(j1 * i0) → j * j = i1 * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i1 → (∃ i. i1 = i * i) ⊦ ∃ i1. j1 * i0 = i1 * i1

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: prime-divides: ⊦ prime(i) → (i | j * j0 ↔ i | j ∨ i | j0); commutativity: ⊦ i * j = j * i; from specification int-mult associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult

Proof step 71 from proof square-neq-any-pos-02 (previous step) (back to tree)

i * j1 * i = j0 * j0 * i0, gcd(j1 * i, j0) = 1, j1 ≠ 0, 0 < j0, 1 < j1 * i0, 0 < j1 * i0, 0 < j1 * i, prime(j1), j1 | j0 * j0, j1 * j1 ≤ j1 * i0, 0 ≤ j0, ¬ j1 | i0, ∀ i1, j, j0. i→n(i1) < i→n(j1 * i0) → j * j = i1 * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i1 → (∃ i. i1 = i * i) ⊦ ∃ i1. j1 * i0 = i1 * i1

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:prime-divides, seq: ⊦ prime(i) → (i | j * j0 ↔ i | j ∨ i | j0), subst:[j0, j, i] → [j0, j0, j1], <all paths>

Additional information

Used terms: j0, j0, j1

Proof step 72 from proof square-neq-any-pos-02 (previous step) (back to tree)

⊦ prime(i) → (i | j * j0 ↔ i | j ∨ i | j0)

Lemma prime-divides

Proof step 73 from proof square-neq-any-pos-02 (previous step) (back to tree)

i * j1 * i = j0 * j0 * i0, gcd(j1 * i, j0) = 1, j1 ≠ 0, 0 < j1 * i, 0 < j1 * i0, 1 < j1 * i0, 0 < j0, prime(j1), 0 ≤ j0, j1 * j1 ≤ j1 * i0, ¬ j1 | i0, j1 | j0 ∨ j1 | j0, ∀ i1, j, j0. i→n(i1) < i→n(j1 * i0) → j * j = i1 * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i1 → (∃ i. i1 = i * i) ⊦ ∃ i1. j1 * i0 = i1 * i1

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 74 from proof square-neq-any-pos-02 (previous step) (back to tree)

i * j1 * i = j0 * j0 * i0, gcd(j1 * i, j0) = 1, j1 ≠ 0, 0 < j0, 1 < j1 * i0, 0 < j1 * i0, 0 < j1 * i, prime(j1), j1 | j0, j1 * j1 ≤ j1 * i0, 0 ≤ j0, ¬ j1 | i0, ∀ i1, j, j0. i→n(i1) < i→n(j1 * i0) → j * j = i1 * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i1 → (∃ i. i1 = i * i) ⊦ ∃ i1. j1 * i0 = i1 * i1

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:divides, seq: ⊦ i | j ↔ (∃ i0. i * i0 = j), subst:[j, i] → [j0, j1], <all paths>

Additional information

Used simplifier rules: gcd-mult: ⊦ gcd(i * i1, j * i1) = gcd(i, j) * abs(i1); prime-abs: ⊦ prime(j) → abs(j) = j; gcd-abs: ⊦ abs(gcd(i, j)) = gcd(i, j); prime-small: ⊦ j < 2 → ¬ prime(j); ⊦ i * j = 1 ↔ abs(i) = 1 ∧ i = j; (ws) ⊦ i ≠ 0 → (i * j = i * j0 ↔ j = j0); (s) forward-le-05: ⊦ 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 ⊦ 1 * i = i; (s) associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult commutativity: ⊦ i * j = j * i; from specification int-mult Used terms: j0, j1

Proof step 75 from proof square-neq-any-pos-02 (previous step) (back to tree)

⊦ i | j ↔ (∃ i0. i * i0 = j)

Lemma divides

Proof step 76 from proof square-neq-any-pos-02 (previous step) (back to tree)

i * j1 * i = j0 * j0 * i0, gcd(j1 * i, j0) = 1, j1 ≠ 0, 0 < j1 * i, 0 < j1 * i0, 1 < j1 * i0, 0 < j0, prime(j1), 0 ≤ j0, j1 * j1 ≤ j1 * i0, ¬ j1 | j0 * j0 * i0, ¬ j1 | i0, ∀ i1, j, j0. i→n(i1) < i→n(j1 * i0) → j * j = i1 * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i1 → (∃ i. i1 = i * i) ⊦ ∃ i1. j1 * i0 = i1 * i1

User applied rule subst equation

And closed the goal!

Rule argument

pos: left 1, flags: rotate, discard

Additional information

Used simplifier rules: prime-divides: ⊦ prime(i) → (i | j * j0 ↔ i | j ∨ i | j0); div-mult: ⊦ i | i * j; associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult commutativity: ⊦ i * j = j * i; from specification int-mult

Proof step 77 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j = (j1 * i0) * j0 * j0, gcd(j, j0) = 1, 0 < j, 0 < j0, 1 < j1 * i0, 0 < j1 * i0, prime(j1), j1 * j1 ≤ j1 * i0, 0 ≤ j0, ¬ j1 | j, ¬ j1 | i0, ∀ i1, j, j0. i→n(i1) < i→n(j1 * i0) → j * j = i1 * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i1 → (∃ i. i1 = i * i) ⊦ ∃ i1. j1 * i0 = i1 * i1

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 78 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j = (j1 * i0) * j0 * j0, gcd(j, j0) = 1, 0 < j1 * i0, 1 < j1 * i0, 0 < j0, 0 < j, prime(j1), 0 ≤ j0, j1 * j1 ≤ j1 * i0, ¬ j1 | j, ¬ j1 | i0, ∀ i1, j, j0. i→n(i1) < i→n(j1 * i0) → j * j = i1 * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i1 → (∃ i. i1 = i * i) ⊦ ∃ i1. j1 * i0 = i1 * i1

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: j1 | j * j

Additional information

Used simplifier rules: prime-divides: ⊦ prime(i) → (i | j * j0 ↔ i | j ∨ i | j0); associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult commutativity: ⊦ i * j = j * i; from specification int-mult Used formulas: j1 | j * j

Proof step 79 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j = (j1 * i0) * j0 * j0, gcd(j, j0) = 1, 0 < j, 0 < j0, 1 < j1 * i0, 0 < j1 * i0, prime(j1), j1 * j1 ≤ j1 * i0, 0 ≤ j0, ¬ j1 | j * j, ¬ j1 | j, ¬ j1 | i0, ∀ i1, j, j0. i→n(i1) < i→n(j1 * i0) → j * j = i1 * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i1 → (∃ i. i1 = i * i) ⊦ ∃ i1. j1 * i0 = i1 * i1

User applied rule subst equation

And closed the goal!

Rule argument

pos: left 1, flags: discard

Additional information

Used simplifier rules: prime-divides: ⊦ prime(i) → (i | j * j0 ↔ i | j ∨ i | j0); div-same: ⊦ i | i; associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult commutativity: ⊦ i * j = j * i; from specification int-mult

Proof step 80 from proof square-neq-any-pos-02 (previous step) (back to tree)

j * j = i * j0 * j0, gcd(j, j0) = 1, 0 < i, 0 < j, 0 < j0, 0 ≤ j0, ¬ 1 < i, ¬ prime(i), ∀ i0, j, j0. i→n(i0) < i→n(i) → j * j = i0 * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i0 → (∃ i1. i0 = i1 * i1) ⊦ ∃ i0. i = i0 * i0

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: gcd-same-01: ⊦ 0 < j → gcd(j, j) = j; prime-small: ⊦ j < 2 → ¬ prime(j); commutativity: ⊦ i * j = j * i; from specification int-mult associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult ⊦ 0 < j → abs(j) = j; (s) ⊦ i * i = j * j ↔ abs(i) = abs(j); (s) ⊦ i = 1 → i * j = j; (s) ⊦ 0 < i → (i ≤ 1 ↔ i = 1); (s) ⊦ i < j ↔ ¬ j ≤ i; (ss)

Proof step 81 from proof square-neq-any-pos-02 (previous step) (back to tree)

∀ i0, j, j0. i→n(i0) < i→n(1) → j * j = i0 * j0 * j0 ∧ gcd(j, j0) = 1 ∧ 0 < j0 ∧ 0 < j ∧ 0 < i0 → (∃ i1. i0 = i1 * i1) ⊦ ∃ i0. 1 = i0 * i0

User applied rule exists right

And closed the goal!

Rule argument

pos: right 1 terms: 1 abort: F discard: T computed: F

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 Used terms: 1

Proof Tree for square-neq-any-pos-02 (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