KR00: is a bijection of
ProvedCryptologyCity.kr00_tcol_bijectivecryptographycryptology-citydiscrete-logarithm
For every and all , the map is a bijection of . So sends a uniform to a uniform .
Preamble
import Definitions.Def_CryptologyCity_DLogCommitments open scoped ENNReal
Formal statement
namespace CryptologyCity
theorem kr00_tcol_bijective (p : ℕ) (x m m' : ZMod p) :
Function.Bijective fun r => kr00TCol x m r m' := by sorry
end CryptologyCitySource
Cryptology City, Chameleon hash function, Correctness, https://cryptology.city/Primitives/chameleon-hash-function#correctness ('TCol(td, m, ·, m') is a bijection of R' for both constructions).
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be an arbitrary natural number (not assumed prime or non-zero; for , is ) and let be arbitrary (in particular or a non-unit is allowed). The theorem asserts that the map
is a bijection, where is Mathlib's total inverse on (equal to for and a junk value for other non-units). For fixed the map is translation by the constant ; no group, hash key or distribution appears.
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.