• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
      • Theories
      • Rule-classes
      • Proof-builder
      • Hons-and-memoization
      • Events
      • History
      • Parallelism
      • Programming
      • Start-here
      • Real
      • Debugging
      • Miscellaneous
        • Term
        • Ld
        • Hints
        • Type-set
        • Ordinals
        • ACL2-customization
        • With-prover-step-limit
        • With-prover-time-limit
        • Set-prover-step-limit
        • Local-incompatibility
        • Set-case-split-limitations
        • Subversive-recursions
        • Specious-simplification
        • Defsum
        • Oracle-timelimit
        • Thm
        • Defopener
        • Gcl
        • Case-split-limitations
        • Set-gc-strategy
        • Default-defun-mode
        • Top-level
        • Reader
          • Sharp-f-reader
          • Fancy-string-reader
          • Sharp-u-reader
          • Sharp-dot-reader
            • Backquote
            • Sharp-bang-reader
          • Ttags-seen
          • Adviser
          • Ttree
          • Abort-soft
          • Defsums
          • Gc$
          • With-timeout
          • Coi-debug::fail
          • Expander
          • Gc-strategy
          • Coi-debug::assert
          • Sin-cos
          • Def::doc
          • Syntax
          • Subversive-inductions
        • Output-controls
        • Macros
        • Interfacing-tools
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Testing-utilities
      • Math
    • Reader
    • Defconst

    Sharp-dot-reader

    Read-time evaluation of constants

    Example:
    
    ACL2 !>(defconst *a* '(a b c))
    
    Summary
    Form:  ( DEFCONST *A* ...)
    Rules: NIL
    Warnings:  None
    Time:  0.00 seconds (prove: 0.00, print: 0.00, other: 0.00)
     *A*
    ACL2 !>(quote (1 2 #.*a* 3 4))
    (1 2 (A B C) 3 4)
    ACL2 !>

    The ACL2 reader supports the syntax #.*a* where *a* was defined by defconst. In this case, the reader treats #.*a* as though it were reading the value of *a*. This feature can be useful in conjunction with the use of evisc-table to abbreviate large constants, so that the abbreviation can be read back in; see evisc-table.

    Remarks.

    (1) The ACL2 reader only supports `#.' as described above, unlike Common Lisp. Older versions (preceding 3.5) used `#.' to abort, but that functionality is now carried out by (a!); see a!. For a related feature that only pops up one level, see p!.

    (2) If you call certify-book on a book that contains a form `#.*foo*', the *foo* must already be defined in the world in which you issue the certify-book command. The reason is that certify-book reads the entire book before evaluating its forms.