Zulip Chat Archive
Stream: new members
Topic: failed to synthesize HasFiniteLimits (Type u)
Shanghe Chen (May 05 2024 at 15:16):
Hi I am doing some exercises related to Yoneda style proof. And it seems currently no instance for showing Type u
has finite limits?
import Mathlib.CategoryTheory.Limits.Shapes.FiniteLimits
import Mathlib.CategoryTheory.Types
open CategoryTheory
open Category
open Limits
universe u
set_option trace.Meta.synthInstance true in
#synth Category (Type u)
#synth HasFiniteLimits (Type u)
-- failed to synthesize
-- HasFiniteLimits (Type u)
Joël Riou (May 05 2024 at 15:19):
You may have to import Mathlib.CategoryTheory.Limits.Types
.
Shanghe Chen (May 05 2024 at 15:21):
It works now. Thank you very much Joël :tada:
Last updated: May 02 2025 at 03:31 UTC