• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
          • Omaps
          • Directed-untranslate
          • Include-book-paths
          • Ubi
          • Numbered-names
          • Digits-any-base
          • Context-message-pair
          • With-auto-termination
          • Make-termination-theorem
          • Theorems-about-true-list-lists
          • Checkpoint-list
          • Sublis-expr+
          • Integers-from-to
          • Prove$
          • Defthm<w
          • System-utilities-non-built-in
          • Integer-range-fix
          • Minimize-ruler-extenders
          • Add-const-to-untranslate-preprocess
          • Unsigned-byte-fix
          • Signed-byte-fix
          • Defthmr
          • Paired-names
          • Unsigned-byte-list-fix
          • Signed-byte-list-fix
          • Show-books
          • Skip-in-book
          • Typed-tuplep
          • List-utilities
          • Checkpoint-list-pretty
          • Defunt
          • Keyword-value-list-to-alist
          • Magic-macroexpand
          • Top-command-number-fn
          • Bits-as-digits-in-base-2
          • Show-checkpoint-list
          • Ubyte11s-as-digits-in-base-2048
          • Named-formulas
          • Bytes-as-digits-in-base-256
          • String-utilities
          • Make-keyword-value-list-from-keys-and-value
          • Defmacroq
          • Integer-range-listp
          • Apply-fn-if-known
          • Trans-eval-error-triple
          • Checkpoint-info-list
          • Previous-subsumer-hints
          • Fms!-lst
          • Zp-listp
          • Trans-eval-state
          • Injections
          • Doublets-to-alist
          • Theorems-about-osets
          • Typed-list-utilities
          • Book-runes-alist
          • User-interface
          • Bits/ubyte11s-digit-grouping
          • Bits/bytes-digit-grouping
          • Message-utilities
          • Subsetp-eq-linear
          • Oset-utilities
          • Strict-merge-sort-<
          • Miscellaneous-enumerations
          • Maybe-unquote
          • Thm<w
          • Defthmd<w
          • Io-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
  • Kestrel-books

Kestrel-utilities

Utilities that are part of the Kestrel Books.

Subtopics

Omaps
A library of omaps (ordered maps), i.e. finite maps represented as strictly ordered alists.
Directed-untranslate
Create a user-level form that reflects a given user-level form's structure.
Include-book-paths
List paths via include-book down to a given book
Ubi
Undo back up to longest initial segment containing only calls of certain symbols, including defpkg and include-book.
Numbered-names
Utilities for numbered names.
Digits-any-base
Conversions between natural numbers and their representations as digits in arbitrary bases.
Context-message-pair
A common ACL2 programming idiom: error-triples without state
With-auto-termination
Re-use an existing termination proof automatically.
Make-termination-theorem
Create a copy of a function's termination theorem that calls stubs.
Theorems-about-true-list-lists
Theorems about true lists of true lists.
Checkpoint-list
Return prover key checkpoint clauses programmatically.
Sublis-expr+
Replace terms by variables, even inside lambda bodies
Integers-from-to
Ordered list of all the integers in a range.
Prove$
A way to call the prover from a program
Defthm<w
Attempt to prove a theorem directly from previously-proved theorems.
System-utilities-non-built-in
System utilities related to the ACL2 system.
Integer-range-fix
Fixing function for integer-range-p.
Minimize-ruler-extenders
Minimize the ruler-extenders necessary to admit a definition.
Add-const-to-untranslate-preprocess
Extend untranslate-preprocess to keep a constant unexpanded in output.
Unsigned-byte-fix
Fixing function for unsigned-byte-p.
Signed-byte-fix
Fixing function for signed-byte-p.
Defthmr
Submit a theorem, as a rewrite rule only if possible.
Paired-names
Utilities for paired names.
Unsigned-byte-list-fix
Fixing function for unsigned-byte-listp.
Signed-byte-list-fix
Fixing function for signed-byte-listp.
Show-books
Return a tree representing the included books.
Skip-in-book
Skip a form when executing certify-book or include-book
Typed-tuplep
Recognize typed tuples, i.e. true lists whose elements satisfy specified predicates.
List-utilities
Some utilities for lists.
Checkpoint-list-pretty
Return prover key checkpoint goals programmatically.
Defunt
Variant of defun that re-uses existing termination theorems automatically.
Keyword-value-list-to-alist
Turn a true list of even length with keywords at its even-numbered positions (counting from 0), into the corresponding alist.
Magic-macroexpand
A macroexpansion utility for logic-mode code
Top-command-number-fn
Returns the number of the most recent top-level ACL2 command.
Bits-as-digits-in-base-2
Specialized versions of the operations to convert between natural numbers and digits that use bits as digits, in base 2.
Show-checkpoint-list
Display prover key checkpoint information.
Ubyte11s-as-digits-in-base-2048
Specialized versions of the operations to convert between natural numbers and digits that use unsigned 11-bit bytes as digits, in base 2048.
Named-formulas
Utilities for named formulas.
Bytes-as-digits-in-base-256
Specialized versions of the operations to convert between natural numbers and digits that use bytes as digits, in base 256.
String-utilities
Some utilities for strings (and characters).
Make-keyword-value-list-from-keys-and-value
Make a list satisfying keyword-value-listp by associating each member of a true-list of keywords list of keywords with a given value.
Defmacroq
Define a macro that quotes arguments not wrapped in :eval
Integer-range-listp
Recognize true lists of integers in ranges.
Apply-fn-if-known
Apply a function, expressed as a package and a name, if it exists.
Trans-eval-error-triple
An ACL2 evaluator for forms that return error-triples
Checkpoint-info-list
Return prover key checkpoint information programmatically.
Previous-subsumer-hints
Hints to prove a theorem directly from previously-proved theorems.
Fms!-lst
Write each object in a list to a character output channel.
Zp-listp
Recognize true lists of zp values.
Trans-eval-state
An ACL2 evaluator that returns state
Injections
Set of all functions from a finite domain to a finite range
Doublets-to-alist
Turn a true list of doublets (i.e. lists of length 2) into the corresponding alist.
Theorems-about-osets
Theorems about finite sets.
Typed-list-utilities
Some utilities for typed lists.
Book-runes-alist
Returns an alist associating book full pathnames with runes introduced
User-interface
Utilities for the user interface of event-generating macros (e.g. program transformations).
Bits/ubyte11s-digit-grouping
Specialized versions of the operations to group and ungroup digitsthat are bits (base 2) and unsigned 11-bit bytes (base 2048).
Bits/bytes-digit-grouping
Specialized versions of the operations to group and ungroup digitsthat are bits (base 2) and bytes (base 256).
Message-utilities
Utilities for messages.
Subsetp-eq-linear
A linear-time subset test for sorted lists of symbols
Oset-utilities
Utilities for finite sets.
Strict-merge-sort-<
Sort a list of rational numbers into <-increasing order
Miscellaneous-enumerations
Some miscellaneous enumerations.
Maybe-unquote
Unquote an object, if quoted; otherwise, leave unchanged.
Thm<w
Attempt to prove a theorem directly from previously-proved theorems.
Defthmd<w
Attempt to prove a theorem directly from previously-proved theorems.
Io-utilities
Some utilities for io.