• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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$
        • Defmacro
        • Loop$-primer
        • Fast-alists
        • Defconst
        • 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
          • Let
          • Return-last
          • Mv-let
          • Flet
          • Or
          • Mv
          • And
          • Booleanp
          • If
          • Not
          • Equal
          • Implies
          • Iff
          • Macrolet
          • Quote
          • Let*
          • Case-match
          • ACL2-count
          • Case
          • Good-bye
          • Cond
          • Null
          • Progn$
          • Identity
          • Xor
        • 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
      • Interfacing-tools
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Math
    • Testing-utilities
  • Programming

Basics

Basic control structures for programming like if and cond, binding operators like let and flet, multiple-value constructs like mv, and so forth.

Subtopics

Let
Binding of lexically scoped (local) variables
Return-last
Return the last argument, perhaps with side effects
Mv-let
Calling multi-valued ACL2 functions
Flet
Local binding of function symbols
Or
Disjunction
Mv
Returning a multiple value
And
Conjunction
Booleanp
Recognizer for booleans
If
If-then-else function
Not
Logical negation
Equal
True equality
Implies
Logical implication
Iff
Logical ``if and only if''
Macrolet
Local binding of macro symbols
Quote
Create a constant
Let*
Binding of lexically scoped (local) variables
Case-match
Pattern matching or destructuring
ACL2-count
A commonly used measure for justifying recursion
Case
Conditional based on if-then-else using eql
Good-bye
Quit entirely out of Lisp
Cond
Conditional based on if-then-else
Null
Recognizer for the empty list
Progn$
Execute a sequence of forms and return the value of the last one
Identity
The identity function
Xor
Logical ``exclusive or''