Zulip Chat Archive

Stream: lean4

Topic: rw bug priority of variables


Jon Eugster (Oct 20 2023 at 18:01):

Do we consider the following a bug? I would expect that the variable in context would take highest priority.

import Lean

open List

example (A B : Prop) (all : A  B) (b : B) : A := by
  rw[all] -- error: failed to rewrite using equation theorems for 'List.all'
  assumption

Alex J. Best (Oct 20 2023 at 18:14):

Yes I think so

Scott Morrison (Oct 21 2023 at 03:21):

@Jon Eugster, could you open an issue? It would be good to note that simp succeeds here.

Jon Eugster (Oct 21 2023 at 10:32):

lean4#2729

Scott Morrison (Oct 21 2023 at 23:08):

If anyone would like to investigate this one that would be helpful. I'm happy to review the PR if there's an easy solution.

Thomas Murrills (Oct 24 2023 at 02:55):

Just to record it here: PR: lean4#2738


Last updated: Dec 20 2023 at 11:08 UTC