[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 modex-odd-neg-01 (conclusion) (back to tree)

⊦ i % 2 = ~1 ↔ (∃ j. i = 2 * j + 1 ∧ j < 0)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof modex-odd-neg-01 (previous step) (back to tree)

⊦ i % 2 = ~1 ↔ (∃ j. i = 2 * j + 1 ∧ j < 0)

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:modex-odd-neg, seq: ⊦ i % 2 = ~1 ↔ (∃ j. i = 2 * j - 1 ∧ j ≤ 0), subst:[i] → [i], <all paths>

Additional information

Used terms: i

Proof step 3 from proof modex-odd-neg-01 (previous step) (back to tree)

⊦ i % 2 = ~1 ↔ (∃ j. i = 2 * j - 1 ∧ j ≤ 0)

Lemma modex-odd-neg

Proof step 4 from proof modex-odd-neg-01 (previous step) (back to tree)

⊦ (∃ j. i = 2 * j - 1 ∧ j ≤ 0) ↔ (∃ j. i = 2 * j + 1 ∧ j < 0)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: forward-le-04: ⊦ j ≤ i ∧ i ≤ 0 → j ≤ 0; (forward) from specification int-abs add-c: ⊦ i + j = j + i; from specification int-basic2 add-a: ⊦ i + j + i0 = (i + j) + i0; from specification int-basic2 ⊦ i ≤ ~1 ↔ i < 0; (s) ⊦ i + (* j) ≤ (* j0) ↔ i ≤ j0 - j; (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 = i * (j + 1); (s) ⊦ i - j = i0 ↔ i = i0 + j; (s)

Proof step 5 from proof modex-odd-neg-01 (previous step) (back to tree)

2 * j = i + 1, j ≤ 0 ⊦ ∃ j. i = 2 * j + 1 ∧ j < 0

User applied rule exists right

And obtained the following new goals

Rule argument

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

Additional information

Used terms: j - 1

Proof step 6 from proof modex-odd-neg-01 (previous step) (back to tree)

2 * j = i + 1, j ≤ 0 ⊦ i = 2 * (j - 1) + 1 ∧ j - 1 < 0

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 7 from proof modex-odd-neg-01 (previous step) (back to tree)

2 * j = i + 1, j ≤ 0 ⊦ i = 2 * (j - 1) + 1 ∧ j - 1 < 0

Heuristic elimination applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: int-abs, name:elim-sub, seq: ⊦ i0 = i - j ↔ i = i0 + j, subst:[i, j, i0] → [j, 1, i0]

Additional information

Used simplifier rules: ⊦ i0 = i - j ↔ i = i0 + j; (elim) Used terms: j, 1, i0

Proof step 8 from proof modex-odd-neg-01 (previous step) (back to tree)

2 * j = i + 1, j = i0 + 1, j ≤ 0 ⊦ i = 2 * i0 + 1 ∧ i0 < 0

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: forward-le-02: ⊦ j < i ∧ i ≤ 0 → j < 0; (forward) from specification int-abs add-c: ⊦ i + j = j + i; from specification int-basic2 add-a: ⊦ i + j + i0 = (i + j) + i0; from specification int-basic2 ⊦ i ≤ ~1 ↔ i < 0; (s) ⊦ i + (* j) ≤ (* j0) ↔ i ≤ j0 - j; (s)

Proof step 9 from proof modex-odd-neg-01 (previous step) (back to tree)

2 * (i0 + 1) = i + 1, i ≠ 2 * i0 + 1, i0 < 0 ⊦

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: i = 2 * i0 + 1

Additional information

Used formulas: i = 2 * i0 + 1

Proof step 10 from proof modex-odd-neg-01 (previous step) (back to tree)

2 * (i0 + 1) = i + 1, i ≠ 2 * i0 + 1, i0 < 0 ⊦

User applied rule cut formula

And closed the goal!

Rule argument

fma: i = 2 * (i0 + 1) - 1

Additional information

Used simplifier rules: ⊦ i - j = i0 ↔ i = i0 + j; (s) ⊦ i + (j - i) = j; (s) ⊦ i * j + i = i * (j + 1); (s) add-c: ⊦ i + j = j + i; from specification int-basic2 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 formulas: i = 2 * (i0 + 1) - 1

Proof Tree for modex-odd-neg-01 (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