The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V27. Algebraic topology and condensed mathematics

Mathlib.Topology.Category.Profinite.Nobeling.Successor

62 declarations. Mathlib docs · Source

The successor case in the induction for Nöbeling's theorem

Here we assume that o is an ordinal such that contained C (o+1) and o < I. The element in I corresponding to o is called term I ho, but in this informal docstring we refer to it simply as o.

This section follows the proof in [scholze2019condensed] quite closely. A translation of the notation there is as follows:

[scholze2019condensed]                  | This file
`S₀`                                    |`C0`
`S₁`                                    |`C1`
`\overline{S}`                          |`π C (ord I · < o)
`\overline{S}'`                         |`C'`
The left map in the exact sequence      |`πs`
The right map in the exact sequence     |`Linear_CC'`

When comparing the proof of the successor case in Theorem 5.4 in [scholze2019condensed] with this proof, one should read the phrase "is a basis" as "is linearly independent". Also, the short exact sequence in [scholze2019condensed] is only proved to be left exact here (indeed, that is enough since we are only proving linear independence).

This section is split into two sections. The first one, ExactSequence defines the left exact sequence mentioned in the previous paragraph (see succ_mono and succ_exact). It corresponds to the penultimate paragraph of the proof in [scholze2019condensed]. The second one, GoodProducts corresponds to the last paragraph in the proof in [scholze2019condensed].

For the overall proof outline see Mathlib/Topology/Category/Profinite/Nobeling/Basic.lean.

Main definitions

The main definitions in the section ExactSequence are all just notation explained in the table above.

The main definitions in the section GoodProducts are as follows:

  • MaxProducts: the set of good products that contain the ordinal o (since we have contained C (o+1), these all start with o).

  • GoodProducts.sum_equiv: the equivalence between GoodProducts C and the disjoint union of MaxProducts C and GoodProducts (π C (ord I · < o)).

Main results

  • The main results in the section ExactSequence are succ_mono and succ_exact which together say that the sequence given by πs and Linear_CC' is left exact:
                                                f                        g
    0 --→ LocallyConstant (π C (ord I · < o)) ℤ --→ LocallyConstant C ℤ --→ LocallyConstant C' ℤ
    
    where f is πs and g is Linear_CC'.

The main results in the section GoodProducts are as follows:

  • Products.max_eq_eval says that the linear map on the right in the exact sequence, i.e. Linear_CC', takes the evaluation of a term of MaxProducts to the evaluation of the corresponding list with the leading o removed.

  • GoodProducts.maxTail_isGood says that removing the leading o from a term of MaxProducts C yields a list which isGood with respect to C'.

References

  • [scholze2019condensed], Theorem 5.4.

theorem Profinite.NobelingProof.C0.congr_simp E1 #

∀ {I : Type u} (C C_1 : Set (I → Bool)),
  C = C_1 →
    ∀ [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o o_1 : Ordinal.{u}} (e_o : o = o_1)
      (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2), Profinite.NobelingProof.C0 C ho = Profinite.NobelingProof.C0 C_1 ⋯

theorem LocallyConstant.piecewise'.congr_simp E1 #

∀ {X : Type u_1} {Z : Type u_3} [inst : TopologicalSpace X] {C₀ C₁ C₂ : Set X} (h₀ : C₀ ⊆ C₁ ∪ C₂) (h₁ : IsClosed C₁)
  (h₂ : IsClosed C₂) (f₁ f₁_1 : LocallyConstant (↑C₁) Z) (e_f₁ : f₁ = f₁_1) (f₂ f₂_1 : LocallyConstant (↑C₂) Z)
  (e_f₂ : f₂ = f₂_1) {inst_1 : DecidablePred fun x ↦ x ∈ C₁} [inst_2 : DecidablePred fun x ↦ x ∈ C₁]
  (hf : ∀ (x : X) (hx : x ∈ C₁ ∩ C₂), f₁ ⟨x, ⋯⟩ = f₂ ⟨x, ⋯⟩),
  LocallyConstant.piecewise' h₀ h₁ h₂ f₁ f₂ hf = LocallyConstant.piecewise' h₀ h₁ h₂ f₁_1 f₂_1 ⋯

