• 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
                  • Address
                    • Address-fix
                    • Address-equiv
                    • Make-address
                    • Change-address
                    • Address->name
                      • Addressp
                    • Address-chars-p
                    • Find-addresses
                    • All-addresses-valid?
                    • Address-string-p
                    • Address-valid-p
                    • Address-list
                    • Ast-addresses-valid?
                  • Literals
                  • 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
    • Address

    Address->name

    Get the name field from a address.

    Signature
    (address->name x) → name
    Arguments
    x — Guard (addressp x).
    Returns
    name — Type (stringp name).

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

    Definitions and Theorems

    Function: address->name$inline

    (defun address->name$inline (x)
     (declare (xargs :guard (addressp x)))
     (declare (xargs :guard t))
     (let ((__function__ 'address->name))
      (declare (ignorable __function__))
      (mbe
       :logic
       (b* ((x (and t x))
            (name (str-fix (cdr (std::da-nth 0 (cdr x))))))
        (if (address-string-p name)
            name
         "aleo1oooooooooooooooooooooooooooooooooooooooooooooooooooooooooo"))
       :exec (cdr (std::da-nth 0 (cdr x))))))

    Theorem: stringp-of-address->name

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

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

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

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

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