• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Bitcoin
      • Riscv
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Poseidon
      • Where-do-i-place-my-book
      • Axe
      • Bigmems
      • Builtins
      • Execloader
      • Aleo
      • Solidity
      • Paco
      • Concurrent-programs
      • Bls12-377-curves
        • Edwards-bls12
          • Edwards-bls12-pointp
          • Edwards-bls12-q
            • Edwards-bls12-d
            • Edwards-bls12-point->v
            • Edwards-bls12-point->u
            • Maybe-edwards-bls12-pointp
            • Edwards-bls12-add
            • Edwards-bls12-mul-fast
            • Edwards-bls12-rstar-pointp
            • Edwards-bls12-mul
            • Edwards-bls12-a
            • Edwards-bls12-r-pointp
            • Edwards-bls12-neg
            • Edwards-bls12-curve
            • Edwards-bls12-r
            • Edwards-bls12-h
            • Edwards-bls12-subgroup-prime
          • Bls12-377-domain-parameters
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Edwards-bls12

    Edwards-bls12-q

    The Edwards-BLS12 base field prime F_q.

    Signature
    (edwards-bls12-q) → q
    Returns
    q — Type (dm::primep q).

    This defines the prime field over which Edwards-BLS12 is defined.

    It is the same as the scalar field of the BLS12-377 elliptic curve. See bls12-377-scalar-field-prime for the exact value. The reason this number is called q here but r in the BLS12-377 domain parameters, is because the letter is relative to the curve. The Edwards-BLS12 curve's base field prime (here q) is equal to the BLS12-377 curve's scalar field prime (there r).

    Definitions and Theorems

    Function: edwards-bls12-q

    (defun edwards-bls12-q nil
      (declare (xargs :guard t))
      (let ((acl2::__function__ 'edwards-bls12-q))
        (declare (ignorable acl2::__function__))
        (bls12-377-scalar-field-prime)))

    Theorem: primep-of-edwards-bls12-q

    (defthm primep-of-edwards-bls12-q
      (b* ((q (edwards-bls12-q)))
        (dm::primep q))
      :rule-classes :rewrite)

    Theorem: edwards-bls12-q-not-two

    (defthm edwards-bls12-q-not-two
      (not (equal (edwards-bls12-q) 2)))