• 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
          • Slow-array-warning
          • Compress1
          • Aset1
            • Aset1-trusted
            • Aref1
            • Flush-compress
            • Aset2
            • Compress2
            • Header
            • Aref2
            • Maximum-length
            • Dimensions
            • Default
            • Aset1-trusted
              • Arrays-example
              • Array2p
              • Array1p
              • Maybe-flush-and-compress1
            • 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
            • 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
      • Arrays
      • ACL2-built-ins
      • Aset1

      Aset1-trusted

      Set the elements of a 1-dimensional array without invariant-risk

      Example Form:
      (aset1-trusted 'delta1 a (+ i k) 27)
      
      General Form:
      (aset1-trusted name alist index val)

      This utility is identical to aset1; in fact, it has the same guard. The difference is that it does not carry invariant-risk. Because of that, functions that call aset1-trusted may suffer from invariant-risk but not be noted by the system as carrying invariant-risk. Therefore, aset1-trusted it is untouchable and should be used with great care. If your system consists of :logic-mode functions, then there is no reason to use aset1-trusted, because only :program-mode functions truly carry invariant-risk.

      Function: aset1-trusted

      (defun aset1-trusted (name l n val)
        (declare (xargs :guard (and (array1p name l)
                                    (integerp n)
                                    (>= n 0)
                                    (< n (car (dimensions name l))))))
        (aset1 name l n val))