feat: pp.analyze isSubstLike support Eq.rec

This commit is contained in:
Daniel Selsam 2021-07-29 12:27:06 -07:00 committed by Sebastian Ullrich
parent 7030eaad3d
commit 3b3e54143c
2 changed files with 3 additions and 1 deletions

View file

@ -216,7 +216,7 @@ def isFunLike (e : Expr) : MetaM Bool := do
withTransparency TransparencyMode.all do forallTelescopeReducing (← inferType e) fun xs b => xs.size > 0
def isSubstLike (e : Expr) : Bool :=
e.isAppOfArity `Eq.ndrec 6
e.isAppOfArity `Eq.ndrec 6 || e.isAppOfArity `Eq.rec 6
def nameNotRoundtrippable (n : Name) : Bool :=
n.hasMacroScopes || isPrivateName n || containsNum n

View file

@ -1,3 +1,5 @@
set_option pp.analyze.trustSubst true
set_option pp.proofs false
example (h : α = β) : h ▸ (a : α) = (b : β) := _
example (h : α = β) : id h ▸ (a : α) = (b : β) := _
example (h : α = β) : id h ▸ (a : α) = (b : β) := by simp