180 of 180 checks pass. Each check compares a function of engthink with an exact identity, a brute-force oracle or a published value.
This file is written by python scripts/validate.py, which needs only NumPy.
Historical Benchmarks, Taylor Trinity Fireball Data & 24 Mental Moves Catalog (20/20 PASS)¶
| # | Check | Computed | Expected / Oracle | Status |
|---|---|---|---|---|
| 1 | Package version engthink.version equals 1.0.0 | 1.0.0 | 1.0.0 | PASS |
| 2 | Trinity data of Taylor (1950) contain 25 frames | 25 | 25 (rtol=1.0e-09) | PASS |
| 3 | Trinity time stamps strictly increase from 0.10 ms to 62.0 ms | [0.0001, 0.062] s | Strictly increasing | PASS |
| 4 | Trinity fireball radii strictly increase from 11.1 m to 185.0 m | [11.1, 185.0] m | Strictly increasing | PASS |
| 5 | R / t^(2/5) varies by less than 2.5 % over the frames from 0.24 ms on | CV=2.22% | < 2.5% | PASS |
| 6 | Log-log slope of R(t) over the frames from 0.24 ms on is 2/5 within 0.012 | 0.39036622 | 0.4 (rtol=1.0e-09, atol=1.2e-02) | PASS |
| 7 | Energy from the frames from 0.24 ms on lies near Taylor’s estimate of about 17 kt ([16.2, 18.2] kt) | 17.27 kt TNT | In [16.2, 18.2] kt | PASS |
| 8 | TNT energy conversion constant equals 4.184e12 J/kt | 4.184e+12 | 4.184e+12 (rtol=1.0e-09) | PASS |
| 9 | CANONICAL_DIM_MATRICES provides 4 benchmark physical systems | 4 | 4 (rtol=1.0e-09) | PASS |
| 10 | MENTAL_MOVES_DB catalogs exactly 24 Mental Moves (IDs 1..24) | 24 | 24 (rtol=1.0e-09) | PASS |
| 11 | MENTAL_MOVES_DB IDs are consecutive 1..24 | 1..24 | 1..24 | PASS |
| 12 | Every MENTAL_MOVES_DB module_fn resolves to a live callable in engthink | 24/24 resolved | All callable | PASS |
| 13 | MENTAL_MOVES_DB covers all 5 curriculum parts I..V | Parts I..V | 5 parts | PASS |
| 14 | Topographic DEM cost_grid has shape (48, 48) and strictly >= 1.0 | min=1.000 | >= 1.0 | PASS |
| 15 | Topographic DEM generator is deterministic for fixed seed | 0 | 0 (rtol=1.0e-09) | PASS |
| 16 | Sensor station coordinates (60, 2) lie inside [4.0, 96.0]^2 km | In [4, 96]^2 | Valid bounds | PASS |
| 17 | Regular 24-gon tour perimeter equals 480 * sin(pi/24) | 62.652572 | 62.652572 (rtol=1.0e-09) | PASS |
| 18 | Large-N regular n-gon perimeter converges to 2piR | 62.831847 | 62.831853 (rtol=1.0e-06) | PASS |
| 19 | Shuffled circle coordinates preserve centroid at (0, 0) | 1.2582528e-15 | 0 (rtol=1.0e-09) | PASS |
| 20 | Domain guard rejects undersized terrain grid nx < 8 | ValueError raised | ValueError | PASS |
IEEE-754 Representation, Compensated Invariants & Rational Buckingham-Pi (20/20 PASS)¶
| # | Check | Computed | Expected / Oracle | Status |
|---|---|---|---|---|
| 1 | IEEE-754 float64(1.0) has sign=0, biased_exp=1023, mantissa=0, ulp=2^-52 | ulp=2.220e-16 | Exact binary64(1.0) | PASS |
| 2 | IEEE-754 reconstruction matches -3.5 (-1 * (1 + 0.75) * 2^1) | -3.5 | -3.5 (rtol=1.0e-09) | PASS |
| 3 | IEEE-754 float64(0.0) classified as zero with 64-bit all-zero bitstring | zero | zero | PASS |
| 4 | next_up(1.0) - 1.0 equals machine epsilon 2^-52 | 2.220446e-16 | 2.220446e-16 (rtol=1.0e-09) | PASS |
| 5 | Naive float64 sum loses 100% of 1000 unit increments next to 1e16 (gives 0.0) | 0 | 0 (rtol=1.0e-09) | PASS |
| 6 | Neumaier/Babuska compensated sum recovers exact 1000.0 despite 1e16 cancellation | 1000 | 1000 (rtol=1.0e-09) | PASS |
| 7 | Compensated alternating harmonic sum matches math.fsum to < 1e-15 | 0.69304719 | 0.69304719 (rtol=1.0e-09) | PASS |
| 8 | Welford single-pass mean on 1e9 + [4, 7, 13, 16] equals 1e9 + 10.0 | 10 | 10 (rtol=1.0e-09, atol=1.0e-06) | PASS |
| 9 | Welford single-pass population variance equals exact 22.5 (immune to 1e18 cancellation) | 22.5 | 22.5 (rtol=1.0e-07) | PASS |
| 10 | Naive E[x^2] - E[x]^2 variance fails catastrophically (> 50% error) at 1e9 offset | naive=-128.00 | Catastrophic loss | PASS |
| 11 | stable_logsumexp([1000, 1000+ln(3)]) == 1000 + ln(4) without overflow | 1001.3863 | 1001.3863 (rtol=1.0e-09) | PASS |
| 12 | stable_logsumexp([-1000, -1000]) == -1000 + ln(2) without underflow | -999.30685 | -999.30685 (rtol=1.0e-09) | PASS |
| 13 | stable_logsumexp softmax probabilities sum to 1.0 ([0.25, 0.75]) | 1.0241807e-14 | 0 (rtol=1.0e-09) | PASS |
| 14 | Buckingham-Pi on Taylor blast [R, t, E, rho0] yields unique integer group [5, -2, -1, 1] | [[5, -2, -1, 1]] | [[5, -2, -1, 1]] | PASS |
| 15 | Buckingham-Pi pipe flow (6 vars, rank 3) yields 3 dimensionless groups | 3 | 3 (rtol=1.0e-09) | PASS |
| 16 | Buckingham-Pi convective heat transfer (7 vars, rank 4) yields 3 groups (Nu, Re, Pr space) | 3 | 3 (rtol=1.0e-09) | PASS |
| 17 | Buckingham-Pi capillary droplet (5 vars, rank 3) yields 2 groups (Ohnesorge & scaled freq) | 2 | 2 (rtol=1.0e-09) | PASS |
| 18 | All 4 canonical Buckingham-Pi bases satisfy exact D @ pi^T == 0 | 0 | 0 (rtol=1.0e-09) | PASS |
| 19 | Dijkstra 3-way Dutch National Flag partition satisfies all 3 zone invariants | bounds=(58,88) | Valid 3-zone invariant | PASS |
| 20 | Dutch National Flag preserves exact input multiset in <= 2*N comparisons | 0 | 0 (rtol=1.0e-09) | PASS |
Empirical Complexity Laws, 2-D Prefix Integrals, Monotonic Deques & Cell Lists (20/20 PASS)¶
| # | Check | Computed | Expected / Oracle | Status |
|---|---|---|---|---|
| 1 | fit_empirical_complexity classifies constant workload as O(1) | O(1) | O(1) | PASS |
| 2 | fit_empirical_complexity classifies binary-halving workload as O(log N) | O(log N) | O(log N) | PASS |
| 3 | fit_empirical_complexity classifies linear sweep as O(N) with exponent 1.0 | p=1.0000 | O(N) | PASS |
| 4 | fit_empirical_complexity classifies N*log2(N) workload as O(N log N) | O(N log N) | O(N log N) | PASS |
| 5 | fit_empirical_complexity classifies N*(N-1)/2 pairs as O(N^2) with p ~ 2.0 | p=2.0041 | O(N^2) | PASS |
| 6 | 2-D Prefix Integral Table matches 40 random rectangle sums to < 1e-12 | 9.094947e-13 | 0 (rtol=1.0e-09) | PASS |
| 7 | 2-D Prefix Integral answers 40 rectangle queries in exactly 160 array lookups | 160 | 160 (rtol=1.0e-09) | PASS |
| 8 | 2-D Prefix Integral single-pixel query equals grid[r, c] | 3.4489837 | 3.4489837 (rtol=1.0e-09) | PASS |
| 9 | 2-D Prefix Integral full-domain query equals np.sum(grid) | 3592.6447 | 3592.6447 (rtol=1.0e-09) | PASS |
| 10 | Monotonic deque sliding-window max matches naive O(N*k) scan on 400 samples | 0 | 0 (rtol=1.0e-09) | PASS |
| 11 | Monotonic deque pushes each element exactly once (total_pushes == N) | 400 | 400 (rtol=1.0e-09) | PASS |
| 12 | Monotonic deque pops each element at most once (total_pops <= N) | pops=391 <= 400 | <= N | PASS |
| 13 | Monotonic deque on strictly increasing sequence returns right endpoints | 0 | 0 (rtol=1.0e-09) | PASS |
| 14 | Monotonic deque on strictly decreasing sequence returns left endpoints | 0 | 0 (rtol=1.0e-09) | PASS |
| 15 | 2-D Spatial Cell-List neighbor pairs match O(N^2) brute-force oracle identically | 1099 == 1099 pairs | Exact pair set match | PASS |
| 16 | 2-D Spatial Cell-List cuts candidate distance checks > 15x at N=500, r_c=5.5 | speedup=39.9x | > 15x | PASS |
| 17 | Domain-spanning cutoff r_c=200 recovers all N*(N-1)/2 = 124,750 pairs | 124750 | 124750 (rtol=1.0e-09) | PASS |
| 18 | Well-separated points below cutoff yield 0 neighbor pairs | 0 | 0 (rtol=1.0e-09) | PASS |
| 19 | Exact boundary distance d == r_c is included consistently by cell-list and oracle | 1 | 1 (rtol=1.0e-09) | PASS |
| 20 | All returned neighbor pairs satisfy i < j sorted invariant | All i < j | Canonical order | PASS |
Parametric Search, MergeSort Inversions, Cooley-Tukey FFT & Barnes-Hut Quadtree (20/20 PASS)¶
| # | Check | Computed | Expected / Oracle | Status |
|---|---|---|---|---|
| 1 | Parametric binary search solves x^2 >= 2 to < 1e-11 | 1.4142136 | 1.4142136 (rtol=1.0e-09, atol=1.0e-11) | PASS |
| 2 | Parametric binary search finds exact minimum buffer tank capacity (20.0) | 20 | 20 (rtol=1.0e-09, atol=1.0e-09) | PASS |
| 3 | Parametric binary search flags infeasible bracket cleanly | feasible=False | Infeasible | PASS |
| 4 | Integer parametric search finds ceil(sqrt(1000)) = 32 in <= 12 evaluations | k*=32, evals=11 | k*=32, <=12 evals | PASS |
| 5 | Integer parametric search returns lo immediately when lo is already feasible | 5 | 5 (rtol=1.0e-09) | PASS |
| 6 | MergeSort sorted output matches np.sort | 0 | 0 (rtol=1.0e-09) | PASS |
| 7 | MergeSort O(N log N) inversion count matches O(N^2) brute-force count | 2153 | 2153 (rtol=1.0e-09) | PASS |
| 8 | Sorted array has 0 inversions | 0 | 0 (rtol=1.0e-09) | PASS |
| 9 | Reverse-sorted length-40 array has 40*39/2 = 780 inversions | 780 | 780 (rtol=1.0e-09) | PASS |
| 10 | Constant equal-element array has 0 strict inversions | 0 | 0 (rtol=1.0e-09) | PASS |
| 11 | Pure-NumPy Cooley-Tukey radix-2 FFT convolution matches np.convolve (< 1e-12) | 5.3290705e-15 | 0 (rtol=1.0e-09) | PASS |
| 12 | FFT convolution with unit impulse [1, 0, 0] reproduces input signal | 6.6613381e-16 | 0 (rtol=1.0e-09) | PASS |
| 13 | FFT convolution commutativity a * b == b * a | 1.7763568e-15 | 0 (rtol=1.0e-09) | PASS |
| 14 | FFT convolution integral identity sum(a * b) == sum(a) * sum(b) | -1.6943293 | -1.6943293 (rtol=1.0e-11) | PASS |
| 15 | Barnes-Hut Quadtree at theta=0.0 matches exact O(N^2) pairwise forces (< 1e-11) | 1.0658141e-14 | 0 (rtol=1.0e-09, atol=1.0e-11) | PASS |
| 16 | Exact N-body momentum conservation sum_i F_i == (0, 0) at theta=0.0 | 4.9650683e-15 | 0 (rtol=1.0e-09, atol=1.0e-11) | PASS |
| 17 | Barnes-Hut theta=0.5 achieves < 1.8% relative L2 force error | rel_err=0.33% | < 1.8% | PASS |
| 18 | Barnes-Hut theta=0.5 slashes force evaluations > 3.5x at N=220 | 11855 vs 48180 | > 3.5x reduction | PASS |
| 19 | Barnes-Hut Quadtree records adaptive bounding boxes and positive depth | boxes=374, depth=7 | Valid tree geometry | PASS |
| 20 | Wider opening angle theta=0.9 performs strictly fewer evaluations than theta=0.5 | 5411 < 11855 | Monotonic pruning | PASS |
Bellman Dynamic Programming: Knapsack, Alignment, Seam Carving & Storage Control (20/20 PASS)¶
| # | Check | Computed | Expected / Oracle | Status |
|---|---|---|---|---|
| 1 | 0/1 Knapsack DP matches exhaustive 2^12 subset enumeration | 56 | 56 (rtol=1.0e-09) | PASS |
| 2 | Reconstructed knapsack item weights obey capacity <= 20 | weight=20 | <= 20 | PASS |
| 3 | Reconstructed knapsack subset values sum to max_value | 56 | 56 (rtol=1.0e-09) | PASS |
| 4 | Zero-capacity knapsack returns 0 value and empty selection | 0 | 0 (rtol=1.0e-09) | PASS |
| 5 | Non-restrictive capacity selects all positive-value items | 166 | 166 (rtol=1.0e-09) | PASS |
| 6 | Levenshtein edit distance(‘KITTEN’, ‘SITTING’) == 3 | 3 | 3 (rtol=1.0e-09) | PASS |
| 7 | Levenshtein edit distance(‘SATURDAY’, ‘SUNDAY’) == 3 | 3 | 3 (rtol=1.0e-09) | PASS |
| 8 | Edit distance identity d(s, s) == 0 and symmetry d(a, b) == d(b, a) | 0 | 0 (rtol=1.0e-09) | PASS |
| 9 | Edit distance satisfies metric triangle inequality d(a, c) <= d(a, b) + d(b, c) | 3 <= 4+3 | Triangle inequality | PASS |
| 10 | Needleman-Wunsch aligned strings have equal length and strip to originals | ACGTGA / ACGT-A | Valid global alignment | PASS |
| 11 | Seam-carving DP matches exhaustive 8-connected path enumeration on 7x6 field | 17.816374 | 17.816374 (rtol=1.0e-09) | PASS |
| 12 | Seam-carving column trajectory obeys |c[r] - c[r-1]| <= 1 everywhere | [2, 2, 2, 2, 3, 4, 3] | 8-connected seam | PASS |
| 13 | Seam energy sum along reconstructed seam equals min_total_energy | 17.816374 | 17.816374 (rtol=1.0e-09) | PASS |
| 14 | Seam carving threads planted zigzag low-energy valley (12 * 0.25 = 3.0) | 3 | 3 (rtol=1.0e-09) | PASS |
| 15 | Bottom row minimum of cumulative_energy_map equals min_total_energy | 17.816374 | 17.816374 (rtol=1.0e-09) | PASS |
| 16 | Bellman value function V_0(s) is monotonically non-decreasing in initial storage s | Non-decreasing V_0(s) | More stored energy >= value | PASS |
| 17 | Higher round-trip efficiency (95% vs 70%) strictly raises optimal expected profit | 5809.5 > 3464.0 | Higher eta -> higher profit | PASS |
| 18 | Zero electricity prices and zero terminal value yield V == 0 everywhere | 0 | 0 (rtol=1.0e-09) | PASS |
| 19 | 2-stage deterministic lossless arbitrage buys 25 MWh at 10 and sells at 100 (+2250) | 2250 | 2250 (rtol=1.0e-09) | PASS |
| 20 | Positive terminal water/energy salvage value raises V_0(s) | V_term >= V_base | Monotone in salvage | PASS |
Greedy Exchange Proofs, Belady Caching & Admissible A* Search (20/20 PASS)¶
| # | Check | Computed | Expected / Oracle | Status |
|---|---|---|---|---|
| 1 | Earliest-finish-time greedy interval scheduling matches 2^10 exhaustive optimum | 5 | 5 (rtol=1.0e-09) | PASS |
| 2 | Greedy selected intervals are mutually non-overlapping | count=5 | Pairwise compatible | PASS |
| 3 | Earliest-finish greedy avoids shortest-duration trap on [(0,4), (3,6), (5,9)] -> 2 | 2 | 2 (rtol=1.0e-09) | PASS |
| 4 | Disjoint sequential intervals are all selected | 4 | 4 (rtol=1.0e-09) | PASS |
| 5 | Mutually overlapping intervals select exactly 1 | 1 | 1 (rtol=1.0e-09) | PASS |
| 6 | Belady Furthest-in-Future incurs <= misses of online LRU and FIFO | Belady=45 <= LRU=76, FIFO=73 | Belady optimal | PASS |
| 7 | Belady’s Anomaly reproduced: FIFO has MORE misses at cache=4 (10) than cache=3 (9) | FIFO(4)=10 > FIFO(3)=9 | 10 > 9 anomaly | PASS |
| 8 | Belady MIN and stack-based LRU are immune to Belady’s Anomaly (misses(4) <= misses(3)) | Belady 6<=7 | Monotonic stack property | PASS |
| 9 | Cache larger than distinct alphabet incurs only cold-start compulsory misses | 5 | 5 (rtol=1.0e-09) | PASS |
| 10 | Belady hit_rate + miss_rate == 1.0 | 1 | 1 (rtol=1.0e-09) | PASS |
| 11 | Admissible A* (w=1) discovers exact same minimum path cost as Dijkstra | 117.38291 | 117.38291 (rtol=1.0e-12) | PASS |
| 12 | Admissible A* expands strictly fewer terrain cells than blind Dijkstra | A*=1662 vs Dijk=2760 | A* << Dijkstra | PASS |
| 13 | Weighted A* (w=2.2) expands fewer nodes while obeying w-suboptimality bound | nodes=155, cost=117.7 | Bounded suboptimal | PASS |
| 14 | 8-neighbor Euclidean-heuristic A* matches 8-neighbor Dijkstra cost identically | 100.87861 | 100.87861 (rtol=1.0e-12) | PASS |
| 15 | Allowing diagonal moves lowers path cost relative to 4-neighbor Manhattan grid | 100.9 < 117.4 | Diagonal shortcut | PASS |
| 16 | A* with heuristic_weight=0 reduces identically to Dijkstra | 0 | 0 (rtol=1.0e-09) | PASS |
| 17 | BFS on unweighted 15x15 grid finds Manhattan shortest length 28 | 28 | 28 (rtol=1.0e-09) | PASS |
| 18 | Sealed inf-cost barrier cleanly reports found=False | found=False | Unreachable detected | PASS |
| 19 | Opening single gap at (5, 9) restores optimal detour path through gap | Passes (5, 9) | Valid gap detour | PASS |
| 20 | Reconstructed A* path starts at start, ends at goal, and takes unit grid steps | len=95 | Contiguous 4-grid path | PASS |
Problem Reduction: Knuth’s Algorithm X (Exact Cover) & Critical-Path DAGs (20/20 PASS)¶
| # | Check | Computed | Expected / Oracle | Status |
|---|---|---|---|---|
| 1 | Knuth’s classic 7-element Exact Cover instance has unique solution [‘B’, ‘D’, ‘F’] | [['B', 'D', 'F']] | [['B', 'D', 'F']] | PASS |
| 2 | Unsatisfiable Exact Cover returns 0 solutions cleanly | 0 | 0 (rtol=1.0e-09) | PASS |
| 3 | Symmetric 2-partition Exact Cover finds both valid covers | 2 | 2 (rtol=1.0e-09) | PASS |
| 4 | Every Algorithm X solution partitions primary universe without overlap | [1, 2, 3, 4] | [1, 2, 3, 4] | PASS |
| 5 | N-Queens via Exact Cover reduction matches OEIS A000170 [1, 0, 0, 2, 10, 4, 40, 92] for N=1..8 | [1, 0, 0, 2, 10, 4, 40, 92] | [1, 0, 0, 2, 10, 4, 40, 92] | PASS |
| 6 | Reconstructed 8-Queens placement has 8 non-attacking queens across rows, cols & diagonals | 8 queens | Zero conflicts | PASS |
| 7 | MRV column branching solves all 92 8-Queens configurations in < 2000 search nodes | MRV pruned | < 2000 nodes | PASS |
| 8 | Exact Cover enumerates all 12 distinct 3x3 Latin squares | 12 | 12 (rtol=1.0e-09) | PASS |
| 9 | Completed 4x4 Latin square preserves clues and permutes 1..4 in every row and column | solutions=3 | Valid Latin square | PASS |
| 10 | Contradictory Latin-square clues (two 1s in row 0) yield 0 solutions | 0 | 0 (rtol=1.0e-09) | PASS |
| 11 | 5x5 diagonal-seeded Latin square completion succeeds cleanly | 1 | 1 (rtol=1.0e-09) | PASS |
| 12 | Critical Path Method computes exact bottleneck project duration (18.0 days) | 18 | 18 (rtol=1.0e-09) | PASS |
| 13 | Critical path identifies exact zero-slack bottleneck chain | ['Design', 'Procure_A', 'Fabricate', 'Integrate'] | 4 critical tasks | PASS |
| 14 | Non-critical tasks have exact slack floats (Procure_B=3.0, Software=7.0) | 0 | 0 (rtol=1.0e-09) | PASS |
| 15 | All precedence constraints EF[u] <= ES[v] hold across DAG | Precedence respected | EF[u] <= ES[v] | PASS |
| 16 | Delaying critical task Fabricate by +2 days delays project by +2 days | 20 | 20 (rtol=1.0e-09) | PASS |
| 17 | Delaying non-critical Software by +5 days (< 7-day slack) causes 0.0 project delay | 18 | 18 (rtol=1.0e-09) | PASS |
| 18 | All task slacks are non-negative | slack >= 0 | Non-negative | PASS |
| 19 | Cyclic dependency graph raises ValueError in critical_path_dag | Cycle rejected | ValueError | PASS |
| 20 | Parallel independent tasks have project_duration == max(durations) | 8.5 | 8.5 (rtol=1.0e-09) | PASS |
Shannon Information Metrics, Fault Trees & Sublinear Streaming Sketches (20/20 PASS)¶
| # | Check | Computed | Expected / Oracle | Status |
|---|---|---|---|---|
| 1 | Fair 8-outcome distribution has Shannon entropy 3.0 bits and efficiency 1.0 | H=3.0, eff=1.0 | H=3.0, eff=1.0 | PASS |
| 2 | Deterministic certainty [1, 0, 0, 0] has 0.0 bits of entropy | 0 | 0 (rtol=1.0e-09) | PASS |
| 3 | KL divergence D_KL(p || p) equals 0.0 bits | 0 | 0 (rtol=1.0e-09) | PASS |
| 4 | Gibbs inequality D_KL(p || q) > 0 for p != q | KL=0.2500 | > 0 | PASS |
| 5 | Cross-entropy identity H(p, q) == H(p) + D_KL(p || q) | 2 | 2 (rtol=1.0e-09) | PASS |
| 6 | Dyadic [1/2, 1/4, 1/8, 1/8] entropy equals exact 1.75 bits | 1.75 | 1.75 (rtol=1.0e-09) | PASS |
| 7 | Optimal fault tree on dyadic [1/2, 1/4, 1/8, 1/8] achieves Shannon bound 1.75 tests (0 redundancy) | 1.75 | 1.75 (rtol=1.0e-09) | PASS |
| 8 | 3-bit parity/address sensors isolate 8 equiprobable faults in 3.0 tests | 3 | 3 (rtol=1.0e-09) | PASS |
| 9 | Expected fault tests obey Shannon lower bound H(p) <= E[L] < H(p) + 1 | H=1.319 <= E[L]=1.450 | Noiseless coding bound | PASS |
| 10 | Indistinguishable fault columns raise ValueError in optimal_fault_diagnosis_tree | ValueError raised | ValueError | PASS |
| 11 | Vitter Reservoir Sampling (k=3 from 10) gives uniform inclusion 0.30 +/- 0.025 across all elements | max_dev=0.0106 | < 0.025 | PASS |
| 12 | Reservoir sample contains k=15 distinct elements from stream | 15 unique | Valid k-subset | PASS |
| 13 | Reservoir sample with k == N retains all N stream elements | 20 | 20 (rtol=1.0e-09) | PASS |
| 14 | Bloom Filter guarantees strictly ZERO false negatives on all inserted items | 0 | 0 (rtol=1.0e-09) | PASS |
| 15 | Bloom Filter auto-selects optimal k* = round(10 * ln 2) = 7 hashes | 7 | 7 (rtol=1.0e-09) | PASS |
| 16 | Bloom Filter empirical FPR matches theoretical (1 - e^(-kn/m))^k within 0.01 | emp=0.0070 vs th=0.0082 | |emp - th| < 0.01 | PASS |
| 17 | Doubling Bloom Filter bit budget (10 -> 20 bits/item) slashes FPR > 5x | 0.00000 < 0.0070 | Exponential FPR drop | PASS |
| 18 | Count-Min Sketch guarantees strict one-sided error (min_overestimate >= 0, zero undercounting) | min_err=0 | >= 0 | PASS |
| 19 | Count-Min Sketch (w=128, d=5) recovers heavy hitter HOT_VALVE within <= 12 counts of 400 | est=409 | In [400, 412] | PASS |
| 20 | Widening Count-Min Sketch (w=32 -> 128) reduces mean frequency overestimate | 0.39 < 11.71 | Decreasing error | PASS |
Emergence (Percolation, Traffic, Flocking), SA/LHS & Metamorphic Auditing (20/20 PASS)¶
| # | Check | Computed | Expected / Oracle | Status |
|---|---|---|---|---|
| 1 | Empty lattice (p=0) has 0 clusters and does not percolate | 0 clusters | False | PASS |
| 2 | Full lattice (p=1) forms 1 spanning cluster of fraction 1.0 | 1 cluster, frac=1.0 | True | PASS |
| 3 | 2-D site percolation sharp transition brackets p_c ~ 0.5927 (P(0.46)=0 vs P(0.72)=1) | P(0.46)=0.00, P(0.72)=1.00 | Sharp phase transition | PASS |
| 4 | Giant cluster fraction surges across p_c (p=0.35 vs p=0.75) | 0.020 -> 0.755 | Giant cluster emergence | PASS |
| 5 | Cluster label matrix assigns 0 to all unoccupied pores | Consistent mask | Exact mask | PASS |
| 6 | Nagel-Schreckenberg CA strictly conserves vehicle count at every time step | 110 cars / step | Exact conservation | PASS |
| 7 | Free-flow highway achieves high mean speed (> 4.2) and near-zero jams | v=4.59, jam=0.006 | Free-flow regime | PASS |
| 8 | Congested highway spontaneously nucleates phantom stop-and-go jams (jam_fraction > 0.25) | v=0.50, jam=0.61 | Emergent jam waves | PASS |
| 9 | Random braking asymmetry p_slow lowers fundamental traffic flux | 0.307 < 0.691 | Stochastic capacity drop | PASS |
| 10 | Vicsek order parameter Phi(t) stays bounded in [0, 1] | In [0, 1] | Bounded order parameter | PASS |
| 11 | Low angular noise (eta=0.15) triggers collective flocking (Phi > 0.90) | Phi=0.999 | > 0.90 | PASS |
| 12 | High angular noise (eta=6.0) destroys orientational order (Phi < 0.30) | Phi=0.171 | < 0.30 | PASS |
| 13 | 2-opt Simulated Annealing untangles shuffled 20-gon to exact global optimum | 75.088543 | 75.088543 (rtol=1.0e-09) | PASS |
| 14 | Simulated Annealing reduces tour length > 2.2x from initial tangled tour | 326.6 -> 75.1 | > 2.2x shorter | PASS |
| 15 | Best TSP tour is a valid permutation of 0..19 | Valid permutation | 0..19 | PASS |
| 16 | Latin Hypercube MC estimate of integral_{0..1}^3 sum(e^x_j) matches 3*(e - 1) | 5.1550065 | 5.1548455 (rtol=1.0e-09, atol=3.0e-02) | PASS |
| 17 | Latin Hypercube Sampling achieves > 4x variance reduction over crude SRS | VRR=3066.4x | > 4.0x | PASS |
| 18 | Metamorphic + oracle audit passes exact np.median across 80 randomized/adversarial trials | tests=320 | passed=True | PASS |
| 19 | Differential micro-oracle catches subtle even-length median bug immediately | failures=34 | Caught even-N bug | PASS |
| 20 | Oracle-free metamorphic invariants catch order/threshold bias with no reference oracle | caught law=shift_equivariance | Caught without oracle | PASS |