Lean 4 · 9
declarations statementsfull
@[simp] lemma mem_linePoints (x v y : A) :
y ∈ linePoints (Q := Q) x v ↔ ∃ t : Q, x + t • v = y := by proof · 1 line
simp [linePoints]
lemma linePoints_rebase {x v y : A} (hy : y ∈ linePoints (Q := Q) x v) :
linePoints (Q := Q) y v = linePoints (Q := Q) x v := by proof · 3 lines
rw [linePoints_eq_coset] at hy ⊢
rw [linePoints_eq_coset]
exact cosetPoints_eq ((mem_cosetPoints _ _ _).mp hy)lemma linePoints_scale (x v : A) {t : Q} (ht : t ≠ 0) :
linePoints (Q := Q) x (t • v) = linePoints (Q := Q) x v := by proof · 5 lines
ext y
simp only [mem_linePoints]
constructor
· rintro ⟨s,rfl⟩; exact ⟨s*t,by simp [smul_smul]⟩
· rintro ⟨s,rfl⟩; exact ⟨s/t,by simp [smul_smul,ht]⟩lemma FullLine.eq_linePoints_sub {l : Finset A} (hl : FullLine (Q := Q) l)
{x y : A} (hx : x ∈ l) (hy : y ∈ l) (hne : y ≠ x) :
l = linePoints (Q := Q) x (y-x) := by proof · 9 lines
obtain ⟨a,v,hv,he⟩ := hl
have he' : l = linePoints (Q := Q) x v := by
rw [he]
exact (linePoints_rebase (he ▸ hx)).symm
rw [he'] at hy
obtain ⟨t,ht⟩ := mem_linePoints _ _ _ |>.mp hy
have ht0 : t ≠ 0 := by intro h; exact hne (by simpa [h] using ht.symm)
have hdiff : y-x=t • v := by rw [← ht]; abel
rw [he',hdiff,linePoints_scale _ _ ht0]lemma FullLine.eq_of_two_mem {l m : Finset A} (hl : FullLine (Q := Q) l)
(hm : FullLine (Q := Q) m) {x y : A} (hx : x ∈ l) (hy : y ∈ l)
(hx' : x ∈ m) (hy' : y ∈ m) (hne : y ≠ x) : l=m := by proof · 1 line
rw [hl.eq_linePoints_sub hx hy hne,hm.eq_linePoints_sub hx' hy' hne]
lemma direction_sub_mem {U : Submodule Q A} {a v x y : A} (hv : v ∈ U)
(hx : x ∈ linePoints (Q := Q) a v) (hy : y ∈ linePoints (Q := Q) a v) :
y-x ∈ U := by proof · 5 lines
obtain ⟨s,rfl⟩ := (mem_linePoints _ _ _).mp hx
obtain ⟨t,rfl⟩ := (mem_linePoints _ _ _).mp hy
convert U.smul_mem (t-s) hv using 1
simp only [sub_smul]
abel60A partition by full lines, represented without arbitrary labels or duplicates.
structure LinePartition where body · 4 lines
through : A → Finset A
self : ∀ x, x ∈ through x
full : ∀ x, FullLine (Q := Q) (through x)
stable : ∀ x y, y ∈ through x → through y = through xlemma mem_iff (x y : A) : y ∈ L.through x ↔ L.through y = L.through x := by proof · 1 line
exact ⟨L.stable x y, fun h => h ▸ L.self y⟩lemma disjoint_or_eq (x y : A) : Disjoint (L.through x) (L.through y) ∨ L.through x=L.through y := by proof · 4 lines
by_cases h : Disjoint (L.through x) (L.through y)
· exact Or.inl h
· obtain ⟨z,hz,hz'⟩ := Finset.not_disjoint_iff.mp h
exact Or.inr ((L.stable x z hz).symm.trans (L.stable y z hz'))Outline
Xet Storage Details
- Size:
- 3.11 kB
- Xet hash:
- ceffb35c23c4014b88cc58e78ea35844e5d8c47c128bd810ffc59bdde73485a8
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.