Definitional approach to automatic demonstration