Documentation

LeanCourse.MIL.C06_Structures.S01_Structures

theorem C06S01.Point.ext_iff {x : C06S01.Point} {y : C06S01.Point} :
x = y x.x = y.x x.y = y.y x.z = y.z
theorem C06S01.Point.ext {x : C06S01.Point} {y : C06S01.Point} (x : x✝.x = y✝.x) (y : x✝.y = y✝.y) (z : x✝.z = y✝.z) :
x✝ = y✝
structure C06S01.Point :
Instances For
    Equations
    Instances For
      Equations
      Instances For
        Equations
        Instances For
          structure C06S01.Point' :
          Instances For
            Equations
            • a.add b = { x := a.x + b.x, y := a.y + b.y, z := a.z + b.z }
            Instances For
              Equations
              • a.add' b = { x := a.x + b.x, y := a.y + b.y, z := a.z + b.z }
              Instances For
                theorem C06S01.Point.add_comm (a : C06S01.Point) (b : C06S01.Point) :
                a.add b = b.add a
                theorem C06S01.Point.add_x (a : C06S01.Point) (b : C06S01.Point) :
                (a.add b).x = a.x + b.x
                Equations
                • { x := x₁, y := y₁, z := z₁ }.addAlt { x := x₂, y := y₂, z := z₂ } = { x := x₁ + x₂, y := y₁ + y₂, z := z₁ + z₂ }
                Instances For
                  Equations
                  • { x := x₁, y := y₁, z := z₁ }.addAlt' { x := x₂, y := y₂, z := z₂ } = { x := x₁ + x₂, y := y₁ + y₂, z := z₁ + z₂ }
                  Instances For
                    theorem C06S01.Point.addAlt_x (a : C06S01.Point) (b : C06S01.Point) :
                    (a.addAlt b).x = a.x + b.x
                    theorem C06S01.Point.addAlt_comm (a : C06S01.Point) (b : C06S01.Point) :
                    a.addAlt b = b.addAlt a
                    theorem C06S01.Point.add_assoc (a : C06S01.Point) (b : C06S01.Point) (c : C06S01.Point) :
                    (a.add b).add c = a.add (b.add c)
                    • x :
                    • y :
                    • z :
                    • x_nonneg : 0 self.x
                    • y_nonneg : 0 self.y
                    • z_nonneg : 0 self.z
                    • sum_eq : self.x + self.y + self.z = 1
                    Instances For
                      theorem C06S01.StandardTwoSimplex.sum_eq (self : C06S01.StandardTwoSimplex) :
                      self.x + self.y + self.z = 1
                      Equations
                      • a.swapXy = { x := a.y, y := a.x, z := a.z, x_nonneg := , y_nonneg := , z_nonneg := , sum_eq := }
                      Instances For
                        Equations
                        • a.midpoint b = { x := (a.x + b.x) / 2, y := (a.y + b.y) / 2, z := (a.z + b.z) / 2, x_nonneg := , y_nonneg := , z_nonneg := , sum_eq := }
                        Instances For
                          def C06S01.StandardTwoSimplex.weightedAverage (lambda : ) (lambda_nonneg : 0 lambda) (lambda_le : lambda 1) (a : C06S01.StandardTwoSimplex) (b : C06S01.StandardTwoSimplex) :
                          Equations
                          Instances For
                            • V : Fin n
                            • NonNeg : ∀ (i : Fin n), 0 self.V i
                            • sum_eq_one : i : Fin n, self.V i = 1
                            Instances For
                              theorem C06S01.StandardSimplex.NonNeg {n : } (self : C06S01.StandardSimplex n) (i : Fin n) :
                              0 self.V i
                              theorem C06S01.StandardSimplex.sum_eq_one {n : } (self : C06S01.StandardSimplex n) :
                              i : Fin n, self.V i = 1
                              Equations
                              Instances For
                                structure C06S01.IsLinear (f : ) :
                                • is_additive : ∀ (x y : ), f (x + y) = f x + f y
                                • preserves_mul : ∀ (x c : ), f (c * x) = c * f x
                                Instances For
                                  theorem C06S01.IsLinear.is_additive {f : } (self : C06S01.IsLinear f) (x : ) (y : ) :
                                  f (x + y) = f x + f y
                                  theorem C06S01.IsLinear.preserves_mul {f : } (self : C06S01.IsLinear f) (x : ) (c : ) :
                                  f (c * x) = c * f x
                                  Equations
                                  Instances For
                                    def C06S01.IsLinear' (f : ) :
                                    Equations
                                    Instances For
                                      Equations
                                      Instances For
                                        Equations
                                        Instances For
                                          Equations
                                          Instances For