• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • C
        • Soft
        • Bv
        • Imp-language
        • Ethereum
        • Event-macros
        • Java
        • Riscv
        • Bitcoin
        • Zcash
          • Jubjub
          • Verify-zcash-r1cs
          • Lift-zcash-r1cs
          • Pedersen-hash
            • Pedersen-segment-scalar
            • Pedersen-segment-point
            • Find-group-hash
            • Pedersen-point
            • Pedersen-enc
            • Group-hash
            • Coordinate-extract
            • Pedersen-segment-addend
            • Pedersen
            • Pedersen-pad
            • Pedersen-hash-injectivity-properties
            • Pedersen-hash-bound-properties
            • Pedersen-hash-image-properties
              • Pedersen-is-not-uncommitted-sapling
              • *pedersen-c*
            • Zcash-gadgets
            • Bit/byte/integer-conversions
            • Constants
            • Blake2-hash
            • Randomness-beacon
          • Yul
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Axe
          • Lists-light
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Pedersen-hash-image-properties

    Pedersen-is-not-uncommitted-sapling

    *uncommitted-sapling* is not in the image of pedersen.

    This was Theorem 5.4.2 in certain earlier versions of [ZPS], such as version 2020.1.0. Later versions of [ZPS] have similar theorems, but not quite the same. In any case, this property still holds, and it is proved here.

    The theorem is of interest when pedersen returns a good hash, which requires pedersen-point to return a Jubjub point. However, since our definition of pedersen returns nil when pedersen-point does not return a point, this theorem holds unconditionally.

    We first prove the case in which pedersen-point returns a point, and we use the definition of *uncommitted-sapling* in this lemma. This is critical for the injectivity theorem of i2lebsp to apply, which reduces the goal to the inequality of the abscissa of a Jubjub point with 1, which is false by jubjub-point-abscissa-is-not-1. The latter theorem is disabled, but it appears that ACL2's tau system makes use of it.

    Definitions and Theorems

    Theorem: pedersen-is-not-uncommitted-sapling

    (defthm pedersen-is-not-uncommitted-sapling
      (not (equal (pedersen d m)
                  *uncommitted-sapling*)))