Skip to content

zify incorrectly uses Eq.refl #741

@kim-em

Description

@kim-em

In Lean 3 we had:

import tactic.zify

example (h : 0 = 0) : true :=
begin
  zify at h,     -- `h` is `(0 : ℤ) = 0`, not `true`.
  fail_if_success { assumption, },
  trivial,
end

but in Lean 4 we now have:

import Mathlib.Tactic.Zify

example (h : 0 = 0) : True := by
  zify at h   -- `h` has become `True`
  assumption

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions