• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
        • Term-level-reasoning
        • Glmc
        • Other-resources
        • Optimization
        • Reference
          • Def-gl-thm
          • Shape-specs
          • Symbolic-objects
          • Gl-aside
          • Def-gl-param-thm
          • Symbolic-arithmetic
            • Bfr-floor-ss-aux
            • Bfr-integer-length-s1
            • Bfr-mod-ss-aux
            • Bfr-logapp-russ
            • Bfr-sign-abs-not-s
            • Bfr-ash-ss
            • Bfr-+-ss
            • Bfr-truncate-ss
            • Bfr-logapp-nus-aux
            • Bfr-ite-bss-fn-aux
            • Bfr-rem-ss
            • Bfr-mod-ss
            • Bfr-logbitp-n2v
            • Bfr-logapp-nus
            • Bfr-logapp-nss
              • Bfr-ite-bvv-fn-aux
              • Bfr-<-=-ss
              • Bfr-*-ss
              • Bfr-logxor-ss
              • Bfr-logior-ss
              • Bfr-logeqv-ss
              • Bfr-logand-ss
              • Bfr-ite-bvv-fn
              • Bfr-ite-bss-fn
              • Bfr-floor-ss
              • Bfr-expt-su
              • Bfr-logtail-ns
              • Bfr-loghead-nu
              • Bfr-loghead-ns
              • Bfr-logext-ns
              • Bfr-integer-length-s
              • Syntactically-true-p
              • Int-set-sign
              • Bfr-unary-minus-s
              • Bfr-lognot-s
              • Bfr-=-ss
              • Bfr-<-ss
              • Bfr-abs-s
              • Syntactically-zero-p
              • Bfr-=-uu
              • S-take
              • Integer-length-bound-s
              • Bfr-sign-s
              • Non-int-fix
              • Maybe-integer
              • All-nil
            • Bfr
            • Def-gl-boolean-constraint
            • Gl-mbe
            • Bvec
            • Flex-bindings
            • Auto-bindings
            • Gl-interp
            • Gl-set-uninterpreted
            • Def-gl-clause-processor
            • Def-glcp-ctrex-rewrite
            • ACL2::always-equal
            • Gl-hint
            • Def-gl-rewrite
            • Def-gl-branch-merge
            • Gl-force-check
            • Gl-concretize
            • Gl-assert
            • Gl-param-thm
            • Gl-simplify-satlink-mode
            • Gl-satlink-mode
            • Gl-bdd-mode
            • Gl-aig-bddify-mode
            • Gl-fraig-satlink-mode
          • Debugging
          • Basic-tutorial
        • Esim
        • Vl2014
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Symbolic-arithmetic

    Bfr-logapp-nss

    Signature
    (bfr-logapp-nss n a b) → a-app-b
    Arguments
    n — Guard (natp n).
    a — Guard (true-listp a).
    b — Guard (true-listp b).
    Returns
    a-app-b — Type (true-listp a-app-b).

    Definitions and Theorems

    Function: bfr-logapp-nss

    (defun bfr-logapp-nss (n a b)
      (declare (xargs :guard (and (natp n)
                                  (true-listp a)
                                  (true-listp b))))
      (let ((__function__ 'bfr-logapp-nss))
        (declare (ignorable __function__))
        (b* (((when (zp n)) (llist-fix b))
             ((mv first rest &) (first/rest/end a)))
          (bfr-scons first (bfr-logapp-nss (1- n) rest b)))))

    Theorem: true-listp-of-bfr-logapp-nss

    (defthm true-listp-of-bfr-logapp-nss
      (b* ((a-app-b (bfr-logapp-nss n a b)))
        (true-listp a-app-b))
      :rule-classes :type-prescription)

    Theorem: bfr-logapp-nss-correct

    (defthm bfr-logapp-nss-correct
      (b* ((a-app-b (bfr-logapp-nss n a b)))
        (and (equal (bfr-list->s a-app-b env)
                    (logapp (nfix n)
                            (bfr-list->s a env)
                            (bfr-list->s b env))))))

    Theorem: bfr-logapp-nss-deps

    (defthm bfr-logapp-nss-deps
      (b* ((a-app-b (bfr-logapp-nss n a b)))
        (implies
             (and (not (pbfr-list-depends-on varname param a))
                  (not (pbfr-list-depends-on varname param b)))
             (and (not (pbfr-list-depends-on varname param a-app-b))))))