Commit 2026-11-11 11:02 f5968138

View on Github →

chore(CategoryTheory): improve some ConcreteCategory instances (#39037) Two instances involving concrete categories have the wrong synthesis order. This is fixed by using a different binder info for the FunLike instance. Previously, type class search would end up with a goal of the form ∀ x y, FunLike (?FV x y) _ _. The metavariable then caused the type class search to explode. Lean has an algorithm for determining the right synthOrder, which usually works well, but failed in these two cases. This is becase the type FV appears in the conclusion, so it thinks that the ?FV metavariable will get assigned. But it ends up not being assigned in practice. The FunLike parameter of ConcreteCategory is an outParam, which means that it can be inferred by synthesizing the ConcreteCategory instance.

Estimated changes