• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Math
      • 100-theorems
      • Arithmetic
        • Lispfloat
        • Arithmetic-1
        • Number-theory
          • Tonelli-shanks-modular-sqrt-algorithm
          • Defprime
          • Dm::primep
          • Defprime-alias
            • Prime
            • Has-square-root?
            • Prime-fix
            • Secp256k1-group-prime
            • Secp256k1-field-prime
            • Jubjub-subgroup-prime
            • Bn-254-group-prime
            • Bls12-381-scalar-field-prime
            • Baby-jubjub-subgroup-prime
            • Goldilocks-prime
          • Proof-by-arith
          • Arith-equivs
          • Include-an-arithmetic-book
          • Number-theory
          • Arithmetic-3
          • Arithmetic-2
          • Arithmetic-light
          • Arithmetic-5
        • Bit-vectors
        • Algebra
      • Testing-utilities
    • Number-theory

    Defprime-alias

    Introduce an alias of an existing prime introduced with defprime.

    General Form:

    (defprime-alias name
                    existing-prime-name
                    &key
                    :evisc              ; default t
                    :parents            ; default :auto
                    :short              ; default :auto
                    :long               ; default :auto
                    :doc                ; default t
                    )

    Inputs:

    name — (required)

    Name of the prime to introduce, a symbol.

    existing-prime-name — (required)

    Name of the existing prime, a symbol.

    :evisc — default t

    Whether to print occurrences of the prime using its symbolic name.

    :parents — default :auto

    Xdoc :parents for the prime.

    :short — default :auto

    Xdoc :short description for the prime.

    :long — default :auto

    Xdoc :long section for the prime.

    :doc — default t

    Whether to generate xdoc for the prime.

    Description:

    Defprime-alias generates all of the things generated by defprime, except that it omits the call to ACL2::add-io-pairs, since that has already been done for the existing prime, which has the same numeric value as the new prime.