1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
//! Construction-time depth certificates of arc barrels, in unit geometry `s = y/D`.
//!
//! An arc barrel has free shape ratios, so no frozen constant bounds its slopes. Each batch
//! certifies its own arc rows once, when its context is built.
//!
//! # Below the widest depth
//!
//! Every arc section is convex. Below its widest depth `T` is concave and increasing with
//! `T(0) >= 0`, and `P` is concave with `P(0) >= 0`, because `dT/dy = 2 cot psi` and
//! `dP/dy = 2 / sin psi` both fall as the normal angle `psi` rises to `pi/2`.
//!
//! - Concavity gives `y T' <= T - T(0) <= T`, and `T` increasing gives `A <= y T`. So
//! `A T' <= T^2`, and `d r_c / ds = D (3 T/A - T'/T) >= D (3 T/A - T/A) = 2 D T/A >= 2/s >= 2`.
//! - `P` concave gives `y P' <= P`, and `A <= y T` gives `5 T/A >= 5/y`. So
//! `d r_n / ds = D (5 T/A - 2 P'/P) >= D (5/y - 2/y) = 3/s >= 3`.
//!
//! # From the widest depth to the domain top
//!
//! A cover of pieces in `s` runs from the widest depth, or `2^-30` when the widest depth lies
//! at the floor, to the critical domain top `1 - 2^-53`. Its pieces shrink quadratically
//! toward the crown, where the slopes grow without bound.
//!
//! - Critical: `kappa_c` is the least piece lower bound, capped at 2.
//! - Normal: `s_N` ends the run of positive pieces from the cover start, and `kappa_n` is the
//! least lower bound on that run, capped at 3. `s_F` starts the run of negative pieces that
//! reaches the top. The conveyance peak lies in `[s_N, s_F]`.
//! - Refinement splits `[s_N, s_F]` into equal pieces for a fixed number of rounds, moving
//! `s_N` up and `s_F` down.
//! - `log_peak` encloses `(5 ln a - 2 ln p) / 3`, the log of the unit conveyance, over
//! `[s_N, s_F]`.
//! - `kappa_n` is small, because the slope falls to zero at the peak. Knot `j` of the rising
//! limb ends the run of first-cover pieces whose normal lower bound reaches `2^(1 - j)`, and
//! `kappa_j` bounds the slope on `[2^-30, s_j]`. A root certified below `s_j` then takes the
//! domain `[2^-30, s_j]` with the floor `kappa_j`, so the solver's slope correction stays
//! tight away from the peak.
//!
//! A row fails when a critical bound is not positive, when a negative normal piece lies below
//! a positive one or inside `[s_N, s_F]` after the last round, when no negative run reaches
//! the top, or when `s_F - s_N` stays above `2^-20`. A failing row has no certified single
//! conveyance peak below the crown.
//!
//! # Above a floor
//!
//! A circle or arc barrel with a floor certifies its open section in `s = y/D'`, with `D'` the
//! open rise and `y` measured up from the bed. The bed width `b = T(0)` and the weighted
//! perimeter `P_n = P_w + rho^(3/2) b` replace `T(0) = 0` and `P`, and the cover runs in each
//! row's frame, the barrel scaled by a power of two to a rise in `[1, 2)`.
//!
//! - Below the widest depth `T` is concave and increasing with `T(0) = b >= 0`, so the critical
//! floor `2` holds as above. `P_n` is concave with `P_n(0) = rho^(3/2) b >= 0`, so
//! `y P_n' <= P_n` and `d r_n / ds = D' (5 T/A - 2 P_n'/P_n) >= 3/s >= 3`.
//! - A bed at or above the widest depth has `T` falling from the bed, so `A <= y T` fails. The
//! cover then starts at `2^-30`. There `3 T/A > 0` and `-T'/T >= 0`, so no critical piece
//! bound is negative.
//! - The domain top is `1 - 2^-52`. Its frame depth `D'_f (1 - 2^-52)` rounds up to at most the
//! F64 below `D'_f`, so every piece stays below the crown.
//! - `P_n` moves the peak with `rho`, so each row gets its own peak and `log_peak` encloses the
//! log frame conveyance `(5 ln A_f - 2 ln P_n,f) / 3`.
//! - The rising-limb knots follow the rule above.
//!
//! A box with a floor keeps the box constants: `d r_c / ds = 3/s`, and
//! `d r_n / ds = 5/s - 4 D' / (rho^(3/2) B + 2 D' s) >= 5/s - 2/s = 3/s`.
pub use ;
use crateBounds;
use DType;
use Runtime;
use Tensor;
/// The sections a cover reads.
pub
/// Certificates of `[k]` rows.
pub