mirror of
https://github.com/leanprover/lean4.git
synced 2026-03-17 18:34:06 +00:00
fix: whnf
This commit is contained in:
@@ -348,7 +348,7 @@ mutual
|
||||
unless projInfo.fromClass do return none
|
||||
-- First check whether `e`s instance is stuck.
|
||||
if let some major := args[projInfo.numParams]? then
|
||||
if let some mvarId ← getStuckMVar? major then
|
||||
if let some mvarId ← getStuckMVar? (← whnf major) then
|
||||
return mvarId
|
||||
/-
|
||||
Then, recurse on the explicit arguments
|
||||
@@ -366,7 +366,7 @@ mutual
|
||||
else if let some auxInfo ← getAuxParentProjectionInfo? fName then
|
||||
unless auxInfo.fromClass do return none
|
||||
if let some major := args[auxInfo.numParams]? then
|
||||
if let some mvarId ← getStuckMVar? major then
|
||||
if let some mvarId ← getStuckMVar? (← whnf major) then
|
||||
return mvarId
|
||||
return none
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user