• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
    • Macro-libraries
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
        • Fgl-rewrite-rules
        • Fgl-function-mode
        • Fgl-object
          • Fgl-object-eval
          • Fgl-object-p
          • G-map
          • G-ite
          • G-cons
          • G-concrete
          • G-apply
          • G-integer
          • Fgl-object-equiv
          • G-boolean
          • G-var
          • Fgl-bitvector
            • Scdr
            • Bools->int
            • S-endp
              • First/rest/end
            • Fgl-object-kind
            • Summarize-fgl-object
            • Fgl-make-isomorphic
            • Fgl-object-alist
            • Fgl-objectlist
            • Fgl-object-fix
            • Fgl-object-count
          • Fgl-solving
          • Fgl-handling-if-then-elses
          • Fgl-counterexamples
          • Fgl-getting-bits-from-objects
          • Fgl-primitive-and-meta-rules
          • Fgl-interpreter-overview
          • Fgl-correctness-of-binding-free-variables
          • Fgl-debugging
          • Fgl-testbenches
          • Def-fgl-boolean-constraint
          • Fgl-stack
          • Fgl-rewrite-tracing
          • Def-fgl-param-thm
          • Def-fgl-thm
          • Fgl-fast-alist-support
          • Fgl-array-support
          • Advanced-equivalence-checking-with-fgl
          • Fgl-fty-support
          • Fgl-internals
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Fgl-bitvector

    S-endp

    Are we at the end of a signed bit vector?

    Signature
    (s-endp v) → *
    Arguments
    v — Guard (true-listp v).

    Definitions and Theorems

    Function: s-endp$inline

    (defun s-endp$inline (v)
      (declare (xargs :guard (true-listp v)))
      (let ((__function__ 's-endp))
        (declare (ignorable __function__))
        (atom (cdr v))))

    Theorem: s-endp-of-list-fix

    (defthm s-endp-of-list-fix
      (equal (s-endp (list-fix x))
             (s-endp x)))

    Theorem: not-s-endp-compound-recognizer

    (defthm not-s-endp-compound-recognizer
      (implies (not (s-endp x)) (consp x))
      :rule-classes :compound-recognizer)

    Theorem: s-endp$inline-of-list-fix-v

    (defthm s-endp$inline-of-list-fix-v
      (equal (s-endp$inline (list-fix v))
             (s-endp$inline v)))

    Theorem: s-endp$inline-list-equiv-congruence-on-v

    (defthm s-endp$inline-list-equiv-congruence-on-v
      (implies (acl2::list-equiv v v-equiv)
               (equal (s-endp$inline v)
                      (s-endp$inline v-equiv)))
      :rule-classes :congruence)