cfahlgren1's picture
download
raw
1.41 kB
import Mathlib
namespace OAI
noncomputable section
namespace Problem160
/-- A covering by small cells, whose equally colored distinct centers are far
apart, gives a proper coloring of the unit-distance graph. The covering need
not form a partition: classical choice assigns boundary points to one cell. -/
theorem exists_unit_distance_coloring_of_center_cover
{X I : Type*} [PseudoMetricSpace X] {k : ℕ}
(center : I → X) (color : I → Fin k) (r : ℝ)
(hcover : ∀ x : X, ∃ i : I, dist x (center i) ≤ r)
(hdiam : 2 * r < 1)
(hsep : ∀ i j : I, i ≠ j → color i = color j →
1 + 2 * r < dist (center i) (center j)) :
∃ c : X → Fin k, ∀ x y : X, dist x y = 1 → c x ≠ c y := by
classical
choose cell hcell using hcover
refine ⟨fun x => color (cell x), ?_⟩
intro x y hdist hcolor
by_cases hsame : cell x = cell y
· have htriangle := dist_triangle x (center (cell x)) y
have hx := hcell x
have hy := hcell y
rw [← hsame] at hy
rw [dist_comm (center (cell x)) y] at htriangle
linarith
· have hfar := hsep (cell x) (cell y) hsame hcolor
have htriangle₁ := dist_triangle (center (cell x)) x (center (cell y))
have htriangle₂ := dist_triangle x y (center (cell y))
have hx := hcell x
have hy := hcell y
rw [dist_comm (center (cell x)) x] at htriangle₁
linarith
end Problem160
end
end OAI

Xet Storage Details

Size:
1.41 kB
·
Xet hash:
56876876aacc6618e84667f6df6dc6275e1b95ae081eb014cf65aa71618a9095

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