• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
          • Defisar
            • Defisar-implementation
              • Keyword-fact-info-alistp
              • Defisar-assume
              • Defisar-derive
              • Defisar-commands
              • Fact-infop
              • Defisar-qed
              • Defisar-let
              • Defisar-derive-thm-hyps
              • Defisar-proof
              • Defisar-fn
              • Fact-info-listp
              • Fact-info-list->thm-name-list
              • Defisar-formula-to-hyps+concl
                • Defisar-macro-definition-synonym
                • Defisar-macro-definition
          • Kestrel-utilities
          • Set
          • Soft
          • C
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Riscv
          • 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
    • Defisar-implementation

    Defisar-formula-to-hyps+concl

    Decompose the input formula into hypotheses and conclusion.

    Signature
    (defisar-formula-to-hyps+concl formula) → (mv hyps concl)
    Returns
    hyps — Type (true-listp hyps).

    Definitions and Theorems

    Function: defisar-formula-to-hyps+concl

    (defun defisar-formula-to-hyps+concl (formula)
     (declare (xargs :guard t))
     (let ((__function__ 'defisar-formula-to-hyps+concl))
      (declare (ignorable __function__))
      (case-match formula
       (('implies hyp/hyps concl)
        (case-match hyp/hyps
         (('and . hyp/hyps)
          (if (true-listp hyp/hyps)
              (mv hyp/hyps concl)
           (prog2$
               (raise "Internal error: malformed hypotheses ~x0 in ~x1."
                      hyp/hyps formula)
               (mv nil nil))))
         (& (mv (list hyp/hyps) concl))))
       (& (mv nil formula)))))

    Theorem: true-listp-of-defisar-formula-to-hyps+concl.hyps

    (defthm true-listp-of-defisar-formula-to-hyps+concl.hyps
      (b* (((mv ?hyps ?concl)
            (defisar-formula-to-hyps+concl formula)))
        (true-listp hyps))
      :rule-classes :rewrite)