• 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
      • Riscv
      • Taspi
      • Bitcoin
      • 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
      • Aleo
        • Aleobft
        • Aleovm
        • Leo
          • Grammar
          • Early-version
            • Json2ast
            • Testing
            • Definition
              • Flattening
              • Abstract-syntax
              • Dynamic-semantics
              • Compilation
              • Static-semantics
                • Type-checking
                • Static-environments
                • Curve-parameterization
                  • Curve-subgroupp
                  • Curve-subgroup-add
                  • Curve-subgroup-mul
                  • Curve
                  • Curve-subgroup-neg
                  • Curve-generator
                  • Curve-zero
                    • Curve-base-prime
                    • Curve-scalar-prime
                  • Function-recursion
                  • Struct-recursion
                  • Input-checking
                  • Program-checking
                  • Type-maps-for-struct-components
                  • Program-and-input-checking
                  • Output-checking
                • Concrete-syntax
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Curve-parameterization

    Curve-zero

    Neutral point of the subgroup.

    Signature
    (curve-zero curve) → zero
    Arguments
    curve — Guard (curvep curve).
    Returns
    zero — Type (curve-subgroupp zero curve).

    This is the same as the neutral point of the curve, since the neutral point is shared with the subgroup.

    Definitions and Theorems

    Function: curve-zero

    (defun curve-zero (curve)
      (declare (xargs :guard (curvep curve)))
      (declare (ignore curve))
      (let ((__function__ 'curve-zero))
        (declare (ignorable __function__))
        (ecurve::twisted-edwards-zero)))

    Theorem: return-type-of-curve-zero

    (defthm return-type-of-curve-zero
      (b* ((zero (curve-zero curve)))
        (curve-subgroupp zero curve))
      :rule-classes :rewrite)

    Theorem: pointp-of-curve-zero

    (defthm pointp-of-curve-zero
      (b* ((zero (curve-zero curve)))
        (pointp zero))
      :rule-classes :rewrite)

    Theorem: curve-zero-of-curve-fix-curve

    (defthm curve-zero-of-curve-fix-curve
      (equal (curve-zero (curve-fix curve))
             (curve-zero curve)))

    Theorem: curve-zero-curve-equiv-congruence-on-curve

    (defthm curve-zero-curve-equiv-congruence-on-curve
      (implies (curve-equiv curve curve-equiv)
               (equal (curve-zero curve)
                      (curve-zero curve-equiv)))
      :rule-classes :congruence)