fix: panic when applying `@[simp]` to malformed theorem syntax closes #4309
This is the repository for Lean 4.
See Setting Up Lean.
Please read our Contribution Guidelines first.
See Building Lean (documentation source: doc/make/index.md).