fix: panic when applying `@[simp]` to malformed theorem syntax

closes #4309
3 files changed