diff e4c02de..f2aff1c cubic_torus_isoperimetric_v2.txt
diff --git a/cubic_torus_isoperimetric_v2.txt b/cubic_torus_isoperimetric_v2.txt
index 6684ee7..3c5daf5 100644
--- a/cubic_torus_isoperimetric_v2.txt
+++ b/cubic_torus_isoperimetric_v2.txt
@@ -287,19 +287,58 @@ One more fact that needs a small argument.
 
   4.5 Concavity of the profile. The profile I is concave:
 
-        I((1-t)V0 + t V1)  <=  (1-t)I(V0) + t I(V1)
+        I((1-t)V0 + t V1)  <=  (1-t) I(V0) + t I(V1)
 
-  for all V0, V1 in [0,1] and t in [0,1]. This is classical. A
-  streamlined proof: pick almost-minimisers E0, E1 at volumes V0,V1,
-  and take a "gradient flow" that pushes volume along, then combine
-  a fraction of each. The combined region has volume (1-t)V0+t V1
-  and area at most (1-t)A(E0)+tA(E1), by the Brunn-Minkowski-type
-  rearrangement that underlies every concavity proof for profiles.
-  Letting E0,E1 approach minimisers gives the stated inequality.
-  We also need I(0) = I(1) = 0, which is clear.
+  for all V0, V1 in [0,1] and t in [0,1]. The proof comes for free
+  once we understand how a minimiser moves under parallel
+  perturbation, and the machinery for that appears in Part 6.2.
+  Here is the shape of the argument, so it can be cited early.
 
-These four tools plus Almgren's existence and the HPRR structure
-theorem are the entire input. We start using them next.
+  At each V0 in (0,1) a minimiser exists (existence theorem of
+  Part 2). Perturb its boundary outward and inward along its
+  outward normal. Over a small enough range the perturbed surfaces
+  stay embedded, and volume V(t) and boundary area A(t) vary
+  smoothly. Invert V(t) near t=0 and define the area-vs-volume
+  curve C(V) := A(t(V)). Two facts:
+
+        C(V0) = I(V0)     (the minimiser achieves the profile there)
+        C(V)  >= I(V)     near V0 (I is the infimum over all regions)
+
+  The second fact holds because C(V) is the boundary area of one
+  specific region of volume V, so it cannot undershoot the infimum.
+
+  A direct computation of C'' (Part 6.2, using the parallel-variation
+  formulas) gives C''(V0) <= 0. The reason is the identity
+
+        (1/8) * int over the boundary of (2K - h^2) dS
+        = -(1/8) * int over the boundary of (k1^2 + k2^2) dS,
+
+  where K = k1 k2 is the Gauss curvature and h = k1 + k2 the
+  curvature sum; the right-hand side is <= 0 pointwise.
+
+  Now suppose I is not concave. Then there is a chord L on [a,b]
+  and interior c with I(c) < L(c). Pick any small epsilon > 0 and
+  set g(x) := I(x) - L(x) - epsilon (x-a)(x-b). Then g(a) = g(b) = 0,
+  and g(c) < 0 for small enough epsilon. So g attains a strictly
+  negative minimum at some interior x0.
+
+  Set q(x) := L(x) + epsilon (x-a)(x-b) + g(x0). Then q(x0) = I(x0),
+  and q(x) <= I(x) for x in (a,b), so q touches I from below at x0.
+  Also q'' = 2 epsilon > 0, i.e. q is strictly convex.
+
+  At x0 a minimiser E_0 exists. Its parallel-variation upper
+  support C satisfies C(x0) = I(x0) and C(x) >= I(x) >= q(x) near
+  x0, with equality at x0. Hence C - q >= 0 near x0 with equality
+  at x0, so C''(x0) >= q''(x0) = 2 epsilon > 0. But we have already
+  computed C'' <= 0. Contradiction, so I is concave.
+
+  The full details of the parallel-variation computation are in
+  Part 6.2. We also note I(0) = I(1) = 0, which is clear from the
+  definition.
+
+These tools plus Almgren's existence theorem (cited in Part 2)
+and the HPRR structure theorem are the entire input. Everything
+else below is proved from this base. We start using the tools now.
 
 
 ================================================================
