• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
      • Std/lists
      • Omaps
        • Defomap
        • Update
        • Mapp
        • Assoc
        • Update*
        • From-lists
        • Keys
        • List-lookup
        • Size
        • Compatiblep
        • Submap
        • Tail
        • Restrict
        • Head
        • Update-induction-on-maps
        • Rlookup
        • Lookup
        • List-notin
        • Emptyp
        • Rlookup*
        • Map
        • Lookup*
        • Values
        • List-in
        • Delete*
        • In*
        • Delete
        • From-alist
        • Mfix
        • Head-val
          • Head-key
          • Omap-induction2
          • Omap-order-rules
        • Std/alists
        • Obags
        • Std/util
        • Std/strings
        • Std/osets
        • Std/io
        • Std/basic
        • Std/system
        • Std/typed-lists
        • Std/bitsets
        • Std/testing
        • Std/typed-alists
        • Std/stobjs
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Omaps

    Head-val

    Value associated to the smallest key of a non-empty omap.

    Signature
    (head-val map) → *
    Arguments
    map — Guard (mapp map).

    This is used as an abbreviation, so it is enabled by default.

    Definitions and Theorems

    Function: head-val

    (defun head-val (map)
      (declare (xargs :guard (mapp map)))
      (declare (xargs :guard (not (emptyp map))))
      (let ((__function__ 'head-val))
        (declare (ignorable __function__))
        (mv-let (key val)
                (head map)
          (declare (ignore key))
          val)))