The formal specification of ELEKTRA