Documentation

FormalRamsey.Utils

theorem bijection_of_eq_card {α β : Type} [DecidableEq α] [DecidableEq β] {s : Finset α} {t : Finset β} :
s.card = t.cards = t = ∃ (f : { x : α // x s }{ x : β // x t }), Function.Bijective f
theorem bijection_of_List_perm {α : Type} {l₁ l₂ : List α} :
l₁.Perm l₂∃ (f : Fin l₁.lengthFin l₂.length), Function.Bijective f ∀ (i : Fin l₁.length), l₁.get i = l₂.get (f i)
theorem xor_even_le_implies_lt {m n : } :
Xor' (Even m) (Even n)m nm < n
theorem dblcnt (M' N' : ) (f : Sym2 (Fin (M' + N').succ)Fin 2) (c : Fin 2) :
2 * {e.edgeFinset | f e = c}.card = {x : .Dart | f (Sym2.mk x.toProd) = c}.card
theorem Rat.mkRat_one_num (z : ) :
(mkRat z 1).num = z
theorem Rat.mkRat_one_den (z : ) :
(mkRat z 1).den = 1
theorem Rat.mkRat_num_one (n : ) :
(mkRat 1 n.succ).num = 1
theorem Rat.mkRat_den_one (n : ) :
(mkRat 1 n.succ).den = n.succ
structure Finset.FinpartitionWithEmpty {α : Type} [DecidableEq α] (a : Finset α) :

A finite partition of a : Finset α is a pairwise disjoint finite set of elements whose supremum is a.

Instances For
    theorem Finset.FinpartitionWithEmpty.ext_iff {α : Type} {inst✝ : DecidableEq α} {a : Finset α} {x y : a.FinpartitionWithEmpty} :
    x = y x.parts = y.parts
    theorem Finset.FinpartitionWithEmpty.ext {α : Type} {inst✝ : DecidableEq α} {a : Finset α} {x y : a.FinpartitionWithEmpty} (parts : x.parts = y.parts) :
    x = y
    theorem Finset.sum_image_vanishing {β : Type u} {α : Type v} {γ : Type w} {f : αβ} [AddCommMonoid β] [DecidableEq α] [DecidableEq γ] {s : Finset γ} {g : γα} :
    (∀ xs, ys, g x = g yf (g x) 0x = y)ximage g s, f x = s.sum (f g)
    theorem vector_list_finset_sum {α β : Type} [AddCommMonoid β] {n : } (V : List.Vector α n) (f : αβ) :
    theorem Nat.find_upward_closed_eq_succ_iff {p : Prop} [DecidablePred p] (h : ∃ (n : ), p n) (hs : ∀ (k₁ k₂ : ), k₁ k₂p k₁p k₂) (k : ) :
    Nat.find h = k + 1 p (k + 1) ¬p k