• 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
        • Kestrel-utilities
        • Set
        • C
          • Syntax-for-tools
            • Formalized-subset
            • Mapping-to-language-definition
              • Ldm-stmts
              • Ldm-type-spec-list
              • Ldm-exprs
              • Ldm-absdeclor-obj
              • Ldm-declor-fun
              • Ldm-declors/dirdeclors-obj
              • Ldm-dirdeclor-fun
              • Ldm-declon-tag
              • Ldm-declon-obj
              • Ldm-struct-declon
              • Ldm-transunit-ensemble
              • Ldm-dirabsdeclor-obj
              • Ldm-declon-fun
              • Ldm-ext-declon
              • Ldm-param-declon
              • Ldm-fundef
              • Ldm-param-declor
              • Ldm-dirdeclor-obj
              • Ldm-struct-declon-list
              • Ldm-stor-spec-list
              • Ldm-param-declon-list
                • Ldm-transunit
                • Ldm-desiniter
                • Ldm-tyname
                • Ldm-isuffix-option
                • Ldm-desiniter-list
                • Ldm-dec/oct/hex-const
                • Ldm-ext-declon-list
                • Ldm-isuffix
                • Ldm-ident
                • Ldm-expr-option
                • Ldm-binop
                • Ldm-initer
                • Ldm-const
                • Ldm-enumer-list
                • Ldm-enumer
                • Ldm-label
                • Ldm-lsuffix
                • Ldm-iconst
                • Ldm-declor-obj
                • Ldm-comp-stmt
                • Ldm-expr-list
                • Ldm-expr
                • Ldm-block-item-list
                • Ldm-stmt
                • Ldm-block-item
              • Input-files
              • Compilation-database
              • Printer
              • Output-files
              • Abstract-syntax-operations
              • Implementation-environments
              • Abstract-syntax
              • Concrete-syntax
              • Disambiguation
              • Validation
              • Gcc-builtins
              • Preprocessing
              • Parsing
            • Atc
            • Transformation-tools
            • Language
            • Representation
            • Insertion-sort
            • Pack
          • Soft
          • Bv
          • Imp-language
          • Ethereum
          • Event-macros
          • Java
          • Riscv
          • Bitcoin
          • Zcash
          • Yul
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Axe
          • Lists-light
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Mapping-to-language-definition

    Ldm-param-declon-list

    Map a list of parameter declarations to a list of parameter declarations in the language definition.

    Signature
    (ldm-param-declon-list paramdecls) → (mv erp paramdecls1)
    Arguments
    paramdecls — Guard (param-declon-listp paramdecls).
    Returns
    paramdecls1 — Type (c::param-declon-listp paramdecls1).

    Definitions and Theorems

    Function: ldm-param-declon-list

    (defun ldm-param-declon-list (paramdecls)
      (declare (xargs :guard (param-declon-listp paramdecls)))
      (declare (xargs :guard (param-declon-list-unambp paramdecls)))
      (let ((__function__ 'ldm-param-declon-list))
        (declare (ignorable __function__))
        (b* (((reterr) nil)
             ((when (endp paramdecls)) (retok nil))
             ((erp paramdecl1)
              (ldm-param-declon (car paramdecls)))
             ((erp paramdecls1)
              (ldm-param-declon-list (cdr paramdecls))))
          (retok (cons paramdecl1 paramdecls1)))))

    Theorem: param-declon-listp-of-ldm-param-declon-list.paramdecls1

    (defthm param-declon-listp-of-ldm-param-declon-list.paramdecls1
      (b* (((mv acl2::?erp ?paramdecls1)
            (ldm-param-declon-list paramdecls)))
        (c::param-declon-listp paramdecls1))
      :rule-classes :rewrite)

    Theorem: ldm-param-declon-list-ok-when-param-declon-list-formalp

    (defthm ldm-param-declon-list-ok-when-param-declon-list-formalp
      (implies (param-declon-list-formalp paramdecls)
               (b* (((mv acl2::?erp ?paramdecls1)
                     (ldm-param-declon-list paramdecls)))
                 (not erp))))

    Theorem: ldm-param-declon-list-of-param-declon-list-fix-paramdecls

    (defthm ldm-param-declon-list-of-param-declon-list-fix-paramdecls
      (equal (ldm-param-declon-list (param-declon-list-fix paramdecls))
             (ldm-param-declon-list paramdecls)))

    Theorem: ldm-param-declon-list-param-declon-list-equiv-congruence-on-paramdecls

    (defthm
     ldm-param-declon-list-param-declon-list-equiv-congruence-on-paramdecls
     (implies (param-declon-list-equiv paramdecls paramdecls-equiv)
              (equal (ldm-param-declon-list paramdecls)
                     (ldm-param-declon-list paramdecls-equiv)))
     :rule-classes :congruence)