Zulip Chat Archive

Stream: mathlib4

Topic: exact? doesn't find a trivial


Antoine Chambert-Loir (Jun 08 2025 at 19:23):

Here are two examples.
In the first one, exact? finds something equivalent to Ne.symm h, in the second, it doesn't find anything.

example (a b : ) (h : ¬ a = b) : ¬ b  = a := by
  exact fun a_1  h (id (Eq.symm a_1))

example (a b : ) (h : ¬ a = b  True) : ¬ b = a := by
  exact?

Johan Commelin (Jun 09 2025 at 04:17):

Isn't that because exact? only does search that goes 1 level deep? And now it has to do 2 levels: And.intro and then on the next level h.symm and trivial.

Antoine Chambert-Loir (Jun 09 2025 at 18:38):

Probably, yes. But I didn't know that exact? didn't seach below level 1.


Last updated: Dec 20 2025 at 21:32 UTC