case hT
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
⊢ ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)

J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
⊢ ∃ j V x, U = (forget Profinite).map (C.π.app j) ⁻¹' V
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
⊢ ∃ j V x, U = (forget Profinite).map (C.π.app j) ⁻¹' V
have hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis
    ((fun j ↦ {W : Set (F.obj j)| IsClopen W}) j)
case compat
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
⊢ ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i

J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
⊢ ∃ j V x, U = (forget Profinite).map (C.π.app j) ⁻¹' V
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
⊢ ∃ j V x, U = (forget Profinite).map (C.π.app j) ⁻¹' V
have compat : ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j ↦ {W | IsClopen W}) j → (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈
    (fun j ↦ {W | IsClopen W}) i
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
hB :
  TopologicalSpace.IsTopologicalBasis
    {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
⊢ ∃ j V x, U = (forget Profinite).map (C.π.app j) ⁻¹' V
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
⊢ ∃ j V x, U = (forget Profinite).map (C.π.app j) ⁻¹' V
have hB := TopCat.isTopologicalBasis_cofiltered_limit.{u, u} (F ⋙ Profinite.toTopCat)
    (Profinite.toTopCat.mapCone C) (isLimitOfPreserves _ hC) (fun j => {W | IsClopen W}) hT
    (fun i => isClopen_univ) (fun i U1 U2 hU1 hU2 => hU1.inter hU2) compat
case intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
hB :
  TopologicalSpace.IsTopologicalBasis
    {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
⊢ ∃ j V x, U = (forget Profinite).map (C.π.app j) ⁻¹' V
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
hB :
  TopologicalSpace.IsTopologicalBasis
    {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
⊢ ∃ j V x, U = (forget Profinite).map (C.π.app j) ⁻¹' V
obtain ⟨S, hS, h⟩ := hB.open_eq_sUnion hU.1
case intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
⊢ ∃ j V x, U = (forget Profinite).map (C.π.app j) ⁻¹' V
case intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
hB :
  TopologicalSpace.IsTopologicalBasis
    {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
⊢ ∃ j V x, U = (forget Profinite).map (C.π.app j) ⁻¹' V
clear hB
case intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
⊢ ∃ j V x, U = (forget Profinite).map (C.π.app j) ⁻¹' V
case intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
⊢ ∃ j V x, U = (forget Profinite).map (C.π.app j) ⁻¹' V
let j : S → J := fun s => (hS s.2).choose
case intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
⊢ ∃ j V x, U = (forget Profinite).map (C.π.app j) ⁻¹' V
case intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
⊢ ∃ j V x, U = (forget Profinite).map (C.π.app j) ⁻¹' V
let V : ∀ s : S, Set (F.obj (j s)) := fun s => (hS s.2).choose_spec.choose
case intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
⊢ ∃ j V x, U = (forget Profinite).map (C.π.app j) ⁻¹' V
case intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
⊢ ∃ j V x, U = (forget Profinite).map (C.π.app j) ⁻¹' V
have hV : ∀ s : S, IsClopen (V s) ∧ s.1 = C.π.app (j s) ⁻¹' V s := fun s =>
  (hS s.2).choose_spec.choose_spec
case hUo
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
⊢ ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)

case intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
⊢ ∃ j V x, U = (forget Profinite).map (C.π.app j) ⁻¹' V
case intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
⊢ ∃ j V x, U = (forget Profinite).map (C.π.app j) ⁻¹' V
have hUo : ∀ (i : ↑S), IsOpen ((fun s ↦ (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
case hsU
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
⊢ U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i

case intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
⊢ ∃ j V x, U = (forget Profinite).map (C.π.app j) ⁻¹' V
case intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
⊢ ∃ j V x, U = (forget Profinite).map (C.π.app j) ⁻¹' V
have hsU : U ⊆ ⋃ (i : ↑S), (fun s ↦ (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
case intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
this : ∃ t, U ⊆ ⋃ (i : ↑S) (_ : i ∈ t), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
⊢ ∃ j V x, U = (forget Profinite).map (C.π.app j) ⁻¹' V
case intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
⊢ ∃ j V x, U = (forget Profinite).map (C.π.app j) ⁻¹' V
have := hU.2.isCompact.elim_finite_subcover (fun s : S => C.π.app (j s) ⁻¹' V s) hUo hsU
case intro.intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
⊢ ∃ j V x, U = (forget Profinite).map (C.π.app j) ⁻¹' V
case intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
this : ∃ t, U ⊆ ⋃ (i : ↑S) (_ : i ∈ t), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
⊢ ∃ j V x, U = (forget Profinite).map (C.π.app j) ⁻¹' V
obtain ⟨G, hG⟩ := this
case intro.intro.intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
⊢ ∃ j V x, U = (forget Profinite).map (C.π.app j) ⁻¹' V
case intro.intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
⊢ ∃ j V x, U = (forget Profinite).map (C.π.app j) ⁻¹' V
obtain ⟨j0, hj0⟩ := IsCofiltered.inf_objs_exists (G.image j)
case intro.intro.intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
⊢ ∃ j V x, U = (forget Profinite).map (C.π.app j) ⁻¹' V
case intro.intro.intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
⊢ ∃ j V x, U = (forget Profinite).map (C.π.app j) ⁻¹' V
let f : ∀ (s : S) (_ : s ∈ G), j0 ⟶ j s := fun s hs =>
  (hj0 (Finset.mem_image.mpr ⟨s, hs, rfl⟩)).some
case intro.intro.intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
⊢ ∃ j V x, U = (forget Profinite).map (C.π.app j) ⁻¹' V
case intro.intro.intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
⊢ ∃ j V x, U = (forget Profinite).map (C.π.app j) ⁻¹' V
let W : S → Set (F.obj j0) := fun s => if hs : s ∈ G then F.map (f s hs) ⁻¹' V s else Set.univ
case intro.intro.intro.intro.refine'_1
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
⊢ IsClopen (⋃ (s : ↑S) (_ : s ∈ G), W s)

case intro.intro.intro.intro.refine'_2
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
⊢ U = (forget Profinite).map (C.π.app j0) ⁻¹' ⋃ (s : ↑S) (_ : s ∈ G), W s
case intro.intro.intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
⊢ ∃ j V x, U = (forget Profinite).map (C.π.app j) ⁻¹' V
refine' ⟨j0, ⋃ (s : S) (_ : s ∈ G), W s, _, _⟩
case hT
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
i : J
⊢ TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) i)
case hT
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
⊢ ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
intro i
case hT
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
i : J
⊢ TopologicalSpace.IsTopologicalBasis {W | IsClopen W}
case hT
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
i : J
⊢ TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) i)
change TopologicalSpace.IsTopologicalBasis {W : Set (F.obj i) | IsClopen W}
no goals
case hT
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
i : J
⊢ TopologicalSpace.IsTopologicalBasis {W | IsClopen W}
apply isTopologicalBasis_clopen
case compat
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
i j : J
f : i ⟶ j
V : Set ↑((F ⋙ toTopCat).obj j)
hV : IsClopen V
⊢ (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
case compat
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
⊢ ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
rintro i j f V (hV : IsClopen _)
no goals
case compat
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
i j : J
f : i ⟶ j
V : Set ↑((F ⋙ toTopCat).obj j)
hV : IsClopen V
⊢ (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
exact ⟨hV.1.preimage ((F ⋙ toTopCat).map f).continuous,
  hV.2.preimage ((F ⋙ toTopCat).map f).continuous⟩
case hUo
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
s : ↑S
⊢ IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) s)
case hUo
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
⊢ ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
intro s
no goals
case hUo
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
s : ↑S
⊢ IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) s)
exact (hV s).1.1.preimage (C.π.app (j s)).continuous
case hsU
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
⊢ U ⊆
    ⋃ (i : ↑S),
      (forget Profinite).map
          (C.π.app
            (Exists.choose
              (_ :
                ↑i ∈
                  {U |
                    ∃ j V,
                      V ∈ (fun j => {W | IsClopen W}) j ∧
                        U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
        Exists.choose
          (_ :
            ∃ V,
              V ∈ {W | IsClopen W} ∧
                ↑i =
                  (forget TopCat).map
                      ((toTopCat.mapCone C).π.app
                        (Exists.choose
                          (_ :
                            ↑i ∈
                              {U |
                                ∃ j V,
                                  V ∈ (fun j => {W | IsClopen W}) j ∧
                                    U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                    V)
case hsU
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
⊢ U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
dsimp only
case hsU
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
⊢ ⋃₀ S ⊆
    ⋃ (i : ↑S),
      (forget Profinite).map
          (C.π.app
            (Exists.choose
              (_ :
                ↑i ∈
                  {U |
                    ∃ j V,
                      V ∈ (fun j => {W | IsClopen W}) j ∧
                        U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
        Exists.choose
          (_ :
            ∃ V,
              V ∈ {W | IsClopen W} ∧
                ↑i =
                  (forget TopCat).map
                      ((toTopCat.mapCone C).π.app
                        (Exists.choose
                          (_ :
                            ↑i ∈
                              {U |
                                ∃ j V,
                                  V ∈ (fun j => {W | IsClopen W}) j ∧
                                    U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                    V)
case hsU
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
⊢ U ⊆
    ⋃ (i : ↑S),
      (forget Profinite).map
          (C.π.app
            (Exists.choose
              (_ :
                ↑i ∈
                  {U |
                    ∃ j V,
                      V ∈ (fun j => {W | IsClopen W}) j ∧
                        U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
        Exists.choose
          (_ :
            ∃ V,
              V ∈ {W | IsClopen W} ∧
                ↑i =
                  (forget TopCat).map
                      ((toTopCat.mapCone C).π.app
                        (Exists.choose
                          (_ :
                            ↑i ∈
                              {U |
                                ∃ j V,
                                  V ∈ (fun j => {W | IsClopen W}) j ∧
                                    U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                    V)
rw [h]
case hsU.intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT✝ : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
x : ↑C.pt.toCompHaus.toTop
T : Set ↑(toTopCat.mapCone C).pt
hT : T ∈ S
hx : x ∈ T
⊢ x ∈
    ⋃ (i : ↑S),
      (forget Profinite).map
          (C.π.app
            (Exists.choose
              (_ :
                ↑i ∈
                  {U |
                    ∃ j V,
                      V ∈ (fun j => {W | IsClopen W}) j ∧
                        U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
        Exists.choose
          (_ :
            ∃ V,
              V ∈ {W | IsClopen W} ∧
                ↑i =
                  (forget TopCat).map
                      ((toTopCat.mapCone C).π.app
                        (Exists.choose
                          (_ :
                            ↑i ∈
                              {U |
                                ∃ j V,
                                  V ∈ (fun j => {W | IsClopen W}) j ∧
                                    U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                    V)
case hsU
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
⊢ ⋃₀ S ⊆
    ⋃ (i : ↑S),
      (forget Profinite).map
          (C.π.app
            (Exists.choose
              (_ :
                ↑i ∈
                  {U |
                    ∃ j V,
                      V ∈ (fun j => {W | IsClopen W}) j ∧
                        U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
        Exists.choose
          (_ :
            ∃ V,
              V ∈ {W | IsClopen W} ∧
                ↑i =
                  (forget TopCat).map
                      ((toTopCat.mapCone C).π.app
                        (Exists.choose
                          (_ :
                            ↑i ∈
                              {U |
                                ∃ j V,
                                  V ∈ (fun j => {W | IsClopen W}) j ∧
                                    U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                    V)
rintro x ⟨T, hT, hx⟩
case hsU.intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT✝ : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
x : ↑C.pt.toCompHaus.toTop
T : Set ↑(toTopCat.mapCone C).pt
hT : T ∈ S
hx : x ∈ T
⊢ x ∈
    (fun i =>
        (forget Profinite).map
            (C.π.app
              (Exists.choose
                (_ :
                  ↑i ∈
                    {U |
                      ∃ j V,
                        V ∈ (fun j => {W | IsClopen W}) j ∧
                          U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
          Exists.choose
            (_ :
              ∃ V,
                V ∈ {W | IsClopen W} ∧
                  ↑i =
                    (forget TopCat).map
                        ((toTopCat.mapCone C).π.app
                          (Exists.choose
                            (_ :
                              ↑i ∈
                                {U |
                                  ∃ j V,
                                    V ∈ (fun j => {W | IsClopen W}) j ∧
                                      U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                      V))
      { val := T, property := hT }
case hsU.intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT✝ : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
x : ↑C.pt.toCompHaus.toTop
T : Set ↑(toTopCat.mapCone C).pt
hT : T ∈ S
hx : x ∈ T
⊢ x ∈
    ⋃ (i : ↑S),
      (forget Profinite).map
          (C.π.app
            (Exists.choose
              (_ :
                ↑i ∈
                  {U |
                    ∃ j V,
                      V ∈ (fun j => {W | IsClopen W}) j ∧
                        U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
        Exists.choose
          (_ :
            ∃ V,
              V ∈ {W | IsClopen W} ∧
                ↑i =
                  (forget TopCat).map
                      ((toTopCat.mapCone C).π.app
                        (Exists.choose
                          (_ :
                            ↑i ∈
                              {U |
                                ∃ j V,
                                  V ∈ (fun j => {W | IsClopen W}) j ∧
                                    U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                    V)
refine' ⟨_, ⟨⟨T, hT⟩, rfl⟩, _⟩
case hsU.intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT✝ : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
x : ↑C.pt.toCompHaus.toTop
T : Set ↑(toTopCat.mapCone C).pt
hT : T ∈ S
hx : x ∈ T
⊢ x ∈
    (forget Profinite).map
        (C.π.app
          (Exists.choose
            (_ :
              T ∈
                {U |
                  ∃ j V,
                    V ∈ (fun j => {W | IsClopen W}) j ∧
                      U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
      Exists.choose
        (_ :
          ∃ V,
            V ∈ {W | IsClopen W} ∧
              T =
                (forget TopCat).map
                    ((toTopCat.mapCone C).π.app
                      (Exists.choose
                        (_ :
                          T ∈
                            {U |
                              ∃ j V,
                                V ∈ (fun j => {W | IsClopen W}) j ∧
                                  U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                  V)
case hsU.intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT✝ : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
x : ↑C.pt.toCompHaus.toTop
T : Set ↑(toTopCat.mapCone C).pt
hT : T ∈ S
hx : x ∈ T
⊢ x ∈
    (fun i =>
        (forget Profinite).map
            (C.π.app
              (Exists.choose
                (_ :
                  ↑i ∈
                    {U |
                      ∃ j V,
                        V ∈ (fun j => {W | IsClopen W}) j ∧
                          U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
          Exists.choose
            (_ :
              ∃ V,
                V ∈ {W | IsClopen W} ∧
                  ↑i =
                    (forget TopCat).map
                        ((toTopCat.mapCone C).π.app
                          (Exists.choose
                            (_ :
                              ↑i ∈
                                {U |
                                  ∃ j V,
                                    V ∈ (fun j => {W | IsClopen W}) j ∧
                                      U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                      V))
      { val := T, property := hT }
dsimp only
no goals
case hsU.intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT✝ : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
x : ↑C.pt.toCompHaus.toTop
T : Set ↑(toTopCat.mapCone C).pt
hT : T ∈ S
hx : x ∈ T
⊢ x ∈
    (forget Profinite).map
        (C.π.app
          (Exists.choose
            (_ :
              T ∈
                {U |
                  ∃ j V,
                    V ∈ (fun j => {W | IsClopen W}) j ∧
                      U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
      Exists.choose
        (_ :
          ∃ V,
            V ∈ {W | IsClopen W} ∧
              T =
                (forget TopCat).map
                    ((toTopCat.mapCone C).π.app
                      (Exists.choose
                        (_ :
                          T ∈
                            {U |
                              ∃ j V,
                                V ∈ (fun j => {W | IsClopen W}) j ∧
                                  U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                  V)
rwa [← (hV ⟨T, hT⟩).2]
case intro.intro.intro.intro.refine'_1.h
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
⊢ ∀ (i : ↑S), i ∈ G → IsClopen (W i)
case intro.intro.intro.intro.refine'_1
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
⊢ IsClopen (⋃ (s : ↑S) (_ : s ∈ G), W s)
apply isClopen_biUnion_finset
case intro.intro.intro.intro.refine'_1.h
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
s : ↑S
hs : s ∈ G
⊢ IsClopen (W s)
case intro.intro.intro.intro.refine'_1.h
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
⊢ ∀ (i : ↑S), i ∈ G → IsClopen (W i)
intro s hs
case intro.intro.intro.intro.refine'_1.h
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
s : ↑S
hs : s ∈ G
⊢ IsClopen
    (if hs : s ∈ G then
      (forget Profinite).map
          (F.map
            (Nonempty.some
              (_ :
                Nonempty
                  (j0 ⟶
                    Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))))) ⁻¹'
        Exists.choose
          (_ :
            ∃ V,
              IsClopen V ∧
                ↑s =
                  (forget TopCat).map
                      (C.π.app
                        (Exists.choose
                          (_ :
                            ↑s ∈
                              {U |
                                ∃ j V,
                                  V ∈ (fun j => {W | IsClopen W}) j ∧
                                    U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                    V)
    else Set.univ)
case intro.intro.intro.intro.refine'_1.h
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
s : ↑S
hs : s ∈ G
⊢ IsClopen (W s)
dsimp
case intro.intro.intro.intro.refine'_1.h
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
s : ↑S
hs : s ∈ G
⊢ IsClopen
    ((forget Profinite).map
        (F.map
          (Nonempty.some
            (_ :
              Nonempty
                (j0 ⟶
                  Exists.choose
                    (_ :
                      ↑s ∈
                        {U |
                          ∃ j V,
                            V ∈ (fun j => {W | IsClopen W}) j ∧
                              U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))))) ⁻¹'
      Exists.choose
        (_ :
          ∃ V,
            IsClopen V ∧
              ↑s =
                (forget TopCat).map
                    (C.π.app
                      (Exists.choose
                        (_ :
                          ↑s ∈
                            {U |
                              ∃ j V,
                                V ∈ (fun j => {W | IsClopen W}) j ∧
                                  U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                  V))
case intro.intro.intro.intro.refine'_1.h
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
s : ↑S
hs : s ∈ G
⊢ IsClopen
    (if hs : s ∈ G then
      (forget Profinite).map
          (F.map
            (Nonempty.some
              (_ :
                Nonempty
                  (j0 ⟶
                    Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))))) ⁻¹'
        Exists.choose
          (_ :
            ∃ V,
              IsClopen V ∧
                ↑s =
                  (forget TopCat).map
                      (C.π.app
                        (Exists.choose
                          (_ :
                            ↑s ∈
                              {U |
                                ∃ j V,
                                  V ∈ (fun j => {W | IsClopen W}) j ∧
                                    U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                    V)
    else Set.univ)
rw [dif_pos hs]
no goals
case intro.intro.intro.intro.refine'_1.h
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
s : ↑S
hs : s ∈ G
⊢ IsClopen
    ((forget Profinite).map
        (F.map
          (Nonempty.some
            (_ :
              Nonempty
                (j0 ⟶
                  Exists.choose
                    (_ :
                      ↑s ∈
                        {U |
                          ∃ j V,
                            V ∈ (fun j => {W | IsClopen W}) j ∧
                              U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))))) ⁻¹'
      Exists.choose
        (_ :
          ∃ V,
            IsClopen V ∧
              ↑s =
                (forget TopCat).map
                    (C.π.app
                      (Exists.choose
                        (_ :
                          ↑s ∈
                            {U |
                              ∃ j V,
                                V ∈ (fun j => {W | IsClopen W}) j ∧
                                  U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                  V))
exact ⟨(hV s).1.1.preimage (F.map _).continuous, (hV s).1.2.preimage (F.map _).continuous⟩
case intro.intro.intro.intro.refine'_2.h
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
x : ↑C.pt.toCompHaus.toTop
⊢ x ∈ U ↔ x ∈ (forget Profinite).map (C.π.app j0) ⁻¹' ⋃ (s : ↑S) (_ : s ∈ G), W s
case intro.intro.intro.intro.refine'_2
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
⊢ U = (forget Profinite).map (C.π.app j0) ⁻¹' ⋃ (s : ↑S) (_ : s ∈ G), W s
ext x
case intro.intro.intro.intro.refine'_2.h.mp
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
x : ↑C.pt.toCompHaus.toTop
⊢ x ∈ U → x ∈ (forget Profinite).map (C.π.app j0) ⁻¹' ⋃ (s : ↑S) (_ : s ∈ G), W s

case intro.intro.intro.intro.refine'_2.h.mpr
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
x : ↑C.pt.toCompHaus.toTop
⊢ (x ∈ (forget Profinite).map (C.π.app j0) ⁻¹' ⋃ (s : ↑S) (_ : s ∈ G), W s) → x ∈ U
case intro.intro.intro.intro.refine'_2.h
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
x : ↑C.pt.toCompHaus.toTop
⊢ x ∈ U ↔ x ∈ (forget Profinite).map (C.π.app j0) ⁻¹' ⋃ (s : ↑S) (_ : s ∈ G), W s
constructor
case intro.intro.intro.intro.refine'_2.h.mp
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
x : ↑C.pt.toCompHaus.toTop
hx : x ∈ U
⊢ x ∈ (forget Profinite).map (C.π.app j0) ⁻¹' ⋃ (s : ↑S) (_ : s ∈ G), W s
case intro.intro.intro.intro.refine'_2.h.mp
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
x : ↑C.pt.toCompHaus.toTop
⊢ x ∈ U → x ∈ (forget Profinite).map (C.π.app j0) ⁻¹' ⋃ (s : ↑S) (_ : s ∈ G), W s
intro hx
case intro.intro.intro.intro.refine'_2.h.mp
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
x : ↑C.pt.toCompHaus.toTop
hx : x ∈ U
⊢ ∃ i i_1,
    x ∈
      (forget Profinite).map (C.π.app j0) ⁻¹'
        if h : i ∈ G then
          (forget Profinite).map (F.map (Nonempty.some (_ : Nonempty (j0 ⟶ j i)))) ⁻¹'
            Exists.choose
              (_ :
                ∃ V,
                  V ∈
                      (fun j => {W | IsClopen W})
                        (Exists.choose
                          (_ :
                            ↑i ∈
                              {U |
                                ∃ j V,
                                  V ∈ (fun j => {W | IsClopen W}) j ∧
                                    U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
                    ↑i =
                      (forget TopCat).map
                          ((toTopCat.mapCone C).π.app
                            (Exists.choose
                              (_ :
                                ↑i ∈
                                  {U |
                                    ∃ j V,
                                      V ∈ (fun j => {W | IsClopen W}) j ∧
                                        U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                        V)
        else Set.univ
case intro.intro.intro.intro.refine'_2.h.mp
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
x : ↑C.pt.toCompHaus.toTop
hx : x ∈ U
⊢ x ∈ (forget Profinite).map (C.π.app j0) ⁻¹' ⋃ (s : ↑S) (_ : s ∈ G), W s
simp_rw [Set.preimage_iUnion, Set.mem_iUnion]
case intro.intro.intro.intro.refine'_2.h.mp.intro.intro.intro.intro.intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
x : ↑C.pt.toCompHaus.toTop
hx : x ∈ U
s : ↑S
hs : s ∈ G
hh : x ∈ (fun h => (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) s) hs
⊢ ∃ i i_1,
    x ∈
      (forget Profinite).map (C.π.app j0) ⁻¹'
        if h : i ∈ G then
          (forget Profinite).map (F.map (Nonempty.some (_ : Nonempty (j0 ⟶ j i)))) ⁻¹'
            Exists.choose
              (_ :
                ∃ V,
                  V ∈
                      (fun j => {W | IsClopen W})
                        (Exists.choose
                          (_ :
                            ↑i ∈
                              {U |
                                ∃ j V,
                                  V ∈ (fun j => {W | IsClopen W}) j ∧
                                    U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
                    ↑i =
                      (forget TopCat).map
                          ((toTopCat.mapCone C).π.app
                            (Exists.choose
                              (_ :
                                ↑i ∈
                                  {U |
                                    ∃ j V,
                                      V ∈ (fun j => {W | IsClopen W}) j ∧
                                        U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                        V)
        else Set.univ
case intro.intro.intro.intro.refine'_2.h.mp
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
x : ↑C.pt.toCompHaus.toTop
hx : x ∈ U
⊢ ∃ i i_1,
    x ∈
      (forget Profinite).map (C.π.app j0) ⁻¹'
        if h : i ∈ G then
          (forget Profinite).map (F.map (Nonempty.some (_ : Nonempty (j0 ⟶ j i)))) ⁻¹'
            Exists.choose
              (_ :
                ∃ V,
                  V ∈
                      (fun j => {W | IsClopen W})
                        (Exists.choose
                          (_ :
                            ↑i ∈
                              {U |
                                ∃ j V,
                                  V ∈ (fun j => {W | IsClopen W}) j ∧
                                    U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
                    ↑i =
                      (forget TopCat).map
                          ((toTopCat.mapCone C).π.app
                            (Exists.choose
                              (_ :
                                ↑i ∈
                                  {U |
                                    ∃ j V,
                                      V ∈ (fun j => {W | IsClopen W}) j ∧
                                        U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                        V)
        else Set.univ
obtain ⟨_, ⟨s, rfl⟩, _, ⟨hs, rfl⟩, hh⟩ := hG hx
case intro.intro.intro.intro.refine'_2.h.mp.intro.intro.intro.intro.intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
x : ↑C.pt.toCompHaus.toTop
hx : x ∈ U
s : ↑S
hs : s ∈ G
hh : x ∈ (fun h => (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) s) hs
⊢ x ∈
    (forget Profinite).map (C.π.app j0) ⁻¹'
      if h : s ∈ G then
        (forget Profinite).map (F.map (Nonempty.some (_ : Nonempty (j0 ⟶ j s)))) ⁻¹'
          Exists.choose
            (_ :
              ∃ V,
                V ∈
                    (fun j => {W | IsClopen W})
                      (Exists.choose
                        (_ :
                          ↑s ∈
                            {U |
                              ∃ j V,
                                V ∈ (fun j => {W | IsClopen W}) j ∧
                                  U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
                  ↑s =
                    (forget TopCat).map
                        ((toTopCat.mapCone C).π.app
                          (Exists.choose
                            (_ :
                              ↑s ∈
                                {U |
                                  ∃ j V,
                                    V ∈ (fun j => {W | IsClopen W}) j ∧
                                      U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                      V)
      else Set.univ
case intro.intro.intro.intro.refine'_2.h.mp.intro.intro.intro.intro.intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
x : ↑C.pt.toCompHaus.toTop
hx : x ∈ U
s : ↑S
hs : s ∈ G
hh : x ∈ (fun h => (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) s) hs
⊢ ∃ i i_1,
    x ∈
      (forget Profinite).map (C.π.app j0) ⁻¹'
        if h : i ∈ G then
          (forget Profinite).map (F.map (Nonempty.some (_ : Nonempty (j0 ⟶ j i)))) ⁻¹'
            Exists.choose
              (_ :
                ∃ V,
                  V ∈
                      (fun j => {W | IsClopen W})
                        (Exists.choose
                          (_ :
                            ↑i ∈
                              {U |
                                ∃ j V,
                                  V ∈ (fun j => {W | IsClopen W}) j ∧
                                    U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
                    ↑i =
                      (forget TopCat).map
                          ((toTopCat.mapCone C).π.app
                            (Exists.choose
                              (_ :
                                ↑i ∈
                                  {U |
                                    ∃ j V,
                                      V ∈ (fun j => {W | IsClopen W}) j ∧
                                        U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                        V)
        else Set.univ
refine' ⟨s, hs, _⟩
no goals
case intro.intro.intro.intro.refine'_2.h.mp.intro.intro.intro.intro.intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
x : ↑C.pt.toCompHaus.toTop
hx : x ∈ U
s : ↑S
hs : s ∈ G
hh : x ∈ (fun h => (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) s) hs
⊢ x ∈
    (forget Profinite).map (C.π.app j0) ⁻¹'
      if h : s ∈ G then
        (forget Profinite).map (F.map (Nonempty.some (_ : Nonempty (j0 ⟶ j s)))) ⁻¹'
          Exists.choose
            (_ :
              ∃ V,
                V ∈
                    (fun j => {W | IsClopen W})
                      (Exists.choose
                        (_ :
                          ↑s ∈
                            {U |
                              ∃ j V,
                                V ∈ (fun j => {W | IsClopen W}) j ∧
                                  U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
                  ↑s =
                    (forget TopCat).map
                        ((toTopCat.mapCone C).π.app
                          (Exists.choose
                            (_ :
                              ↑s ∈
                                {U |
                                  ∃ j V,
                                    V ∈ (fun j => {W | IsClopen W}) j ∧
                                      U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                      V)
      else Set.univ
rwa [dif_pos hs, ← Set.preimage_comp, ← Profinite.coe_comp, ← Functor.map_comp, C.w]
case intro.intro.intro.intro.refine'_2.h.mpr
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
x : ↑C.pt.toCompHaus.toTop
hx : x ∈ (forget Profinite).map (C.π.app j0) ⁻¹' ⋃ (s : ↑S) (_ : s ∈ G), W s
⊢ x ∈ U
case intro.intro.intro.intro.refine'_2.h.mpr
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
x : ↑C.pt.toCompHaus.toTop
⊢ (x ∈ (forget Profinite).map (C.π.app j0) ⁻¹' ⋃ (s : ↑S) (_ : s ∈ G), W s) → x ∈ U
intro hx
case intro.intro.intro.intro.refine'_2.h.mpr
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
x : ↑C.pt.toCompHaus.toTop
hx :
  ∃ i i_1,
    x ∈
      (forget Profinite).map (C.π.app j0) ⁻¹'
        if h : i ∈ G then
          (forget Profinite).map (F.map (Nonempty.some (_ : Nonempty (j0 ⟶ j i)))) ⁻¹'
            Exists.choose
              (_ :
                ∃ V,
                  V ∈
                      (fun j => {W | IsClopen W})
                        (Exists.choose
                          (_ :
                            ↑i ∈
                              {U |
                                ∃ j V,
                                  V ∈ (fun j => {W | IsClopen W}) j ∧
                                    U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
                    ↑i =
                      (forget TopCat).map
                          ((toTopCat.mapCone C).π.app
                            (Exists.choose
                              (_ :
                                ↑i ∈
                                  {U |
                                    ∃ j V,
                                      V ∈ (fun j => {W | IsClopen W}) j ∧
                                        U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                        V)
        else Set.univ
⊢ x ∈ U
case intro.intro.intro.intro.refine'_2.h.mpr
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
x : ↑C.pt.toCompHaus.toTop
hx : x ∈ (forget Profinite).map (C.π.app j0) ⁻¹' ⋃ (s : ↑S) (_ : s ∈ G), W s
⊢ x ∈ U
simp_rw [Set.preimage_iUnion, Set.mem_iUnion] at hx
case intro.intro.intro.intro.refine'_2.h.mpr.intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
x : ↑C.pt.toCompHaus.toTop
s : ↑S
hs : s ∈ G
hx :
  x ∈
    (forget Profinite).map (C.π.app j0) ⁻¹'
      if h : s ∈ G then
        (forget Profinite).map (F.map (Nonempty.some (_ : Nonempty (j0 ⟶ j s)))) ⁻¹'
          Exists.choose
            (_ :
              ∃ V,
                V ∈
                    (fun j => {W | IsClopen W})
                      (Exists.choose
                        (_ :
                          ↑s ∈
                            {U |
                              ∃ j V,
                                V ∈ (fun j => {W | IsClopen W}) j ∧
                                  U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
                  ↑s =
                    (forget TopCat).map
                        ((toTopCat.mapCone C).π.app
                          (Exists.choose
                            (_ :
                              ↑s ∈
                                {U |
                                  ∃ j V,
                                    V ∈ (fun j => {W | IsClopen W}) j ∧
                                      U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                      V)
      else Set.univ
⊢ x ∈ U
case intro.intro.intro.intro.refine'_2.h.mpr
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
x : ↑C.pt.toCompHaus.toTop
hx :
  ∃ i i_1,
    x ∈
      (forget Profinite).map (C.π.app j0) ⁻¹'
        if h : i ∈ G then
          (forget Profinite).map (F.map (Nonempty.some (_ : Nonempty (j0 ⟶ j i)))) ⁻¹'
            Exists.choose
              (_ :
                ∃ V,
                  V ∈
                      (fun j => {W | IsClopen W})
                        (Exists.choose
                          (_ :
                            ↑i ∈
                              {U |
                                ∃ j V,
                                  V ∈ (fun j => {W | IsClopen W}) j ∧
                                    U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
                    ↑i =
                      (forget TopCat).map
                          ((toTopCat.mapCone C).π.app
                            (Exists.choose
                              (_ :
                                ↑i ∈
                                  {U |
                                    ∃ j V,
                                      V ∈ (fun j => {W | IsClopen W}) j ∧
                                        U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                        V)
        else Set.univ
⊢ x ∈ U
obtain ⟨s, hs, hx⟩ := hx
case intro.intro.intro.intro.refine'_2.h.mpr.intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
x : ↑C.pt.toCompHaus.toTop
s : ↑S
hs : s ∈ G
hx :
  x ∈
    (forget Profinite).map (C.π.app j0) ⁻¹'
      if h : s ∈ G then
        (forget Profinite).map (F.map (Nonempty.some (_ : Nonempty (j0 ⟶ j s)))) ⁻¹'
          Exists.choose
            (_ :
              ∃ V,
                V ∈
                    (fun j => {W | IsClopen W})
                      (Exists.choose
                        (_ :
                          ↑s ∈
                            {U |
                              ∃ j V,
                                V ∈ (fun j => {W | IsClopen W}) j ∧
                                  U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
                  ↑s =
                    (forget TopCat).map
                        ((toTopCat.mapCone C).π.app
                          (Exists.choose
                            (_ :
                              ↑s ∈
                                {U |
                                  ∃ j V,
                                    V ∈ (fun j => {W | IsClopen W}) j ∧
                                      U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                      V)
      else Set.univ
⊢ x ∈ ⋃₀ S
case intro.intro.intro.intro.refine'_2.h.mpr.intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
x : ↑C.pt.toCompHaus.toTop
s : ↑S
hs : s ∈ G
hx :
  x ∈
    (forget Profinite).map (C.π.app j0) ⁻¹'
      if h : s ∈ G then
        (forget Profinite).map (F.map (Nonempty.some (_ : Nonempty (j0 ⟶ j s)))) ⁻¹'
          Exists.choose
            (_ :
              ∃ V,
                V ∈
                    (fun j => {W | IsClopen W})
                      (Exists.choose
                        (_ :
                          ↑s ∈
                            {U |
                              ∃ j V,
                                V ∈ (fun j => {W | IsClopen W}) j ∧
                                  U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
                  ↑s =
                    (forget TopCat).map
                        ((toTopCat.mapCone C).π.app
                          (Exists.choose
                            (_ :
                              ↑s ∈
                                {U |
                                  ∃ j V,
                                    V ∈ (fun j => {W | IsClopen W}) j ∧
                                      U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                      V)
      else Set.univ
⊢ x ∈ U
rw [h]
case intro.intro.intro.intro.refine'_2.h.mpr.intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
x : ↑C.pt.toCompHaus.toTop
s : ↑S
hs : s ∈ G
hx :
  x ∈
    (forget Profinite).map (C.π.app j0) ⁻¹'
      if h : s ∈ G then
        (forget Profinite).map (F.map (Nonempty.some (_ : Nonempty (j0 ⟶ j s)))) ⁻¹'
          Exists.choose
            (_ :
              ∃ V,
                V ∈
                    (fun j => {W | IsClopen W})
                      (Exists.choose
                        (_ :
                          ↑s ∈
                            {U |
                              ∃ j V,
                                V ∈ (fun j => {W | IsClopen W}) j ∧
                                  U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
                  ↑s =
                    (forget TopCat).map
                        ((toTopCat.mapCone C).π.app
                          (Exists.choose
                            (_ :
                              ↑s ∈
                                {U |
                                  ∃ j V,
                                    V ∈ (fun j => {W | IsClopen W}) j ∧
                                      U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                      V)
      else Set.univ
⊢ x ∈ ↑s
case intro.intro.intro.intro.refine'_2.h.mpr.intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
x : ↑C.pt.toCompHaus.toTop
s : ↑S
hs : s ∈ G
hx :
  x ∈
    (forget Profinite).map (C.π.app j0) ⁻¹'
      if h : s ∈ G then
        (forget Profinite).map (F.map (Nonempty.some (_ : Nonempty (j0 ⟶ j s)))) ⁻¹'
          Exists.choose
            (_ :
              ∃ V,
                V ∈
                    (fun j => {W | IsClopen W})
                      (Exists.choose
                        (_ :
                          ↑s ∈
                            {U |
                              ∃ j V,
                                V ∈ (fun j => {W | IsClopen W}) j ∧
                                  U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
                  ↑s =
                    (forget TopCat).map
                        ((toTopCat.mapCone C).π.app
                          (Exists.choose
                            (_ :
                              ↑s ∈
                                {U |
                                  ∃ j V,
                                    V ∈ (fun j => {W | IsClopen W}) j ∧
                                      U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                      V)
      else Set.univ
⊢ x ∈ ⋃₀ S
refine' ⟨s.1, s.2, _⟩
case intro.intro.intro.intro.refine'_2.h.mpr.intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
x : ↑C.pt.toCompHaus.toTop
s : ↑S
hs : s ∈ G
hx :
  x ∈
    (forget Profinite).map (C.π.app j0) ⁻¹'
      if h : s ∈ G then
        (forget Profinite).map (F.map (Nonempty.some (_ : Nonempty (j0 ⟶ j s)))) ⁻¹'
          Exists.choose
            (_ :
              ∃ V,
                V ∈
                    (fun j => {W | IsClopen W})
                      (Exists.choose
                        (_ :
                          ↑s ∈
                            {U |
                              ∃ j V,
                                V ∈ (fun j => {W | IsClopen W}) j ∧
                                  U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
                  ↑s =
                    (forget TopCat).map
                        ((toTopCat.mapCone C).π.app
                          (Exists.choose
                            (_ :
                              ↑s ∈
                                {U |
                                  ∃ j V,
                                    V ∈ (fun j => {W | IsClopen W}) j ∧
                                      U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                      V)
      else Set.univ
⊢ x ∈ (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
case intro.intro.intro.intro.refine'_2.h.mpr.intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
x : ↑C.pt.toCompHaus.toTop
s : ↑S
hs : s ∈ G
hx :
  x ∈
    (forget Profinite).map (C.π.app j0) ⁻¹'
      if h : s ∈ G then
        (forget Profinite).map (F.map (Nonempty.some (_ : Nonempty (j0 ⟶ j s)))) ⁻¹'
          Exists.choose
            (_ :
              ∃ V,
                V ∈
                    (fun j => {W | IsClopen W})
                      (Exists.choose
                        (_ :
                          ↑s ∈
                            {U |
                              ∃ j V,
                                V ∈ (fun j => {W | IsClopen W}) j ∧
                                  U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
                  ↑s =
                    (forget TopCat).map
                        ((toTopCat.mapCone C).π.app
                          (Exists.choose
                            (_ :
                              ↑s ∈
                                {U |
                                  ∃ j V,
                                    V ∈ (fun j => {W | IsClopen W}) j ∧
                                      U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                      V)
      else Set.univ
⊢ x ∈ ↑s
rw [(hV s).2]
no goals
case intro.intro.intro.intro.refine'_2.h.mpr.intro.intro
J : Type u
inst✝¹ : SmallCategory J
inst✝ : IsCofiltered J
F : J ⥤ Profinite
C : Cone F
U : Set ↑C.pt.toCompHaus.toTop
hC : IsLimit C
hU : IsClopen U
hT : ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)
compat :
  ∀ (i j : J) (f : i ⟶ j) (V : Set ↑((F ⋙ toTopCat).obj j)),
    V ∈ (fun j_1 => {W | IsClopen W}) j →
      (forget TopCat).map ((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i
S : Set (Set ↑(toTopCat.mapCone C).pt)
hS : S ⊆ {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}
h : U = ⋃₀ S
j : ↑S → J :=
  fun s =>
    Exists.choose
      (_ :
        ↑s ∈
          {U | ∃ j V, V ∈ (fun j => {W | IsClopen W}) j ∧ U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})
V : (s : ↑S) → Set ↑(F.obj (j s)).toCompHaus.toTop :=
  fun s =>
    Exists.choose
      (_ :
        ∃ V,
          V ∈
              (fun j => {W | IsClopen W})
                (Exists.choose
                  (_ :
                    ↑s ∈
                      {U |
                        ∃ j V,
                          V ∈ (fun j => {W | IsClopen W}) j ∧
                            U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
            ↑s =
              (forget TopCat).map
                  ((toTopCat.mapCone C).π.app
                    (Exists.choose
                      (_ :
                        ↑s ∈
                          {U |
                            ∃ j V,
                              V ∈ (fun j => {W | IsClopen W}) j ∧
                                U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                V)
hV : ∀ (s : ↑S), IsClopen (V s) ∧ ↑s = (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
hUo : ∀ (i : ↑S), IsOpen ((fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i)
hsU : U ⊆ ⋃ (i : ↑S), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
G : Finset ↑S
hG : U ⊆ ⋃ (i : ↑S) (_ : i ∈ G), (fun s => (forget Profinite).map (C.π.app (j s)) ⁻¹' V s) i
j0 : J
hj0 : ∀ {X : J}, X ∈ Finset.image j G → Nonempty (j0 ⟶ X)
f : (s : ↑S) → s ∈ G → (j0 ⟶ j s) := fun s hs => Nonempty.some (_ : Nonempty (j0 ⟶ j s))
W : ↑S → Set ↑(F.obj j0).toCompHaus.toTop :=
  fun s => if hs : s ∈ G then (forget Profinite).map (F.map (f s hs)) ⁻¹' V s else Set.univ
x : ↑C.pt.toCompHaus.toTop
s : ↑S
hs : s ∈ G
hx :
  x ∈
    (forget Profinite).map (C.π.app j0) ⁻¹'
      if h : s ∈ G then
        (forget Profinite).map (F.map (Nonempty.some (_ : Nonempty (j0 ⟶ j s)))) ⁻¹'
          Exists.choose
            (_ :
              ∃ V,
                V ∈
                    (fun j => {W | IsClopen W})
                      (Exists.choose
                        (_ :
                          ↑s ∈
                            {U |
                              ∃ j V,
                                V ∈ (fun j => {W | IsClopen W}) j ∧
                                  U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V})) ∧
                  ↑s =
                    (forget TopCat).map
                        ((toTopCat.mapCone C).π.app
                          (Exists.choose
                            (_ :
                              ↑s ∈
                                {U |
                                  ∃ j V,
                                    V ∈ (fun j => {W | IsClopen W}) j ∧
                                      U = (forget TopCat).map ((toTopCat.mapCone C).π.app j) ⁻¹' V}))) ⁻¹'
                      V)
      else Set.univ
⊢ x ∈ (forget Profinite).map (C.π.app (j s)) ⁻¹' V s
rwa [dif_pos hs, ← Set.preimage_comp, ← Profinite.coe_comp, ← Functor.map_comp, C.w] at hx