Repository navigation
Expand file tree
/
Copy path_verification_systems.toml
More file actions
4801 lines (4123 loc) · 152 KB
/
Copy path_verification_systems.toml
File metadata and controls
4801 lines (4123 loc) · 152 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
# SPDX-FileCopyrightText: 2026 ECHIDNA Project Team
# SPDX-License-Identifier: MPL-2.0
#
# Verification-systems vocabulary. Program-verification concepts for the
# estate's proof stack (Idris2 ABI + Zig FFI + Ada/SPARK + Rust/Creusot +
# Elixir/OTP), which WordNet and ConceptNet do not carry.
#
# Underscore-prefix filename `_verification_systems.toml` signals: secondary
# vocabulary index, NOT a per-prover synonym table. Consumers merge it into
# per-prover `semantic_class` resolution through
# `CrossProverDicts::verification_systems` (Rust) / `load_verification_systems`
# (Julia), exactly like `_msc2020.toml` and `_disciplines.toml`.
#
# Why this file exists
#
# `_wordnet_math.toml` (81 rows) and `_conceptnet_seed.toml` (53 rows) are
# anchored in undergraduate / competition pure mathematics: primes, rings,
# continuity, commutativity. ProofNet and MiniF2F are the same shape. The
# concepts this repository's own verification surface is written in --
# zero-extension, wrapping arithmetic, alignment, separation-logic framing,
# termination measures, resource algebras, noninterference -- are absent from
# those dictionaries. A corpus indexer or premise selector that only knows the
# math dictionaries cannot resolve `wrapping_add` to a semantic class, so the
# cross-prover join silently drops the row.
#
# Selection criteria
#
# 1. The concept must be *load-bearing* for machine-level or specification-level
# reasoning: it appears in at least one of the proof corpora / toolchains
# this repository drives (Lean4+mathlib4, Coq/Rocq, Isabelle/HOL, Agda,
# Idris2, F*, Dafny, Why3, SPARK, Creusot, Kani, Zig, ACL2, TLA+).
# 2. `canonical` is the concept name in the spelling used by the toolchain that
# owns the concept (mostly snake_case; PascalCase where the library name is
# PascalCase).
# 3. `aliases` are spelling variants and API names a corpus extractor can
# actually encounter, not definitions.
# 4. `semantic_class` is the cross-table join key and is deliberately coarse.
# `tactic_class` is the vocabulary family for this file: bitvector, memory,
# ownership, separation, contract, termination, refinement, resource-algebra,
# epistemic, concurrency, toolchain, estate.
#
# Estate policy reflected here (owner directive, 2026-10-22): every ABI is
# written in Idris2, every API and FFI in Zig, every BEAM native boundary is a
# SNIF (never a bare NIF), the Rust layer is Rust/Creusot (annotated Rust, not
# "Rust plus hope"), Julia owns the numeric/ML layer and Chapel the parallel
# layer. Python is not part of the estate: nothing in this tree may depend on a
# Python runtime.
#
# Evidence policy
#
# Rows carry no `evidence` field (the loader default is `none`). These are
# vocabulary anchors: they assert that a token belongs to a concept class, not
# that two provers' names denote the same proposition. Rows that would claim a
# cross-prover identity belong in the per-prover tables, where the lexicon v2
# `relation` / `fidelity` / `residue` fields can say what is lost.
#
# Schema: data/synonyms/schema.ncl (Nickel). Checked by
# scripts/lexicon-check.sh; loaded by tests/lexicon_v2_test.rs.
# ============================================================
# Bitvectors and machine integers
# ============================================================
[[synonym]]
canonical = "zero_extend"
aliases = ["uext", "zeroExtend", "zero-extend", "Z.zero_extend", "BitVec.zeroExtend", "bvzeroextend", "zero_extension"]
tactic_class = "bitvector"
semantic_class = "zero-extension"
notes = "Widen an unsigned value by filling high bits with zero; Lean BitVec.zeroExtend, Coq Z.zero_extend, SMT-LIB bvzeroextend."
[[synonym]]
canonical = "sign_extend"
aliases = ["sext", "signExtend", "sign-extend", "Z.sign_extend", "BitVec.signExtend", "bvsignextend", "sign_extension"]
tactic_class = "bitvector"
semantic_class = "sign-extension"
notes = "Widen by replicating the sign bit; Sound and Complete for the two's-complement interpretation."
[[synonym]]
canonical = "truncate"
aliases = ["trunc", "truncate_bits", "Z.truncate", "BitVec.truncate", "bvextract", "low_bits"]
tactic_class = "bitvector"
semantic_class = "truncation"
notes = "Narrow to a smaller width; discards high bits and is not value preserving."
[[synonym]]
canonical = "extract_bits"
aliases = ["extract", "extractBits", "BitVec.extract", "extract_range", "bvextract", "bit_slice"]
tactic_class = "bitvector"
semantic_class = "bit-extraction"
notes = "Select a bit range [hi:lo]; the only width-changing operation besides concat and split."
[[synonym]]
canonical = "concat_bits"
aliases = ["concat", "append_bits", "BitVec.append", "concatBits", "bvconcat", "zero_append"]
tactic_class = "bitvector"
semantic_class = "bit-concatenation"
notes = "Join two bitvectors; width is the sum of the widths."
[[synonym]]
canonical = "bitwise_not"
aliases = ["complement", "bvnot", "BitVec.not", "bitwise_complement", "ones_complement"]
tactic_class = "bitvector"
semantic_class = "bitwise-negation"
notes = "Per-bit complement; distinct from arithmetic negation."
[[synonym]]
canonical = "bitwise_and"
aliases = ["bvand", "BitVec.and", "land", "band", "masking"]
tactic_class = "bitvector"
semantic_class = "bitwise-and"
notes = "Per-bit conjunction; the usual mask operator."
[[synonym]]
canonical = "bitwise_or"
aliases = ["bvor", "BitVec.or", "lor", "bor", "set_bits"]
tactic_class = "bitvector"
semantic_class = "bitwise-or"
notes = "Per-bit disjunction."
[[synonym]]
canonical = "bitwise_xor"
aliases = ["bvxor", "BitVec.xor", "lxor", "bxor", "difference_bits"]
tactic_class = "bitvector"
semantic_class = "bitwise-xor"
notes = "Per-bit exclusive or; its own inverse."
[[synonym]]
canonical = "shift_left"
aliases = ["shl", "BitVec.shiftLeft", "bvshl", "lsl", "shiftl", "left_shift"]
tactic_class = "bitvector"
semantic_class = "shift-left"
notes = "Logical left shift; vacated low bits are zero."
[[synonym]]
canonical = "logical_shift_right"
aliases = ["lshr", "bvlshr", "BitVec.ushiftRight", "lsr", "logical_right_shift", "zero_fill_shift"]
tactic_class = "bitvector"
semantic_class = "logical-shift-right"
notes = "Right shift filling with zero; unsigned interpretation."
[[synonym]]
canonical = "arithmetic_shift_right"
aliases = ["ashr", "bvashr", "BitVec.sshiftRight", "asr", "arithmetic_right_shift", "sign_fill_shift"]
tactic_class = "bitvector"
semantic_class = "arithmetic-shift-right"
notes = "Right shift replicating the sign bit; signed division by a power of two only for exact cases."
[[synonym]]
canonical = "rotate_left"
aliases = ["rotl", "BitVec.rotateLeft", "bvrol", "rotate_l", "circular_shift_left"]
tactic_class = "bitvector"
semantic_class = "rotation"
notes = "Left rotation; no bits are lost."
[[synonym]]
canonical = "rotate_right"
aliases = ["rotr", "BitVec.rotateRight", "bvror", "rotate_r", "circular_shift_right"]
tactic_class = "bitvector"
semantic_class = "rotation"
notes = "Right rotation; inverse of rotate_left by width."
[[synonym]]
canonical = "rotate_through_carry"
aliases = ["rcl", "rcr", "rotate_carry", "through_carry"]
tactic_class = "bitvector"
semantic_class = "rotation"
notes = "Nine-bit rotation used by x86 and some hardware models."
[[synonym]]
canonical = "count_leading_zeros"
aliases = ["clz", "leading_zeros", "BitVec.clz", "countLeadingZeros", "nlz"]
tactic_class = "bitvector"
semantic_class = "bit-count"
notes = "Number of high zero bits before the first one."
[[synonym]]
canonical = "count_trailing_zeros"
aliases = ["ctz", "trailing_zeros", "BitVec.ctz", "countTrailingZeros", "ntz"]
tactic_class = "bitvector"
semantic_class = "bit-count"
notes = "Number of low zero bits before the first one."
[[synonym]]
canonical = "population_count"
aliases = ["popcount", "popcnt", "BitVec.popcount", "hamming_weight", "count_ones"]
tactic_class = "bitvector"
semantic_class = "bit-count"
notes = "Number of set bits; Hamming weight of the bitvector."
[[synonym]]
canonical = "bit_reverse"
aliases = ["reverse_bits", "bitrev", "BitVec.reverse", "bswap_bits"]
tactic_class = "bitvector"
semantic_class = "bit-permutation"
notes = "Reverse bit order; not the same as byte swap."
[[synonym]]
canonical = "test_bit"
aliases = ["bit_test", "BitVec.getLsbD", "get_bit", "bt", "testbit"]
tactic_class = "bitvector"
semantic_class = "bit-access"
notes = "Read a single bit; a bounds obligation in most APIs."
[[synonym]]
canonical = "set_bit"
aliases = ["bit_set", "BitVec.setWidth", "bts"]
tactic_class = "bitvector"
semantic_class = "bit-access"
notes = "Write a single bit true."
[[synonym]]
canonical = "clear_bit"
aliases = ["bit_clear", "btr", "reset_bit", "clear_bits"]
tactic_class = "bitvector"
semantic_class = "bit-access"
notes = "Write a single bit false."
[[synonym]]
canonical = "toggle_bit"
aliases = ["bit_toggle", "btc", "flip_bit", "complement_bit"]
tactic_class = "bitvector"
semantic_class = "bit-access"
notes = "Flip a single bit."
[[synonym]]
canonical = "bitmask"
aliases = ["mask", "BitVec.mask", "mask_bits", "bit_mask", "all_ones_mask"]
tactic_class = "bitvector"
semantic_class = "bitmask"
notes = "A bitvector used to select positions; `mask &&& x` is the usual idiom."
[[synonym]]
canonical = "bitvector_type"
aliases = ["bitvec", "BitVec", "BV", "bit_vector", "bv", "word_type"]
tactic_class = "bitvector"
semantic_class = "bitvector"
notes = "Fixed-width sequence of bits; Lean BitVec w, SMT-LIB (_ BitVec w)."
[[synonym]]
canonical = "machine_word"
aliases = ["word", "Word", "usize", "uintptr", "word_size", "register_width"]
tactic_class = "bitvector"
semantic_class = "machine-word"
notes = "Width of a machine register; the natural index type for memory."
[[synonym]]
canonical = "octet"
aliases = ["byte", "u8", "uint8"]
tactic_class = "bitvector"
semantic_class = "octet"
notes = "Eight bits; the addressable unit of memory."
[[synonym]]
canonical = "nibble"
aliases = ["half_byte", "four_bits"]
tactic_class = "bitvector"
semantic_class = "octet"
notes = "Four bits; one hexadecimal digit."
[[synonym]]
canonical = "signed_interpretation"
aliases = ["toInt", "signed_value", "BitVec.toInt", "bvsdiv", "signed"]
tactic_class = "bitvector"
semantic_class = "signedness"
notes = "Read a bitvector as two's-complement signed integer."
[[synonym]]
canonical = "unsigned_interpretation"
aliases = ["toNat", "unsigned_value", "BitVec.toNat", "bvudiv", "unsigned"]
tactic_class = "bitvector"
semantic_class = "signedness"
notes = "Read a bitvector as a natural number."
[[synonym]]
canonical = "twos_complement"
aliases = ["two_complement", "twos_complement_neg", "BitVec.neg", "bvneg", "neg_bits"]
tactic_class = "bitvector"
semantic_class = "twos-complement"
notes = "Arithmetic negation as complement plus one."
[[synonym]]
canonical = "ones_complement"
aliases = ["ones_complement_neg", "bitwise_negation_complement"]
tactic_class = "bitvector"
semantic_class = "twos-complement"
notes = "Negation of every bit; equals minus one minus x."
[[synonym]]
canonical = "sign_bit"
aliases = ["msb", "most_significant_bit", "sign_position"]
tactic_class = "bitvector"
semantic_class = "bit-position"
notes = "The high bit under a signed interpretation."
[[synonym]]
canonical = "least_significant_bit"
aliases = ["lsb", "low_bit", "least_significant"]
tactic_class = "bitvector"
semantic_class = "bit-position"
notes = "The low bit; the unit of the two-adic valuation."
[[synonym]]
canonical = "carry_flag"
aliases = ["carry", "CF", "carry_out_flag"]
tactic_class = "bitvector"
semantic_class = "flags"
notes = "Out-of-width carry of an addition."
[[synonym]]
canonical = "overflow_flag"
aliases = ["overflow", "OF", "signed_overflow_flag"]
tactic_class = "bitvector"
semantic_class = "flags"
notes = "Signed overflow indicator; distinct from carry."
[[synonym]]
canonical = "add_with_carry"
aliases = ["adc", "carry_in", "addition_carry", "BitVec.adc"]
tactic_class = "bitvector"
semantic_class = "carry-arithmetic"
notes = "Addition consuming and producing a carry bit."
[[synonym]]
canonical = "sub_with_borrow"
aliases = ["sbb", "borrow_in", "subtraction_borrow", "BitVec.sbb"]
tactic_class = "bitvector"
semantic_class = "carry-arithmetic"
notes = "Subtraction consuming and producing a borrow bit."
[[synonym]]
canonical = "wrapping_add"
aliases = ["wrappingAdd", "wrapping-add", "uadd_overflow", "add_wrapping", "Wrapping.add"]
tactic_class = "bitvector"
semantic_class = "wrapping-arithmetic"
notes = "Addition modulo 2^w; the default in release-mode Rust and in Zig's +%."
[[synonym]]
canonical = "wrapping_sub"
aliases = ["wrappingSub", "wrapping-sub", "Wrapping.sub", "sub_wrapping"]
tactic_class = "bitvector"
semantic_class = "wrapping-arithmetic"
notes = "Subtraction modulo 2^w."
[[synonym]]
canonical = "wrapping_mul"
aliases = ["wrappingMul", "wrapping-mul", "Wrapping.mul", "mul_wrapping"]
tactic_class = "bitvector"
semantic_class = "wrapping-arithmetic"
notes = "Multiplication modulo 2^w."
[[synonym]]
canonical = "wrapping_neg"
aliases = ["wrappingNeg", "wrapping-neg", "Wrapping.neg", "neg_wrapping", "twos_complement_wrap"]
tactic_class = "bitvector"
semantic_class = "wrapping-arithmetic"
notes = "Negation modulo 2^w; the minimum signed value is its own negation."
[[synonym]]
canonical = "checked_add"
aliases = ["checkedAdd", "checked-add", "Option.checked_add", "overflow_checked"]
tactic_class = "bitvector"
semantic_class = "checked-arithmetic"
notes = "Addition returning none/None on overflow instead of wrapping or trapping."
[[synonym]]
canonical = "checked_sub"
aliases = ["checkedSub", "checked-sub", "overflow_checked_sub"]
tactic_class = "bitvector"
semantic_class = "checked-arithmetic"
notes = "Subtraction returning none/None on underflow."
[[synonym]]
canonical = "checked_mul"
aliases = ["checkedMul", "checked-mul", "overflow_checked_mul"]
tactic_class = "bitvector"
semantic_class = "checked-arithmetic"
notes = "Multiplication returning none/None on overflow."
[[synonym]]
canonical = "checked_div"
aliases = ["checkedDiv", "checked-div", "checked_division", "division_checked"]
tactic_class = "bitvector"
semantic_class = "checked-arithmetic"
notes = "Division that reports division-by-zero and signed overflow separately."
[[synonym]]
canonical = "overflowing_add"
aliases = ["overflowingAdd", "overflowing-add", "add_overflow", "carry_report"]
tactic_class = "bitvector"
semantic_class = "overflow-arithmetic"
notes = "Addition returning the wrapped result together with an overflow flag."
[[synonym]]
canonical = "overflowing_sub"
aliases = ["overflowingSub", "overflowing-sub", "sub_overflow", "borrow_report"]
tactic_class = "bitvector"
semantic_class = "overflow-arithmetic"
notes = "Subtraction returning the wrapped result with an underflow flag."
[[synonym]]
canonical = "saturating_add"
aliases = ["saturatingAdd", "saturating-add", "sat_add", "clamp_add"]
tactic_class = "bitvector"
semantic_class = "saturating-arithmetic"
notes = "Addition clamped to the type bounds; used in signal and audio code."
[[synonym]]
canonical = "saturating_sub"
aliases = ["saturatingSub", "saturating-sub", "sat_sub", "clamp_sub"]
tactic_class = "bitvector"
semantic_class = "saturating-arithmetic"
notes = "Subtraction clamped at the minimum value."
[[synonym]]
canonical = "saturating_mul"
aliases = ["saturatingMul", "saturating-mul", "sat_mul", "clamp_mul"]
tactic_class = "bitvector"
semantic_class = "saturating-arithmetic"
notes = "Multiplication clamped to the type bounds."
[[synonym]]
canonical = "saturating_cast"
aliases = ["saturatingCast", "saturating-cast", "clamp_cast", "saturate"]
tactic_class = "bitvector"
semantic_class = "saturating-arithmetic"
notes = "Narrowing cast that clamps rather than wraps."
[[synonym]]
canonical = "division_by_zero"
aliases = ["div_by_zero", "division_zero", "divide_by_zero_trap"]
tactic_class = "bitvector"
semantic_class = "arithmetic-fault"
notes = "A partial operation: every total specification must exclude it."
[[synonym]]
canonical = "remainder"
aliases = ["rem", "modulo_remainder", "BitVec.umod", "bvsrem", "signed_remainder"]
tactic_class = "bitvector"
semantic_class = "division"
notes = "Remainder with the sign following the dividend in the signed case."
[[synonym]]
canonical = "modulo_operation"
aliases = ["mod", "BitVec.umod", "umod", "mod_op"]
tactic_class = "bitvector"
semantic_class = "division"
notes = "Natural-number modulus; total because the divisor is usually refined to be non-zero."
[[synonym]]
canonical = "euclidean_division"
aliases = ["ediv", "euclidean_div", "div_mod_euclidean"]
tactic_class = "bitvector"
semantic_class = "division"
notes = "Division with a non-negative remainder; total on all integers."
[[synonym]]
canonical = "truncating_division"
aliases = ["quot", "tdiv", "trunc_div", "Int.tdiv", "truncated"]
tactic_class = "bitvector"
semantic_class = "division"
notes = "Division rounding toward zero; C and Rust integer division."
[[synonym]]
canonical = "floor_division"
aliases = ["fdiv", "floor_div", "Int.fdiv"]
tactic_class = "bitvector"
semantic_class = "division"
notes = "Division rounding toward negative infinity; used in dependent indexing."
[[synonym]]
canonical = "arithmetic_overflow"
aliases = ["overflow", "integer_overflow", "overflow_trap"]
tactic_class = "bitvector"
semantic_class = "arithmetic-fault"
notes = "A violation of the representable range; panic in debug Rust, UB in C."
[[synonym]]
canonical = "integer_underflow"
aliases = ["underflow", "negative_overflow", "borrow"]
tactic_class = "bitvector"
semantic_class = "arithmetic-fault"
notes = "Result below the type minimum."
[[synonym]]
canonical = "integer_promotion"
aliases = ["promote", "promotion", "widen_operand", "usual_arithmetic_conversions"]
tactic_class = "bitvector"
semantic_class = "coercion"
notes = "Implicit widening before an operation; a classic source of C surprises."
[[synonym]]
canonical = "integer_coercion"
aliases = ["coerce", "coercion", "as_cast", "numeral_literal_cast"]
tactic_class = "bitvector"
semantic_class = "coercion"
notes = "Explicit or implicit conversion between integer types."
[[synonym]]
canonical = "widening_cast"
aliases = ["widening", "widen_cast", "upcast", "lossless_cast"]
tactic_class = "bitvector"
semantic_class = "coercion"
notes = "Cast to a strictly wider type; value preserving."
[[synonym]]
canonical = "narrowing_cast"
aliases = ["narrowing", "narrow_cast", "downcast", "lossy_cast"]
tactic_class = "bitvector"
semantic_class = "coercion"
notes = "Cast to a strictly narrower type; truncates unless checked."
[[synonym]]
canonical = "value_preserving_cast"
aliases = ["cast_value_preserving", "identity_cast", "representable_cast"]
tactic_class = "bitvector"
semantic_class = "coercion"
notes = "A cast whose result denotes the same integer; the obligation behind `try_into`."
[[synonym]]
canonical = "bit_cast"
aliases = ["bitcast", "reinterpret_bits", "transmute_bits", "to_bits", "from_bits"]
tactic_class = "bitvector"
semantic_class = "reinterpretation"
notes = "Reinterpret the same bytes as another type; no conversion is performed."
[[synonym]]
canonical = "pointer_cast"
aliases = ["ptr_cast", "cast_pointer", "pointer_to_integer", "integer_to_pointer"]
tactic_class = "bitvector"
semantic_class = "reinterpretation"
notes = "Address-space reinterpretation; the boundary of provenance reasoning."
[[synonym]]
canonical = "float_to_int_cast"
aliases = ["float_to_int", "f2i", "float_truncation", "NaN_to_int"]
tactic_class = "bitvector"
semantic_class = "coercion"
notes = "Partial: undefined or saturating at NaN and out-of-range values depending on the language."
[[synonym]]
canonical = "int_to_float_cast"
aliases = ["int_to_float", "i2f", "rounding_conversion"]
tactic_class = "bitvector"
semantic_class = "coercion"
notes = "May round; not injective beyond the mantissa width."
[[synonym]]
canonical = "ieee754"
aliases = ["IEEE754", "ieee_754", "binary32", "binary64", "float_format"]
tactic_class = "bitvector"
semantic_class = "floating-point"
notes = "The bit-level contract behind every float reasoning obligation."
[[synonym]]
canonical = "floating_point_bits"
aliases = ["fp_bits", "float_width", "significand", "exponent_field", "mantissa"]
tactic_class = "bitvector"
semantic_class = "floating-point"
notes = "Field decomposition of a float bit pattern."
[[synonym]]
canonical = "signed_zero"
aliases = ["negative_zero", "minus_zero", "pos_zero"]
tactic_class = "bitvector"
semantic_class = "floating-point"
notes = "IEEE 754 distinguishes +0 and -0 while comparing them equal."
[[synonym]]
canonical = "not_a_number"
aliases = ["NaN", "nan", "qNaN", "sNaN"]
tactic_class = "bitvector"
semantic_class = "floating-point"
notes = "Propagating and signalling NaN; equality is not reflexive on it."
[[synonym]]
canonical = "denormal"
aliases = ["subnormal", "denormalized", "gradual_underflow"]
tactic_class = "bitvector"
semantic_class = "floating-point"
notes = "Values below the smallest normal magnitude."
[[synonym]]
canonical = "rounding_mode"
aliases = ["rounding", "round_to_nearest", "round_toward_zero", "round_up", "round_down", "RN", "RZ"]
tactic_class = "bitvector"
semantic_class = "floating-point"
notes = "IEEE 754 rounding attributes; a proof obligation whenever float and int are mixed."
[[synonym]]
canonical = "arbitrary_precision_integer"
aliases = ["bignum", "big_integer", "Int", "Nat", "Z", "unbounded_integer"]
tactic_class = "bitvector"
semantic_class = "numeric-type"
notes = "Mathematical integers with no width; Coq Z, Lean Int, Python int."
[[synonym]]
canonical = "fixed_width_integer"
aliases = ["machine_integer", "i32", "u64", "bounded_integer", "fixed_int"]
tactic_class = "bitvector"
semantic_class = "numeric-type"
notes = "A type whose range is a refinement of the mathematical integers."
[[synonym]]
canonical = "modular_arithmetic"
aliases = ["mod_ring", "ZMod", "Int.ModEq", "congruent_mod"]
tactic_class = "bitvector"
semantic_class = "numeric-type"
notes = "Arithmetic in Z/nZ; the semantic model of wrapping bitvector arithmetic."
[[synonym]]
canonical = "modular_congruence"
aliases = ["ModEq", "congruence", "mod_equiv", "triple_equals"]
tactic_class = "bitvector"
semantic_class = "numeric-type"
notes = "a = b (mod n); Lean's Int.ModEq, Coq's Z.modulo congruence lemmas."
[[synonym]]
canonical = "residue_class"
aliases = ["residue", "ZMod.class", "quotient_class"]
tactic_class = "bitvector"
semantic_class = "numeric-type"
notes = "Equivalence class of an integer modulo n."
[[synonym]]
canonical = "quotient_remainder"
aliases = ["div_mod", "divMod", "divmod", "quotient_and_remainder"]
tactic_class = "bitvector"
semantic_class = "division"
notes = "The pair returned by Euclidean division; the basis of reflection proofs."
[[synonym]]
canonical = "exponentiation_by_squaring"
aliases = ["pow", "fast_pow", "square_and_multiply", "binary_exponentiation"]
tactic_class = "bitvector"
semantic_class = "algorithm"
notes = "Logarithmic exponentiation; a standard termination-and-correctness exercise."
[[synonym]]
canonical = "modular_inverse"
aliases = ["mod_inverse", "inverse_mod", "Fermat_inverse"]
tactic_class = "bitvector"
semantic_class = "algorithm"
notes = "Requires coprimality; the usual totalisation adds a precondition."
# ============================================================
# Memory layout, ABI and byte order
# ============================================================
[[synonym]]
canonical = "alignment"
aliases = ["align", "aligned", "alignment_requirement", "alignof"]
tactic_class = "memory"
semantic_class = "alignment"
notes = "An address must be a multiple of the type's alignment; the invariant behind every pointer cast."
[[synonym]]
canonical = "alignment_power_of_two"
aliases = ["alignment_is_power_of_two", "align_pow2", "power_of_two_alignment", "aligned"]
tactic_class = "memory"
semantic_class = "alignment"
notes = "Rust and Zig both guarantee alignments are powers of two, which makes align-up a mask operation."
[[synonym]]
canonical = "align_up"
aliases = ["alignUp", "align-up", "round_up_alignment", "align_to"]
tactic_class = "memory"
semantic_class = "alignment"
notes = "Smallest aligned address at or above a given address."
[[synonym]]
canonical = "align_down"
aliases = ["alignDown", "align-down", "round_down_alignment", "truncate_alignment"]
tactic_class = "memory"
semantic_class = "alignment"
notes = "Largest aligned address at or below a given address."
[[synonym]]
canonical = "is_aligned"
aliases = ["isAligned", "misaligned_test", "aligned_check", "divides_address"]
tactic_class = "memory"
semantic_class = "alignment"
notes = "The test that guards an unaligned-access precondition."
[[synonym]]
canonical = "natural_alignment"
aliases = ["natural_align", "preferred_alignment", "default_alignment"]
tactic_class = "memory"
semantic_class = "alignment"
notes = "Alignment a type gets when nothing overrides it."
[[synonym]]
canonical = "over_aligned"
aliases = ["overalign", "repr_align", "align_128", "cache_line_align"]
tactic_class = "memory"
semantic_class = "alignment"
notes = "Explicitly raised alignment; must still be a power of two."
[[synonym]]
canonical = "struct_padding"
aliases = ["padding", "bytes_between_fields", "interior_padding"]
tactic_class = "memory"
semantic_class = "padding"
notes = "Bytes inserted to satisfy field alignment; not part of any field's value."
[[synonym]]
canonical = "trailing_padding"
aliases = ["tail_padding", "end_padding", "padding_at_end"]
tactic_class = "memory"
semantic_class = "padding"
notes = "Padding after the last field, determined by the struct's alignment."
[[synonym]]
canonical = "padding_bytes_are_uninitialised"
aliases = ["padding_uninit", "uninit_padding", "padding_indeterminate"]
tactic_class = "memory"
semantic_class = "padding"
notes = "Reading padding is undefined; it also breaks byte-wise equality proofs."
[[synonym]]
canonical = "field_offset"
aliases = ["offset", "byte_offset", "offsetof"]
tactic_class = "memory"
semantic_class = "layout"
notes = "Byte distance from the struct start to a field; C offsetof is the canonical form."
[[synonym]]
canonical = "size_of_type"
aliases = ["sizeOf", "size-of", "sizeof", "size_in_bytes", "byte_size"]
tactic_class = "memory"
semantic_class = "layout"
notes = "Allocation size of a value; total for sized types only."
[[synonym]]
canonical = "align_of_type"
aliases = ["alignOf", "align-of", "alignof_of", "alignment_of"]
tactic_class = "memory"
semantic_class = "layout"
notes = "Compile-time alignment of a type."
[[synonym]]
canonical = "size_of_slice"
aliases = ["slice_bytes", "len_times_size_of"]
tactic_class = "memory"
semantic_class = "layout"
notes = "A slice's byte size is a multiplication that may overflow; the classic totalisation bug."
[[synonym]]
canonical = "repr_c"
aliases = ["reprC", "repr-c", "c_layout", "#[repr(C)]", "stable_layout"]
tactic_class = "memory"
semantic_class = "layout"
notes = "Opt-out of layout randomness; required at every FFI boundary."
[[synonym]]
canonical = "repr_transparent"
aliases = ["reprTransparent", "repr-transparent", "newtype_layout"]
tactic_class = "memory"
semantic_class = "layout"
notes = "Guarantees a one-field struct has the field's layout."
[[synonym]]
canonical = "repr_packed"
aliases = ["reprPacked", "repr-packed", "packed_struct", "unaligned_fields"]
tactic_class = "memory"
semantic_class = "layout"
notes = "Removes padding, making field references potentially unaligned."
[[synonym]]
canonical = "niche_optimization"
aliases = ["niche", "niche_opt", "Option_layout", "null_pointer_optimization"]
tactic_class = "memory"
semantic_class = "layout"
notes = "Uses an invalid bit pattern to encode an enum tag for free."
[[synonym]]
canonical = "discriminant"
aliases = ["tag", "enum_tag", "variant_index"]
tactic_class = "memory"
semantic_class = "layout"
notes = "The integer that selects an enum case; part of the layout contract."
[[synonym]]
canonical = "tagged_union"
aliases = ["taggedUnion", "sum_type", "variant_union", "discriminated_union"]
tactic_class = "memory"
semantic_class = "layout"
notes = "A discriminant together with a union payload."
[[synonym]]
canonical = "enum_layout"
aliases = ["repr_enum", "discriminant_size"]
tactic_class = "memory"
semantic_class = "layout"
notes = "Tag plus payload layout rules."
[[synonym]]
canonical = "union_layout"
aliases = ["overlapping_fields", "reinterpret_union"]
tactic_class = "memory"
semantic_class = "layout"
notes = "Fields share storage; only one is live at a time."
[[synonym]]
canonical = "zero_sized_type"
aliases = ["ZST", "zero_sized", "unit_type", "empty_struct"]
tactic_class = "memory"
semantic_class = "layout"
notes = "A type with size zero; alignment may still be non-trivial."
[[synonym]]
canonical = "layout_compatibility"
aliases = ["layout_compatible", "abi_compatible", "same_layout"]
tactic_class = "memory"
semantic_class = "layout"
notes = "Two types agree on size, alignment and field offsets."
[[synonym]]
canonical = "abi_stability"
aliases = ["abi_stable", "stable_abi", "abi_contract"]
tactic_class = "memory"
semantic_class = "abi"
notes = "The promise that a layout will not change across versions."
[[synonym]]
canonical = "foreign_function_interface"
aliases = ["FFI", "foreign_interface", "extern_c", "ffi_boundary"]
tactic_class = "memory"
semantic_class = "abi"
notes = "The boundary where layout and calling-convention assumptions are load bearing."
[[synonym]]
canonical = "calling_convention"
aliases = ["callingConvention", "calling-convention", "callconv", "extern_abi", "sysv_abi"]
tactic_class = "memory"
semantic_class = "abi"
notes = "Who saves which register, and in what order arguments travel."
[[synonym]]
canonical = "c_abi"
aliases = ["cAbi", "c-abi", "extern_C", "ccc"]
tactic_class = "memory"
semantic_class = "abi"
notes = "The platform C calling convention; Zig's .C, Rust's extern \"C\"."
[[synonym]]
canonical = "stack_frame"
aliases = ["frame", "activation_record"]
tactic_class = "memory"
semantic_class = "abi"
notes = "Per-call storage; its layout is part of the ABI, not the language."
[[synonym]]
canonical = "stack_pointer"
aliases = ["sp", "esp", "rsp"]
tactic_class = "memory"
semantic_class = "abi"
notes = "The register that delimits the live stack region."
[[synonym]]
canonical = "frame_pointer"
aliases = ["fp", "ebp", "rbp"]
tactic_class = "memory"
semantic_class = "abi"
notes = "Optional anchor for unwinding and debugger frame walks."
[[synonym]]
canonical = "return_address"
aliases = ["ret_addr", "caller_pc"]
tactic_class = "memory"
semantic_class = "abi"
notes = "Where control resumes; its integrity is a security property."
[[synonym]]
canonical = "heap_allocation"
aliases = ["allocate", "malloc", "new", "heap_alloc"]
tactic_class = "memory"
semantic_class = "allocation"
notes = "A request for storage with a lifetime not tied to a frame."
[[synonym]]
canonical = "stack_allocation"
aliases = ["stack_alloc", "alloca", "local_storage"]
tactic_class = "memory"
semantic_class = "allocation"
notes = "Storage released automatically when the frame exits."
[[synonym]]
canonical = "static_allocation"
aliases = ["static_alloc", "global_storage", "static_lifetime"]
tactic_class = "memory"
semantic_class = "allocation"
notes = "Storage valid for the whole program run."
[[synonym]]
canonical = "allocation_size"
aliases = ["alloc_size", "layout_size", "capacity"]
tactic_class = "memory"
semantic_class = "allocation"
notes = "The number of bytes requested; must be paired with a matching deallocation."
[[synonym]]
canonical = "allocation_ownership"
aliases = ["alloc_owner", "allocation_owner", "owns_allocation"]
tactic_class = "memory"
semantic_class = "allocation"
notes = "Which function is responsible for freeing the block."
[[synonym]]
canonical = "deallocation"
aliases = ["free", "dealloc", "release", "drop_heap"]
tactic_class = "memory"
semantic_class = "allocation"
notes = "Returns a block to the allocator; must happen exactly once."
[[synonym]]
canonical = "double_free"
aliases = ["doubleFree", "double-free", "use_after_free_variant"]
tactic_class = "memory"
semantic_class = "memory-safety"
notes = "Two deallocations of one block; a classic soundness counterexample."
[[synonym]]
canonical = "use_after_free"
aliases = ["useAfterFree", "use-after-free", "dangling_heap_access"]
tactic_class = "memory"
semantic_class = "memory-safety"
notes = "Access to a block that has been deallocated; excluded by ownership typing."
[[synonym]]
canonical = "dangling_pointer"
aliases = ["dangling_ref"]
tactic_class = "memory"
semantic_class = "memory-safety"
notes = "A pointer whose referent is no longer live."
[[synonym]]
canonical = "null_pointer"
aliases = ["null", "nullPtr", "nullptr", "NULL"]
tactic_class = "memory"
semantic_class = "pointer"
notes = "The distinguished non-address value."
[[synonym]]
canonical = "non_null_pointer"
aliases = ["nonNull", "NonNull", "non_null", "not_null"]
tactic_class = "memory"
semantic_class = "pointer"
notes = "A pointer refined to exclude null; the premise of safe dereference."
[[synonym]]
canonical = "null_non_aliasing"
aliases = ["nullNonAliasing", "null_excludes_alias", "nonnull_disjoint"]
tactic_class = "memory"
semantic_class = "pointer"
notes = "Null pointers never alias a live object, which lets region reasoning ignore them."
[[synonym]]
canonical = "pointer_provenance"
aliases = ["provenance", "alloc_id", "strict_provenance"]
tactic_class = "memory"
semantic_class = "pointer"
notes = "The allocation a pointer derives from; integer round-trips may lose it."
[[synonym]]
canonical = "strict_provenance"
aliases = ["strictProvenance", "with_addr", "expose_addr", "provenance_api"]
tactic_class = "memory"
semantic_class = "pointer"
notes = "Rust's explicit provenance API: expose, then with_addr."
[[synonym]]
canonical = "address_space"
aliases = ["virtual_memory_space", "flat_address_space"]
tactic_class = "memory"
semantic_class = "memory"
notes = "The set of addresses a program may name."
[[synonym]]
canonical = "virtual_address"
aliases = ["vaddr", "logical_address"]
tactic_class = "memory"
semantic_class = "memory"
notes = "Address before translation by the memory-management unit."
[[synonym]]
canonical = "physical_address"
aliases = ["paddr", "real_address"]
tactic_class = "memory"
semantic_class = "memory"
notes = "Address after translation."
[[synonym]]
canonical = "page"
aliases = ["frame_size", "page_size"]
tactic_class = "memory"
semantic_class = "memory"
notes = "The granularity of memory mapping and protection."
[[synonym]]
canonical = "page_table"