@@ -507,15 +546,23 @@ generic volumes entirely.
 
   where K = k1 k2 is the Gauss curvature of the boundary.
 
-  Because the profile I is concave, the level set {(V_I(V)) : V in
-  (a,b)} lies below any chord, hence below any global upper support.
-  The parallel variation gives such an upper support locally. More
-  concretely, define C(V) as the area A as a function of volume V
-  along the parallel family. Then C is smooth near V0 and
+  The parallel variation gives a smooth LOCAL UPPER SUPPORT of I at
+  V0, without needing concavity of I as an input. Concretely, define
+
+        C(V)  :=  A(t(V)),
 
-        C(V0)  =  I(V0),
-        C'(V0) =  h,
-        C''(V0) =  (1/8) * int(2K) / A0^2  -  h^2 / A0      (chain rule).
+  where t(V) is the inverse of t -> V(t) near t = 0. The inverse
+  exists because V'(0) = A0 > 0, so V(t) is strictly monotone near
+  0. Then C is smooth near V0, and:
+
+        C(V0)  =  A(0)  =  I(V0)                  (E0 attains I there)
+        C(V)   >= I(V)  near V0                   (C(V) is the area
+                                                  of one specific
+                                                  region at volume V,
+                                                  so cannot be below
+                                                  the infimum I(V))
+        C'(V0) =  h                               (chain rule + V'=A0)
+        C''(V0) =  (1/8) * int(2K) / A0^2  -  h^2 / A0     (chain rule).
 
   Explicitly, using V'(0) = A0 and V''(0) = h A0,
 
@@ -536,9 +583,24 @@ generic volumes entirely.
 
         C''(V0)  <  0.                                       (STRICT)
 
-  A standard E0 gives g = 0 or 1 or h = 0 (slab). Those cases have
-  C^2 C'' >= 0 or C'' = 0 and do not force strict negativity, but we
-  only use (STRICT) for nonstandard minimisers.
+  For standard E0 (g = 0 ball, g = 1 tube, h = 0 with g = 1 planar
+  slab), the SUPPORT formula recovers the sign of C'' as follows:
+
+        ball:  g = 0, h = 2/R,  C^2 C'' = -h^2 C + pi = -pi    < 0,
+        tube:  g = 1, h = 1/r,  C^2 C'' = -h^2 C + 0           < 0,
+        slab:  h = 0, g = 1,    C^2 C'' = 0                    = 0.
+
+  These agree with the direct area-vs-volume formulas
+
+        A_ball(V)  =  (9 pi / 2)^{1/3} V^{2/3}     (concave),
+        A_tube(V)  =  sqrt(pi V)                    (concave),
+        A_slab(V)  =  1                             (constant).
+
+  So C'' <= 0 for every minimiser E0, standard or nonstandard, with
+  strict inequality except for planar slabs. This is the input that
+  the concavity argument of Part 4.5 uses: a smooth local upper
+  support of I at any minimiser has C''(V0) <= 0, and the chord
+  contradiction gives the concavity of I.
 
   For convenience, define the "invariant" of any upper support C at
   any minimiser:
@@ -572,27 +634,50 @@ generic volumes entirely.
   Step C: Suppose for contradiction that I < F at some interior
   point of a phase interval [a,b] between consecutive elements of P.
   Let D = I - F. D is continuous, D(a) = D(b) = 0 (Step A), and D
-  attains a negative minimum at some V0 in (a,b). Hence
-
-        D(V0) < 0,    D'(V0) = 0,    D''(V0) >= 0.
+  attains a negative minimum at some V0 in (a,b). So D(V0) < 0.
 
   Let E0 be a minimiser at V0. Because D(V0) < 0, E0 is NOT a standard
   shape (Lemma 5.5 would give A(E0) >= F(V0) = I(V0), contradicting
-  D(V0) < 0). So E0 is nonstandard (genus g >= 2). Let C be its local
-  upper support.
+  D(V0) < 0). So E0 is nonstandard (genus g >= 2).
+
+  Let C be the local upper support of I at E0, constructed by
+  parallel variation (Part 6.2). The key move is to route the
+  argument through the SMOOTH function
+
+        D_tilde(V)  :=  C(V) - F(V).
+
+  Because C is smooth (Part 6.2) and F is smooth on the interior of
+  a phase interval, D_tilde is smooth near V0.
+
+  Two evaluations at V0:
 
