• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Pfcs
        • Proof-support
        • Semantics
        • Lifting
        • R1cs-subset
        • Indexed-names
        • Well-formedness
        • Abstract-syntax
          • Syntax-abstraction
          • Abstract-syntax-trees
          • Abstract-syntax-operations
            • Expression-var-list
            • Lookup-definition
            • Constrel
              • Constrel-fix
              • Constrel-equiv
              • Make-constrel
              • Change-constrel
              • Constrel->name
                • Constrel->args
                • Constrelp
              • Constraint-constrels
              • Constraint-list-constrels
              • Constraint-rels
              • Constraint-list-rels
              • Expression-sub
              • Expression-const/var-listp
              • Expression-var-listp
              • Expression-neg
              • Expression-list-vars
              • Expression-vars
              • Definition-free-vars
              • Constraint-vars
              • Constraint-list-vars
              • Constrel-set
            • Convenience-constructors
          • Concrete-syntax
          • R1cs-bridge
          • Parser-interface
        • Wp-gen
        • Dimacs-reader
        • Legacy-defrstobj
        • Proof-checker-array
        • Soft
        • C
        • Farray
        • Rp-rewriter
        • Riscv
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • 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
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Community
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Constrel

    Constrel->name

    Get the name field from a constrel.

    Signature
    (constrel->name x) → name
    Arguments
    x — Guard (constrelp x).
    Returns
    name — Type (stringp name).

    This is an ordinary field accessor created by fty::defprod.

    Definitions and Theorems

    Function: constrel->name$inline

    (defun constrel->name$inline (x)
      (declare (xargs :guard (constrelp x)))
      (declare (xargs :guard t))
      (let ((__function__ 'constrel->name))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (str-fix (cdr (std::da-nth 0 x))))
             :exec (cdr (std::da-nth 0 x)))))

    Theorem: stringp-of-constrel->name

    (defthm stringp-of-constrel->name
      (b* ((name (constrel->name$inline x)))
        (stringp name))
      :rule-classes :rewrite)

    Theorem: constrel->name$inline-of-constrel-fix-x

    (defthm constrel->name$inline-of-constrel-fix-x
      (equal (constrel->name$inline (constrel-fix x))
             (constrel->name$inline x)))

    Theorem: constrel->name$inline-constrel-equiv-congruence-on-x

    (defthm constrel->name$inline-constrel-equiv-congruence-on-x
      (implies (constrel-equiv x x-equiv)
               (equal (constrel->name$inline x)
                      (constrel->name$inline x-equiv)))
      :rule-classes :congruence)