julien-c/random / cantor.lean
julien-c's picture
download
raw
936 Bytes
3
def Set (α : Type u) : Type u :=
body · 1 line
  α → Prop
6
instance : Membership α (Set α) where
body · 1 line
  mem xs x := xs x
11
def Surjective (f : α → β) :=
body · 1 line
  ∀ y, ∃ x, f x = y
17
theorem cantor (f : S → Set S) : ¬ Surjective f := by
proof · 7 lines
  intro h
  have ⟨x, p⟩ := h (fun x : S => x ∉ f x)
  have : x ∈ f x ↔ x ∉ f x := by
    constructor <;>
    simp [Membership.mem] at * <;>
    grind
  grind

Xet Storage Details

Size:
936 Bytes
·
Xet hash:
f0fb09131f54fc7a80afebb215836da665dfd9f8dac6f338e4dba05426bc8e6d

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