Documentation

LeanPool.Schoenflies.Square

The sup metric and axis-parallel squares #

The blueprint takes the Euclidean norm as primary and uses the sup norm for the axis-parallel objects the polygonal work is built on: grids of small squares, the vertex squares of the redrawing argument, and the large square a bounded set is caught inside. Appendix C item 1 asks for the comparison ‖x‖∞ ≤ ‖x‖ ≤ √2 ‖x‖∞, which is supNorm_le_norm and norm_le_sqrt_two_mul_supNorm here.

The one theorem of substance is isConnected_beyondSquare: the plane outside a closed square is connected. It is a square and not a disk on purpose — the outside of a square is exactly a union of four half-planes, each convex, with consecutive ones sharing a point, whereas the outside of a disk would need the polar decomposition this development withholds.

Blueprint #

Coordinates #

theorem Schoenflies.Plane.sub_apply (x y : Plane) (i : Fin 2) :
(x - y).ofLp i = x.ofLp i - y.ofLp i
theorem Schoenflies.Plane.smul_add_apply (a b : ℝ) (x y : Plane) (i : Fin 2) :
(a • x + b • y).ofLp i = a * x.ofLp i + b * y.ofLp i

The sup norm #

noncomputable def Schoenflies.Plane.supNorm (x : Plane) :

The sup norm ‖x‖∞ = max |x₁| |x₂|.

Equations
Instances For
    noncomputable def Schoenflies.Plane.supDist (x y : Plane) :

    The sup distance.

    Equations
    Instances For

      The sup distance satisfies the triangle inequality, one coordinate at a time.

      theorem Schoenflies.Plane.norm_sq_eq (x : Plane) :
      ‖x‖ ^ 2 = x.ofLp 0 ^ 2 + x.ofLp 1 ^ 2

      Half of Appendix C item 1's comparison: the sup norm is at most the Euclidean norm.

      The other half: the Euclidean norm is at most √2 times the sup norm.

      Coordinate half-planes #

      One convexity proof per direction serves all four sides of a square, and the outside of a square is four of them.

      Axis-parallel squares #

      The closed axis-parallel square of radius r about c.

      Equations
      Instances For

        The open axis-parallel square of radius r about c.

        Equations
        Instances For
          theorem Schoenflies.Plane.closedSquare_eq_inter (c : Plane) (r : ℝ) :
          c.closedSquare r = {x : Plane | c.ofLp 0 - r ≤ x.ofLp 0} ∩ {x : Plane | x.ofLp 0 ≤ c.ofLp 0 + r} ∩ ({x : Plane | c.ofLp 1 - r ≤ x.ofLp 1} ∩ {x : Plane | x.ofLp 1 ≤ c.ofLp 1 + r})
          theorem Schoenflies.Plane.openSquare_eq_inter (c : Plane) (r : ℝ) :
          c.openSquare r = {x : Plane | c.ofLp 0 - r < x.ofLp 0} ∩ {x : Plane | x.ofLp 0 < c.ofLp 0 + r} ∩ ({x : Plane | c.ofLp 1 - r < x.ofLp 1} ∩ {x : Plane | x.ofLp 1 < c.ofLp 1 + r})

          The outside of a square #

          The plane outside the closed square of radius r about the origin.

          Equations
          Instances For

            The outside of a square is connected.

            Four half-planes, each convex and hence connected, with consecutive ones sharing a corner. No polar decomposition, and no arbitrary union of connected sets. The radius needs no sign condition: for r < 0 the four half-planes already cover the plane.