• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
    • Macro-libraries
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • Soft
        • C
          • Syntax-for-tools
            • Disambiguator
            • Abstract-syntax
            • Parser
            • Validator
            • Printer
            • Formalized-subset
            • Mapping-to-language-definition
            • Input-files
            • Defpred
            • Output-files
            • Abstract-syntax-operations
              • Abstract-syntax-irrelevants
              • Expr-priority
                • Expr-priority-fix
                • Expr-priority-case
                • Expr-priorityp
                  • Expr-priority-equiv
                  • Expr-priority-kind
                  • Expr-priority-xor
                  • Expr-priority-unary
                  • Expr-priority-sh
                  • Expr-priority-rel
                  • Expr-priority-primary
                  • Expr-priority-postfix
                  • Expr-priority-mul
                  • Expr-priority-logor
                  • Expr-priority-logand
                  • Expr-priority-ior
                  • Expr-priority-expr
                  • Expr-priority-eq
                  • Expr-priority-cond
                  • Expr-priority-cast
                  • Expr-priority-asg
                  • Expr-priority-and
                  • Expr-priority-add
                • Expr-priority-<=
                • Combine-dirabsdeclor-into-dirabsdeclor
                • Check-decl-spec-list-all-typespec/stoclass
                • Binop-expected-priorities
                • Expr->priority
                • Transunit-at-path
                • Check-expr-binary
                • Apply-pre-inc/dec-ops
                • Apply-post-inc/dec-ops
                • Check-spec/qual-list-all-typespec
                • Check-decl-spec-list-all-typespec
                • Check-expr-mul
                • Type-spec-list-signed-long-long-int-p
                • Expr-unary/postfix/primary-p
                • Expr-to-asg-expr-list
                • Transunit-ensemble-paths
                • Type-spec-list-signed-short-int-p
                • Type-spec-list-signed-long-long-p
                • Type-spec-list-signed-long-int-p
                • Expr-postfix/primary-p
                • Dirabsdeclor-declor?-nil-p
                • Check-strunispec-no-members
                • Type-spec-list-signed-short-p
                • Type-spec-list-signed-long-p
                • Type-spec-list-signed-int128-p
                • Type-spec-list-signed-char-p
                • Expr-zerop
                • Type-spec-list-unsigned-long-long-int-p
                • Type-spec-list-signed-int-p
                • Spec/qual-list-to-type-spec-list
                • Expr-priority->=
                • Expr-priority->
                • Expr-priority-<
                • Decl-spec-list-to-type-spec-list
                • Decl-spec-list-to-stor-spec-list
                • Check-enumspec-no-list
                • Type-spec-list-unsigned-short-int-p
                • Type-spec-list-unsigned-long-long-p
                • Type-spec-list-long-double-complex-p
                • Stor-spec-list-static-threadloc-p
                • Stor-spec-list-extern-threadloc-p
                • Binop->priority
                • Type-spec-list-unsigned-short-p
                • Type-spec-list-unsigned-long-int-p
                • Type-spec-list-unsigned-int128-p
                • Type-spec-list-signed-p
                • Type-spec-list-long-long-int-p
                • Type-spec-list-double-complex-p
                • Type-spec-list-unsigned-long-p
                • Type-spec-list-unsigned-int-p
                • Type-spec-list-unsigned-char-p
                • Type-spec-list-long-double-p
                • Type-spec-list-float-complex-p
                • Type-spec-list-short-int-p
                • Type-spec-list-long-long-p
                • Type-spec-list-long-int-p
                • Stringlit-list->prefix?-list
                • Stor-spec-list-typedef-p
                • Stor-spec-list-threadloc-p
                • Stor-spec-list-static-p
                • Stor-spec-list-register-p
                • Stor-spec-list-extern-p
                • Type-spec-list-unsigned-p
                • Type-spec-list-short-p
                • Type-spec-list-long-p
                • Type-spec-list-int128-p
                • Type-spec-list-float-p
                • Type-spec-list-double-p
                • Type-spec-list-char-p
                • Stor-spec-list-auto-p
                • Check-expr-iconst
                • Type-spec-list-int-p
                • Check-expr-ident
                • Declor->ident
                • Type-spec-list-permp
                • Initdeclor->ident
              • Validation-information
              • Implementation-environments
              • Concrete-syntax
              • Ascii-identifiers
              • Unambiguity
              • Preprocessing
              • Abstraction-mapping
            • Atc
            • Language
            • Representation
            • Transformation-tools
            • Insertion-sort
            • Pack
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Expr-priority

    Expr-priorityp

    Recognizer for expr-priority structures.

    Signature
    (expr-priorityp x) → *

    Definitions and Theorems

    Function: expr-priorityp

    (defun expr-priorityp (x)
      (declare (xargs :guard t))
      (let ((__function__ 'expr-priorityp))
        (declare (ignorable __function__))
        (and (consp x)
             (cond ((or (atom x) (eq (car x) :primary))
                    (and (true-listp (cdr x))
                         (eql (len (cdr x)) 0)
                         (b* nil t)))
                   ((eq (car x) :postfix)
                    (and (true-listp (cdr x))
                         (eql (len (cdr x)) 0)
                         (b* nil t)))
                   ((eq (car x) :unary)
                    (and (true-listp (cdr x))
                         (eql (len (cdr x)) 0)
                         (b* nil t)))
                   ((eq (car x) :cast)
                    (and (true-listp (cdr x))
                         (eql (len (cdr x)) 0)
                         (b* nil t)))
                   ((eq (car x) :mul)
                    (and (true-listp (cdr x))
                         (eql (len (cdr x)) 0)
                         (b* nil t)))
                   ((eq (car x) :add)
                    (and (true-listp (cdr x))
                         (eql (len (cdr x)) 0)
                         (b* nil t)))
                   ((eq (car x) :sh)
                    (and (true-listp (cdr x))
                         (eql (len (cdr x)) 0)
                         (b* nil t)))
                   ((eq (car x) :rel)
                    (and (true-listp (cdr x))
                         (eql (len (cdr x)) 0)
                         (b* nil t)))
                   ((eq (car x) :eq)
                    (and (true-listp (cdr x))
                         (eql (len (cdr x)) 0)
                         (b* nil t)))
                   ((eq (car x) :and)
                    (and (true-listp (cdr x))
                         (eql (len (cdr x)) 0)
                         (b* nil t)))
                   ((eq (car x) :xor)
                    (and (true-listp (cdr x))
                         (eql (len (cdr x)) 0)
                         (b* nil t)))
                   ((eq (car x) :ior)
                    (and (true-listp (cdr x))
                         (eql (len (cdr x)) 0)
                         (b* nil t)))
                   ((eq (car x) :logand)
                    (and (true-listp (cdr x))
                         (eql (len (cdr x)) 0)
                         (b* nil t)))
                   ((eq (car x) :logor)
                    (and (true-listp (cdr x))
                         (eql (len (cdr x)) 0)
                         (b* nil t)))
                   ((eq (car x) :cond)
                    (and (true-listp (cdr x))
                         (eql (len (cdr x)) 0)
                         (b* nil t)))
                   ((eq (car x) :asg)
                    (and (true-listp (cdr x))
                         (eql (len (cdr x)) 0)
                         (b* nil t)))
                   (t (and (eq (car x) :expr)
                           (and (true-listp (cdr x))
                                (eql (len (cdr x)) 0))
                           (b* nil t)))))))

    Theorem: consp-when-expr-priorityp

    (defthm consp-when-expr-priorityp
      (implies (expr-priorityp x) (consp x))
      :rule-classes :compound-recognizer)