• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • 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
        • Proof-checker-array
        • Soft
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Ethereum
        • Leftist-trees
        • Java
        • Riscv
        • Taspi
        • Bitcoin
        • Zcash
        • Des
        • X86isa
        • Sha-2
        • Yul
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Axe
        • Poseidon
        • Where-do-i-place-my-book
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • 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)