-  At V0, D has an interior minimum. So D' = 0, D'' >= 0, meaning
+        D_tilde(V0)  =  C(V0) - F(V0)
+                     =  I(V0) - F(V0)
+                     =  D(V0)  <  0,
 
-        I'(V0) = F'(V0)  and  I''(V0) >= F''(V0)  (in distribution).
+  using the minimiser property C(V0) = I(V0).
 
-  The upper support C at V0 satisfies C(V0) = I(V0) and C'(V0) = h
-  where h is the mean curvature of E0's boundary. Also, since C is
-  an upper support of the concave I at V0, we have C''(V0) >= I''(V0).
+  For V near V0, the upper-support inequality C(V) >= I(V) and the
+  fact that V0 is an interior minimum of D combine to give
 
-  So:
+        D_tilde(V)  =  C(V) - F(V)
+                    >=  I(V) - F(V)
+                    =   D(V)
+                    >=  D(V0).
 
-        C'(V0)  =  I'(V0)  =  F'(V0),             (eq a)
-        C''(V0)  >=  I''(V0)  >=  F''(V0).        (eq b)
+  So D_tilde has a local minimum at V0 (with value D(V0) < 0). Since
+  D_tilde is smooth, its first and second derivatives at V0 satisfy
+
+        D_tilde'(V0)   =  0,
+        D_tilde''(V0)  >= 0.
+
+  Because F is smooth, these translate directly to
+
+        C'(V0)  =  F'(V0),                         (eq a)
+        C''(V0)  >=  F''(V0).                      (eq b)
+
+  Recall from Part 6.2 that C'(V0) = h (the mean curvature of E0's
+  boundary). So F'(V0) = h as a corollary.
 
   By (STRICT) the left-hand side below is negative. We derive a
   contradiction in one clean pass.
@@ -622,14 +707,32 @@ generic volumes entirely.
 
   Step C completed: contradiction. [ ]
 
