• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
        • Z3-installation
        • Smt-hint
        • Tutorial
        • Status
        • Developer
          • Verified
            • Uninterpreted-fn-cp
            • Smt-hint-interface
              • Smtlink-hint
              • Smt-hint
              • Make-alist-fn-lst
              • True-list-fix
              • Function-expansion
              • Smt-config
              • Fty-support
              • Smt-computed-hints
              • Add-hypo-cp
              • Smt-hint-please
              • Type-extract-cp
              • Smt-extract
              • Smtlink-process-user-hint
              • Smt-basics
              • Smt-type-hyp
              • Smt-magic-fix
            • Trusted
        • Abnf
        • Vwsim
        • Isar
        • Wp-gen
        • Dimacs-reader
        • Pfcs
        • Legacy-defrstobj
        • Proof-checker-array
        • Soft
        • C
        • Farray
        • Rp-rewriter
        • Riscv
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Bitcoin
        • 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
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Community
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Smt-hint-interface

    True-list-fix

    Fixing function for true-listp.

    Signature
    (true-list-fix lst) → fixed-lst
    Arguments
    lst — Guard (true-listp lst).
    Returns
    fixed-lst — Type (true-listp fixed-lst).

    Definitions and Theorems

    Function: true-list-fix

    (defun true-list-fix (lst)
      (declare (xargs :guard (true-listp lst)))
      (let ((acl2::__function__ 'true-list-fix))
        (declare (ignorable acl2::__function__))
        (mbe :logic
             (if (consp lst)
                 (cons (car lst)
                       (true-list-fix (cdr lst)))
               nil)
             :exec lst)))

    Theorem: true-listp-of-true-list-fix

    (defthm true-listp-of-true-list-fix
      (b* ((fixed-lst (true-list-fix lst)))
        (true-listp fixed-lst))
      :rule-classes :rewrite)