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

Every tuple occurring in a chain uses indices from N.

21
def TupleChains.CechTupleChain.SupportedBy {ι : Type u} {n : ℕ}
    (x : TupleChains.CechTupleChain ι n) (N : Set ι) : Prop :=
body · 1 line
  ∀ ⦃i⦄, i ∈ x.support → Set.range i ⊆ N
25
theorem TupleChains.CechTupleChain.supportedBy_zero {ι : Type u} {n : ℕ} {N : Set ι} :
    TupleChains.CechTupleChain.SupportedBy (0 : TupleChains.CechTupleChain ι n) N := by
proof · 2 lines
  intro i hi
  simp at hi
30
theorem TupleChains.CechTupleChain.SupportedBy.add {ι : Type u} {n : ℕ} {N : Set ι}
    {x y : TupleChains.CechTupleChain ι n} (hx : TupleChains.CechTupleChain.SupportedBy x N)
    (hy : TupleChains.CechTupleChain.SupportedBy y N) :
    TupleChains.CechTupleChain.SupportedBy (x + y) N := by
proof · 5 lines
  classical
  intro i hi
  rcases Finset.mem_union.mp (Finsupp.support_add hi) with hi | hi
  · exact hx hi
  · exact hy hi
40
theorem TupleChains.CechTupleChain.SupportedBy.sub {ι : Type u} {n : ℕ} {N : Set ι}
    {x y : TupleChains.CechTupleChain ι n} (hx : TupleChains.CechTupleChain.SupportedBy x N)
    (hy : TupleChains.CechTupleChain.SupportedBy y N) :
    TupleChains.CechTupleChain.SupportedBy (x - y) N := by
proof · 5 lines
  classical
  intro i hi
  rcases Finset.mem_union.mp (Finsupp.support_sub hi) with hi | hi
  · exact hx hi
  · exact hy hi
50
theorem TupleChains.CechTupleChain.SupportedBy.smul {ι : Type u} {n : ℕ} {N : Set ι}
    {x : TupleChains.CechTupleChain ι n} (hx : TupleChains.CechTupleChain.SupportedBy x N) (a : ℤ) :
    TupleChains.CechTupleChain.SupportedBy (a • x) N := by
proof · 2 lines
  intro i hi
  exact hx (Finsupp.support_smul hi)
56
theorem TupleChains.CechTupleChain.SupportedBy.mono {ι : Type u} {n : ℕ} {N N' : Set ι}
    {x : TupleChains.CechTupleChain ι n} (hx : TupleChains.CechTupleChain.SupportedBy x N)
    (hNN' : N ⊆ N') :
    TupleChains.CechTupleChain.SupportedBy x N' := by
proof · 2 lines
  intro i hi
  exact (hx hi).trans hNN'
63
theorem TupleChains.CechTupleChain.supportedBy_single {ι : Type u} {n : ℕ} {N : Set ι}
    (i : Fin (n + 1) → ι) (a : ℤ) (hi : Set.range i ⊆ N) :
    TupleChains.CechTupleChain.SupportedBy (Finsupp.single i a) N := by
proof · 5 lines
  intro j hj
  have hji := Finsupp.support_single_subset hj
  simp only [Finset.mem_singleton] at hji
  subst j
  exact hi
72
theorem TupleChains.CechTupleChain.supportedBy_sum {ι : Type u} {n : ℕ} {N : Set ι}
    {κ : Type*} (s : Finset κ) (f : κ → TupleChains.CechTupleChain ι n)
    (hf : ∀ k ∈ s, TupleChains.CechTupleChain.SupportedBy (f k) N) :
    TupleChains.CechTupleChain.SupportedBy (∑ k ∈ s, f k) N := by
proof · 7 lines
  classical
  induction s using Finset.induction_on with
  | empty => simp [TupleChains.CechTupleChain.supportedBy_zero]
  | @insert k s hk ih =>
      rw [Finset.sum_insert hk]
      exact (hf k (Finset.mem_insert_self k s)).add
        (ih fun l hl => hf l (Finset.mem_insert_of_mem hl))
84
theorem TupleChains.CechTupleChain.supportedBy_linearExtension
    {ι : Type u} {n m : ℕ} {N : Set ι}
    (f : (Fin (n + 1) → ι) → TupleChains.CechTupleChain ι m)
    (x : TupleChains.CechTupleChain ι n)
    (hf : ∀ i ∈ x.support, TupleChains.CechTupleChain.SupportedBy (f i) N) :
    TupleChains.CechTupleChain.SupportedBy (TupleChains.cechTupleLinearExtension f x) N := by
proof · 7 lines
  classical
  intro j hj
  rw [TupleChains.cechTupleLinearExtension, Finsupp.lsum_apply] at hj
  change j ∈ (x.sum fun i a => a • f i).support at hj
  obtain ⟨i, hi, hj⟩ :=
    Finset.mem_biUnion.mp (Finsupp.support_sum hj)
  exact hf i hi (Finsupp.support_smul hj)