• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
      • B*
      • Defunc
      • Fty
        • Deftagsum
        • Defprod
        • Defflexsum
        • Defbitstruct
        • Deflist
        • Defalist
        • Defbyte
          • Defbytelist
          • Defbyte-standard-instances
            • Ubyte5
            • Ubyte8
            • Ubyte32
            • Ubyte12
            • Ubyte64
            • Ubyte16
            • Ubyte128
            • Sbyte8
            • Sbyte64
            • Sbyte32
            • Sbyte16
            • Sbyte128
            • Ubyte20
            • Ubyte11
              • Ubyte11s-as-digits-in-base-2048
              • Ubyte11p
              • Ubyte11-fix
            • Ubyte4
            • Ubyte256
            • Sbyte256
            • Ubyte7
            • Ubyte6
            • Ubyte3
            • Ubyte2
            • Ubyte1
            • Sbyte4
            • Sbyte3
            • Sbyte2
            • Sbyte1
            • Defbyte-standard-instances-ihs-theorems
            • Defubyte
            • Defsbyte
          • Defbyte-ihs-theorems
          • Defbyte-implementation
        • Deffixequiv
        • Defresult
        • Deffixtype
        • Defoption
        • Fty-discipline
        • Fold
        • Fty-extensions
        • Defsubtype
        • Defset
        • Deftypes
        • Specific-types
        • Defflatsum
        • Deflist-of-len
        • Defbytelist
        • Fty::basetypes
        • Defomap
        • Defvisitors
        • Deffixtype-alias
        • Deffixequiv-sk
        • Defunit
        • Multicase
        • Deffixequiv-mutual
        • Fty::baselists
        • Def-enumcase
        • Defmap
      • Apt
      • Std/util
      • Defdata
      • Defrstobj
      • Seq
      • Match-tree
      • Defrstobj
      • With-supporters
      • Def-partial-measure
      • Template-subst
      • Soft
      • Defthm-domain
      • Event-macros
      • Def-universal-equiv
      • Def-saved-obligs
      • With-supporters-after
      • Definec
      • Sig
      • Outer-local
      • Data-structures
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Math
    • Testing-utilities
  • Defbyte-standard-instances

Ubyte11

Fixtype of unsigned bytes of size 11.

Definitions and Theorems

Function: ubyte11-equiv$inline

(defun ubyte11-equiv$inline (x y)
  (declare (xargs :guard (and (ubyte11p x) (ubyte11p y))))
  (equal (ubyte11-fix x) (ubyte11-fix y)))

Theorem: ubyte11-equiv-is-an-equivalence

(defthm ubyte11-equiv-is-an-equivalence
  (and (booleanp (ubyte11-equiv x y))
       (ubyte11-equiv x x)
       (implies (ubyte11-equiv x y)
                (ubyte11-equiv y x))
       (implies (and (ubyte11-equiv x y)
                     (ubyte11-equiv y z))
                (ubyte11-equiv x z)))
  :rule-classes (:equivalence))

Theorem: ubyte11-equiv-implies-equal-ubyte11-fix-1

(defthm ubyte11-equiv-implies-equal-ubyte11-fix-1
  (implies (ubyte11-equiv x x-equiv)
           (equal (ubyte11-fix x)
                  (ubyte11-fix x-equiv)))
  :rule-classes (:congruence))

Theorem: ubyte11-fix-under-ubyte11-equiv

(defthm ubyte11-fix-under-ubyte11-equiv
  (ubyte11-equiv (ubyte11-fix x) x)
  :rule-classes (:rewrite :rewrite-quoted-constant))

Theorem: equal-of-ubyte11-fix-1-forward-to-ubyte11-equiv

(defthm equal-of-ubyte11-fix-1-forward-to-ubyte11-equiv
  (implies (equal (ubyte11-fix x) y)
           (ubyte11-equiv x y))
  :rule-classes :forward-chaining)

Theorem: equal-of-ubyte11-fix-2-forward-to-ubyte11-equiv

(defthm equal-of-ubyte11-fix-2-forward-to-ubyte11-equiv
  (implies (equal x (ubyte11-fix y))
           (ubyte11-equiv x y))
  :rule-classes :forward-chaining)

Theorem: ubyte11-equiv-of-ubyte11-fix-1-forward

(defthm ubyte11-equiv-of-ubyte11-fix-1-forward
  (implies (ubyte11-equiv (ubyte11-fix x) y)
           (ubyte11-equiv x y))
  :rule-classes :forward-chaining)

Theorem: ubyte11-equiv-of-ubyte11-fix-2-forward

(defthm ubyte11-equiv-of-ubyte11-fix-2-forward
  (implies (ubyte11-equiv x (ubyte11-fix y))
           (ubyte11-equiv x y))
  :rule-classes :forward-chaining)

Subtopics

Ubyte11s-as-digits-in-base-2048
Specialized versions of the operations to convert between natural numbers and digits that use unsigned 11-bit bytes as digits, in base 2048.
Ubyte11p
Recognizer for ubyte11.
Ubyte11-fix
Fixer for ubyte11.