Documentation

Elligator.Elligator1.SProperties

S Properties #

This file identifies the binary values represented by S, the lower-half string set used in Theorem 4, and computes its cardinality.

Main results #

References #

See [bernstein2013a], Section 3.4, Theorem 4.

Binary evaluation maps the admissible strings S onto exactly the natural-number interval from 0 through (q - 1) / 2, as required by the definition of S in Theorem 4.

theorem Elligator.Elligator1.S_card_eq_q_add_one_div_two {q : } (hq_mod : q % 4 = 3) :
S.card = (q + 1) / 2

The lower-half string set S has (q + 1) / 2 elements when q ≡ 3 (mod 4). This is the cardinality computation used in Theorem 4 of the paper.