prototype: Adapt Hier.agda file.