feat: use splitTarget? when proving equation theorems for recursive definitions
This commit is contained in:
parent
afb5cb16ee
commit
3367f0b06a
2 changed files with 4 additions and 0 deletions
|
|
@ -50,6 +50,8 @@ where
|
|||
go mvarId
|
||||
else if let some mvarIds ← casesOnStuckLHS? mvarId then
|
||||
mvarIds.forM go
|
||||
else if let some mvarIds ← splitTarget? mvarId then
|
||||
mvarIds.forM go
|
||||
else
|
||||
throwError "failed to generate equational theorem for '{declName}'\n{MessageData.ofGoal mvarId}"
|
||||
|
||||
|
|
|
|||
|
|
@ -57,6 +57,8 @@ where
|
|||
| TacticResultCNM.noChange =>
|
||||
if let some mvarIds ← casesOnStuckLHS? mvarId then
|
||||
mvarIds.forM go
|
||||
else if let some mvarIds ← splitTarget? mvarId then
|
||||
mvarIds.forM go
|
||||
else
|
||||
throwError "failed to generate equational theorem for '{declName}'\n{MessageData.ofGoal mvarId}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue