Fixed the sum range variable subscipts. master
authorDavid Llewellyn-Jones <david@flypig.co.uk>
Mon, 10 Nov 2014 04:00:39 +0000 (04:00 +0000)
committerDavid Llewellyn-Jones <david@flypig.co.uk>
Mon, 10 Nov 2014 04:00:39 +0000 (04:00 +0000)
main.tex

index d9af18f..c5931cd 100644 (file)
--- a/main.tex
+++ b/main.tex
@@ -121,7 +121,7 @@ $$
 Starting from $m = n - 1$ and decreasing to $m = 1$ we define functions $b_m : \GF(p) \to \{0, 1 \}$ inductively as follows.\r
 \begin{equation}\r
 \label{equation:getbit}\r
-b_m (x) = d_{m - 1}' \left( x - \vphantom{\sum} \smash{\sum_{m}^{n - 1}} 2^i b_i (x) \right).\r
+b_m (x) = d_{m - 1}' \left( x - \vphantom{\sum} \smash{\sum_{i = m}^{n - 1}} 2^i b_i (x) \right).\r
 \end{equation}\r
 \end{definition}\r
 We claim that the functions $b_m (x)$ for $1 \le m \le n$ will generate the binary bits of any number $x < 2^n$ where $b_n$ is the MSB and $b_1$ is the LSB.\r
@@ -133,11 +133,9 @@ We start by noting that for any number $x \le 2^i$, the $i$-th bit is 0 if and o
 \r
 We now prove the result by induction on $m$ starting at $m = n$ and working downwards. So for the base case take $m = n$. Then $b_n (x) = d_{n - 1}'(x)$. However, we also know that $x \le 2^n$ and that the $n$-th bit is zero iff $x \le 2^{n - 1}$. But this therefore follows directly from Lemma \ref{lemma:comparison} setting $m = 2^{n - 1}$.\r
 \r
-For the inductive step, assume the result holds for $m = a + 1$. Our inductive hypothesis is that $b_i$ will output the binary bits for $a + 1 \le i \le n$ and we want to show that $b_a$ will output the $a$-th bit.\r
-\r
-Set\r
+For the inductive step, assume the result holds for $m = a + 1$. Our inductive hypothesis is that $b_i$ will output the binary bits for $a + 1 \le i \le n$ and we want to show that $b_a$ will output the $a$-th bit. Set\r
 $$\r
-x' = x - \sum_{a + 1}^{n - 1} 2^i b_i (x).\r
+x' = x - \sum_{i = a + 1}^{n - 1} 2^i b_i (x).\r
 $$\r
 From the results noted at the start of the proof, and the inductive hypothesis, we can deduce that\r
 $$\r