[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 log2ub-log2 (conclusion) (back to tree)

⊦ log2↑(n) = (n = 0 ⊃ 0;(∃ m. n = 2^ m ⊃ log2 n;log2 n + 1))

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:log2up-def, seq: ⊦ log2↑(n) = (∃ m. n = 2^ m ⊃ log2 n;log2(2 * n + 1)), subst:[n] → [n], <all paths>

Additional information

Used terms: n

Proof step 2 from proof log2ub-log2 (previous step) (back to tree)

⊦ log2↑(n) = (∃ m. n = 2^ m ⊃ log2 n;log2(2 * n + 1))

Lemma log2up-def

Proof step 3 from proof log2ub-log2 (previous step) (back to tree)

⊦ (∃ m. n = 2^ m ⊃ log2 n;log2(2 * n + 1)) = (n = 0 ⊃ 0;(∃ m. n = 2^ m ⊃ log2 n;log2 n + 1))

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: right 1

Additional information

Used simplifier rules: ⊦ 2^ n ≠ 0; (s) ⊦ 2^ n = 2^ m ↔ n = m; (s) ⊦ log2 2^ n = n; (s)

Proof step 4 from proof log2ub-log2 (previous step) (back to tree)

∀ m. n ≠ 2^ m ⊦ log2(2 * n + 1) = (n = 0 ⊃ 0;(∃ m. n = 2^ m ⊃ log2 n;log2 n + 1))

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: right 1

Additional information

Used simplifier rules: mult-a: ⊦ m0 * m * n = (m0 * m) * n; from specification nat-mult mult-c: ⊦ m * n = n * m; from specification nat-mult a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic ⊦ log2 1 = 0; (s)

Proof step 5 from proof log2ub-log2 (previous step) (back to tree)

n ≠ 0, ∀ m. n ≠ 2^ m ⊦ log2(2 * n + 1) = (∃ m. n = 2^ m ⊃ log2 n;log2 n + 1)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic mult-c: ⊦ m * n = n * m; from specification nat-mult mult-a: ⊦ m0 * m * n = (m0 * m) * n; from specification nat-mult ⊦ n ≠ 0 → log2(2 * n + 1) = log2 n + 1; (s)

Proof step 6 from proof log2ub-log2 (previous step) (back to tree)

n ≠ 0, ∀ m. n ≠ 2^ m ⊦ log2 n + 1 = (∃ m. n = 2^ m ⊃ log2 n;log2 n + 1)

User applied rule case distinction

And closed the goal!

Rule argument

pos: right 1

Additional information

Used simplifier rules: ⊦ log2 2^ n = n; (s) ⊦ m = m + n ↔ n = 0; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic ⊦ 2^ n ≠ 0; (s) ⊦ 2^ n = 2^ m ↔ n = m; (s)

Proof Tree for log2ub-log2 (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