• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
      • Theories
      • Rule-classes
      • Proof-builder
      • Recursion-and-induction
      • Hons-and-memoization
      • Events
      • Parallelism
      • History
      • Programming
        • Defun
        • Declare
          • Xargs
            • Guard
            • Otf-flg
            • Normalize
            • Measure
              • Termination-theorem-example
              • Measure-debug
              • Make-termination-theorem
              • Termination-theorem
              • Tthm
          • Type-spec
          • Declare-stobjs
          • Set-ignore-ok
          • Set-irrelevant-formals-ok
        • System-utilities
        • Stobj
        • State
        • Mutual-recursion
        • Memoize
        • Mbe
        • Io
        • Defpkg
        • Apply$
        • Loop$
        • Programming-with-state
        • Arrays
        • Characters
        • Time$
        • Fast-alists
        • Defconst
        • 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
        • 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
      • Debugging
      • Miscellaneous
      • Output-controls
      • Macros
      • Mailing-lists
      • Interfacing-tools
    • Macro-libraries
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Math
    • Testing-utilities
  • Xargs

Measure

Declare a measure for a defun

See xargs for discussion of how to use the :measure keyword to specify a measure for a definition. A related utility, get-measure, may be found in the community-books, file std/system/get-measure.lisp.

Subtopics

Termination-theorem-example
How to use a previously-proved measure theorem
Measure-debug
Generate markers to indicate sources of measure proof obligations
Make-termination-theorem
Create a copy of a function's termination theorem that calls stubs.
Termination-theorem
Use a (functional instance of a) previously-proved measure theorem
Tthm
The measure (termination) theorem for a given function symbol