fix: prove decidable_of_decidable_of_eq without cast
This commit is contained in:
parent
d4c7d0f266
commit
f93914e613
1 changed files with 2 additions and 2 deletions
|
|
@ -431,8 +431,8 @@ variable {p q : Prop}
|
|||
else
|
||||
isFalse fun hq => absurd (Iff.mpr h hq) hp
|
||||
|
||||
@[inline] def decidable_of_decidable_of_eq [hp : Decidable p] (h : p = q) : Decidable q :=
|
||||
h ▸ hp
|
||||
@[inline] def decidable_of_decidable_of_eq [Decidable p] (h : p = q) : Decidable q :=
|
||||
decidable_of_decidable_of_iff (p := p) (h ▸ Iff.rfl)
|
||||
end
|
||||
|
||||
@[macroInline] instance {p q} [Decidable p] [Decidable q] : Decidable (p → q) :=
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue