Files
zeekay 3a041e1bac hanzo-learn: a fixture holds numpy's stream, which nothing did before
Every fixture in this suite is a closed form — a mean, a fold boundary, a
curve, a fitted coefficient — and a closed form consumes no random numbers.
Every splitter case was `shuffle=False`. So the twister was asserted by
nothing at all: replacing its masked rejection with `next_word() % (most + 1)`
left the entire suite green, and so did drawing one word where numpy draws
two, and so did placing the low word high in a 64-bit draw.

`stream.json` records numpy's own draws and
`the_generator_matches_numpys_stream_draw_for_draw` asserts them exactly, as
integers, with no tolerance to state — a stream is numpy's or it is a
different stream. It carries:

  bounded      `randint(0, most + 1)`, which IS `below(most)`, at bounds on
               both sides of 2^32 - 1 where numpy changes how many words a
               draw costs, and at small bounds where a modulus and a rejection
               part company
  descending   the falling bounds a partial Fisher-Yates asks for on a design
               of 2^32 + 5 rows, every one of them needing the 64-bit branch
  permutation  five whole permutations
  subsample    read off numpy's permutation rather than our own, so the two
               claims cannot hold each other up
  composed     a bounded draw and a permutation off ONE generator, which is
               what catches a draw right in its value and wrong in how many
               words it spent

Each of the three mutations above now fails it.
2026-08-05 05:14:44 -07:00

1612 lines
14 KiB
JSON

{
"bounded": [
{
"draws": [
5,
0,
3,
3,
7,
9,
3,
5,
2,
4,
7,
6
],
"most": 9,
"seed": 0
},
{
"draws": [
175,
196,
537,
502,
579,
211,
919,
615
],
"most": 999,
"seed": 7
},
{
"draws": [
0,
1,
0,
0,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
1,
0,
1,
1,
1,
0
],
"most": 1,
"seed": 42
},
{
"draws": [
2,
1,
2,
2,
0,
1,
0,
0,
2,
0,
2,
0,
0,
1,
1,
0
],
"most": 2,
"seed": 5
},
{
"draws": [
2365658986,
303761048,
3041471737,
3607553667,
1249426360,
521102280
],
"most": 4294967295,
"seed": 3
},
{
"draws": [
303761048,
521102280,
2445173525,
80522091,
1064672149,
2984244884
],
"most": 4294967296,
"seed": 3
},
{
"draws": [
657423371967,
346452335707,
348726071223,
59812929868,
691941458503,
353156747032
],
"most": 1099511627775,
"seed": 11
},
{
"draws": [
8042686386972756495,
478254495130285640,
8030280778952246347,
7754417253617937671,
6093601889722073521,
3775101017224948299
],
"most": 9223372036854775814,
"seed": 2
}
],
"composed": {
"first": [
5,
0,
3,
3,
7
],
"most": 9,
"n": 6,
"seed": 0,
"then": [
4,
0,
2,
5,
3,
1
]
},
"descending": [
{
"draws": [
2546248239,
1277901399,
243580376,
1171049868,
2051556033,
3400433126
],
"seed": 0,
"top": 4294967300
},
{
"draws": [
4352184897,
3767636404,
4885640488,
595339505,
1700316789
],
"seed": 9,
"top": 8589934592
}
],
"oracle": {
"numpy": "2.5.1",
"sklearn": "1.9.0"
},
"permutation": [
{
"n": 10,
"order": [
2,
8,
4,
9,
1,
6,
7,
3,
0,
5
],
"seed": 0
},
{
"n": 40,
"order": [
17,
37,
34,
18,
32,
1,
22,
2,
9,
36,
29,
21,
13,
27,
5,
15,
20,
24,
11,
0,
12,
30,
16,
39,
6,
7,
31,
26,
10,
33,
38,
8,
35,
14,
28,
23,
19,
3,
25,
4
],
"seed": 7
},
{
"n": 257,
"order": [
68,
52,
54,
219,
177,
30,
192,
109,
20,
67,
253,
110,
100,
162,
112,
47,
71,
73,
18,
191,
195,
33,
134,
215,
104,
103,
224,
229,
140,
167,
128,
221,
152,
157,
223,
179,
205,
176,
256,
9,
190,
57,
182,
16,
40,
144,
10,
50,
173,
85,
122,
197,
145,
127,
27,
175,
196,
14,
95,
17,
255,
241,
120,
15,
214,
234,
49,
19,
93,
252,
66,
226,
185,
236,
132,
150,
222,
233,
56,
26,
147,
220,
99,
249,
207,
228,
130,
181,
148,
141,
239,
70,
163,
92,
180,
89,
55,
238,
225,
94,
106,
42,
61,
206,
78,
244,
24,
51,
153,
35,
187,
48,
194,
200,
2,
247,
160,
44,
25,
216,
84,
13,
117,
139,
151,
168,
135,
39,
4,
28,
98,
79,
156,
86,
96,
159,
254,
90,
111,
136,
8,
237,
227,
161,
102,
125,
203,
137,
165,
242,
60,
209,
174,
116,
186,
45,
69,
170,
121,
240,
193,
65,
21,
188,
231,
37,
218,
6,
3,
32,
158,
171,
154,
198,
172,
0,
123,
63,
211,
232,
149,
230,
58,
46,
82,
178,
146,
41,
62,
199,
22,
76,
74,
202,
88,
38,
155,
80,
213,
12,
83,
246,
204,
108,
5,
72,
212,
53,
251,
217,
107,
235,
115,
245,
75,
119,
143,
133,
124,
131,
64,
36,
87,
243,
97,
189,
31,
183,
184,
250,
23,
43,
7,
166,
210,
81,
138,
77,
11,
201,
114,
208,
248,
91,
105,
142,
59,
113,
118,
1,
29,
34,
101,
126,
169,
164,
129
],
"seed": 12345
},
{
"n": 1000,
"order": [
642,
762,
909,
199,
586,
797,
652,
755,
416,
498,
514,
456,
881,
530,
180,
449,
752,
809,
266,
58,
246,
128,
692,
606,
831,
687,
87,
763,
813,
578,
533,
649,
999,
658,
802,
255,
691,
637,
712,
615,
706,
85,
890,
701,
247,
854,
528,
195,
948,
600,
359,
847,
761,
668,
437,
833,
177,
83,
573,
264,
28,
157,
27,
48,
238,
193,
745,
312,
816,
155,
387,
61,
884,
800,
623,
351,
103,
51,
197,
790,
324,
294,
99,
243,
81,
385,
891,
556,
630,
958,
665,
796,
427,
885,
895,
121,
270,
10,
839,
823,
445,
529,
65,
358,
631,
988,
92,
30,
73,
447,
293,
726,
429,
791,
595,
924,
928,
985,
406,
620,
400,
227,
661,
546,
239,
682,
793,
91,
781,
175,
194,
439,
579,
192,
499,
145,
932,
563,
523,
144,
536,
86,
328,
724,
101,
822,
39,
339,
883,
810,
639,
136,
80,
126,
118,
838,
464,
859,
391,
95,
919,
775,
269,
108,
189,
667,
898,
124,
287,
321,
41,
409,
5,
64,
216,
45,
235,
997,
3,
534,
806,
450,
676,
565,
614,
741,
336,
452,
468,
521,
304,
721,
333,
290,
526,
164,
782,
575,
992,
713,
78,
109,
201,
465,
143,
905,
206,
263,
330,
102,
771,
46,
4,
767,
123,
491,
211,
362,
808,
440,
232,
757,
478,
628,
921,
902,
869,
567,
214,
472,
137,
799,
984,
111,
415,
842,
16,
846,
134,
868,
651,
694,
190,
401,
698,
146,
897,
705,
458,
349,
942,
962,
237,
914,
301,
347,
549,
386,
448,
640,
314,
105,
163,
994,
837,
127,
702,
635,
469,
753,
971,
378,
31,
700,
697,
303,
610,
112,
749,
132,
970,
288,
708,
527,
457,
370,
261,
209,
410,
855,
354,
159,
487,
666,
97,
466,
654,
279,
945,
186,
926,
411,
224,
14,
170,
965,
357,
115,
656,
619,
548,
19,
107,
733,
518,
236,
371,
978,
233,
229,
360,
589,
319,
638,
570,
506,
399,
479,
996,
756,
644,
760,
849,
116,
68,
376,
356,
770,
626,
871,
889,
37,
931,
350,
106,
388,
323,
571,
251,
645,
574,
972,
488,
215,
878,
709,
56,
669,
454,
169,
291,
181,
53,
407,
916,
346,
863,
151,
392,
230,
768,
555,
750,
856,
188,
893,
780,
185,
43,
381,
592,
596,
142,
982,
562,
787,
352,
317,
322,
777,
475,
769,
737,
329,
939,
150,
593,
67,
715,
835,
539,
431,
674,
327,
632,
730,
524,
543,
987,
443,
591,
950,
131,
774,
296,
283,
894,
417,
944,
130,
542,
979,
114,
825,
557,
967,
814,
271,
313,
377,
446,
558,
428,
284,
129,
395,
861,
393,
326,
646,
210,
624,
784,
179,
537,
40,
306,
648,
373,
204,
811,
272,
8,
355,
584,
629,
70,
397,
908,
716,
139,
168,
7,
826,
505,
477,
93,
512,
509,
79,
554,
552,
342,
461,
673,
49,
722,
250,
147,
390,
961,
949,
57,
906,
569,
135,
525,
689,
55,
773,
934,
907,
522,
845,
879,
338,
532,
633,
382,
25,
47,
719,
174,
29,
59,
703,
389,
153,
803,
927,
820,
707,
161,
244,
818,
158,
501,
432,
935,
817,
742,
366,
857,
54,
743,
24,
298,
18,
254,
225,
419,
587,
729,
222,
653,
424,
218,
840,
550,
955,
442,
613,
286,
66,
453,
929,
71,
612,
412,
82,
900,
819,
15,
772,
535,
585,
451,
981,
404,
490,
798,
746,
364,
459,
104,
268,
852,
671,
241,
430,
870,
203,
930,
96,
467,
683,
492,
166,
938,
821,
315,
361,
138,
276,
384,
568,
792,
88,
794,
280,
460,
617,
867,
599,
202,
402,
340,
365,
23,
345,
933,
334,
310,
899,
353,
953,
240,
318,
735,
262,
98,
740,
923,
865,
89,
515,
331,
678,
433,
913,
723,
486,
636,
832,
748,
260,
305,
925,
196,
140,
594,
122,
494,
110,
84,
717,
513,
482,
680,
922,
74,
956,
778,
273,
396,
154,
191,
915,
187,
50,
38,
418,
876,
208,
375,
463,
470,
517,
75,
248,
559,
302,
582,
739,
995,
11,
973,
485,
462,
976,
627,
281,
253,
983,
990,
911,
577,
986,
219,
425,
369,
829,
69,
980,
580,
21,
77,
547,
993,
946,
125,
228,
42,
516,
572,
576,
801,
621,
374,
205,
969,
991,
6,
493,
710,
943,
766,
736,
259,
282,
634,
590,
882,
974,
455,
320,
434,
663,
299,
436,
675,
812,
438,
325,
403,
265,
564,
602,
815,
278,
655,
759,
732,
711,
553,
751,
888,
896,
231,
245,
167,
502,
332,
807,
783,
426,
541,
162,
149,
226,
685,
94,
221,
597,
699,
473,
977,
601,
873,
34,
217,
72,
220,
213,
860,
394,
963,
367,
12,
918,
343,
198,
725,
696,
234,
695,
420,
841,
989,
608,
785,
297,
63,
734,
607,
13,
435,
17,
764,
886,
758,
779,
348,
207,
90,
307,
341,
380,
344,
471,
804,
551,
598,
693,
32,
936,
657,
670,
172,
850,
851,
408,
957,
903,
200,
292,
583,
866,
510,
910,
844,
880,
975,
960,
489,
877,
964,
133,
60,
690,
26,
100,
531,
588,
998,
776,
788,
520,
363,
309,
795,
828,
604,
252,
544,
481,
441,
647,
476,
22,
62,
148,
483,
727,
901,
786,
257,
52,
242,
173,
35,
178,
679,
738,
120,
275,
44,
300,
836,
76,
720,
368,
212,
267,
311,
728,
444,
503,
495,
33,
9,
688,
160,
285,
295,
616,
824,
625,
277,
904,
603,
484,
496,
182,
827,
951,
684,
744,
966,
36,
156,
2,
754,
508,
497,
308,
289,
560,
414,
421,
141,
223,
864,
183,
843,
937,
920,
672,
848,
511,
912,
731,
611,
892,
747,
941,
117,
853,
1,
113,
954,
686,
765,
165,
184,
677,
372,
274,
704,
0,
566,
887,
540,
500,
718,
383,
405,
561,
862,
20,
805,
176,
335,
379,
545,
171,
519,
830,
507,
152,
618,
413,
609,
622,
872,
581,
858,
947,
641,
316,
959,
258,
834,
662,
474,
337,
538,
504,
398,
423,
605,
940,
660,
480,
422,
119,
917,
650,
681,
875,
714,
659,
789,
256,
968,
952,
643,
249,
664,
874
],
"seed": 3
},
{
"n": 5,
"order": [
0,
4,
3,
1,
2
],
"seed": 20260804
}
],
"subsample": [
{
"n": 1000,
"rows": [
382,
348,
638,
501,
950,
56,
763,
918,
125,
577,
534,
436,
571,
296,
762,
241,
760,
629,
347,
417,
733,
896,
956,
238,
187,
472,
970,
952,
477,
830,
234,
892,
632,
12,
274,
214,
696,
129,
972,
739
],
"seed": 9,
"take": 40
},
{
"n": 257,
"rows": [
122,
174,
183,
197,
129,
104,
87
],
"seed": 4,
"take": 7
},
{
"n": 16,
"rows": [
12,
5,
0,
3,
11,
15,
7,
10,
14,
2,
4,
13,
9,
8,
6,
1
],
"seed": 0,
"take": 16
}
]
}