last 3 sorries at lines 223-4-5 of g.thy