• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vwsim
      • Vl
      • X86isa
        • Program-execution
        • Sdm-instruction-set-summary
        • Tlb
        • Running-linux
        • Introduction
        • Asmtest
        • X86isa-build-instructions
        • Publications
        • Contributors
        • Machine
          • X86isa-state
          • Syscalls
          • Cpuid
          • Linear-memory
            • Reasoning-about-memory-reads-and-writes
            • Wml256
            • Rml256
            • Wml512
              • Rml512
              • Rml128
              • Rml80
              • Program-location
              • Rml64
              • Wml128
              • Rml48
              • Rml32
              • Rml08
              • Rml16
              • Wml80
              • Wml64
              • Wml08
              • Byte-listp
              • Wml48
              • Parametric-memory-reads-and-writes
              • Combine-n-bytes
              • Wml32
              • Program-at
              • Wml16
              • Combine-bytes
              • Write-canonical-address-to-memory-user-exec
              • Write-canonical-address-to-memory
              • Riml64
              • Wml-size
              • Rml-size
              • Riml32
              • Riml16
              • Riml08
              • Wiml64
              • Wiml32
              • Wiml16
              • Wiml08
              • Wiml-size
              • Generate-xr-over-write-thms
              • Generate-write-fn-over-xw-thms
              • Generate-read-fn-over-xw-thms
              • Riml-size
            • Rflag-specifications
            • Characterizing-undefined-behavior
            • Top-level-memory
            • App-view
            • X86-decoder
            • Physical-memory
            • Decoding-and-spec-utils
            • Instructions
            • Register-readers-and-writers
            • X86-modes
            • Segmentation
            • Other-non-deterministic-computations
            • Environment
            • Paging
          • Implemented-opcodes
          • To-do
          • Proof-utilities
          • Peripherals
          • Model-validation
          • Modelcalls
          • Concrete-simulation-examples
          • Utils
          • Debugging-code-proofs
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Linear-memory

    Wml512

    Signature
    (wml512 lin-addr val x86) → (mv * x86)

    Definitions and Theorems

    Theorem: wb-and-wvm512

    (defthm wb-and-wvm512
      (implies (and (app-view x86)
                    (canonical-address-p lin-addr)
                    (canonical-address-p (+ 63 lin-addr)))
               (equal (wvm512 lin-addr val x86)
                      (wb 64 lin-addr :w val x86))))

    Function: wml512

    (defun wml512 (lin-addr val x86)
     (declare (xargs :stobjs (x86)))
     (declare (type (signed-byte 48) lin-addr)
              (type (unsigned-byte 512) val))
     (declare (xargs :split-types t
                     :guard (and (canonical-address-p lin-addr)
                                 (unsigned-byte-p 512 val))))
     (let ((__function__ 'wml512))
      (declare (ignorable __function__))
      (if
       (mbt (canonical-address-p lin-addr))
       (let*
           ((63+lin-addr (the (signed-byte 49)
                              (+ 63 (the (signed-byte 48) lin-addr)))))
         (if
          (mbe :logic (canonical-address-p 63+lin-addr)
               :exec (< (the (signed-byte 49) 63+lin-addr)
                        140737488355328))
          (if (app-view x86)
              (mbe :logic (wb 64 lin-addr :w val x86)
                   :exec (wvm512 lin-addr val x86))
            (b* (((mv flag (the (unsigned-byte 52) p-addr0)
                      x86)
                  (la-to-pa lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 49) 1+lin-addr)
                  (+ 1 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr1)
                      x86)
                  (la-to-pa 1+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 50) 2+lin-addr)
                  (+ 2 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr2)
                      x86)
                  (la-to-pa 2+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 51) 3+lin-addr)
                  (+ 3 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr3)
                      x86)
                  (la-to-pa 3+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 52) 4+lin-addr)
                  (+ 4 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr4)
                      x86)
                  (la-to-pa 4+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 53) 5+lin-addr)
                  (+ 5 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr5)
                      x86)
                  (la-to-pa 5+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 54) 6+lin-addr)
                  (+ 6 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr6)
                      x86)
                  (la-to-pa 6+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 55) 7+lin-addr)
                  (+ 7 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr7)
                      x86)
                  (la-to-pa 7+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 56) 8+lin-addr)
                  (+ 8 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr8)
                      x86)
                  (la-to-pa 8+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 57) 9+lin-addr)
                  (+ 9 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr9)
                      x86)
                  (la-to-pa 9+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 58) 10+lin-addr)
                  (+ 10 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr10)
                      x86)
                  (la-to-pa 10+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 59) 11+lin-addr)
                  (+ 11 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr11)
                      x86)
                  (la-to-pa 11+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 60) 12+lin-addr)
                  (+ 12 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr12)
                      x86)
                  (la-to-pa 12+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 61) 13+lin-addr)
                  (+ 13 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr13)
                      x86)
                  (la-to-pa 13+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 62) 14+lin-addr)
                  (+ 14 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr14)
                      x86)
                  (la-to-pa 14+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 63) 15+lin-addr)
                  (+ 15 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr15)
                      x86)
                  (la-to-pa 15+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 64) 16+lin-addr)
                  (+ 16 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr16)
                      x86)
                  (la-to-pa 16+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 65) 17+lin-addr)
                  (+ 17 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr17)
                      x86)
                  (la-to-pa 17+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 66) 18+lin-addr)
                  (+ 18 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr18)
                      x86)
                  (la-to-pa 18+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 67) 19+lin-addr)
                  (+ 19 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr19)
                      x86)
                  (la-to-pa 19+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 68) 20+lin-addr)
                  (+ 20 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr20)
                      x86)
                  (la-to-pa 20+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 69) 21+lin-addr)
                  (+ 21 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr21)
                      x86)
                  (la-to-pa 21+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 70) 22+lin-addr)
                  (+ 22 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr22)
                      x86)
                  (la-to-pa 22+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 71) 23+lin-addr)
                  (+ 23 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr23)
                      x86)
                  (la-to-pa 23+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 72) 24+lin-addr)
                  (+ 24 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr24)
                      x86)
                  (la-to-pa 24+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 73) 25+lin-addr)
                  (+ 25 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr25)
                      x86)
                  (la-to-pa 25+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 74) 26+lin-addr)
                  (+ 26 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr26)
                      x86)
                  (la-to-pa 26+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 75) 27+lin-addr)
                  (+ 27 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr27)
                      x86)
                  (la-to-pa 27+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 76) 28+lin-addr)
                  (+ 28 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr28)
                      x86)
                  (la-to-pa 28+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 77) 29+lin-addr)
                  (+ 29 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr29)
                      x86)
                  (la-to-pa 29+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 78) 30+lin-addr)
                  (+ 30 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr30)
                      x86)
                  (la-to-pa 30+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 79) 31+lin-addr)
                  (+ 31 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr31)
                      x86)
                  (la-to-pa 31+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 80) 32+lin-addr)
                  (+ 32 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr32)
                      x86)
                  (la-to-pa 32+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 81) 33+lin-addr)
                  (+ 33 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr33)
                      x86)
                  (la-to-pa 33+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 82) 34+lin-addr)
                  (+ 34 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr34)
                      x86)
                  (la-to-pa 34+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 83) 35+lin-addr)
                  (+ 35 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr35)
                      x86)
                  (la-to-pa 35+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 84) 36+lin-addr)
                  (+ 36 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr36)
                      x86)
                  (la-to-pa 36+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 85) 37+lin-addr)
                  (+ 37 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr37)
                      x86)
                  (la-to-pa 37+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 86) 38+lin-addr)
                  (+ 38 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr38)
                      x86)
                  (la-to-pa 38+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 87) 39+lin-addr)
                  (+ 39 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr39)
                      x86)
                  (la-to-pa 39+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 88) 40+lin-addr)
                  (+ 40 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr40)
                      x86)
                  (la-to-pa 40+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 89) 41+lin-addr)
                  (+ 41 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr41)
                      x86)
                  (la-to-pa 41+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 90) 42+lin-addr)
                  (+ 42 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr42)
                      x86)
                  (la-to-pa 42+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 91) 43+lin-addr)
                  (+ 43 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr43)
                      x86)
                  (la-to-pa 43+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 92) 44+lin-addr)
                  (+ 44 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr44)
                      x86)
                  (la-to-pa 44+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 93) 45+lin-addr)
                  (+ 45 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr45)
                      x86)
                  (la-to-pa 45+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 94) 46+lin-addr)
                  (+ 46 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr46)
                      x86)
                  (la-to-pa 46+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 95) 47+lin-addr)
                  (+ 47 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr47)
                      x86)
                  (la-to-pa 47+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 96) 48+lin-addr)
                  (+ 48 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr48)
                      x86)
                  (la-to-pa 48+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 97) 49+lin-addr)
                  (+ 49 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr49)
                      x86)
                  (la-to-pa 49+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 98) 50+lin-addr)
                  (+ 50 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr50)
                      x86)
                  (la-to-pa 50+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 99) 51+lin-addr)
                  (+ 51 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr51)
                      x86)
                  (la-to-pa 51+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 100) 52+lin-addr)
                  (+ 52 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr52)
                      x86)
                  (la-to-pa 52+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 101) 53+lin-addr)
                  (+ 53 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr53)
                      x86)
                  (la-to-pa 53+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 102) 54+lin-addr)
                  (+ 54 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr54)
                      x86)
                  (la-to-pa 54+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 103) 55+lin-addr)
                  (+ 55 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr55)
                      x86)
                  (la-to-pa 55+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 104) 56+lin-addr)
                  (+ 56 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr56)
                      x86)
                  (la-to-pa 56+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 105) 57+lin-addr)
                  (+ 57 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr57)
                      x86)
                  (la-to-pa 57+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 106) 58+lin-addr)
                  (+ 58 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr58)
                      x86)
                  (la-to-pa 58+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 107) 59+lin-addr)
                  (+ 59 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr59)
                      x86)
                  (la-to-pa 59+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 108) 60+lin-addr)
                  (+ 60 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr60)
                      x86)
                  (la-to-pa 60+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 109) 61+lin-addr)
                  (+ 61 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr61)
                      x86)
                  (la-to-pa 61+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 110) 62+lin-addr)
                  (+ 62 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr62)
                      x86)
                  (la-to-pa 62+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 ((the (signed-byte 111) 63+lin-addr)
                  (+ 63 lin-addr))
                 ((mv flag (the (unsigned-byte 52) p-addr63)
                      x86)
                  (la-to-pa 63+lin-addr :w x86))
                 ((when flag) (mv flag x86))
                 (byte0 (mbe :logic (part-select val :low 0 :width 8)
                             :exec (the (unsigned-byte 8)
                                        (logand 255 val))))
                 (byte1 (mbe :logic (part-select val :low 8 :width 8)
                             :exec (the (unsigned-byte 8)
                                        (logand 255 (ash val -8)))))
                 (byte2 (mbe :logic (part-select val :low 16 :width 8)
                             :exec (the (unsigned-byte 8)
                                        (logand 255 (ash val -16)))))
                 (byte3 (mbe :logic (part-select val :low 24 :width 8)
                             :exec (the (unsigned-byte 8)
                                        (logand 255 (ash val -24)))))
                 (byte4 (mbe :logic (part-select val :low 32 :width 8)
                             :exec (the (unsigned-byte 8)
                                        (logand 255 (ash val -32)))))
                 (byte5 (mbe :logic (part-select val :low 40 :width 8)
                             :exec (the (unsigned-byte 8)
                                        (logand 255 (ash val -40)))))
                 (byte6 (mbe :logic (part-select val :low 48 :width 8)
                             :exec (the (unsigned-byte 8)
                                        (logand 255 (ash val -48)))))
                 (byte7 (mbe :logic (part-select val :low 56 :width 8)
                             :exec (the (unsigned-byte 8)
                                        (logand 255 (ash val -56)))))
                 (byte8 (mbe :logic (part-select val :low 64 :width 8)
                             :exec (the (unsigned-byte 8)
                                        (logand 255 (ash val -64)))))
                 (byte9 (mbe :logic (part-select val :low 72 :width 8)
                             :exec (the (unsigned-byte 8)
                                        (logand 255 (ash val -72)))))
                 (byte10 (mbe :logic (part-select val :low 80 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -80)))))
                 (byte11 (mbe :logic (part-select val :low 88 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -88)))))
                 (byte12 (mbe :logic (part-select val :low 96 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -96)))))
                 (byte13 (mbe :logic (part-select val :low 104 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -104)))))
                 (byte14 (mbe :logic (part-select val :low 112 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -112)))))
                 (byte15 (mbe :logic (part-select val :low 120 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -120)))))
                 (byte16 (mbe :logic (part-select val :low 128 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -128)))))
                 (byte17 (mbe :logic (part-select val :low 136 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -136)))))
                 (byte18 (mbe :logic (part-select val :low 144 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -144)))))
                 (byte19 (mbe :logic (part-select val :low 152 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -152)))))
                 (byte20 (mbe :logic (part-select val :low 160 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -160)))))
                 (byte21 (mbe :logic (part-select val :low 168 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -168)))))
                 (byte22 (mbe :logic (part-select val :low 176 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -176)))))
                 (byte23 (mbe :logic (part-select val :low 184 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -184)))))
                 (byte24 (mbe :logic (part-select val :low 192 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -192)))))
                 (byte25 (mbe :logic (part-select val :low 200 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -200)))))
                 (byte26 (mbe :logic (part-select val :low 208 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -208)))))
                 (byte27 (mbe :logic (part-select val :low 216 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -216)))))
                 (byte28 (mbe :logic (part-select val :low 224 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -224)))))
                 (byte29 (mbe :logic (part-select val :low 232 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -232)))))
                 (byte30 (mbe :logic (part-select val :low 240 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -240)))))
                 (byte31 (mbe :logic (part-select val :low 248 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -248)))))
                 (byte32 (mbe :logic (part-select val :low 256 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -256)))))
                 (byte33 (mbe :logic (part-select val :low 264 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -264)))))
                 (byte34 (mbe :logic (part-select val :low 272 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -272)))))
                 (byte35 (mbe :logic (part-select val :low 280 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -280)))))
                 (byte36 (mbe :logic (part-select val :low 288 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -288)))))
                 (byte37 (mbe :logic (part-select val :low 296 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -296)))))
                 (byte38 (mbe :logic (part-select val :low 304 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -304)))))
                 (byte39 (mbe :logic (part-select val :low 312 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -312)))))
                 (byte40 (mbe :logic (part-select val :low 320 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -320)))))
                 (byte41 (mbe :logic (part-select val :low 328 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -328)))))
                 (byte42 (mbe :logic (part-select val :low 336 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -336)))))
                 (byte43 (mbe :logic (part-select val :low 344 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -344)))))
                 (byte44 (mbe :logic (part-select val :low 352 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -352)))))
                 (byte45 (mbe :logic (part-select val :low 360 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -360)))))
                 (byte46 (mbe :logic (part-select val :low 368 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -368)))))
                 (byte47 (mbe :logic (part-select val :low 376 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -376)))))
                 (byte48 (mbe :logic (part-select val :low 384 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -384)))))
                 (byte49 (mbe :logic (part-select val :low 392 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -392)))))
                 (byte50 (mbe :logic (part-select val :low 400 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -400)))))
                 (byte51 (mbe :logic (part-select val :low 408 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -408)))))
                 (byte52 (mbe :logic (part-select val :low 416 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -416)))))
                 (byte53 (mbe :logic (part-select val :low 424 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -424)))))
                 (byte54 (mbe :logic (part-select val :low 432 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -432)))))
                 (byte55 (mbe :logic (part-select val :low 440 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -440)))))
                 (byte56 (mbe :logic (part-select val :low 448 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -448)))))
                 (byte57 (mbe :logic (part-select val :low 456 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -456)))))
                 (byte58 (mbe :logic (part-select val :low 464 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -464)))))
                 (byte59 (mbe :logic (part-select val :low 472 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -472)))))
                 (byte60 (mbe :logic (part-select val :low 480 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -480)))))
                 (byte61 (mbe :logic (part-select val :low 488 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -488)))))
                 (byte62 (mbe :logic (part-select val :low 496 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -496)))))
                 (byte63 (mbe :logic (part-select val :low 504 :width 8)
                              :exec (the (unsigned-byte 8)
                                         (logand 255 (ash val -504)))))
                 (x86 (!memi p-addr0 byte0 x86))
                 (x86 (!memi p-addr1 byte1 x86))
                 (x86 (!memi p-addr2 byte2 x86))
                 (x86 (!memi p-addr3 byte3 x86))
                 (x86 (!memi p-addr4 byte4 x86))
                 (x86 (!memi p-addr5 byte5 x86))
                 (x86 (!memi p-addr6 byte6 x86))
                 (x86 (!memi p-addr7 byte7 x86))
                 (x86 (!memi p-addr8 byte8 x86))
                 (x86 (!memi p-addr9 byte9 x86))
                 (x86 (!memi p-addr10 byte10 x86))
                 (x86 (!memi p-addr11 byte11 x86))
                 (x86 (!memi p-addr12 byte12 x86))
                 (x86 (!memi p-addr13 byte13 x86))
                 (x86 (!memi p-addr14 byte14 x86))
                 (x86 (!memi p-addr15 byte15 x86))
                 (x86 (!memi p-addr16 byte16 x86))
                 (x86 (!memi p-addr17 byte17 x86))
                 (x86 (!memi p-addr18 byte18 x86))
                 (x86 (!memi p-addr19 byte19 x86))
                 (x86 (!memi p-addr20 byte20 x86))
                 (x86 (!memi p-addr21 byte21 x86))
                 (x86 (!memi p-addr22 byte22 x86))
                 (x86 (!memi p-addr23 byte23 x86))
                 (x86 (!memi p-addr24 byte24 x86))
                 (x86 (!memi p-addr25 byte25 x86))
                 (x86 (!memi p-addr26 byte26 x86))
                 (x86 (!memi p-addr27 byte27 x86))
                 (x86 (!memi p-addr28 byte28 x86))
                 (x86 (!memi p-addr29 byte29 x86))
                 (x86 (!memi p-addr30 byte30 x86))
                 (x86 (!memi p-addr31 byte31 x86))
                 (x86 (!memi p-addr32 byte32 x86))
                 (x86 (!memi p-addr33 byte33 x86))
                 (x86 (!memi p-addr34 byte34 x86))
                 (x86 (!memi p-addr35 byte35 x86))
                 (x86 (!memi p-addr36 byte36 x86))
                 (x86 (!memi p-addr37 byte37 x86))
                 (x86 (!memi p-addr38 byte38 x86))
                 (x86 (!memi p-addr39 byte39 x86))
                 (x86 (!memi p-addr40 byte40 x86))
                 (x86 (!memi p-addr41 byte41 x86))
                 (x86 (!memi p-addr42 byte42 x86))
                 (x86 (!memi p-addr43 byte43 x86))
                 (x86 (!memi p-addr44 byte44 x86))
                 (x86 (!memi p-addr45 byte45 x86))
                 (x86 (!memi p-addr46 byte46 x86))
                 (x86 (!memi p-addr47 byte47 x86))
                 (x86 (!memi p-addr48 byte48 x86))
                 (x86 (!memi p-addr49 byte49 x86))
                 (x86 (!memi p-addr50 byte50 x86))
                 (x86 (!memi p-addr51 byte51 x86))
                 (x86 (!memi p-addr52 byte52 x86))
                 (x86 (!memi p-addr53 byte53 x86))
                 (x86 (!memi p-addr54 byte54 x86))
                 (x86 (!memi p-addr55 byte55 x86))
                 (x86 (!memi p-addr56 byte56 x86))
                 (x86 (!memi p-addr57 byte57 x86))
                 (x86 (!memi p-addr58 byte58 x86))
                 (x86 (!memi p-addr59 byte59 x86))
                 (x86 (!memi p-addr60 byte60 x86))
                 (x86 (!memi p-addr61 byte61 x86))
                 (x86 (!memi p-addr62 byte62 x86))
                 (x86 (!memi p-addr63 byte63 x86)))
              (mv nil x86)))
          (mv 'wml512 x86)))
       (mv 'wml512 x86))))

    Theorem: x86p-wml512

    (defthm x86p-wml512
      (implies (force (x86p x86))
               (x86p (mv-nth 1 (wml512 lin-addr val x86))))
      :rule-classes (:rewrite :type-prescription))