Documentation

LeanPool.ArithmeticTriangleRemovalInVectorSpaces.Triangle.Basic

Triangles #

A triangle in an abelian group is a triple (x, y, z) with x + y + z = 0. This file defines the set of triangles of X × Y × Z for finite sets X, Y and Z.

Main definitions #

Main statements #

The triangles of X × Y × Z: the triples (x, y, z) with x + y + z = 0.

Equations
Instances For
    @[simp]
    theorem ArithmeticTriangleRemovalInVectorSpaces.mem_triangles {G : Type u_1} [AddCommGroup G] [DecidableEq G] {X Y Z : Finset G} {x y z : G} :
    (x, y, z) ∈ triangles X Y Z ↔ x ∈ X ∧ y ∈ Y ∧ z ∈ Z ∧ x + y + z = 0
    theorem ArithmeticTriangleRemovalInVectorSpaces.triangles_eq_empty_iff {G : Type u_1} [AddCommGroup G] [DecidableEq G] {X Y Z : Finset G} :
    triangles X Y Z = ∅ ↔ ∀ x ∈ X, ∀ y ∈ Y, ∀ z ∈ Z, x + y + z ≠ 0
    theorem ArithmeticTriangleRemovalInVectorSpaces.triangles_mono {G : Type u_1} [AddCommGroup G] [DecidableEq G] {X Y Z X' Y' Z' : Finset G} (hX : X' ⊆ X) (hY : Y' ⊆ Y) (hZ : Z' ⊆ Z) :
    triangles X' Y' Z' ⊆ triangles X Y Z

    A triangle is determined by its first two vertices, so there are at most #G ^ 2 triangles.

    theorem ArithmeticTriangleRemovalInVectorSpaces.card_triangles_erase_left {G : Type u_1} [AddCommGroup G] [DecidableEq G] (X Y Z : Finset G) (v : G) :
    (triangles (X.erase v) Y Z).card + {x ∈ triangles X Y Z | match x with | (x, fst, snd) => x = v}.card = (triangles X Y Z).card

    Removing a vertex v from X removes the triangles whose first vertex is v.

    theorem ArithmeticTriangleRemovalInVectorSpaces.card_triangles_erase_middle {G : Type u_1} [AddCommGroup G] [DecidableEq G] (X Y Z : Finset G) (v : G) :
    (triangles X (Y.erase v) Z).card + {x ∈ triangles X Y Z | match x with | (fst, y, snd) => y = v}.card = (triangles X Y Z).card

    Removing a vertex v from Y removes the triangles whose second vertex is v.

    theorem ArithmeticTriangleRemovalInVectorSpaces.card_triangles_erase_right {G : Type u_1} [AddCommGroup G] [DecidableEq G] (X Y Z : Finset G) (v : G) :
    (triangles X Y (Z.erase v)).card + {x ∈ triangles X Y Z | match x with | (fst, fst_1, z) => z = v}.card = (triangles X Y Z).card

    Removing a vertex v from Z removes the triangles whose third vertex is v.

    theorem ArithmeticTriangleRemovalInVectorSpaces.card_triangles_piFinset {G : Type u_1} [AddCommGroup G] [DecidableEq G] (X Y Z : Finset G) (k : ℕ) :
    (triangles (Fintype.piFinset fun (x : Fin k) => X) (Fintype.piFinset fun (x : Fin k) => Y) (Fintype.piFinset fun (x : Fin k) => Z)).card = (triangles X Y Z).card ^ k

    The triangles of the coordinatewise powers X ^ k, Y ^ k and Z ^ k are the k-tuples of triangles of X × Y × Z.