Agda proof reconstruction