theorem Profinite.NobelingProof.Linear_CC'.congr_simp E1 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}}
  (hsC : Profinite.NobelingProof.contained C (Order.succ o)) (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2),
  Profinite.NobelingProof.Linear_CC' C hsC ho = Profinite.NobelingProof.Linear_CC' C hsC ho

theorem Profinite.NobelingProof.GoodProducts.MaxProducts.congr_simp E1 #

∀ {I : Type u} (C C_1 : Set (I → Bool)),
  C = C_1 →
    ∀ [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o o_1 : Ordinal.{u}} (e_o : o = o_1)
      (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2),
      Profinite.NobelingProof.GoodProducts.MaxProducts C ho = Profinite.NobelingProof.GoodProducts.MaxProducts C_1 ⋯

theorem Profinite.NobelingProof.C'.congr_simp E1 #

∀ {I : Type u} (C C_1 : Set (I → Bool)),
  C = C_1 →
    ∀ [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o o_1 : Ordinal.{u}} (e_o : o = o_1)
      (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2), Profinite.NobelingProof.C' C ho = Profinite.NobelingProof.C' C_1 ⋯

theorem Profinite.NobelingProof.term.congr_simp E1 #

∀ (I : Type u) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o o_1 : Ordinal.{u}} (e_o : o = o_1)
  (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2), Profinite.NobelingProof.term I ho = Profinite.NobelingProof.term I ⋯

theorem Profinite.NobelingProof.SwapTrue.congr_simp E1 #

∀ {I : Type u} [inst : LinearOrder I] [inst_1 : WellFoundedLT I] (o o_1 : Ordinal.{u}),
  o = o_1 →
    ∀ (a a_1 : I → Bool),
      a = a_1 →
        ∀ (a_2 a_3 : I),
          a_2 = a_3 → Profinite.NobelingProof.SwapTrue o a a_2 = Profinite.NobelingProof.SwapTrue o_1 a_1 a_3

theorem Profinite.NobelingProof.C1.congr_simp E1 #

∀ {I : Type u} (C C_1 : Set (I → Bool)),
  C = C_1 →
    ∀ [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o o_1 : Ordinal.{u}} (e_o : o = o_1)
      (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2), Profinite.NobelingProof.C1 C ho = Profinite.NobelingProof.C1 C_1 ⋯

theorem Profinite.NobelingProof.CC'₁.congr_simp E1 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}}
  (hsC : Profinite.NobelingProof.contained C (Order.succ o)) (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2)
  (a a_1 : ↑(Profinite.NobelingProof.C' C ho)),
  a = a_1 → Profinite.NobelingProof.CC'₁ C hsC ho a = Profinite.NobelingProof.CC'₁ C hsC ho a_1

def Profinite.NobelingProof.C0 E1 #

{I : Type u} →
  Set (I → Bool) →
    [inst : LinearOrder I] →
      [inst_1 : WellFoundedLT I] → {o : Ordinal.{u}} → (o < Ordinal.type fun x1 x2 ↦ x1 < x2) → Set (I → Bool)

The subset of C consisting of those elements whose o-th entry is false.

def Profinite.NobelingProof.C1 E1 #

{I : Type u} →
  Set (I → Bool) →
    [inst : LinearOrder I] →
      [inst_1 : WellFoundedLT I] → {o : Ordinal.{u}} → (o < Ordinal.type fun x1 x2 ↦ x1 < x2) → Set (I → Bool)

The subset of C consisting of those elements whose o-th entry is true.

theorem Profinite.NobelingProof.isClosed_C0 E1 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}},
  IsClosed C → ∀ (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2), IsClosed (Profinite.NobelingProof.C0 C ho)

