Zulip Chat Archive

Stream: general

Topic: says tactic does not work in v4.24.0-rc1


Asei Inoue (Sep 21 2025 at 13:34):

import Mathlib.Tactic

set_option says.verify true

variable {X Y Z : Type}

open Function

example {f : X  Y} {g : Y  Z} (hgfinj : Injective (g  f)) : Injective f := by
  rw [Injective]
  aesop? says
    intro a₁ a₂ a
    apply hgfinj
    simp_all only [comp_apply]

This code did work in v4.23.0, but does not work in v4.24.0-rc1.
How to fix this?

Asei Inoue (Sep 21 2025 at 13:50):

Error message says:

Failed to parse tactic output:

  intro a₁ a₂ a
apply hgfinj
simp_all only [comp_apply]

<input>:4:0: expected end of input

Aaron Liu (Sep 21 2025 at 13:53):

interesting

Asei Inoue (Sep 21 2025 at 14:09):

regression of says?

Aaron Liu (Sep 21 2025 at 14:11):

does it work with multiline suggestions from other tactics

Kim Morrison (Sep 24 2025 at 04:55):

I think the indenting of the try this suggestions has changed, and someone needs to update says to accommodate this?

Asei Inoue (Sep 24 2025 at 05:47):

I’m having trouble updating my project because of this bug.

Kim Morrison (Sep 24 2025 at 08:14):

#29930

Asei Inoue (Sep 25 2025 at 13:23):

@Kim Morrison Thank you!!!

Asei Inoue (Sep 25 2025 at 14:08):

I've found another says problem in v4.24.0-rc1

import Mathlib.Tactic

set_option says.verify true

example {n : Nat} : n - n + n = n := by
  /- failed to parse tactic output -/
  ring says ring_nf
  omega

Last updated: Dec 20 2025 at 21:32 UTC