• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
          • Simplify-defun
          • Isodata
          • Tailrec
          • Schemalg
          • Restrict
          • Expdata
          • Casesplit
            • Casesplit-implementation
              • Casesplit-event-generation
                • Casesplit-gen-everything
                • Casesplit-gen-new-fn
                • Casesplit-gen-old-to-new-thm
                • Casesplit-gen-appconds-new-guard
                • Casesplit-gen-appconds
                • Casesplit-gen-appconds-thm-hyp
                • Casesplit-gen-appcond-new-guard
                • Casesplit-gen-appcond-name-from-parts
                • Casesplit-gen-appconds-cond-guard
                • Casesplit-gen-appcond-thm-hyp
                • Casesplit-gen-appcond-cond-guard
                  • Casesplit-gen-appconds-new-guard-aux
                  • Casesplit-gen-appcond-cond-guard-name
                  • Casesplit-gen-appcond-thm-hyp-name
                  • Casesplit-gen-appcond-new-guard-name
                • Casesplit-fn
                • Casesplit-input-processing
                • Casesplit-macro-definition
                • Casesplit-library-extensions
            • Simplify-term
            • Simplify-defun-sk
            • Parteval
            • Solve
            • Wrap-output
            • Propagate-iso
            • Simplify
            • Finite-difference
            • Drop-irrelevant-params
            • Copy-function
            • Lift-iso
            • Rename-params
            • Utilities
            • Simplify-term-programmatic
            • Simplify-defun-sk-programmatic
            • Simplify-defun-programmatic
            • Simplify-defun+
            • Common-options
            • Common-concepts
          • Error-checking
          • Fty-extensions
          • Isar
          • Kestrel-utilities
          • Set
          • Soft
          • C
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Casesplit-event-generation

    Casesplit-gen-appcond-cond-guard

    Generate the applicability condition condk-guard.

    Signature
    (casesplit-gen-appcond-cond-guard k old$ conditions$ state) 
      → 
    appcond
    Arguments
    k — Guard (posp k).
    old$ — Guard (symbolp old$).
    conditions$ — Guard (pseudo-term-listp conditions$).
    Returns
    appcond — An evmac-appcondp.

    Definitions and Theorems

    Function: casesplit-gen-appcond-cond-guard

    (defun casesplit-gen-appcond-cond-guard (k old$ conditions$ state)
      (declare (xargs :stobjs (state)))
      (declare (xargs :guard (and (posp k)
                                  (symbolp old$)
                                  (pseudo-term-listp conditions$))))
      (declare (xargs :guard (<= k (len conditions$))))
      (let ((__function__ 'casesplit-gen-appcond-cond-guard))
        (declare (ignorable __function__))
        (b* ((wrld (w state))
             (name (casesplit-gen-appcond-cond-guard-name k))
             (old-guard (uguard old$ wrld))
             (antecedent-conjuncts
                  (cons old-guard
                        (negate-terms (take (1- k) conditions$))))
             (antecedent (conjoin antecedent-conjuncts))
             (consequent (term-guard-obligation (nth (1- k) conditions$)
                                                :limited state))
             (formula (implicate antecedent consequent)))
          (make-evmac-appcond :name name
                              :formula formula))))