• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Bitcoin
      • Riscv
      • Des
      • Ethereum
      • X86isa
        • Program-execution
        • Sdm-instruction-set-summary
        • Tlb
          • Tlb-key
          • Tlbp
            • Tlb-entryp
          • Running-linux
          • Introduction
          • Asmtest
          • X86isa-build-instructions
          • Publications
          • Contributors
          • Machine
          • Implemented-opcodes
          • To-do
          • Proof-utilities
          • Peripherals
          • Model-validation
          • Modelcalls
          • Concrete-simulation-examples
          • Utils
          • Debugging-code-proofs
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Bigmems
        • Builtins
        • Execloader
        • Aleo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Tlb

    Tlbp

    Recongizer for the tlb field of the x86 state.

    Signature
    (tlbp tlb) → *

    tlbp recongizes a list where all the entries are tlb-entryp and the final cdr is :tlb, which serves as the name when the tlbp is a ACL2::fast-alist. This is the type of the tlb field on the x86 stobj.

    Definitions and Theorems

    Function: tlbp

    (defun tlbp (tlb)
      (declare (xargs :guard t))
      (let ((__function__ 'tlbp))
        (declare (ignorable __function__))
        (b* (((unless (consp tlb)) (equal tlb :tlb))
             ((list* el tail) tlb)
             ((unless (tlb-entryp el)) nil))
          (tlbp tail))))

    Theorem: :tlb-is-tlbp

    (defthm |:tlb-is-tlbp| (tlbp :tlb))

    Theorem: consing-tlb-entry-onto-tlbp-is-tlbp

    (defthm consing-tlb-entry-onto-tlbp-is-tlbp
      (implies (and (tlb-entryp entry) (tlbp tlb))
               (tlbp (cons entry tlb))))

    Theorem: integerp-cdr-hons-assoc-equal-tlb

    (defthm integerp-cdr-hons-assoc-equal-tlb
      (implies (tlbp tlb)
               (b* ((result (hons-assoc-equal key tlb)))
                 (implies result (integerp (cdr result))))))

    Theorem: unsigned-byte-p-40-cdr-hons-assoc-equal-tlb

    (defthm unsigned-byte-p-40-cdr-hons-assoc-equal-tlb
      (implies (tlbp tlb)
               (b* ((result (hons-assoc-equal key tlb)))
                 (implies result
                          (unsigned-byte-p (- 52 12)
                                           (cdr result))))))