• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Debugging
    • Projects
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
      • Theories
      • Rule-classes
      • Proof-builder
      • Hons-and-memoization
      • Events
      • History
      • Parallelism
      • Programming
        • Defun
        • Declare
        • System-utilities
        • Stobj
        • State
        • Memoize
        • Mbe
        • Io
        • Defpkg
        • Apply$
        • Mutual-recursion
        • Loop$
        • Programming-with-state
        • Arrays
        • Characters
          • Character-listp
            • Std/typed-lists/character-listp
            • Character-list-fix
            • Characterp
            • Coerce
            • Standard-char-p
            • Digit-char-p
            • Code-char
            • Char-code
            • Char-downcase
            • Char
            • Char-upcase
            • Explode-nonnegative-integer
            • Explode-atom
            • Upper-case-p
            • Lower-case-p
            • Char-equal
            • Alpha-char-p
            • Digit-to-char
            • Char<
            • Char>=
            • Make-character-list
            • Char>
            • Char<=
            • Standard-char-listp
            • Character-alistp
            • Standard-char-p+
            • Chars-upcase-gen
            • Chars-downcase-gen
            • Char-upcase-gen
            • Char-downcase-gen
          • Time$
          • Loop$-primer
          • Fast-alists
          • Defmacro
          • Defconst
          • Evaluation
          • Guard
          • Equality-variants
          • Compilation
          • Hons
          • ACL2-built-ins
          • Developers-guide
          • System-attachments
          • Advanced-features
          • Set-check-invariant-risk
          • Numbers
          • Irrelevant-formals
          • Efficiency
          • 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
          • Defmacro-untouchable
          • Primitive
          • <<
          • Revert-world
          • Set-duplicate-keys-action
          • Unmemoize
          • Symbols
          • Def-list-constructor
          • Easy-simplify-term
          • Defiteration
          • Defopen
          • Sleep
        • Start-here
        • Real
        • Debugging
        • Miscellaneous
        • Output-controls
        • Macros
        • Interfacing-tools
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Testing-utilities
      • Math
    • Character-listp
    • Make-character-list

    Character-list-fix

    Inline fixing function for character lists.

    Signature
    (character-list-fix x) → *
    Arguments
    x — Guard (character-listp x).

    This is identical to make-character-list except that the guard requires that x is already a character-listp so that, via mbe, we can just return x without fixing it. We leave this function enabled and never expect to reason about it.

    Definitions and Theorems

    Function: character-list-fix$inline

    (defun character-list-fix$inline (x)
           (declare (xargs :guard (character-listp x)))
           (let ((acl2::__function__ 'character-list-fix))
                (declare (ignorable acl2::__function__))
                (mbe :logic (make-character-list x)
                     :exec x)))