theorem Profinite.NobelingProof.isClosed_C1 E1 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}},
  IsClosed C → ∀ (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2), IsClosed (Profinite.NobelingProof.C1 C ho)

theorem Profinite.NobelingProof.contained_C1 E1 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}}
  (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2),
  Profinite.NobelingProof.contained
    (Profinite.NobelingProof.π (Profinite.NobelingProof.C1 C ho) fun x ↦ Profinite.NobelingProof.ord I x < o) o

theorem Profinite.NobelingProof.union_C0C1_eq E0 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}}
  (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2), Profinite.NobelingProof.C0 C ho ∪ Profinite.NobelingProof.C1 C ho = C

def Profinite.NobelingProof.C' E3 #

{I : Type u} →
  Set (I → Bool) →
    [inst : LinearOrder I] →
      [inst_1 : WellFoundedLT I] → {o : Ordinal.{u}} → (o < Ordinal.type fun x1 x2 ↦ x1 < x2) → Set (I → Bool)

The intersection of C0 and the projection of C1. We will apply the inductive hypothesis to this set.

theorem Profinite.NobelingProof.isClosed_C' E1 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}},
  IsClosed C → ∀ (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2), IsClosed (Profinite.NobelingProof.C' C ho)

theorem Profinite.NobelingProof.contained_C' E1 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}}
  (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2), Profinite.NobelingProof.contained (Profinite.NobelingProof.C' C ho) o

def Profinite.NobelingProof.SwapTrue E1 #

{I : Type u} → [inst : LinearOrder I] → [WellFoundedLT I] → Ordinal.{u} → (I → Bool) → I → Bool

Swapping the o-th coordinate to true.

theorem Profinite.NobelingProof.continuous_swapTrue E1 #

∀ {I : Type u} [inst : LinearOrder I] [inst_1 : WellFoundedLT I] (o : Ordinal.{u}),
  Continuous (Profinite.NobelingProof.SwapTrue o)

theorem Profinite.NobelingProof.swapTrue_mem_C1 E1 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}},
  Profinite.NobelingProof.contained C (Order.succ o) →
    ∀ (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2)
      (f : ↑(Profinite.NobelingProof.π (Profinite.NobelingProof.C1 C ho) fun x ↦ Profinite.NobelingProof.ord I x < o)),
      Profinite.NobelingProof.SwapTrue o ↑f ∈ Profinite.NobelingProof.C1 C ho

def Profinite.NobelingProof.CC'₀ E1 #

