bend-collections-laws-math
Releases (1)
-
1.0.0.0 indexed
Definitions (5,526)
proofs/lib/lemmas/proofs/native_map.bend
- law difference_common_character
- law difference_empty_presence
- def lookup_map
- law lookup_leaf_preserves
- law lookup_lo_projection
- law lookup_hi_projection
- law lookup_branch_preserves
- law lookup_preserves_map
- law natural_add_associative
- law natural_add_right_zero
- law keys_accumulator_size
- law keys_size
- law entries_accumulator_size
- law entries_size
proofs/lib/lemmas/proofs/natural_division.bend
- def periodComplete one period of the existing Base countdown division.
- def stride
- def small
- def decompositionEuclidean decomposition is recognized by actual Base Nat.divmod for every positive divisor and arbitrary quotient, from the mathematical remainder bound.
- def quotientQuotient and remainder projections used by the independent duration model.
- def remainder
proofs/lib/lemmas/proofs/natural_products.bend
- def interchangeElementary semiring equations proved over the existing Base Nat definitions.
- def shuffle
- def distribute
- def double_sum
- def double_product
- def multiply_double
- def scale_sum
- def scale_product
proofs/lib/lemmas/proofs/negation_magnitude.bend
- def carry_complementThe increment after complement overflows precisely for a zero input.
- def sign_nonzero
- def magnitudeNo overflow premise is assumed: nonzero input determines the actual carry.
- def twice
- def scale_power
proofs/lib/lemmas/proofs/numeric.bend
- law increment_maximum_wrapsArbitrary-width rollover law, not an enumerated 64-bit test.
- law zero_detected
- law zero_sign
- law divide_zero
- law immortal_duration
- law immortal_deadline
- law counter_rolloverChecked connection between the public wrapping counter operation and the arbitrary-width rollover theorem, independent of capacity or trace length.
- law split_join
- law pack_roundtrip
- def rejoin
- law rejoin_cons
- law join_split
- law comparison_low_zero_geNumeric specification defines sign by comparison with the high-bit threshold; executable code reads the last bit.
- law sign_threshold_correspondence
- law comparison_low_zero_eq
- law zero_comparison_correspondence
- law signed_order_branches
- law signed_order_refines
- law expiration_sentinel_branch
- law expiration_refines
- law double_add
- law primitive_word_interpretation
- law join_interpretation
- law pack_interpretation
proofs/lib/lemmas/proofs/string_compare.bend
- law boolean_compare_self
- law word_compare_self
- law character_compare_self
- law string_compare_self
- def comparison_identity
- law word_comparison_step
- law word_comparison_identity
- law comparison_lift
- def comparison_result_identity
- law character_comparison_identity
- law string_comparison_rec_identity
- law string_comparison_fin_identity
- law string_comparison_identity
- def comparison_tag
- law string_comparison_shape_step
- law string_comparison_shape
- law string_comparison_original_identity
- law string_equal_from_comparison
- law string_equal_comparison
- law natural_add_associativeFirst-difference base and common-prefix reduction laws for the existing
- law natural_add_right_zero
proofs/lib/lemmas/proofs/subtraction_bounds.bend
- def complementary_differenceIf both minuends contain b, rearrange their complementary differences.
- def predecessor
- def cancel_left
- def solveA bounded machine result and the actual carry conservation determine the subtraction result uniquely; no no-borrow premise is assumed.
- def exactExact interpretation of executed Base subtraction when a >= b.
- def primitive_bound
- def u32_exact
proofs/lib/lemmas/proofs/word_addition.bend
- def refinesActual Base ripple addition, at any width, with exact modulo interpretation.
- def u32_refinesPrimitive U32 decoding is connected to that same independent interpretation.
- def with_carry
proofs/lib/lemmas/proofs/word_bounds.bend
- law doubled_bound
- law unsigned_boundIndependent interpretation of every n-bit word lies in [0, 2^n).
proofs/lib/lemmas/proofs/word_comparison.bend
- def digitsBase compares high bits first.
- def refines
- def u32_refines
- def u32_ge
- def u32_lt
proofs/lib/lemmas/proofs/word_multiplication.bend
- def excessOverflow is calculated from input bits and the existing primitive carries.
- def restore_shift
- def swap_last
- def restore_addition
- def conservationInduction follows the actual multiplier's bit loop and restores every carry.