Skip to content

zify incorrectly uses Eq.refl #741

Open

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

Activity

  1. changed the title [-]`zify` incorrectly uses `eq.refl`[/-] [+]`zify` incorrectly uses `Eq.refl`[/+] on Apr 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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