• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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
        • Soft
        • C
          • Syntax-for-tools
          • Atc
          • Language
            • Abstract-syntax
            • Integer-ranges
            • Implementation-environments
            • Dynamic-semantics
            • Static-semantics
            • Grammar
            • Integer-formats
            • Types
            • Portable-ascii-identifiers
            • Values
            • Integer-operations
            • Computation-states
            • Object-designators
            • Operations
            • Errors
            • Tag-environments
            • Function-environments
            • Character-sets
            • Flexible-array-member-removal
            • Arithmetic-operations
            • Pointer-operations
            • Bytes
              • Byte
              • Char-bit
                • Char-bit-constrp
              • Keywords
              • Real-operations
              • Array-operations
              • Scalar-operations
              • Structure-operations
            • Representation
            • Transformation-tools
            • Insertion-sort
            • Pack
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Bytes

    Char-bit

    Parameter for the specific value of CHAR_BIT.

    This constrained nullary function is a parameter of our C formalization. It expresses the value of CHAR_BIT.

    Definition: char-bit

    (encapsulate (((char-bit) => *))
      (acl2::record-expansion (local (define char-bit nil 8))
                              (local (value-triple :elided)))
      (defrule char-bit-constrp-of-char-bit
        (char-bit-constrp (char-bit))))

    Definitions and Theorems

    Theorem: char-bit-constrp-of-char-bit

    (defthm char-bit-constrp-of-char-bit
      (char-bit-constrp (char-bit)))

    Theorem: posp-of-char-bit

    (defthm posp-of-char-bit
      (posp (char-bit))
      :rule-classes :type-prescription)

    Theorem: char-bit-gteq-8

    (defthm char-bit-gteq-8
      (>= (char-bit) 8)
      :rule-classes :linear)