Sign in
◑
Theme
fuchsia
/
third_party
/
github.com
/
leanprover
/
lean4
/
HEAD
/
.
/
tests
/
elab
/
1679.lean
blob: 9dfa352584328445a92982e396a1f1bad01c83f6 [
file
]
@[
elab_as_elim
]
theorem
Eq
.
subst
' {α} {motive : α → Prop} {a b : α} :
a = b → motive a → motive b := Eq.subst
example (P : α → Prop) {a b} (e : a = b) (h : P a) : P b :=
Eq.subst'
e h
example
(
P
:
α
→
Prop
)
{
a b
}
(
e
:
a
=
b
)
(
h
:
P a
)
:
P b
:=
e
▸
h