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