cfahlgren1/math / lean /OAI /Algebra /OddKaplansky /GreedyColumns.lean
cfahlgren1's picture
download
raw
2.3 kB
16
def Selected : Set S := {i | v i ∉ span K (v '' Set.Iio i)}
17
abbrev Index := {i // Selected (K := K) v i}
18
instance : Fintype (Index (K := K) v) :=
body · 1 line
  @Fintype.ofFinite _ (@Subtype.finite S (Finite.of_fintype S) (Selected (K := K) v))
20
lemma independent : LinearIndependent K (fun i : Index (K := K) v => v i.val) := by
proof · 16 lines
  classical
  have aux (s : Finset S) : (↑s : Set S) ⊆ Selected (K := K) v → LinearIndepOn K v (↑s : Set S) := by
    induction s using Finset.induction_on_max with
    | empty => intro _; simpa only [Finset.coe_empty] using linearIndepOn_empty K v
    | insert a s hlt ih =>
      intro hs
      rw [Finset.coe_insert]
      apply (ih (fun x hx => hs (by simp [hx]))).insert
      intro ha
      apply hs (show a ∈ (↑(insert a s) : Set S) by simp)
      exact span_mono (Set.image_mono (fun x hx => hlt x hx)) ha
  have h := aux (Finset.univ.filter (fun i => i ∈ Selected (K := K) v)) (by simp)
  change LinearIndepOn K v (Selected (K := K) v)
  convert h using 1
  ext i
  simp
37
lemma span_selected : span K (Set.range (fun i : Index (K := K) v => v i.val)) = span K (Set.range v) := by
proof · 17 lines
  classical
  apply le_antisymm
  · apply span_mono
    rintro x ⟨i,rfl⟩
    exact ⟨i.val,rfl⟩
  · apply span_le.mpr
    rintro x ⟨i,rfl⟩
    refine @WellFounded.induction S (· < ·) wellFounded_lt (fun i => v i ∈ span K (Set.range (fun i : Index (K := K) v => v i.val))) i ?_
    intro i ih
    by_cases hi : Selected (K := K) v i
    · exact subset_span ⟨⟨i,hi⟩,rfl⟩
    · have hm : v i ∈ span K (v '' Set.Iio i) := by
        change ¬ (v i ∉ span K (v '' Set.Iio i)) at hi
        exact not_not.mp hi
      apply (span_le.mpr ?_ : span K (v '' Set.Iio i) ≤ span K (Set.range (fun i : Index (K := K) v => v i.val))) hm
      rintro x ⟨j,hj,rfl⟩
      exact ih j (by exact hj)

Xet Storage Details

Size:
2.3 kB
·
Xet hash:
f6d8a060ffc96e920159fff35b68774401cc13ef9a7b37eab40b62f6279f431f

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.