• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • 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
        • Proof-checker-array
        • Soft
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Ethereum
        • Leftist-trees
        • Java
        • Riscv
        • Taspi
        • Bitcoin
        • Zcash
        • Des
        • X86isa
        • Sha-2
        • Yul
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Axe
        • Poseidon
        • Where-do-i-place-my-book
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • 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)))))