fix: beta reduce value at processAssignmentFOApprox
This commit is contained in:
parent
367432defc
commit
fc6c8e0348
2 changed files with 2 additions and 1 deletions
|
|
@ -675,6 +675,7 @@ private partial def processAssignmentFOApprox (mvar : Expr) (args : Array Expr)
|
|||
pure false
|
||||
else
|
||||
trace[Meta.isDefEq.foApprox]! "{mvar} {args} := {v}"
|
||||
let v := v.headBeta
|
||||
if (← commitWhen $ processAssignmentFOApproxAux mvar args v) then
|
||||
pure true
|
||||
else
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ def concatElim {α}
|
|||
def test (xs : List Nat) : IO Unit :=
|
||||
concatElim (motive := fun _ => IO Unit)
|
||||
(fun _ => pure ())
|
||||
(fun xs x (r : IO Unit) => do IO.println s!"step xs: {xs} x: {x}"; r) -- TODO: check why we need (r : IO Unit)
|
||||
(fun xs x r => do IO.println s!"step xs: {xs} x: {x}"; r)
|
||||
xs
|
||||
|
||||
#eval test [1, 2, 3, 4]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue