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:
parent
4046dd1e61
commit
5345db8877
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue