introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
4.17 kB

Conrad's recursive chain homotopy from the identity to signed sorting.

21
def cechTupleAlternatingHomotopy {ι : Type u} [LinearOrder ι] :
    (n : ℕ) → TupleChains.CechTupleChain ι n →ₗ[ℤ] TupleChains.CechTupleChain ι (n + 1)
body · 8 lines
  | 0 => 0
  | n + 1 =>
      TupleChains.cechTupleLinearExtension fun i =>
        TupleChains.cechTuplePrependChain (i 0) (n + 1)
          (TupleAlternation.cechTupleAlternatingProjectionBasis (n + 1) i -
            Finsupp.single i 1 -
            cechTupleAlternatingHomotopy n
              (TupleChains.cechTupleBoundaryBasis n i))
33
theorem cechTupleAlternatingHomotopy_zero
    {ι : Type u} [LinearOrder ι] :
    TupleRecursiveHomotopy.cechTupleAlternatingHomotopy (ι := ι) 0 = 0 :=
proof · 1 line
  rfl
39
theorem cechTupleAlternatingHomotopy_succ_single
    {ι : Type u} [LinearOrder ι] (n : ℕ)
    (i : Fin (n + 2) → ι) (a : ℤ) :
    TupleRecursiveHomotopy.cechTupleAlternatingHomotopy (n + 1) (Finsupp.single i a) =
      a • TupleChains.cechTuplePrependChain (i 0) (n + 1)
        (TupleAlternation.cechTupleAlternatingProjectionBasis (n + 1) i -
          Finsupp.single i 1 -
          TupleRecursiveHomotopy.cechTupleAlternatingHomotopy n
            (TupleChains.cechTupleBoundaryBasis n i)) := by
proof · 1 line
  simp [TupleRecursiveHomotopy.cechTupleAlternatingHomotopy, TupleChains.cechTupleLinearExtension]

The lower-degree term h∂ in the tuple-chain homotopy identity.

51
def cechTupleAlternatingHomotopyPrevious
    {ι : Type u} [LinearOrder ι] :
    (n : ℕ) → TupleChains.CechTupleChain ι n →ₗ[ℤ] TupleChains.CechTupleChain ι n
body · 3 lines
  | 0 => 0
  | n + 1 =>
      (TupleRecursiveHomotopy.cechTupleAlternatingHomotopy n).comp (TupleChains.cechTupleBoundary n)
59
theorem cechTupleAlternatingHomotopyPrevious_zero
    {ι : Type u} [LinearOrder ι] :
    cechTupleAlternatingHomotopyPrevious (ι := ι) 0 = 0 :=
proof · 1 line
  rfl
65
theorem cechTupleAlternatingHomotopyPrevious_succ_apply
    {ι : Type u} [LinearOrder ι] (n : ℕ)
    (x : TupleChains.CechTupleChain ι (n + 1)) :
    cechTupleAlternatingHomotopyPrevious (n + 1) x =
      TupleRecursiveHomotopy.cechTupleAlternatingHomotopy n (TupleChains.cechTupleBoundary n x) :=
proof · 1 line
  rfl
72
theorem cechTupleAlternatingProjection_zero
    {ι : Type u} [LinearOrder ι] (x : TupleChains.CechTupleChain ι 0) :
    TupleAlternation.cechTupleAlternatingProjection 0 x = x := by
proof · 10 lines
  induction x using Finsupp.induction_linear with
  | zero => simp
  | add x y hx hy => simp [hx, hy]
  | single i a =>
      have hi : StrictMono i := by
        intro k l hkl
        omega
      rw [TupleAlternation.cechTupleAlternatingProjection_single,
        TupleAlternation.cechTupleAlternatingProjectionBasis_of_strictMono i hi]
      simp
86
theorem cechTupleAlternatingHomotopyPrevious_boundaryBasis
    {ι : Type u} [LinearOrder ι] (n : ℕ)
    (i : Fin (n + 2) → ι) :
    cechTupleAlternatingHomotopyPrevious n
        (TupleChains.cechTupleBoundaryBasis n i) = 0 := by
proof · 9 lines
  cases n with
  | zero => rfl
  | succ n =>
      change TupleRecursiveHomotopy.cechTupleAlternatingHomotopy n
        (TupleChains.cechTupleBoundary n (TupleChains.cechTupleBoundaryBasis (n + 1) i)) = 0
      have hsq := TupleBoundarySquare.cechTupleBoundary_boundary (ι := ι) n
        (Finsupp.single i 1)
      simp only [TupleChains.cechTupleBoundary_single, one_smul] at hsq
      rw [hsq, map_zero]