• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Riscv
      • 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
        • Aleobft
        • Aleovm
        • Leo
          • Grammar
          • Early-version
            • Json2ast
            • Testing
            • Definition
              • Flattening
              • Abstract-syntax
                • Expression
                • Syntax-abstraction
                • Statement
                • Files
                • Input-files
                • Identifiers
                • Types
                • Struct-init
                • Branch
                • Statements
                • Format-strings
                • Input-syntax-abstraction
                • Expressions
                • Output-files
                • Addresses
                • Literals
                  • Literal
                  • Coordinate
                  • Group-literal
                    • Group-literal-fix
                    • Group-literal-case
                    • Group-literal-equiv
                    • Group-literalp
                      • Group-literal-affine
                      • Group-literal-product
                      • Group-literal-kind
                    • Literal-result
                    • Group-literal-result
                    • Coordinate-result
                    • Literal-evaluation
                  • Characters
                  • Expression-list
                  • Statement-list
                  • Output-syntax-abstraction
                  • Struct-init-list
                  • Branch-list
                  • Annotations
                  • Abstract-syntax-trees
                  • Symbols
                  • Keywords
                  • Programs
                  • Packages
                  • Bit-sizes
                • Dynamic-semantics
                • Compilation
                • Static-semantics
                • Concrete-syntax
        • 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
    • Group-literal

    Group-literalp

    Recognizer for group-literal structures.

    Signature
    (group-literalp lit) → *

    Definitions and Theorems

    Function: group-literalp

    (defun group-literalp (lit)
      (declare (xargs :guard t))
      (let ((__function__ 'group-literalp))
        (declare (ignorable __function__))
        (and (consp lit)
             (cond ((or (atom lit) (eq (car lit) :affine))
                    (and (true-listp (cdr lit))
                         (eql (len (cdr lit)) 2)
                         (b* ((x (std::da-nth 0 (cdr lit)))
                              (y (std::da-nth 1 (cdr lit))))
                           (and (coordinatep x) (coordinatep y)))))
                   (t (and (eq (car lit) :product)
                           (and (true-listp (cdr lit))
                                (eql (len (cdr lit)) 1))
                           (b* ((factor (std::da-nth 0 (cdr lit))))
                             (natp factor))))))))

    Theorem: consp-when-group-literalp

    (defthm consp-when-group-literalp
      (implies (group-literalp lit)
               (consp lit))
      :rule-classes :compound-recognizer)