Zulip Chat Archive

Stream: mathlib4

Topic: Groupoid.toCategory


Adam Topaz (Nov 07 2023 at 21:39):

Consider the following:

import Mathlib.AlgebraicTopology.FundamentalGroupoid.Basic

open CategoryTheory

variable (X : Type*) [TopologicalSpace X]

#synth (Category X) -- Groupoid.toCategory

This seems like a problem to me!

Adam Topaz (Nov 07 2023 at 21:39):

It seems to come from docs#FundamentalGroupoid which is reducible for some reason!

Adam Topaz (Nov 07 2023 at 21:40):

https://github.com/leanprover-community/mathlib4/blob/bd3e369b6f82c874de0f318c71d7e0595f8a3aa4/Mathlib/AlgebraicTopology/FundamentalGroupoid/Basic.lean#L278C1-L278C42

Joël Riou (Nov 07 2023 at 21:43):

I agree that FundamentalGroupoid should not be reducible.

Eric Wieser (Nov 07 2023 at 21:44):

I think this was a badly ported local attribute [reducible]?

Adam Topaz (Nov 07 2023 at 21:44):

In mathlib3 it was tagged with local attribute [reducible]. I suppose whoever ported this file gave up when lean4 didn't allow for local reducibility and just made it globally reducuble

Adam Topaz (Nov 07 2023 at 21:45):

I'll try to PR a fix at some point soon.

Adam Topaz (Nov 07 2023 at 21:48):

BTW @Jack McKoen this is exactly the issue we came across at the end of lecture from last Thursday.

Adam Topaz (Nov 07 2023 at 22:26):

#8257


Last updated: Dec 20 2023 at 11:08 UTC