lemmacontigSimplex_boundary (L : PreAbstractSimplicialComplexW) (f g : V→W)
{s : FinsetV} (hs : s.image f ∪ s.image g ∈L) :
boundary L (contigSimplex L f g s) =
mapSimplex L f s + mapSimplex L g s + ∑ a ∈ s, contigSimplex L f g (s.erase a) :=by
proof · 47
lines
induction s usingFinset.strongInductionOn with
| _ s ih =>havehn : s.Nonempty:=by
by_contra h
have he :=Finset.not_nonempty_iff_eq_empty.mp h
havehs' : (∅ : FinsetW) ∈L:=by simpa [he] using hs
simpa using (L.isRelLowerSet_faces hs').1havehf : s.image f ∈L:= (L.isRelLowerSet_faces hs).2Finset.subset_union_left (hn.image f)
havehg : s.image g ∈L:= (L.isRelLowerSet_faces hs).2Finset.subset_union_right (hn.image g)
havehb : f hn.choose ∈ s.image f ∪ s.image g :=Finset.mem_union_left _ (Finset.mem_image_of_mem f hn.choose_spec)
let z := mapSimplex L f s + mapSimplex L g s + ∑ a ∈ s, contigSimplex L f g (s.erase a)
have hi (a : V) (ha : a ∈ s) : boundary L (contigSimplex L f g (s.erase a)) =
mapSimplex L f (s.erase a) + mapSimplex L g (s.erase a) +
∑ b ∈ s.erase a, contigSimplex L f g ((s.erase a).erase b) :=by
rcases (s.erase a).eq_empty_or_nonempty with he | hne
· simp [he, mapSimplex]
· apply ih (s.erase a) (Finset.erase_ssubset ha)
apply (L.isRelLowerSet_faces hs).2
· exact Finset.union_subset_union (Finset.image_subset_image (Finset.erase_subset a s))
(Finset.image_subset_image (Finset.erase_subset a s))
· exact (hne.image f).mono Finset.subset_union_left
havehzbd : boundary L z = 0:=by
simp only [z, map_add, map_sum, mapSimplex_boundary L f hf, mapSimplex_boundary L g hg]
rw [Finset.sum_congr rfl hi]
simp only [Finset.sum_add_distrib]
rw [double_erase_sum_fun, add_zero]
exact chain_add_self L _
havehzaug : augmentation L z = 0:=by
simp only [z, map_add, map_sum, mapSimplex_augmentation L f hf,
mapSimplex_augmentation L g hg, contigSimplex_augmentation, Finset.sum_const_zero, add_zero]
exact CharTwo.add_self_eq_zero _
havehzcone : ∀ t ∈ z.support, insert (f hn.choose) t.val ∈L:=by
intro t ht
apply (L.isRelLowerSet_faces hs).2 _ (Finset.insert_nonempty _ _)
apply Finset.insert_subset hb
rcases Finset.mem_union.mp (Finsupp.support_add ht) with ht | ht
· rcases Finset.mem_union.mp (Finsupp.support_add ht) with htf | htg
· rw [support_mapSimplex L f s htf]; exact Finset.subset_union_left
· rw [support_mapSimplex L g s htg]; exact Finset.subset_union_right
· obtain ⟨a,ha,hta⟩ := support_sum_chains L s _ ht
exact (contigSimplex_carrier L f g (s.erase a) hta).trans
(Finset.union_subset_union (Finset.image_subset_image (Finset.erase_subset a s))
(Finset.image_subset_image (Finset.erase_subset a s)))
rw [contigSimplex_nonempty L f g hn]
change boundary L (cone L (f hn.choose) z) = z
rw [cone_boundary L _ z hzcone, hzbd, hzaug, map_zero, zero_smul, add_zero, add_zero]
lemmacontigMap_simplex (K : PreAbstractSimplicialComplexV)
(L : PreAbstractSimplicialComplexW) (f g : V→W) {s : FinsetV} (hs : s ∈K) :
contigMap KL f g (simplex K s) = contigSimplex L f g s :=by
proof · 1
line
simp [simplex_of_mem K hs, contigMap, Finsupp.linearCombination_single]
lemmacontigMap_simplex_subset (K : PreAbstractSimplicialComplexV)
(L : PreAbstractSimplicialComplexW) (f g : V→W) {s t : FinsetV}
(ht : t ∈K) (hs : s ⊆ t) :
contigMap KL f g (simplex K s) = contigSimplex L f g s :=by
proof · 3
lines
rcases s.eq_empty_or_nonempty with rfl | hn
· simp
· exact contigMap_simplex KL f g ((K.isRelLowerSet_faces ht).2 hs hn)
lemmacontigMap_boundary_of_support (K : PreAbstractSimplicialComplexV)
(L : PreAbstractSimplicialComplexW) (f g : V→W) (c : ChainK)
(hc : ∀ s ∈ c.support, s.val.image f ∪ s.val.image g ∈L) :
boundary L (contigMap KL f g c) = mapChains KL f c + mapChains KL g c +
contigMap KL f g (boundary K c) :=by
proof · 13
lines
letA : ChainK→ₗ[F₂] ChainL:=
mapChains KL f + mapChains KL g + (contigMap KL f g).comp (boundary K)
change ((boundary L).comp (contigMap KL f g)) c = A c
apply linearMap_eq_of_support
intro s hs
simp only [LinearMap.comp_apply, A, LinearMap.add_apply]
rw [contigMap_simplex KL f g s.property, contigSimplex_boundary L f g (hc s hs),
mapChains_simplex KL f s.property, mapChains_simplex KL g s.property,
boundary_simplex K s.property, map_sum]
congr 1
apply Finset.sum_congr rfl
intro a _
exact (contigMap_simplex_subset KL f g s.property (Finset.erase_subset a s.val)).symm
lemmacontig_maps_agree_top (K : PreAbstractSimplicialComplexV)
(L : PreAbstractSimplicialComplexW) (f g : V→W) (d : ℕ) (c : ChainK)
(hc : c ∈ degreeChains K d) (hbd : boundary K c = 0)
(hfg : ∀ s ∈ c.support, s.val.image f ∪ s.val.image g ∈L)
(hL : ∀ s ∈L, s.card ≤ d) : mapChains KL f c = mapChains KL g c :=by
proof · 11
lines
havehh : contigMap KL f g c = 0:=byhave ht := contigMap_degree KL f g d hc
rw [degreeChains_eq_bot_of_card_bound L (d+1) (fun s hs =>byhave:= hL s hs; omega)] at ht
exact ht
have he := contigMap_boundary_of_support KL f g c hfg
rw [hh, map_zero, hbd, map_zero, add_zero] at he
have h := eq_neg_of_add_eq_zero_left he.symm
havehn : -(mapChains KL g c) = mapChains KL g c :=by
ext s
exact CharTwo.neg_eq _
exact h.trans hn