Documentation

FormalBook.Chapter_28

Pigeon-hole and double counting #

TODO #

theorem chapter28.pigeon_hole_principle (n r : ) (h : r < n) (object_to_boxes : Fin nFin r) :
∃ (box : Fin r) (object₁ : Fin n) (object₂ : Fin n), object₁ object₂ object_to_boxes object₁ = box object_to_boxes object₂ = box
theorem chapter28.handshaking {α : Type u_1} [Fintype α] [DecidableEq α] {G : SimpleGraph α} [DecidableRel G.Adj] :
v : α, G.degree v = 2 * G.edgeFinset.card