• 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
          • Defbyte
          • Defresult
          • Fold
          • Defsubtype
          • Specific-types
          • Defset
          • Defflatsum
          • Deflist-of-len
          • Pos-list
          • Defbytelist
          • Defomap
          • Defbyte-standard-instances
          • Deffixtype-alias
          • Defbytelist-standard-instances
          • Defunit
          • Byte-list
          • Database
          • Byte
          • Pos-option
            • Pos-option-fix
            • Pos-option-case
            • Pos-option-equiv
            • Pos-option-some
              • Pos-option-some->val
              • Make-pos-option-some
                • Change-pos-option-some
              • Pos-option-none
              • Pos-optionp
            • Nibble
            • Nat-option
            • Ubyte32-option
            • String-option
            • Byte-list20
            • Byte-list32
            • Byte-list64
            • Pseudo-event-form
            • Natoption/natoptionlist
            • Nati
            • Character-list
            • Nat/natlist
            • Maybe-string
            • Nibble-list
            • Natoption/natoptionlist-result
            • Nat/natlist-result
            • Nat-option-list-result
            • Set
            • String-result
            • String-list-result
            • Nat-result
            • Nat-option-result
            • Nat-list-result
            • Maybe-string-result
            • Integer-result
            • Character-result
            • Character-list-result
            • Boolean-result
            • Map
            • Bag
            • Pos-set
            • Hex-digit-char-list
            • Dec-digit-char-list
            • Pseudo-event-form-list
            • Nat-option-list
            • Symbol-set
            • String-set
            • Nat-set
            • Oct-digit-char-list
            • Bin-digit-char-list
            • Bit-list
          • Isar
          • Kestrel-utilities
          • Set
          • Soft
          • C
          • 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
    • Pos-option-some

    Make-pos-option-some

    Basic constructor macro for pos-option-some structures.

    Syntax
    (make-pos-option-some [:val <val>]) 
    

    This is the usual way to construct pos-option-some structures. It simply conses together a structure with the specified fields.

    This macro generates a new pos-option-some structure from scratch. See also change-pos-option-some, which can "change" an existing structure, instead.

    Definition

    This is an ordinary make- macro introduced by fty::defprod.

    Macro: make-pos-option-some

    (defmacro make-pos-option-some (&rest args)
      (std::make-aggregate 'pos-option-some
                           args '((:val))
                           'make-pos-option-some
                           nil))

    Function: pos-option-some

    (defun pos-option-some (fty::val)
      (declare (xargs :guard (posp fty::val)))
      (declare (xargs :guard t))
      (let ((__function__ 'pos-option-some))
        (declare (ignorable __function__))
        (b* ((fty::val (mbe :logic (pos-fix fty::val)
                            :exec fty::val)))
          fty::val)))