{I : Type u} →
  (C : Set (I → Bool)) →
    [inst : LinearOrder I] →
      [inst_1 : WellFoundedLT I] →
        {o : Ordinal.{u}} → (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2) → ↑(Profinite.NobelingProof.C' C ho) → ↑C

The first way to map C' into C.

def Profinite.NobelingProof.CC'₁ E1 #

{I : Type u} →
  (C : Set (I → Bool)) →
    [inst : LinearOrder I] →
      [inst_1 : WellFoundedLT I] →
        {o : Ordinal.{u}} →
          Profinite.NobelingProof.contained C (Order.succ o) →
            (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2) → ↑(Profinite.NobelingProof.C' C ho) → ↑C

The second way to map C' into C.

theorem Profinite.NobelingProof.continuous_CC'₀ E1 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}}
  (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2), Continuous (Profinite.NobelingProof.CC'₀ C ho)

theorem Profinite.NobelingProof.continuous_CC'₁ E1 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}}
  (hsC : Profinite.NobelingProof.contained C (Order.succ o)) (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2),
  Continuous (Profinite.NobelingProof.CC'₁ C hsC ho)

def Profinite.NobelingProof.Linear_CC'₀ E1 #

{I : Type u} →
  (C : Set (I → Bool)) →
    [inst : LinearOrder I] →
      [inst_1 : WellFoundedLT I] →
        {o : Ordinal.{u}} →
          (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2) →
            LocallyConstant ↑C ℤ →ₗ[ℤ] LocallyConstant ↑(Profinite.NobelingProof.C' C ho) ℤ

The ℤ-linear map induced by precomposing with CC'₀

def Profinite.NobelingProof.Linear_CC'₁ E1 #

{I : Type u} →
  (C : Set (I → Bool)) →
    [inst : LinearOrder I] →
      [inst_1 : WellFoundedLT I] →
        {o : Ordinal.{u}} →
          Profinite.NobelingProof.contained C (Order.succ o) →
            (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2) →
              LocallyConstant ↑C ℤ →ₗ[ℤ] LocallyConstant ↑(Profinite.NobelingProof.C' C ho) ℤ

The ℤ-linear map induced by precomposing with CC'₁

def Profinite.NobelingProof.Linear_CC' E3 #

{I : Type u} →
  (C : Set (I → Bool)) →
    [inst : LinearOrder I] →
      [inst_1 : WellFoundedLT I] →
        {o : Ordinal.{u}} →
          Profinite.NobelingProof.contained C (Order.succ o) →
            (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2) →
              LocallyConstant ↑C ℤ →ₗ[ℤ] LocallyConstant ↑(Profinite.NobelingProof.C' C ho) ℤ

The difference between Linear_CC'₁ and Linear_CC'₀.

theorem Profinite.NobelingProof.CC_comp_zero E1 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}}
  (hsC : Profinite.NobelingProof.contained C (Order.succ o)) (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2)
  (y : LocallyConstant ↑(Profinite.NobelingProof.π C fun x ↦ Profinite.NobelingProof.ord I x < o) ℤ),
  (Profinite.NobelingProof.Linear_CC' C hsC ho) ((Profinite.NobelingProof.πs C o) y) = 0

theorem Profinite.NobelingProof.C0_projOrd E1 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}},
  Profinite.NobelingProof.contained C (Order.succ o) →
    ∀ (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2) {x : I → Bool},
      x ∈ Profinite.NobelingProof.C0 C ho →
        Profinite.NobelingProof.Proj (fun x ↦ Profinite.NobelingProof.ord I x < o) x = x

theorem Profinite.NobelingProof.C1_projOrd E1 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}},
  Profinite.NobelingProof.contained C (Order.succ o) →
    ∀ (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2) {x : I → Bool},
      x ∈ Profinite.NobelingProof.C1 C ho →
        Profinite.NobelingProof.SwapTrue o
            (Profinite.NobelingProof.Proj (fun x ↦ Profinite.NobelingProof.ord I x < o) x) =
          x

theorem Profinite.NobelingProof.CC_exact E1 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}},
  IsClosed C →
    ∀ (hsC : Profinite.NobelingProof.contained C (Order.succ o)) (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2)
      {f : LocallyConstant ↑C ℤ},
      (Profinite.NobelingProof.Linear_CC' C hsC ho) f = 0 → ∃ y, (Profinite.NobelingProof.πs C o) y = f

theorem Profinite.NobelingProof.succ_mono E3 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] (o : Ordinal.{u}),
  CategoryTheory.Mono (ModuleCat.ofHom (Profinite.NobelingProof.πs C o))

