The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V30. Combinatorics

Mathlib.Combinatorics.KatonaCircle

11 declarations. Mathlib docs · Source

abbrev Numbering E1 #

(X : Type u_1) → [Fintype X] → Type u_1

A numbering of a fintype X is a bijection between X and Fin (card X).

theorem Fintype.card_numbering E0 #

∀ {X : Type u_1} [inst : Fintype X] [inst_1 : DecidableEq X], Fintype.card (Numbering X) = (Fintype.card X).factorial

def Numbering.IsPrefix E1 #

{X : Type u_1} → [inst : Fintype X] → Numbering X → Finset X → Prop

IsPrefix f s means that the elements of s precede the elements of sᶜ in the numbering f.

theorem Numbering.IsPrefix.subset_of_card_le_card E1 #

∀ {X : Type u_1} [inst : Fintype X] {f : Numbering X} {s t : Finset X},
  f.IsPrefix s → f.IsPrefix t → s.card ≤ t.card → s ⊆ t

instance Numbering.instDecidableIsPrefix E0 #

{X : Type u_1} → [inst : Fintype X] → {f : Numbering X} → {s : Finset X} → [DecidableEq X] → Decidable (f.IsPrefix s)

def Numbering.prefixed E1 #

{X : Type u_1} → [inst : Fintype X] → [DecidableEq X] → Finset X → Finset (Numbering X)

The set of numberings of which s is a prefix.

theorem Numbering.mem_prefixed E0 #

∀ {X : Type u_1} [inst : Fintype X] {f : Numbering X} {s : Finset X} [inst_1 : DecidableEq X],
  f ∈ Numbering.prefixed s ↔ f.IsPrefix s

def Numbering.prefixedEquiv E1 #

{X : Type u_1} →
  [inst : Fintype X] →
    [inst_1 : DecidableEq X] → (s : Finset X) → ↥(Numbering.prefixed s) ≃ Numbering ↥s × Numbering ↥sᶜ

Decompose a numbering of which s is a prefix into a numbering of s and a numbering on sᶜ.

theorem Numbering.card_prefixed E1 #

∀ {X : Type u_1} [inst : Fintype X] [inst_1 : DecidableEq X] (s : Finset X),
  (Numbering.prefixed s).card = s.card.factorial * (Fintype.card X - s.card).factorial

theorem Numbering.dens_prefixed E0 #

∀ {X : Type u_1} [inst : Fintype X] [inst_1 : DecidableEq X] (s : Finset X),
  (Numbering.prefixed s).dens = (↑((Fintype.card X).choose s.card))⁻¹

theorem Numbering.disjoint_prefixed_prefixed E1 #

∀ {X : Type u_1} [inst : Fintype X] {s t : Finset X} [inst_1 : DecidableEq X],
  ¬s ⊆ t → ¬t ⊆ s → Disjoint (Numbering.prefixed s) (Numbering.prefixed t)