EasyCrypt's words over a finite alphabet (theories/datatypes/Tuple.eca) #
The alphabet's enumeration (Support.enum of the FinType clone) is an explicit argument. Only
what ported developments use is here.
Equations
- GaudisCrypt.EC.Tuple.WordN.cross s a = (List.map (fun (x : α) => GaudisCrypt.EC.Tuple.WordN.cross1 x a) s).flatten
Instances For
wordn n: all words of length n over the alphabet enum.
Equations
- GaudisCrypt.EC.Tuple.wordn enum n = List.foldl (fun (s : List (List α)) (x : ℤ) => GaudisCrypt.EC.Tuple.WordN.cross enum s) [[]] (GaudisCrypt.EC.iota_ 0 n)