theorem Profinite.NobelingProof.succ_exact E3 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}},
  IsClosed C →
    ∀ (hsC : Profinite.NobelingProof.contained C (Order.succ o)) (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2),
      { X₁ := ↧(LocallyConstant ↑(Profinite.NobelingProof.π C fun x ↦ Profinite.NobelingProof.ord I x < o) ℤ),
          X₂ := ↧(LocallyConstant ↑C ℤ), X₃ := ↧(LocallyConstant ↑(Profinite.NobelingProof.C' C ho) ℤ),
          f := ModuleCat.ofHom (Profinite.NobelingProof.πs C o),
          g := ModuleCat.ofHom (Profinite.NobelingProof.Linear_CC' C hsC ho), zero := ⋯ }.Exact

def Profinite.NobelingProof.GoodProducts.MaxProducts E3 #

{I : Type u} →
  Set (I → Bool) →
    [inst : LinearOrder I] →
      [inst_1 : WellFoundedLT I] →
        {o : Ordinal.{u}} → (o < Ordinal.type fun x1 x2 ↦ x1 < x2) → Set (Profinite.NobelingProof.Products I)

The GoodProducts in C that contain o (they necessarily start with o, see GoodProducts.head!_eq_o_of_maxProducts)

theorem Profinite.NobelingProof.GoodProducts.union_succ E1 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}},
  Profinite.NobelingProof.contained C (Order.succ o) →
    ∀ (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2),
      Profinite.NobelingProof.GoodProducts C =
        Profinite.NobelingProof.GoodProducts (Profinite.NobelingProof.π C fun x ↦ Profinite.NobelingProof.ord I x < o) ∪
          Profinite.NobelingProof.GoodProducts.MaxProducts C ho

def Profinite.NobelingProof.GoodProducts.sum_to E1 #

{I : Type u} →
  (C : Set (I → Bool)) →
    [inst : LinearOrder I] →
      [inst_1 : WellFoundedLT I] →
        {o : Ordinal.{u}} →
          (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2) →
            ↑(Profinite.NobelingProof.GoodProducts
                    (Profinite.NobelingProof.π C fun x ↦ Profinite.NobelingProof.ord I x < o)) ⊕
                ↑(Profinite.NobelingProof.GoodProducts.MaxProducts C ho) →
              Profinite.NobelingProof.Products I

The inclusion map from the sum of GoodProducts (π C (ord I · < o)) and (MaxProducts C ho) to Products I.

theorem Profinite.NobelingProof.GoodProducts.injective_sum_to E1 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}}
  (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2), Function.Injective (Profinite.NobelingProof.GoodProducts.sum_to C ho)

theorem Profinite.NobelingProof.GoodProducts.sum_to_range E1 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}}
  (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2),
  Set.range (Profinite.NobelingProof.GoodProducts.sum_to C ho) =
    Profinite.NobelingProof.GoodProducts (Profinite.NobelingProof.π C fun x ↦ Profinite.NobelingProof.ord I x < o) ∪
      Profinite.NobelingProof.GoodProducts.MaxProducts C ho

def Profinite.NobelingProof.GoodProducts.sum_equiv E3 #

{I : Type u} →
  (C : Set (I → Bool)) →
    [inst : LinearOrder I] →
      [inst_1 : WellFoundedLT I] →
        {o : Ordinal.{u}} →
          Profinite.NobelingProof.contained C (Order.succ o) →
            (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2) →
              ↑(Profinite.NobelingProof.GoodProducts
                      (Profinite.NobelingProof.π C fun x ↦ Profinite.NobelingProof.ord I x < o)) ⊕
                  ↑(Profinite.NobelingProof.GoodProducts.MaxProducts C ho) ≃
                ↑(Profinite.NobelingProof.GoodProducts C)

The equivalence from the sum of GoodProducts (π C (ord I · < o)) and (MaxProducts C ho) to GoodProducts C.

theorem Profinite.NobelingProof.GoodProducts.sum_equiv_comp_eval_eq_elim E1 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}}
  (hsC : Profinite.NobelingProof.contained C (Order.succ o)) (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2),
  Profinite.NobelingProof.GoodProducts.eval C ∘ (Profinite.NobelingProof.GoodProducts.sum_equiv C hsC ho).toFun =
    Sum.elim (fun l ↦ Profinite.NobelingProof.Products.eval C ↑l) fun l ↦ Profinite.NobelingProof.Products.eval C ↑l

def Profinite.NobelingProof.GoodProducts.SumEval E1 #

