feat: make Theorem an Inhabited instance (#12324)

This PR adds a default `Inhabited` instance to `Theorem` type.

The need to do so came up in #12296 , as `Theorem` is one of the entries
of the structure which is the key entry of `SimpleScopedEnvExtension`.
This commit is contained in:
Wojciech Różowski 2026-02-05 14:42:36 +00:00 committed by GitHub
parent 4046dd1e61
commit 5345db8877
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,6 +24,7 @@ structure Theorem where
pattern : Pattern
/-- Right-hand side of the equation. -/
rhs : Expr
deriving Inhabited
instance : BEq Theorem where
beq thm₁ thm₂ := thm₁.expr == thm₂.expr