Documentation

Seymour.Basic.Basic

Basics #

This is the stem file (imported by every other file in this project). This file provides notation used throughout the project, some very basic lemmas, and a little bit of configuration.

Notation #

@[reducible, inline]
abbrev Z2 :

The finite field on 2 elements; write Z2 for "value" type but Fin 2 for "indexing" type.

Equations
Instances For
    @[reducible, inline]
    abbrev Z3 :

    The finite field on 3 elements; write Z3 for "value" type but Fin 3 for "indexing" type.

    Equations
    Instances For

      Roughly speaking a ᕃ A is A ∪ {a}.

      Equations
      Instances For

        Writing X ⫗ Y is slightly more general than writing X ∩ Y = ∅.

        Equations
        Instances For

          The left-to-right direction of .

          Equations
          Instances For

            The right-to-left direction of .

            Equations
            Instances For

              Writing ↓t is slightly more general than writing Function.const _ t.

              Equations
              Instances For

                We denote the cardinality of a Fintype the same way the cardinality of a Finset is denoted.

                Equations
                Instances For

                  Canonical bijection between subtypes corresponding to equal sets.

                  Equations
                  Instances For

                    The trivial bijection (identity).

                    Equations
                    Instances For

                      The "left" or "top" variant.

                      Equations
                      Instances For

                        The "right" or "bottom" variant.

                        Equations
                        Instances For

                          Glue rows of two matrices.

                          Equations
                          Instances For

                            Glue cols of two matrices.

                            Equations
                            Instances For

                              Glue four matrices into one block matrix.

                              Equations
                              Instances For

                                Convert vector to a single-row matrix.

                                Equations
                                Instances For

                                  Convert vector to a single-col matrix.

                                  Equations
                                  Instances For
                                    @[reducible, inline]
                                    abbrev outerProduct {X : Type u_1} {Y : Type u_2} {α : Type u_3} [Mul α] (c : Xα) (r : Yα) :
                                    Matrix X Y α

                                    Outer product of two vectors (the column vector comes on left; the row vector comes on right).

                                    Equations
                                    Instances For

                                      Outer product of two vectors (the column vector comes on left; the row vector comes on right).

                                      Equations
                                      Instances For
                                        @[reducible, inline]
                                        abbrev entrywiseProduct {X : Type u_1} {Y : Type u_2} {α : Type u_3} {β : Type u_4} [SMul α β] (A : Matrix X Y α) (B : Matrix X Y β) :
                                        Matrix X Y β

                                        Element-wise product of two matrices (rarely used).

                                        Equations
                                        Instances For

                                          Element-wise product of two matrices (rarely used).

                                          Equations
                                          Instances For
                                            @[reducible, inline]
                                            abbrev Function.range {α : Type u_1} {ι : Type u_2} (f : ια) :
                                            Set α

                                            The set of possible outputs of a function.

                                            Equations
                                            Instances For
                                              Equations
                                              • One or more equations did not get rendered due to their size.
                                              Instances For
                                                Equations
                                                • One or more equations did not get rendered due to their size.
                                                Instances For

                                                  Basic stuff #

                                                  theorem Function.range_eq {α : Type u_1} {ι : Type} (f : ια) :
                                                  f.range = {a : α | ∃ (i : ι), f i = a}
                                                  theorem dite_of_true {α : Type u_1} {P : Prop} [Decidable P] (p : P) {f : Pα} {a : α} :
                                                  (if hp : P then f hp else a) = f p
                                                  theorem dite_of_false {α : Type u_1} {P : Prop} [Decidable P] (p : ¬P) {f : Pα} {a : α} :
                                                  (if hp : P then f hp else a) = a
                                                  @[reducible, inline]
                                                  abbrev Equiv.leftCongr {α : Type u_1} {ι₁ : Type u_2} {ι₂ : Type u_3} (e : ι₁ ι₂) :
                                                  ι₁ α ι₂ α
                                                  Equations
                                                  Instances For
                                                    @[reducible, inline]
                                                    abbrev Equiv.rightCongr {α : Type u_1} {ι₁ : Type u_2} {ι₂ : Type u_3} (e : ι₁ ι₂) :
                                                    α ι₁ α ι₂
                                                    Equations
                                                    Instances For
                                                      @[simp]
                                                      theorem Equiv.image_symm_apply {α : Type u_1} {β : Type u_2} {X : Set α} (e : α β) (x : X) :
                                                      (e.image X).symm e x, = x
                                                      theorem Finset.sum_of_single_nonzero {α : Type u_1} {ι : Type u_2} (s : Finset ι) [AddCommMonoid α] (f : ια) (a : ι) (ha : a s) (hf : is, i af i = 0) :
                                                      s.sum f = f a
                                                      theorem fintype_sum_of_single_nonzero {α : Type u_1} {ι : Type u_2} [Fintype ι] [AddCommMonoid α] (f : ια) (a : ι) (hf : ∀ (i : ι), i af i = 0) :
                                                      theorem sum_elem_of_single_nonzero {α : Type u_1} {ι : Type u_2} [AddCommMonoid α] {f : ια} {S : Set ι} [Fintype S] {a : ι} (haS : a S) (hf : ∀ (i : ι), i af i = 0) :
                                                      i : S, f i = f a
                                                      theorem sum_over_fin_succ_of_only_zeroth_nonzero {α : Type u_1} {n : } [AddCommMonoid α] {f : Fin n.succα} (hf : ∀ (i : Fin n.succ), i 0f i = 0) :

                                                      Aesop modifiers #

                                                      Nonterminal aesop (dangerous).

                                                      Equations
                                                      Instances For