{I : Type u} →
  (C : Set (I → Bool)) →
    [inst : LinearOrder I] →
      [inst_1 : WellFoundedLT I] →
        {o : Ordinal.{u}} →
          (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2) →
            ↑(Profinite.NobelingProof.GoodProducts
                    (Profinite.NobelingProof.π C fun x ↦ Profinite.NobelingProof.ord I x < o)) ⊕
                ↑(Profinite.NobelingProof.GoodProducts.MaxProducts C ho) →
              LocallyConstant ↑C ℤ

Let

N := LocallyConstant (π C (ord I · < o)) ℤ

M := LocallyConstant C ℤ

P := LocallyConstant (C' C ho) ℤ

ι := GoodProducts (π C (ord I · < o))

ι' := GoodProducts (C' C ho')

v : ι → N := GoodProducts.eval (π C (ord I · < o))

Then SumEval C ho is the map u in the diagram below. It is linearly independent if and only if GoodProducts.eval C is, see linearIndependent_iff_sum. The top row is the exact sequence given by succ_exact and succ_mono. The left square commutes by GoodProducts.square_commutes.

0 --→ N --→ M --→  P
      ↑     ↑      ↑
     v|    u|      |
      ι → ι ⊕ ι' ← ι'

theorem Profinite.NobelingProof.GoodProducts.linearIndependent_iff_sum E1 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}},
  Profinite.NobelingProof.contained C (Order.succ o) →
    ∀ (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2),
      LinearIndependent ℤ (Profinite.NobelingProof.GoodProducts.eval C) ↔
        LinearIndependent ℤ (Profinite.NobelingProof.GoodProducts.SumEval C ho)

theorem Profinite.NobelingProof.GoodProducts.span_sum E1 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}},
  Profinite.NobelingProof.contained C (Order.succ o) →
    ∀ (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2),
      Set.range (Profinite.NobelingProof.GoodProducts.eval C) =
        Set.range
          (Sum.elim (fun l ↦ Profinite.NobelingProof.Products.eval C ↑l) fun l ↦
            Profinite.NobelingProof.Products.eval C ↑l)

theorem Profinite.NobelingProof.GoodProducts.square_commutes E1 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}}
  (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2),
  Profinite.NobelingProof.GoodProducts.SumEval C ho ∘ Sum.inl =
    ⇑(CategoryTheory.ConcreteCategory.hom (ModuleCat.ofHom (Profinite.NobelingProof.πs C o))) ∘
      Profinite.NobelingProof.GoodProducts.eval
        (Profinite.NobelingProof.π C fun x ↦ Profinite.NobelingProof.ord I x < o)

theorem Profinite.NobelingProof.swapTrue_eq_true E1 #

∀ {I : Type u} [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}}
  (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2) (x : I → Bool),
  Profinite.NobelingProof.SwapTrue o x (Profinite.NobelingProof.term I ho) = true

theorem Profinite.NobelingProof.mem_C'_eq_false E0 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}}
  (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2),
  ∀ x ∈ Profinite.NobelingProof.C' C ho, x (Profinite.NobelingProof.term I ho) = false

def Profinite.NobelingProof.Products.Tail E1 #

{I : Type u} → [inst : LinearOrder I] → Profinite.NobelingProof.Products I → Profinite.NobelingProof.Products I

List.tail as a Products.

theorem Profinite.NobelingProof.Products.max_eq_o_cons_tail E1 #

∀ {I : Type u} [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}}
  (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2) [inst_2 : Inhabited I] (l : Profinite.NobelingProof.Products I),
  ↑l ≠ [] → (↑l).head! = Profinite.NobelingProof.term I ho → ↑l = Profinite.NobelingProof.term I ho :: ↑l.Tail

theorem Profinite.NobelingProof.Products.max_eq_o_cons_tail' E1 #

