LeanCat / CAT_statement /S_0037.lean
scicraft's picture
Upload folder using huggingface_hub
916823d verified
import Mathlib
open CategoryTheory
namespace CAT_statement_S_0037
universe u v w
variable {X : Type uX} [Category.{vX} X]
structure ConcreteCat (X : Type v) [Category X] where
C : Type u
[cat : Category C]
U : CX
[U_Faithful : U.Faithful]
attribute [instance] ConcreteCat.cat ConcreteCat.U_Faithful
def IsConcreteFunc {A B : ConcreteCat (X := X)} (F : A.CB.C) : Prop :=
Nonempty ((FB.U)A.U)
def SetConcrete : ConcreteCat (X := Type u) :=
{ C := Type u
U := 𝟭 (Type u) }
def TopConcrete : ConcreteCat (X := Type u) :=
{ C := TopCat.{u}
U := (forget TopCat) }
def ConcreteFuncs (A B : ConcreteCat (X := Type u)) : Type _ :=
{ F : A.CB.C // IsConcreteFunc (A := A) (B := B) F }
def ConcreteFuncsSetoid (A B : ConcreteCat (X := Type u)) :
Setoid (ConcreteFuncs A B) where
r F G := Nonempty (F.1G.1)
iseqv := by
refine ⟨?_, ?_, ?_
· intro F
exact ⟨Iso.refl F.1
· intro F G h
rcases h withe
exact ⟨e.symm
· intro F G H hFG hGH
rcases hFG witheFG
rcases hGH witheGH
exact ⟨eFG.trans eGH
def ConcreteFuncClasses (A B : ConcreteCat (X := Type u)) : Type _ :=
Quotient (ConcreteFuncsSetoid A B)
theorem only_two_concrete_functors_from_Set_to_Top_iso :
Nat.card (ConcreteFuncClasses SetConcrete TopConcrete) = 2 := by
sorry
end CAT_statement_S_0037