Zulip Chat Archive
Stream: new members
Topic: Rewrite does not always work?
Arnoud van der Leer (Dec 30 2025 at 08:44):
Hi, I sometimes encounter error messages like
Tactic `rewrite` failed: Did not find an occurrence of the pattern
X.map (SimplexCategory.δ 2).op (uliftYonedaEquiv (hom_inv_id ≫ g))
in the target expression
X.map (SimplexCategory.δ 2).op (uliftYonedaEquiv (hom_inv_id ≫ g)) = f
whilst formalizing. What kind of things can I look for to resolve things like this?
In this case, I have a workaround in the form of apply (...).trans, but that does not solve the underlying problem.
(Also: is there a channel for this kind of question? Should I ask these on stackexchange instead? Because I would expect that after about N questions in this channel (for some N : ℕ), I do no longer qualify as a "new" member)
Arnoud van der Leer (Dec 30 2025 at 08:46):
Fairly close to the last one, I encounter a similar error:
Tactic `rewrite` failed: Did not find an occurrence of the pattern
uliftYonedaEquiv.symm f
in the target expression
uliftYoneda.{0, 0, 0}.map (SimplexCategory.δ 2).op.unop ≫ hom_inv_id ≫ g = uliftYonedaEquiv.symm f
Lun Song (Dec 30 2025 at 08:49):
This is often due to different implicit arguments or instances. You can check whether their full forms (including implicit arguments) are the same
Arnoud van der Leer (Dec 30 2025 at 08:50):
How do I see their full form?
Kevin Buzzard (Dec 30 2025 at 09:16):
set_option pp.all true. Alternatively try erw or convert
Arnoud van der Leer (Dec 30 2025 at 09:24):
Yup. Probably the implicits.
Arnoud van der Leer (Dec 30 2025 at 09:24):
Thanks!
Ruben Van de Velde (Dec 30 2025 at 11:04):
And for your other question: I think this kind of question is still on topic for this stream
Arnoud van der Leer (Dec 30 2025 at 11:04):
Okay. Then I will keep posting questions here ^^
Jovan Gerbscheid (Dec 31 2025 at 15:21):
To debug such a failing unification, I find using set_option trace.Meta.isDefEq true in the most convenient tool.
Last updated: Feb 28 2026 at 14:05 UTC