∀ {I : Type u} [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}}
  (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2) [inst_2 : Inhabited I] (l : Profinite.NobelingProof.Products I),
  ↑l ≠ [] →
    (↑l).head! = Profinite.NobelingProof.term I ho →
      ∀ (hlc : List.IsChain (fun x1 x2 ↦ x1 > x2) (Profinite.NobelingProof.term I ho :: ↑l.Tail)),
        l = ⟨Profinite.NobelingProof.term I ho :: ↑l.Tail, hlc⟩

theorem Profinite.NobelingProof.GoodProducts.head!_eq_o_of_maxProducts E1 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}},
  Profinite.NobelingProof.contained C (Order.succ o) →
    ∀ (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2) [inst_2 : Inhabited I]
      (l : ↑(Profinite.NobelingProof.GoodProducts.MaxProducts C ho)), (↑↑l).head! = Profinite.NobelingProof.term I ho

theorem Profinite.NobelingProof.GoodProducts.max_eq_o_cons_tail E1 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}},
  Profinite.NobelingProof.contained C (Order.succ o) →
    ∀ (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2) (l : ↑(Profinite.NobelingProof.GoodProducts.MaxProducts C ho)),
      ↑↑l = Profinite.NobelingProof.term I ho :: ↑(↑l).Tail

theorem Profinite.NobelingProof.Products.evalCons E1 #

∀ {I : Type u_1} [inst : LinearOrder I] {C : Set (I → Bool)} {l : List I} {a : I}
  (hla : List.IsChain (fun x1 x2 ↦ x1 > x2) (a :: l)),
  Profinite.NobelingProof.Products.eval C ⟨a :: l, hla⟩ =
    Profinite.NobelingProof.e C a * Profinite.NobelingProof.Products.eval C ⟨l, ⋯⟩

theorem Profinite.NobelingProof.Products.max_eq_eval E3 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}}
  (hsC : Profinite.NobelingProof.contained C (Order.succ o)) (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2)
  [inst_2 : Inhabited I] (l : Profinite.NobelingProof.Products I),
  ↑l ≠ [] →
    (↑l).head! = Profinite.NobelingProof.term I ho →
      (Profinite.NobelingProof.Linear_CC' C hsC ho) (Profinite.NobelingProof.Products.eval C l) =
        Profinite.NobelingProof.Products.eval (Profinite.NobelingProof.C' C ho) l.Tail

theorem Profinite.NobelingProof.GoodProducts.max_eq_eval E1 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}}
  (hsC : Profinite.NobelingProof.contained C (Order.succ o)) (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2)
  (l : ↑(Profinite.NobelingProof.GoodProducts.MaxProducts C ho)),
  (Profinite.NobelingProof.Linear_CC' C hsC ho) (Profinite.NobelingProof.Products.eval C ↑l) =
    Profinite.NobelingProof.Products.eval (Profinite.NobelingProof.C' C ho) (↑l).Tail

theorem Profinite.NobelingProof.GoodProducts.max_eq_eval_unapply E1 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}}
  (hsC : Profinite.NobelingProof.contained C (Order.succ o)) (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2),
  (⇑(Profinite.NobelingProof.Linear_CC' C hsC ho) ∘ fun l ↦ Profinite.NobelingProof.Products.eval C ↑l) = fun l ↦
    Profinite.NobelingProof.Products.eval (Profinite.NobelingProof.C' C ho) (↑l).Tail

theorem Profinite.NobelingProof.GoodProducts.isChain_cons_of_lt E1 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}},
  Profinite.NobelingProof.contained C (Order.succ o) →
    ∀ (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2) (l : ↑(Profinite.NobelingProof.GoodProducts.MaxProducts C ho)),
      ∀ q < (↑l).Tail, List.IsChain (fun x x_1 ↦ x > x_1) (Profinite.NobelingProof.term I ho :: ↑q)

theorem Profinite.NobelingProof.GoodProducts.good_lt_maxProducts E1 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}},
  Profinite.NobelingProof.contained C (Order.succ o) →
    ∀ (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2)
      (q :
        ↑(Profinite.NobelingProof.GoodProducts
            (Profinite.NobelingProof.π C fun x ↦ Profinite.NobelingProof.ord I x < o)))
      (l : ↑(Profinite.NobelingProof.GoodProducts.MaxProducts C ho)), List.Lex (fun x1 x2 ↦ x1 < x2) ↑↑q ↑↑l

