Download lean/OAI/Geometry/Borsuk/Simplicial/MemSupportSimplex.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 2.1 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Geometry/Borsuk/Simplicial/MemSupportSimplex.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/Geometry/Borsuk/Simplicial/MemSupportSimplex.lean
-
curl -L -o MemSupportSimplex.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Geometry/Borsuk/Simplicial/MemSupportSimplex.lean
2.1 kB
Lean 4 · 4
declarations statementsfull
lemma mem_support_simplex (K : PreAbstractSimplicialComplex V) (s : Finset V)
(t : {s : Finset V // s ∈ K}) :
t ∈ (simplex K s).support ↔ t.val = s := by proof · 7 lines
classical
by_cases hs : s ∈ K
· rw [simplex_of_mem K hs, Finsupp.support_single _ one_ne_zero]
simp only [Finset.mem_singleton, Subtype.ext_iff]
· simp only [simplex, dite_eq_right hs, Finsupp.support_zero, Finset.notMem_empty, false_iff]
intro he
exact hs (he ▸ t.property)lemma support_linearMap (K : PreAbstractSimplicialComplex V) (L : PreAbstractSimplicialComplex W)
(T : Chain K →ₗ[F₂] Chain L) (c : Chain K)
{t : {s : Finset W // s ∈ L}} (ht : t ∈ (T c).support) :
∃ s ∈ c.support, t ∈ (T (simplex K s.val)).support := by proof · 10 lines
classical
by_contra hn
push Not at hn
have hh : (T c) t = 0 := by
conv_lhs => rw [chain_eq_sum K c]
rw [map_sum, Finsupp.finsetSum_apply]
apply Finset.sum_eq_zero
intro s hs
rw [map_smul, Finsupp.smul_apply, Finsupp.notMem_support_iff.mp (hn s hs), smul_zero]
exact (Finsupp.mem_support_iff.mp ht) hhlemma support_cone (K : PreAbstractSimplicialComplex V) (a : V) (c : Chain K)
{t : {s : Finset V // s ∈ K}} (ht : t ∈ (cone K a c).support) :
∃ s ∈ c.support, a ∉ s.val ∧ t.val = insert a s.val := by proof · 5 lines
obtain ⟨s, hs, ht⟩ := support_linearMap K K (cone K a) c ht
rw [cone_simplex K a s.property] at ht
split_ifs at ht with ha
· simp at ht
· exact ⟨s, hs, ha, (mem_support_simplex K _ t).mp ht⟩lemma cone_degree (K : PreAbstractSimplicialComplex V) (a : V) (d : ℕ) :
degreeChains K d ≤ (degreeChains K (d+1)).comap (cone K a) := by proof · 4 lines
intro c hc t ht
obtain ⟨s, hs, ha, he⟩ := support_cone K a c ht
change t.val.card = d+1
rw [he, Finset.card_insert_of_notMem ha, hc hs]Outline