• 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
            • Input-files
            • Compilation-database
            • Printer
            • Output-files
            • Abstract-syntax-operations
            • Implementation-environments
            • Abstract-syntax
            • Concrete-syntax
            • Disambiguation
              • Disambiguator
              • Unambiguity
                • Abstract-syntax-unambp
                • Abstract-syntax-unambp-additional-theorems
                • Type-spec-list-unambp-of-sublists
                • Expr-unambp-of-operation-on-expr-unambp
              • 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
    • Unambiguity

    Expr-unambp-of-operation-on-expr-unambp

    Preservation of unambiguity by certain operations on expressions.

    Definitions and Theorems

    Theorem: expr-unambp-of-apply-pre-inc/dec-ops

    (defthm expr-unambp-of-apply-pre-inc/dec-ops
      (implies (expr-unambp expr)
               (expr-unambp (apply-pre-inc/dec-ops inc/dec expr))))

    Theorem: expr-unambp-of-apply-post-inc/dec-ops

    (defthm expr-unambp-of-apply-post-inc/dec-ops
      (implies (expr-unambp expr)
               (expr-unambp (apply-post-inc/dec-ops expr inc/dec))))

    Theorem: expr-list-unambp-of-expr-to-asg-expr-list

    (defthm expr-list-unambp-of-expr-to-asg-expr-list
      (implies (expr-unambp expr)
               (expr-list-unambp (expr-to-asg-expr-list expr))))

    Theorem: expr-unambp-of-check-expr-mul

    (defthm expr-unambp-of-check-expr-mul
      (b* (((mv yes/no arg1 arg2)
            (check-expr-mul expr)))
        (implies (and (expr-unambp expr) yes/no)
                 (and (expr-unambp arg1)
                      (expr-unambp arg2)))))

    Theorem: expr-unambp-of-check-expr-binary

    (defthm expr-unambp-of-check-expr-binary
      (b* (((mv yes/no & arg1 arg2)
            (check-expr-binary expr)))
        (implies (and (expr-unambp expr) yes/no)
                 (and (expr-unambp arg1)
                      (expr-unambp arg2)))))