theorem Profinite.NobelingProof.GoodProducts.maxTail_isGood E3 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}},
  IsClosed C →
    Profinite.NobelingProof.contained C (Order.succ o) →
      ∀ (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2) (l : ↑(Profinite.NobelingProof.GoodProducts.MaxProducts C ho)),
        ⊤ ≤
            Submodule.span ℤ
              (Set.range
                (Profinite.NobelingProof.GoodProducts.eval
                  (Profinite.NobelingProof.π C fun x ↦ Profinite.NobelingProof.ord I x < o))) →
          Profinite.NobelingProof.Products.isGood (Profinite.NobelingProof.C' C ho) (↑l).Tail

Removing the leading o from a term of MaxProducts C yields a list which isGood with respect to C'.

def Profinite.NobelingProof.GoodProducts.MaxToGood E1 #

{I : Type u} →
  (C : Set (I → Bool)) →
    [inst : LinearOrder I] →
      [inst_1 : WellFoundedLT I] →
        {o : Ordinal.{u}} →
          IsClosed C →
            Profinite.NobelingProof.contained C (Order.succ o) →
              (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2) →
                ⊤ ≤
                    Submodule.span ℤ
                      (Set.range
                        (Profinite.NobelingProof.GoodProducts.eval
                          (Profinite.NobelingProof.π C fun x ↦ Profinite.NobelingProof.ord I x < o))) →
                  ↑(Profinite.NobelingProof.GoodProducts.MaxProducts C ho) →
                    ↑(Profinite.NobelingProof.GoodProducts (Profinite.NobelingProof.C' C ho))

Given l : MaxProducts C ho, its Tail is a GoodProducts (C' C ho).

theorem Profinite.NobelingProof.GoodProducts.maxToGood_injective E1 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}}
  (hC : IsClosed C) (hsC : Profinite.NobelingProof.contained C (Order.succ o))
  (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2)
  (h₁ :
    ⊤ ≤
      Submodule.span ℤ
        (Set.range
          (Profinite.NobelingProof.GoodProducts.eval
            (Profinite.NobelingProof.π C fun x ↦ Profinite.NobelingProof.ord I x < o)))),
  Function.Injective (Profinite.NobelingProof.GoodProducts.MaxToGood C hC hsC ho h₁)

theorem Profinite.NobelingProof.GoodProducts.linearIndependent_comp_of_eval E1 #

∀ {I : Type u} (C : Set (I → Bool)) [inst : LinearOrder I] [inst_1 : WellFoundedLT I] {o : Ordinal.{u}},
  IsClosed C →
    ∀ (hsC : Profinite.NobelingProof.contained C (Order.succ o)) (ho : o < Ordinal.type fun x1 x2 ↦ x1 < x2),
      ⊤ ≤
          Submodule.span ℤ
            (Set.range
              (Profinite.NobelingProof.GoodProducts.eval
                (Profinite.NobelingProof.π C fun x ↦ Profinite.NobelingProof.ord I x < o))) →
        LinearIndependent ℤ (Profinite.NobelingProof.GoodProducts.eval (Profinite.NobelingProof.C' C ho)) →
          LinearIndependent (ι := ↑(Profinite.NobelingProof.GoodProducts.MaxProducts C ho)) ℤ
            (⇑(CategoryTheory.ConcreteCategory.hom (ModuleCat.ofHom (Profinite.NobelingProof.Linear_CC' C hsC ho))) ∘
              Profinite.NobelingProof.GoodProducts.SumEval C ho ∘ Sum.inr)