fix: tryAutoCongrTheorem? may still use dsimp for fixed arguments

Reviewed-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2022-03-14 14:04:28 -07:00
parent ef154ec0cf
commit 86fc089e07

View file

@ -317,7 +317,7 @@ where
let args := e.getAppArgs
for arg in args, kind in cgrThm.argKinds do
match kind with
| CongrArgKind.fixed => argsNew := argsNew.push arg
| CongrArgKind.fixed => argsNew := argsNew.push (← dsimp arg)
| CongrArgKind.cast => hasCast := true; argsNew := argsNew.push arg
| CongrArgKind.subsingletonInst => argsNew := argsNew.push arg
| CongrArgKind.eq =>