• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
        • Z3-installation
        • Smt-hint
        • Tutorial
        • Status
        • Developer
          • Verified
          • Trusted
            • Translation-datatypes
            • Smt-run
            • Smt-prove
            • Smt-write
            • Smt-trusted-cp
            • Z3-py
              • Smt-translator
              • Smt-translate-fty
              • Smt-names
              • Smt-recover-types
              • Smt-pretty-print
              • Smt-header
                • Smt-translate-abstract-sort
        • Abnf
        • Vwsim
        • Isar
        • Wp-gen
        • Dimacs-reader
        • Pfcs
        • Legacy-defrstobj
        • Proof-checker-array
        • Soft
        • C
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Bitcoin
        • Riscv
        • Des
        • Ethereum
        • X86isa
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Bigmems
        • Builtins
        • Execloader
        • Aleo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Z3-py

    Smt-header

    SMT-header contains string definitions for the header of a Z3 file.

    Definitions and Theorems

    Function: smt-head

    (defun smt-head (smt-conf)
      (declare (xargs :guard (smtlink-config-p smt-conf)))
      (let ((acl2::__function__ 'smt-head))
        (declare (ignorable acl2::__function__))
        (b* ((smt-conf (mbe :logic (smtlink-config-fix smt-conf)
                            :exec smt-conf))
             ((smtlink-config c) smt-conf))
          (mv (list "from sys import path" #\Newline
                    "path.insert(1,\"" c.interface-dir "\")"
                    #\Newline "path.insert(2,\"" c.pythonpath
                    "\")" #\Newline "from " c.smt-module
                    " import *" #\Newline #\Newline)
              (list #\Newline "_SMT_ = "
                    c.smt-class "()" #\Newline)))))

    Theorem: paragraphp-of-smt-head.head

    (defthm paragraphp-of-smt-head.head
      (b* (((mv ?head common-lisp::?import)
            (smt-head smt-conf)))
        (paragraphp head))
      :rule-classes :rewrite)

    Theorem: paragraphp-of-smt-head.import

    (defthm paragraphp-of-smt-head.import
      (b* (((mv ?head common-lisp::?import)
            (smt-head smt-conf)))
        (paragraphp import))
      :rule-classes :rewrite)