You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simp unfolds local definition with zetaDelta := false if the value of local definition can be reduced with a projection.
Actual behavior:
Here is a simple example
example (x y : Nat) : let a := (x,y); a.2 = 0 := by
intro a
simp (config := {zetaDelta:=false})
before simp the state is:
x y: Nat
a: Nat × Nat := (x, y)
⊢ a.snd = 0
and after simp the state is:
x y: Nat
a: Nat × Nat := (x, y)
⊢ y = 0
Expected behavior:
I'm expecting for simp not to reduce a.snd to y.
Cause:
I did some digging and found out that the issue is with the calls to reduceProj? in simp which calls whnf with default settings i.e. zetaDelta := true.
Lean version: v4.9.0-rc2
The text was updated successfully, but these errors were encountered:
Simp unfolds local definition with
zetaDelta := false
if the value of local definition can be reduced with a projection.Actual behavior:
Here is a simple example
before
simp
the state is:and after
simp
the state is:Expected behavior:
I'm expecting for simp not to reduce
a.snd
toy
.Cause:
I did some digging and found out that the issue is with the calls to
reduceProj?
in simp which callswhnf
with default settings i.e.zetaDelta := true
.Lean version: v4.9.0-rc2
The text was updated successfully, but these errors were encountered: