• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
      • Theories
      • Rule-classes
      • Proof-builder
      • Recursion-and-induction
      • Hons-and-memoization
      • Events
      • Parallelism
      • History
      • Programming
      • Operational-semantics
      • Real
      • Start-here
        • Gentle-introduction-to-ACL2-programming
        • ACL2-tutorial
          • Introduction-to-the-theorem-prover
          • Pages Written Especially for the Tours
          • The-method
          • Advanced-features
          • Interesting-applications
          • Tips
          • Alternative-introduction
          • Tidbits
          • Annotated-ACL2-scripts
          • Startup
          • ACL2-as-standalone-program
          • ACL2-sedan
            • Defunc
            • Cgen
            • Ccg
            • Defdata
            • ACL2s-user-guide
            • ACL2s-tutorial
            • ACL2s-implementation-notes
            • Match
            • ACL2s-faq
            • ACL2s-intro
            • ACL2s-defaults
            • Definec
            • ACL2s-utilities
            • ACL2s-interface
              • Itest?-query
              • ACL2s-event
              • ACL2s-query
              • Quiet-mode-hooks
              • ACL2s-interface-symbol-package-tips
              • ACL2s-compute
              • ACL2s-interface::ACL2s-interface-utils
                • Quiet-mode
                • Capture-output
              • ACL2s-installation
            • Talks
            • Nqthm-to-ACL2
            • Tours
            • Emacs
          • About-ACL2
            • Recursion-and-induction
            • Operational-semantics
            • Soundness
            • Release-notes
            • Workshops
            • ACL2-tutorial
              • Introduction-to-the-theorem-prover
              • Pages Written Especially for the Tours
              • The-method
              • Advanced-features
              • Interesting-applications
              • Tips
              • Alternative-introduction
              • Tidbits
              • Annotated-ACL2-scripts
              • Startup
              • ACL2-as-standalone-program
              • ACL2-sedan
                • Defunc
                • Cgen
                • Ccg
                • Defdata
                • ACL2s-user-guide
                • ACL2s-tutorial
                • ACL2s-implementation-notes
                • Match
                • ACL2s-faq
                • ACL2s-intro
                • ACL2s-defaults
                • Definec
                • ACL2s-utilities
                • ACL2s-interface
                  • Itest?-query
                  • ACL2s-event
                  • ACL2s-query
                  • Quiet-mode-hooks
                  • ACL2s-interface-symbol-package-tips
                  • ACL2s-compute
                  • ACL2s-interface::ACL2s-interface-utils
                    • Quiet-mode
                    • Capture-output
                  • ACL2s-installation
                • Talks
                • Nqthm-to-ACL2
                • Tours
                • Emacs
              • Version
              • How-to-contribute
              • Acknowledgments
              • Using-ACL2
              • Releases
              • Pre-built-binary-distributions
              • Common-lisp
              • Installation
              • Mailing-lists
              • Git-quick-start
              • Copyright
              • ACL2-help
          • Miscellaneous
          • Output-controls
          • Bdd
          • Macros
          • Installation
          • Mailing-lists
        • Interfacing-tools
        • Hardware-verification
        • Software-verification
        • Math
        • Testing-utilities
      • ACL2s-interface

      ACL2s-interface::ACL2s-interface-utils

      Some utilities built into the ACL2s interface.

      • (flatten-and l): Given a list of terms representing the conjunction of those terms, recursively flatten any conjunctions inside those terms.
      • (conjunction-terms x y): Given two terms, produce the conjunction of them, simplifying if either of the terms has a top-level conjunction.
      • (cnf-disjunct-to-or expr): Given a CNF disjunct, convert to an equivalent ACL2s expression by adding 'or.
      • (get-hyps expr): Get the hypotheses of an implication, returning nil if the given expression is not an implication.
      • (get-conc expr): Get the conclusion of an implication, returning nil if the given expression is not an implication.