more rewrite proof work; still doesn't compile