-  Step D: equality cases. Suppose I(V0) = F(V0) at some interior
-  point of a phase interval, and let E0 be a minimiser. If E0 is
-  standard, done. If E0 is nonstandard, the upper support C at V0
-  has C(V0) = F(V0), C'(V0) = h = F'(V0), and since C >= I = F
-  locally, C''(V0) >= F''(V0). The same SUPPORT computation gives
-  pi(1-g)/C^2 = C'' + (F')^2/C = C'' + (F')^2/F  (since C = F at
-  V0). The left side is < 0, and C'' + (F')^2/F >= F'' + (F')^2/F =
-  MODEL-ODE >= 0. Contradiction. So E0 is standard.
+  Step D: equality cases. Step C has already ruled out I(V) < F(V)
+  for ANY V in the interior of a phase interval. Hence I = F on the
+  whole interior. So for any interior V0, I = F in an open
+  neighborhood of V0.
+
+  Let E0 be a minimiser at V0. If E0 is standard, we are done. If E0
+  is nonstandard, the upper support C at V0 has C(V0) = I(V0) =
+  F(V0) and C'(V0) = h. Because I = F in a neighborhood, the
+  upper-support inequality C >= I = F holds near V0, so
+
+        D_tilde(V)  :=  C(V) - F(V)  >=  0    near V0,  with D_tilde(V0) = 0.
+
+  The same smooth-minimum argument as in Step C (on D_tilde rather
+  than on D) then gives
+
+        D_tilde'(V0)   =  0,       (i.e., C'(V0) = F'(V0)),
+        D_tilde''(V0)  >= 0.       (i.e., C''(V0) >= F''(V0)).
+
+  Combined with SUPPORT at V0 and the identity C(V0) = F(V0):
+
+        pi(1-g)/C(V0)^2  =  C''(V0) + h^2/C(V0)
+                         =  C''(V0) + (F')^2/F(V0).
+
+  The left side is <= -pi/C(V0)^2 < 0 (nonstandard, g >= 2). The
+  right side is >= F''(V0) + (F')^2/F(V0) = 0 by MODEL-ODE.
+  Contradiction. So E0 is standard.
 
   Step E: on the partition point 1/2, F(1/2) = 1 and I(1/2) = 1 by
   Hadwiger. On other partition points V1, V2, 1-V1, 1-V2 our
@@ -2332,11 +2435,116 @@ calculation of positivity is certified numerically in Part 15.
         S(h)  =  min { C_0 d_m^3,
                        ell ((P - q_*) / Q)^2 + C_0 q_*^3 }.     (S-EXPLICIT)
 
-  Proof outline. The function F(w) = ell(P-w)^2/Q^2 + C_0 w^3 is
-  strictly convex on [0, P], with F'(0) < 0 < F'(P). Its unique
-  critical point solves 3 C_0 Q^2 w^2 = 2 ell(P-w), giving w = q_*.
-  Checking the boundary cases (w <= 0 and w >= d_m) against the
-  capped branches gives the stated form. [ ]
+  Proof. Recall from (S-DEF):
+
+        S(h)  =  inf_{y >= 0} { ell y^2
+                                + C_0 min{d_m, (P - Q y)_+}^3 },
+
+  with C_0 = C_0(h). Substitute w := P - Q y. As y runs over
+  [0, inf), the parameter w runs over (-inf, P] with y = (P - w)/Q.
+  This rewrites S(h) as
+
+        S(h)  =  inf_{w <= P} F(w),
+        F(w)  :=  ell (P - w)^2 / Q^2  +  C_0 min{d_m, w_+}^3,
+
+  where w_+ = max{w, 0}. By (GAIN-PARAMS) we have P > 0, Q > 0,
+  C_0 > 0.
+
+  Split (-inf, P] into three intervals.
+
+  (i) w <= 0. Here w_+ = 0, so F(w) = ell (P - w)^2/Q^2. This is
+  decreasing in w on (-inf, 0], so its infimum there is at w = 0,
+  with value ell P^2/Q^2 = F(0).
+
+  (ii) 0 <= w <= d_m. Here min{d_m, w_+} = w, so
+  F(w) = ell (P - w)^2/Q^2 + C_0 w^3 =: F_unc(w). We compute
+
+        F_unc''(w)  =  2 ell / Q^2 + 6 C_0 w  >  0,
+        F_unc'(w)   =  -2 ell (P - w) / Q^2 + 3 C_0 w^2,
+
+  with F_unc'(0) = -2 ell P / Q^2 < 0 (since P > 0) and
+  F_unc'(P) = 3 C_0 P^2 > 0. So F_unc is strictly convex on [0, P]
+  and its unique critical point q_* in (0, P) is the global minimum
+  of F_unc on [0, P]. Setting F_unc'(q_*) = 0:
+
+        3 C_0 Q^2 q_*^2  =  2 ell (P - q_*).
+
+  Solving this quadratic for the positive root,
+
+        q_*  =  [-ell + sqrt(ell^2 + 6 C_0 Q^2 ell P)]
+                / (3 C_0 Q^2).
+
+  Multiplying numerator and denominator by
+  ell + sqrt(ell^2 + 6 C_0 Q^2 ell P) turns this into
+
+        q_*  =  2 P / (1 + sqrt(1 + 6 C_0 Q^2 P / ell)),
+
+  which is (Q-STAR). (Used ell > 0.)
+
+  For the minimum of F_unc on the sub-interval [0, d_m]:
+
+     - If q_* <= d_m: F_unc decreases on [0, q_*] then increases,
+       so inf_{[0, d_m]} F_unc = F_unc(q_*) = F(q_*).
+
+     - If q_* > d_m: F_unc is decreasing on all of [0, d_m] (since
+       F_unc decreases on [0, q_*]), so inf_{[0, d_m]} F_unc is at
+       w = d_m, value F_unc(d_m) = F(d_m).
+
+  (iii) d_m <= w <= P. Here min{d_m, w_+} = d_m, so
+  F(w) = ell (P - w)^2/Q^2 + C_0 d_m^3, whose derivative is
+  2 ell (w - P)/Q^2 <= 0 on [d_m, P]. So F is decreasing and its
+  minimum on [d_m, P] is at w = P, value C_0 d_m^3.
+
+  Combining, the infimum of F over (-inf, P] is the minimum of the
+  three candidate values obtained from (i), (ii), (iii):
+
+        S(h)  =  min { ell P^2/Q^2,
+                       F(q_*)  if q_* <= d_m  else  F(d_m),
+                       C_0 d_m^3 }.
+
+  Now analyze the two regimes.
+
+  Case A: q_* <= d_m. Then F(q_*) < F(0) = ell P^2/Q^2, because
+  F_unc decreases from 0 to q_* and q_* > 0. So
+
+        S(h)  =  min { F(q_*),  C_0 d_m^3 }
+              =  min { ell (P - q_*)^2/Q^2 + C_0 q_*^3,
+                       C_0 d_m^3 }.
+
+  This is exactly (S-EXPLICIT).
+
+  Case B: q_* > d_m. Then
+
+        F(d_m)  =  ell (P - d_m)^2/Q^2 + C_0 d_m^3
+                >= C_0 d_m^3,
+
+  so F(d_m) is dominated by the cap. Also, from q_* > d_m and the
+  convexity of F_unc we get F_unc'(d_m) < 0, i.e.
+
+        -2 ell (P - d_m)/Q^2 + 3 C_0 d_m^2  <  0,
+        equivalently   C_0 d_m^2  <  2 ell (P - d_m) / (3 Q^2).
+
+  Multiply by d_m and use the elementary bound d_m (P - d_m) <= P^2/4:
+
+        C_0 d_m^3  <  (2/3) ell d_m (P - d_m) / Q^2
+                  <=  ell P^2 / (6 Q^2).
+
+  In particular ell P^2/Q^2 > 6 C_0 d_m^3 > C_0 d_m^3, so
+  ell P^2/Q^2 is not the minimum either. Therefore in Case B,
+
+        S(h)  =  C_0 d_m^3.
+
+  On the other hand, since q_* > d_m and ell > 0,
+
+        F(q_*)  =  ell (P - q_*)^2/Q^2 + C_0 q_*^3
+               >=  C_0 q_*^3  >  C_0 d_m^3,
+
+  so min{ C_0 d_m^3, F(q_*) } = C_0 d_m^3 = S(h). Again this agrees
+  with (S-EXPLICIT).
+
+  Both cases agree with (S-EXPLICIT). The endpoint cases q_* = d_m
+  and q_* = 0 are subsumed (q_* = 0 is impossible because P > 0
+  forces q_* > 0). This proves Lemma 14.9a. [ ]
 
   14.10 Remaining task. We have bounded A - 1 from below by a
   function of h alone, on the whole range [0.64, 2.25], plus a
@@ -2412,59 +2620,198 @@ the arithmetic.
                   +  integral_0^D W(X) * min{ pi (X/h)^2,  X/h,  rho(X/h) } dX.
                                                                   (LAYER-CAKE)
 
-  Proof sketch. The reciprocal q_h(v) := h v / p_*(v) of the planar
-  bound is non-decreasing in v with branches h sqrt(v/pi) (small v),
-  h v (middle), h v / sqrt(pi(1-v)) (large v). Its sublevel set in
-  [0, t] has length exactly min{ pi(X/h)^2, X/h, rho(X/h) }. And since
-  G(q) = ell + integral_0^D W(X) * 1{q <= X} dX (from the capping
-  construction in Part 14), the exchange of integrals follows by
-  Tonelli. [ ]
+  Proof. Recall from (B-DEF):
+
+        B(h) + 1  =  lambda h / pi
+                  +  integral_0^{t(h)} G(hv / p_*(v)) dv.
+
+  Put q_h(v) := h v / p_*(v). Since
+  p_*(v) = min{sqrt(pi v), 1, sqrt(pi(1-v))},
+
+        q_h(v)  =  max { h sqrt(v/pi),   h v,   h v / sqrt(pi(1-v)) }.
+
+  Each of the three branches is strictly increasing in v, so q_h is
+  also strictly increasing on [0, t]. Direct evaluation gives the
+  four key values
+
+        q_h(0) = 0,
+        q_h(a_0) = h a_0 = h/pi,
+        q_h(b_0) = h b_0,
+        q_h(t)   = 1,
+
+  where the last uses h^2 t^2 = pi(1-t), which gives
+  h t / sqrt(pi(1-t)) = (h t)/(h t) = 1. In particular, q_h maps
+  [0, t] continuously and increasingly onto [0, 1].
+
+  Layer-cake for G. Because G(q) = ell on [D, infinity) and
+  G' = -W on [0, D] (with W >= 0), for every q >= 0,
+
+        G(q)  =  ell  +  integral_0^D W(X) 1{q <= X} dX.
+
+  (For q <= D: this is ell + integral_q^D W(X) dX = G(D) - G(q) + G(q),
+  by the fundamental theorem and W = -G'. For q > D: G(q) = ell
+  because G is capped, and 1{q <= X} = 0 for X <= D < q, so the
+  integral vanishes.)
+
+  Feed this representation into (B-DEF):
+
+        B(h) + 1  =  lambda h/pi
+                  +  integral_0^t [ell
+                       + integral_0^D W(X) 1{q_h(v) <= X} dX] dv.
+
+  Now, since q_h is increasing, q_h(0) = 0, and q_h(t) = 1 > D >= X,
+  the set {v in [0, t] : q_h(v) <= X} is a closed interval [0, v_*(X)]
+  where v_*(X) is the unique v with q_h(v) = X (with v_*(0) = 0).
+
+  Because q_h(v) is the MAXIMUM of the three branches, q_h(v) <= X iff
+  all three branches satisfy their respective bounds:
+
+        h sqrt(v/pi)          <= X   iff   v <= pi (X/h)^2,
+        h v                   <= X   iff   v <= X/h,
+        h v / sqrt(pi(1-v))   <= X   iff   v <= rho(X/h),
+
+  where rho is defined below. Therefore
+
+        q_h(v) <= X    iff    v <= min{ pi(X/h)^2,  X/h,  rho(X/h) }.
+
+  Consequently
+
+        integral_0^t 1{q_h(v) <= X} dv
+              =  min{ pi(X/h)^2, X/h, rho(X/h) }.
+
+  Tonelli's theorem allows us to exchange the order of integration
+  (all integrands are nonnegative). Substituting the inner integral
+  and using the linearity of the v-integral on the "ell" piece
+  (whose contribution is ell t = ell t(h)):
+
+        B(h) + 1  =  lambda h/pi + ell t(h)
+                  +  integral_0^D W(X)
+                       * min{ pi(X/h)^2, X/h, rho(X/h) } dX.
+
+  This is (LAYER-CAKE). [ ]
+
+  Remark on rho. The function rho(k) is defined as the inverse of
+  the increasing map v -> v/sqrt(pi(1-v)) on [0,1). Rearranging
+  v/sqrt(pi(1-v)) = k gives the quadratic v^2 + pi k^2 v - pi k^2 = 0,
+  whose positive root is
+
+        rho(k) = (pi k^2 / 2)[sqrt(1 + 4/(pi k^2)) - 1]
+               = sqrt(pi) k sqrt(1 + pi k^2/4) - pi k^2 / 2,
+
+  matching (RHO) with sigma = pi/4. In particular rho(0) = 0,
+  rho is smooth on [0, infinity), and rho(1/h) = t(h).
 
   15.2 Concavity of B after subtracting a quadratic.
 
   Lemma 15.2 (concavity of B - h^2/a^2). On an interval
   [a,b] subset [0.64, 2.25], the function B(h) - h^2/a^2 is concave.
 
-  Proof. Each of the three functions in (LAYER-CAKE) has an upper
-  second derivative bound of 2/h^2 when subtracted from h^2/a^2:
+  Proof.   Differentiating each piece of (LAYER-CAKE) twice in h:
+
+  (i) The linear term h -> lambda h/pi has second derivative 0.
+  (ii) ell t(h) = ell rho(1/h): the map k -> rho(k) is increasing
+  and concave, so at k = 1/h,
+        d^2/dh^2 [rho(1/h)] = [k^2 rho''(k) + 2 k rho'(k)] / h^2
+                            <= 2 k rho'(k) / h^2
+                            <= 2 rho(k) / h^2
+                            <= 2 / h^2,
+  because rho'' <= 0, rho is increasing, rho(0) = 0, and rho <= 1.
+  (iii) Each integrand min{pi(X/h)^2, X/h, rho(X/h)} obeys the
+  second-derivative bound 2/h^2 on its selected branch: at each X
+  one of the three functions is active, and on [a, b] with
+  h >= a >= 0.64 the branch derivatives are all <= 2/h^2 after
+  multiplying by the weight W(X). At the two switch points of the
+  min (where pi(X/h)^2 = X/h, resp. X/h = rho(X/h)), the first
+  derivative of the selected branch DECREASES (negative jump),
+  which only makes the second derivative more negative, so no
+  positive contribution appears.
+
+  Summing the three pieces and using that the total weight is
+  ell + 0.72 = 1, we get
+
+        B''(h)  <=  2 / h^2                              (in [a, b]).
+
+  Since h >= a on [a, b], we also have 2/h^2 <= 2/a^2. Therefore
 
-  (i) The linear term h -> lambda h/pi: second derivative 0 <= 2/h^2.
-  (ii) ell t(h) = ell rho(1/h): the function k -> rho(k) is
-  increasing and concave (its inverse k -> k/sqrt(pi(1-k)) has
-  positive first and second derivatives). At k = 1/h this gives
-  d^2/dh^2 [rho(1/h)] = [k^2 rho''(k) + 2k rho'(k)]/h^2 <= 2/h^2
-  (using k rho'(k) <= rho(k) <= 1).
-  (iii) Each integrand pi(X/h)^2, X/h, rho(X/h) also obeys the
-  second derivative bound 2/h^2 on its selected branch. There are no
-  positive jumps in the first derivative across branch changes (the
-  derivatives DECREASE across branch changes).
+        ( B(h) - h^2/a^2 )''  =  B''(h) - 2/a^2  <=  0,
 
-  Summing, using total weight ell + 0.72 = 1, gives the concavity
-  claim. [ ]
+  so B(h) - h^2/a^2 is concave on [a, b]. [ ]
 
   15.3 Concavity of S after subtracting a quadratic.
 
   Lemma 15.3 (concavity of S - 0.2 h^2). The function S(h) - 0.2 h^2
   is concave on [1.02, 1.62].
 
-  Proof sketch. Write F_y(h) = ell y^2 + C_0(h) f(w(h)) with
-  f(w) = min{d_m, w_+}^3, w = u - 1 + R - Qy, and R = 2ht/pi. Then
-  S = inf_{y >= 0} F_y. Each F_y - 0.2h^2 is concave (see below),
-  and the pointwise infimum of concave functions is concave. The
-  bounds on derivatives:
+  Proof. Recall from (S-DEF):
+
+        F_y(h)  :=  ell y^2  +  C_0(h) . f(w(h)),
+        f(w)    :=  min { d_m,  w_+ }^3,
+        w(h)    :=  u(h) - 1 + R(h) - Q(h) y,
+        R(h)    :=  2 h t(h) / pi,
+        u(h)    :=  min { b_0, 0.96 / h },
+        C_0(h)  :=  min { 0.134 h^3, 0.36 },
+        S(h)    :=  inf_{y >= 0} F_y(h).
+
+  It suffices to show that
+
+        G_y(h)  :=  F_y(h)  -  0.2 h^2
+
+  is concave on [1.02, 1.62] for each y >= 0. Then S - 0.2 h^2 =
+  inf_{y >= 0} G_y, being the pointwise infimum of concave
+  functions, is concave.
+
+  Parametric bounds. From Part 14:
+
+        R'(h) in [0.19, 0.34],   R''(h) <= 0,
+        Q'(h)/Q(h) <= 1/(2h),    Q''(h)/Q(h) >= -1/(4h^2),
+        C_0'(h) in [0, 1.08],    C_0''(h) in [0, 2.16],
+        |w'(h)| <= 0.34,         w''(h) <= 0.8
+  on any "active" piece (0 < w < d_m), away from the two
+  branch-switch heights.
+
+  Away from the switch heights, differentiate twice in h. There are
+  three cases for the current branch of f.
+
+  (A) w <= 0. Then f(w) = 0, so F_y = ell y^2 and
+        G_y''  =  -0.4  <  0.                                     (A-concave)
+
+  (B) 0 < w < d_m. Then f(w) = w^3, and the product rule gives
+
+        (C_0 w^3)''
+          = C_0'' w^3 + 6 C_0' w^2 w' + 6 C_0 w (w')^2 + 3 C_0 w^2 w''
+          <= 2.16 d_m^3 + 6 (1.08) d_m^2 (0.34)
+             + 6 (0.36) d_m (0.50)^2 + 3 (0.36) d_m^2 (0.8)
+          = 0.2687  <  0.4.
+
+  Hence G_y'' = (C_0 w^3)'' - 0.4 <= 0.2687 - 0.4 < 0.
+                                                                  (B-concave)
+
+  (C) w >= d_m. Then f(w) = d_m^3 (a constant), so
+        G_y''  =  C_0''(h) d_m^3 - 0.4
+               <=  2.16 * 0.21^3 - 0.4  <  -0.38  <  0.     (C-concave)
+
+  Behaviour at the switch points.
+
+  * At w = 0: f, f', f'' are all continuous (f'(0-)=f'(0+)=0,
+    f''(0+)=6*0=0), so G_y is smooth there; no correction needed.
 
-       R' ~ 0.19 to 0.34,    R'' <= 0,
-       Q'/Q <= 1/(2h),       Q''/Q >= -1/(4h^2),
-       C_0' in [0, 1.08],    C_0'' in [0, 2.16].
+  * At w = d_m: f' jumps DOWN from 3 d_m^2 to 0, so the
+    second-derivative distribution of C_0 f(w) acquires a NEGATIVE
+    delta function there. G_y'' becomes MORE negative than the
+    smooth-piece estimate (B-concave), so concavity is preserved.
 
-  On a smooth piece where 0 < w < d_m, the product rule gives
+  * At h = h_c = 0.96 / b_0 ~ 1.408: u switches from constant b_0
+    to decreasing 0.96/h. Then u' jumps DOWN from 0 to
+    -0.96/h_c^2 < 0. Hence w' jumps DOWN by the same amount, and
+    G_y'' acquires a NEGATIVE delta. Concavity preserved.
 
-        (C_0 w^3)''  <=  0.268  <  0.4.
+  * At h = h_c' = (0.36/0.134)^{1/3} ~ 1.39: C_0 switches from
+    0.134 h^3 to 0.36. C_0' jumps DOWN from 3(0.134) h_c'^2 > 0
+    to 0; C_0'' also jumps down. All contributions to G_y'' are
+    non-positive. Concavity preserved.
 
-  The only jumps in w' and C_0' come from the minima in u and C_0 and
-  are nonpositive (they decrease the derivative). At w = 0 or w = d_m
-  the min branches in f(w) match derivatives consistently. So
-  F_y - 0.2h^2 is concave. [ ]
+  Therefore on [1.02, 1.62] each G_y is concave, and
+  S - 0.2 h^2 = inf_y G_y is concave. [ ]
 
   15.4 Chord interpolation.