diff f0945ea..6d37dde gaussian_regression_replicas_v2.txt
diff --git a/gaussian_regression_replicas_v2.txt b/gaussian_regression_replicas_v2.txt
index a09f4b8..14fe558 100644
--- a/gaussian_regression_replicas_v2.txt
+++ b/gaussian_regression_replicas_v2.txt
@@ -445,3 +445,155 @@ divergence, so by (2.5)
with c = (2 eps / r0)^{d-b-1}. This is (3.7). When c = 0 there is
nothing to prove, because alpha <= 1. Done.
+
+
+==============================================================================
+PART 4. THE ENDPOINT: AN ACCURATE STATE MUST HOLD MANY BITS
+==============================================================================
+
+Lemma 4 has a constant alpha, a radius r0 and a dimension b in it. We now
+commit to one set of numbers, the ones the proof of the theorem uses, and
+write the result out.
+
+COROLLARY 5 (the endpoint, in numbers). Suppose
+
+ S ~ sigma_d, G is an independent b x d standard Gaussian matrix
+ with 0 <= b <= d/2, V is any random variable jointly distributed
+ with S, and S-hat is a unit vector produced from V by a kernel
+ conditionally independent of (S,G) given V.
+
+Suppose 0 < eps <= 1/10 and P{ arccos(<S-hat,S>) <= eps } >= 3/5. Then
+for all d >= 40,
+
+ I( S ; V | G, GS ) >= (1/2)(d-b-1) log(1/(5 eps)) - log 2. (4.1)
+
+Proof. Take r0 = 1/2 in Lemma 4. The first half of (3.6) gives
+P{ R < 1/2 } <= 8/(d+2), so
+
+ alpha >= 3/5 - 8/(d+2) >= 1/2 for d >= 40.
+
+Next convert a chordal radius into an angular radius. On a unit sphere a
+chordal ball of radius r is contained in an angular cap of radius
+2 arcsin(r/2). Here r = 2 eps/r0 = 4 eps, so the angular radius is
+
+ 2 arcsin(2 eps) <= 5 eps for 0 < eps <= 1/10,
+
+because arcsin(x) <= 1.02 x for 0 <= x <= 0.2. By Lemma 1 the cap has
+mass at most (5 eps)^{d-b-1}. Put this into (3.7) and use alpha >= 1/2.
+
+A useful size check. Since b <= d/2 we have d-b-1 >= d/2 - 1, and since
+eps <= 1/10,
+
+ log(1/(5 eps)) = log(1/eps) - log 5
+ >= (1 - log 5 / log 10) log(1/eps)
+ >= 0.3 log(1/eps).
+
+So (4.1) says
+
+ I( S ; V | G, GS ) >= 0.15 d log(1/eps) - log 2 (4.2)
+
+for all large d. The endpoint is linear in d and linear in log(1/eps).
+That is the whole point.
+
+LEMMA 6 (raw data cannot beat the endpoint quickly). Let 0 < eps <= 1/10
+and let an estimator see all the exact measurements from b independent
+Gaussian rows, with b <= floor(d/2), plus independent randomness, when
+S ~ sigma_d. Then its angular success probability is at most
+
+ 8/(d+2) + (5 eps)^{d-b-1}. (4.3)
+
+In particular, for eps <= 1/10 this is below 3/5 once d is large. So a
+learner that stops by T <= floor(d/2) cannot succeed with probability
+3/5, even if it keeps every raw row it has seen.
+
+Proof. For d <= 4 the two numerical bounds are not useful, so assume
+d >= 5; then b <= d/2 <= d-2 and Lemma 3 applies. Condition on all the
+data. Given the data, the estimator is conditionally independent of S,
+and the conditional law of S is the residual sphere of Lemma 3 with
+radius R.
+
+On the event R >= 1/2, fix a value of the output. Successful fiber points
+are all within distance 2 eps of that output, hence within distance
+4 eps = 2 eps / (1/2) <= 2 eps / R of each other in rescaled units. By
+Lemma 1 (applied to the fiber sphere, of dimension d-b-1) the conditional
+success probability is at most the cap mass (5 eps)^{d-b-1}, using the
+same angular conversion as in Corollary 5. Add the failure probability
+8/(d+2) from (3.6).
+
+For the last claim, suppose the learner stops by T <= floor(d/2). Grant
+it, for free, the first floor(d/2) rows and labels, including any it did
+not use. Its output is a kernel of those data plus independent
+randomness, so the bound (4.3) applies with b = floor(d/2). There
+d-b-1 >= d/2 - 1 >= 1, and 5 eps <= 1/2, so the second term is at most
+(1/2)^{d/2-1}, and
+
+ 8/(d+2) + (1/2)^{d/2-1} < 3/5
+
+for all large d. Done.
+
+
+==============================================================================
+PART 5. THE CLOCK: AN EARLY STOP CANNOT BEAT THE ENDPOINT
+==============================================================================
+
+Corollary 5 says the final state must contain about d log(1/eps) nats of
+information about S, even after the analyst is told GS. This part says
+that stopping early cannot buy that information for free.
+
+LEMMA 7 (output capacity). Fix d and suppose a learner has success
+probability at least p0 >= 0 under the uniform prior, with horizon T and
+memory M. Then
+
+ p0 <= (T+1) 2^M eps^{d-1}. (5.1)
+
+Proof. Condition on the shared seed, if there is one, and work in the
+conditional experiment. There are at most T+1 possible stopping indices
+and at most 2^M states, so at most (T+1) 2^M pairs (j, v) of "we stopped
+at index j in state v".
+
+Fix such a pair. Let nu_{j,v} be the law of the output it produces, and
+let r_{j,v}(s) be the probability, given S = s, that the learner ever
+reaches that pair. The pair contributes to the success probability
+
+ integral over s of r_{j,v}(s) *
+ [ integral over u of 1{ arccos(<u,s>) <= eps } nu_{j,v}(du) ]
+ sigma_d(ds).
+
+The inner bracket is the mass of an angular cap of radius eps around the
+fixed centre s, which by Lemma 1 and rotational invariance is at most
+eps^{d-1}. It does not depend on nu_{j,v}. Since r_{j,v}(s) <= 1, the
+whole contribution is at most eps^{d-1}.
+
+Sum over the at most (T+1) 2^M pairs. Averaging the conditional success
+over the seed gives the same bound for the mixture, because a mixture of
+numbers each at most eps^{d-1} is at most eps^{d-1}. Done.
+
+LEMMA 8 (the early clock). Put beta = log(1/eps), and note beta >=
+log 10 > 2 because eps <= 1/10. On the branch T <= d beta, if
+M = o(d^2), then
+
+ beta = o(d), T = o(d^2), h_T = o(d^2), (5.2)
+
+with h_T = M log 2 + log(T+2) as in (2.1).
+
+Proof. Write eps^{d-1} = e^{-(d-1) beta} and put p0 >= 1/2 (any fixed
+positive number works). By (5.1),
+
+ (d-1) beta <= M log 2 + log(T+1) + log(1/p0).
+
+On the branch, T + 1 <= d beta + 1 <= 2 d beta for d >= 2, and
+log beta <= beta because beta > 2. Hence
+
+ (d-2) beta <= M log 2 + log(2 d) + log(1/p0).
+
+Divide by d and let d grow. The left side is (1 - 2/d) beta. The right
+side is M log 2 / d + (log 2 + log d)/d + log(1/p0)/d. The first term is
+o(d) because M = o(d^2), and the other two are o(1). So beta = o(d).
+
+Then T <= d beta = o(d^2), and
+
+ h_T = M log 2 + log(T+2) = o(d^2) + log(o(d^2)) = o(d^2).
+
+Done. The point of (5.2) is this: on the branch where the theorem is not
+already proved, every padded state has far fewer than d^2 bits of
+entropy, so the block bound of Part 10 will apply with room to spare.