Documentation

Elligator.Elligator1.Example

Computational sanity checks #

This plays the same role for the Lean development that the Sage scripts at https://elligator.cr.yp.to/thm1.sage and https://elligator.cr.yp.to/thm4.sage play for the original paper: brute-force numeric evidence, complementary to the actual proofs.

TODO order this a bit and find meaningful examples to check, rather than just dumping a bunch of random computations.

The field and parameter #

@[reducible, inline]

The field with 7 elements

Equations
Instances For

    A non-zero element of F7

    Equations
    Instances For

      Decoding: ϕ : F7 → E(F7), Definition 2 #

      mkBits n reads off the bits of n, giving an element of Fin (b 7) → Bool for any n without needing to know b 7's concrete value up front.

      Equations
      Instances For

        All four 2-bit strings land in S for q = 7, since (7-1)/2 = 3 is the largest possible 2-bit value.