cfahlgren1/math / lean /OAI /Combinatorics /Ryser /Construction /DeletionParallel.lean
cfahlgren1's picture
download
raw
3.97 kB
16
theorem deletedLines_inter_affinePencil_infinite_eq_filter
    (σ : k →+* F) (M : PlaneLinearMap F) (b : Point F)
    (a : GadgetOutcome k) (d : Direction F) :
    deletedLines σ M b a ∩ affinePencil (Sum.inr d) =
      (deletedLines σ M b a).filter (fun ell => ell.1 = d) := by
proof · 4 lines
  ext ell
  simp only [Finset.mem_inter, Finset.mem_filter, mem_affinePencil,
    projectiveIncidence_infinite_affine]
  constructor <;> rintro ⟨hmem, hdir⟩ <;> exact ⟨hmem, hdir.symm⟩
26
theorem card_deletedLines_inter_affinePencil_infinite
    (σ : k →+* F) (M : PlaneLinearMap F) (b : Point F)
    (a : GadgetOutcome k) (ha : OriginalLineDensity a) (d : Direction F)
    (hd : d ∈ alteredDirections σ M) :
    (deletedLines σ M b a ∩ affinePencil (Sum.inr d)).card =
      Fintype.card k - 1 := by
proof · 2 lines
  rw [deletedLines_inter_affinePencil_infinite_eq_filter]
  exact card_deletedLines_of_mem_alteredDirections σ M b a ha d hd
35
theorem allDeletedLines_inter_affinePencil_infinite_eq_biUnion
    (σ : k →+* F) (M : G → PlaneLinearMap F) (b : G → Point F)
    (a : GadgetOutcome k) (d : Direction F) :
    allDeletedLines σ M b a ∩ affinePencil (Sum.inr d) =
      (Finset.univ.filter (fun i => d ∈ alteredDirections σ (M i))).biUnion
        (fun i => deletedLines σ (M i) (b i) a ∩ affinePencil (Sum.inr d)) := by
proof · 15 lines
  ext ell
  constructor
  · intro hell
    obtain ⟨hglobal, hpencil⟩ := Finset.mem_inter.mp hell
    obtain ⟨i, hi⟩ := (mem_allDeletedLines σ M b a ell).mp hglobal
    have hdell : d = ell.1 := (mem_affinePencil (Sum.inr d) ell).mp hpencil
    refine Finset.mem_biUnion.mpr ⟨i, Finset.mem_filter.mpr
      ⟨Finset.mem_univ _, ?_⟩, Finset.mem_inter.mpr ⟨hi, hpencil⟩⟩
    rw [hdell]
    exact ((mem_deletedLines σ (M i) (b i) a ell).mp hi).1
  · intro hell
    obtain ⟨i, _, hi⟩ := Finset.mem_biUnion.mp hell
    obtain ⟨hlocal, hpencil⟩ := Finset.mem_inter.mp hi
    exact Finset.mem_inter.mpr
      ⟨(mem_allDeletedLines σ M b a ell).mpr ⟨i, hlocal⟩, hpencil⟩
57
theorem card_allDeletedLines_inter_affinePencil_infinite_le
    (σ : k →+* F) (M : G → PlaneLinearMap F) (b : G → Point F)
    (a : GadgetOutcome k) (ha : OriginalLineDensity a) (d : Direction F) :
    (allDeletedLines σ M b a ∩ affinePencil (Sum.inr d)).card ≤
      (Finset.univ.filter (fun i => d ∈ alteredDirections σ (M i))).card *
        (Fintype.card k - 1) := by
proof · 5 lines
  rw [allDeletedLines_inter_affinePencil_infinite_eq_biUnion]
  refine Finset.card_biUnion_le.trans (le_of_eq ?_)
  exact Finset.sum_const_nat (fun i hi =>
    card_deletedLines_inter_affinePencil_infinite σ (M i) (b i) a ha d
      (Finset.mem_filter.mp hi).2)
69
theorem card_groupDeletedLines_inter_affinePencil_infinite_le_two
    (σ : k →+* F) (u v : k) (huv : u ≠ v)
    (b : ConfigurationGroup σ → Point F) (a : GadgetOutcome k)
    (ha : OriginalLineDensity a) (d : Direction F) :
    (allDeletedLines σ (groupPlacement σ u v huv) b a ∩
      affinePencil (Sum.inr d)).card ≤ 2 * (Fintype.card k - 1) := by
proof · 9 lines
  classical
  have hmult : (Finset.univ.filter (fun i =>
      d ∈ alteredDirections σ (groupPlacement σ u v huv i))).card ≤ 2 := by
    apply (Finset.card_le_card ?_).trans (groupAltered_multiplicity_le_two σ u v huv d)
    intro i hi
    exact Finset.mem_filter.mpr ⟨Finset.mem_univ i, (Finset.mem_filter.mp hi).2⟩
  exact (card_allDeletedLines_inter_affinePencil_infinite_le
    σ (groupPlacement σ u v huv) b a ha d).trans
      (Nat.mul_le_mul_right _ hmult)

Xet Storage Details

Size:
3.97 kB
·
Xet hash:
2668e76c48fe9e35f52c3866df45731c729d15fbf83146377c3f4f10015ca10f

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