• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
      • Theories
      • Rule-classes
      • Proof-builder
      • Recursion-and-induction
      • Hons-and-memoization
      • Events
      • Parallelism
      • History
      • Programming
        • Defun
        • Declare
        • System-utilities
        • Stobj
        • State
        • Mutual-recursion
        • Memoize
        • Mbe
        • Io
        • Defpkg
        • Apply$
        • Loop$
        • Programming-with-state
        • Arrays
        • Characters
        • Time$
        • Defconst
        • Fast-alists
        • Defmacro
        • Loop$-primer
        • Evaluation
        • Guard
        • Equality-variants
        • Compilation
        • Hons
        • ACL2-built-ins
        • Developers-guide
        • System-attachments
        • Advanced-features
        • Set-check-invariant-risk
        • Numbers
        • Efficiency
        • Irrelevant-formals
        • Introduction-to-programming-in-ACL2-for-those-who-know-lisp
        • Redefining-programs
        • Lists
        • Invariant-risk
        • Errors
        • Defabbrev
        • Conses
        • Alists
          • Std/alists
            • Alist-keys
            • Remove-assocs
            • Alist-vals
            • Alist-map-vals
            • Alist-map-keys
            • Std/alists/strip-cdrs
            • Hons-rassoc-equal
            • Std/alists/hons-assoc-equal
            • Std/alists/strip-cars
            • Fal-find-any
            • Fal-extract
            • Std/alists/abstract
              • Keyval-alist-p
              • Valtype-p
              • Keytype-p
              • Def-alistp-rule
            • Fal-extract-vals
            • Fal-all-boundp
            • Std/alists/alistp
            • Append-alist-vals
            • Append-alist-keys
            • Alist-equiv
            • Hons-remove-assoc
            • Std/alists/pairlis$
            • Worth-hashing
            • Alists-agree
            • Sub-alistp
            • Alist-fix
            • Std/alists/remove-assoc-equal
            • Std/alists/assoc-equal
          • Fast-alists
          • Alistp
          • Misc/records
          • Assoc
          • Remove-assocs
          • Symbol-alistp
          • Rassoc
          • Remove-assoc
          • Depgraph
          • Remove1-assoc
          • Alist-map-vals
          • Alist-map-keys
          • Put-assoc
          • Strip-cars
          • Pairlis$
          • Strip-cdrs
          • Sublis
          • Acons
          • Eqlable-alistp
          • Assoc-string-equal
          • Alist-to-doublets
          • Character-alistp
          • String-alistp
          • Alist-keys-subsetp
          • R-symbol-alistp
          • R-eqlable-alistp
          • Pairlis
          • Pairlis-x2
          • Pairlis-x1
          • Delete-assoc
        • Set-register-invariant-risk
        • Strings
        • Program-wrapper
        • Get-internal-time
        • Basics
        • Packages
        • Oracle-eval
        • Defmacro-untouchable
        • <<
        • Primitive
        • Revert-world
        • Unmemoize
        • Set-duplicate-keys-action
        • Symbols
        • Def-list-constructor
        • Easy-simplify-term
        • Defiteration
        • Fake-oracle-eval
        • Defopen
        • Sleep
      • Operational-semantics
      • Real
      • Start-here
      • Miscellaneous
      • Output-controls
      • Bdd
      • Macros
      • Installation
      • Mailing-lists
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Math
    • Testing-utilities
  • Std/alists

Std/alists/abstract

Abstract theories for alist predicates

This book works similarly to std/lists/abstract, defining a set of theorems about a generic alist using functions:

  • keytype-p
  • valtype-p
  • keyval-alist-p

See std/lists/abstract for documentation of the general idea.

List of requirement variables recognized by std::deflist

Note: All of these are symbols in the ACL2 package.

  • keytype-p-of-nil, valtype-p-of-nil, respectively, are true if NIL is known to be a key/value
  • not-keytype-p-of-nil, not-valtype-p-of-nil are true if NIL is known not to be a key/value. ***-of-nil and not-***-of-nil may not both be true, but may both be false in cases where the status of NIL is unknown or depends on extra input parameters.
  • key-negatedp, val-negatedp are true if we are creating an alist that recognizes elements defined by NOT of the predicate, which may affect the correct formulation of rewrite rules
  • true-listp is true if the alist recognizer is strict, i.e., implies true-listp
  • single-var is true if the alist recognizer has no extra parameters
  • cheap is true if the user gave an extra option requesting cheaper versions of some rules.

Subtopics

Keyval-alist-p
Generic typed list recognizer function.
Valtype-p
Generic typed list valtype recognizer.
Keytype-p
Generic typed list keytype recognizer.
Def-alistp-rule
Define a theorem and save it in a table, denoting that it is a rule about keyval-alistp.