Step 
*
1
2
2
 of Lemma 
sum-unroll
1. f : Base
2. n : Base
3. (n ∈ ℤ) ⇒ (Σ(f[x] | x < n) ~ if (0) < (n)  then Σ(f[x] | x < n - 1) + f[n - 1]  else 0)
4. is-exception(Σ(f[x] | x < n))
⊢ Σ(f[x] | x < n) ≤ if (0) < (n)  then Σ(f[x] | x < n - 1) + f[n - 1]  else 0
BY
 
{ TACTIC:Unfold `sum` -1 }
1
1. f : Base
2. n : Base
3. (n ∈ ℤ) ⇒ (Σ(f[x] | x < n) ~ if (0) < (n)  then Σ(f[x] | x < n - 1) + f[n - 1]  else 0)
4. is-exception(sum_aux(n;0;0;x.f[x]))
⊢ Σ(f[x] | x < n) ≤ if (0) < (n)  then Σ(f[x] | x < n - 1) + f[n - 1]  else 0
 
Latex: 
Latex:
1.  f  :  Base
2.  n  :  Base
3.  (n  \mmember{}  \mBbbZ{})  {}\mRightarrow{}  (\mSigma{}(f[x]  |  x  <  n)  \msim{}  if  (0)  <  (n)    then  \mSigma{}(f[x]  |  x  <  n  -  1)  +  f[n  -  1]    else  0)
4.  is-exception(\mSigma{}(f[x]  |  x  <  n))
\mvdash{}  \mSigma{}(f[x]  |  x  <  n)  \mleq{}  if  (0)  <  (n)    then  \mSigma{}(f[x]  |  x  <  n  -  1)  +  f[n  -  1]    else  0
 By 
Latex:
TACTIC:Unfold  `sum`  -1
Home
Index