• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • C
          • Syntax-for-tools
          • Atc
          • Transformation-tools
          • Language
            • Abstract-syntax
            • Integer-ranges
              • Def-integer-range
              • Integer-type-rangep
              • Ushort-integer
              • Ullong-integer
              • Sshort-integer
              • Sllong-integer
              • Ulong-integer
              • Uint-integer
              • Uchar-integer
              • Slong-integer
              • Sint-integer
              • Schar-integer
              • Ushort-max
              • Slong-max
              • Sllong-max
              • Integer-type-min
              • Integer-type-max
              • Uint-max
              • Sint-max
              • Ulong-max
              • Uchar-max
              • Def-integer-range-loop
                • Sshort-min
                • Sshort-max
                • Slong-min
                • Sint-min
                • Ullong-max
                • Sllong-min
                • Schar-min
                • Schar-max
                • Ushort-integer-list
                • Ulong-integer-list
                • Ullong-integer-list
                • Uint-integer-list
                • Uchar-integer-list
                • Sshort-integer-list
                • Slong-integer-list
                • Sllong-integer-list
                • Sint-integer-list
                • Schar-integer-list
                • Uchar-integerp-alt-def
                • Ushort-integerp-alt-def
                • Ulong-integerp-alt-def
                • Ullong-integerp-alt-def
                • Uint-integerp-alt-def
                • Sshort-integerp-alt-def
                • Slong-integerp-alt-def
                • Sllong-integerp-alt-def
                • Sint-integerp-alt-def
                • Schar-integerp-alt-def
              • Implementation-environments
              • Dynamic-semantics
              • Static-semantics
              • Grammar
              • Types
              • Integer-formats-definitions
              • Computation-states
              • Portable-ascii-identifiers
              • Values
              • Integer-operations
              • Object-designators
              • Operations
              • Errors
              • Tag-environments
              • Function-environments
              • Character-sets
              • Flexible-array-member-removal
              • Arithmetic-operations
              • Pointer-operations
              • Real-operations
              • Array-operations
              • Scalar-operations
              • Structure-operations
            • Representation
            • Insertion-sort
            • Pack
          • Soft
          • Bv
          • Imp-language
          • Ethereum
          • Event-macros
          • Java
          • Riscv
          • Bitcoin
          • Zcash
          • Yul
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Axe
          • Lists-light
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Integer-ranges

    Def-integer-range-loop

    Events to generate fixtypes, functions, and theorems for ranges of integer types.

    Signature
    (def-integer-range-loop types) → events
    Arguments
    types — Guard (type-listp types).
    Returns
    events — Type (pseudo-event-form-listp events).

    Definitions and Theorems

    Function: def-integer-range-loop

    (defun def-integer-range-loop (types)
      (declare (xargs :guard (type-listp types)))
      (declare (xargs :guard (type-nonchar-integer-listp types)))
      (cond ((endp types) nil)
            (t (cons (def-integer-range (car types))
                     (def-integer-range-loop (cdr types))))))

    Theorem: pseudo-event-form-listp-of-def-integer-range-loop

    (defthm pseudo-event-form-listp-of-def-integer-range-loop
      (b* ((events (def-integer-range-loop types)))
        (pseudo-event-form-listp events))
      :rule-classes :rewrite)

    Theorem: def-integer-range-loop-of-type-list-fix-types

    (defthm def-integer-range-loop-of-type-list-fix-types
      (equal (def-integer-range-loop (type-list-fix types))
             (def-integer-range-loop types)))

    Theorem: def-integer-range-loop-type-list-equiv-congruence-on-types

    (defthm def-integer-range-loop-type-list-equiv-congruence-on-types
      (implies (type-list-equiv types types-equiv)
               (equal (def-integer-range-loop types)
                      (def-integer-range-loop types-equiv)))
      :rule-classes :congruence)