Discovery of Invariants through Automated Theory Formation