Documentation

EuclideanGeometry.Foundation.Axiom.Linear.Line

We say that rays $r$ and $r'$ \emph{induce the same directed line} if, (1) they have the same direction, and (2) the source of $r'$ lies on $r$ or the reverse range of $r$.

Equations
Instances For

    Rays $r$ and $r$ induce the same directed line.

    If $r$ and $r'$ induce the same directed line, then $r'$ and $r$ induce the same directed line.

    If $r$, $r'$, and $r''$ are rays such that $r$ and $r'$ induce the same directed line, and $r'$ and $r''$ induce the same directed line, then $r$ and $r''$ induce the same directed line.

    Define an equivalence relation of rays with the same directed line, consisting of reflexive, symmetric, and transitivity conditions.

    Equations
    • EuclidGeom.same_dir_line.setoid = { r := EuclidGeom.same_dir_line, iseqv := (_ : Equivalence EuclidGeom.same_dir_line) }
    Instances For

      We say two rays $r$ and $r'$ \emph{have the same extension line} if, (1) they have the same projective direction, and (2) if the sourse of $r'$ lies either on $r$ or the reverse ray of $r$.

      Equations
      Instances For
        theorem EuclidGeom.same_extn_line.dir_eq_or_eq_neg {P : Type u_1} [EuclidGeom.EuclideanPlane P] {r : EuclidGeom.Ray P} {r' : EuclidGeom.Ray P} (h : EuclidGeom.same_extn_line r r') :
        r.toDir = r'.toDir r.toDir = -r'.toDir

        If two rays $r$ and $r'$ have the same extension line, then either they have the same direction or opposite direction.

        theorem EuclidGeom.same_extn_line.vec_parallel_of_same_extn_line {P : Type u_1} [EuclidGeom.EuclideanPlane P] {r : EuclidGeom.Ray P} {r' : EuclidGeom.Ray P} (h : EuclidGeom.same_extn_line r r') :
        ∃ (t : ), r'.toDir.unitVec = t r.toDir.unitVec

        If two rays $r$ and $r'$ have the same extension line, then the unit vector determined by $r'$ is some real multiple of the unit vecgtor determined by $r$.

        The reverse of a ray have the same extension line as the ray.

        For two distinct points $A$ and $B$, if $A$ lies on a ray $r$ or its reverse ray and $B$ also lies on $r$ or its reverse ray, then the ray $r$ and the ray $\overline{AB}$ have the same extension line.

        A ray $r$ has the same extension line as itself.

        The symmetric property of same_extn_line. It states that if two rays $r$ and $r'$ have the same extension line, then $r'$ and $r$ also have the same extension line.

        The transitivity of the same extension line relation. If $r$, $r'$, and $r''$ are rays such that $r$ and $r'$ have the same extension line, and $r'$ and $r''$ have the same extension line, then $r$ and $r''$ have the same extension line.

        Equations
        • EuclidGeom.same_extn_line.setoid = { r := EuclidGeom.same_extn_line, iseqv := (_ : Equivalence EuclidGeom.same_extn_line) }
        Instances For
          theorem EuclidGeom.same_extn_line_of_PM {P : Type u_1} [EuclidGeom.EuclideanPlane P] (A : P) {x : EuclidGeom.Dir} {y : EuclidGeom.Dir} (h : x = y x = -y) :
          EuclidGeom.same_extn_line { source := A, toDir := x } { source := A, toDir := y }

          Given two directions, either the same or opposite, the rays starting from a same point with the two directions have the same extension line.

          If two rays $r$ and $r'$ have the same extension lines, then the union of the set of $r'$ and its reverse is contained in the union of the set of $r$ and its reverse.

          If two rays $r$ and $r'$ have the same extension lines, then the union of the set of $r'$ and its reverse is the same as the union of the set of $r$ and its reverse.

          theorem EuclidGeom.same_dir_line_le_same_extn_line {P : Type u_1} [EuclidGeom.EuclideanPlane P] :
          EuclidGeom.same_dir_line.setoid EuclidGeom.same_extn_line.setoid

          This theorem gives the relation between two equivalence relations: having the same directed line implies having the same extension line.

          A \emph{directed line} is the equivalence class of rays with the same directed lines.

          Equations
          Instances For

            A \emph{line} is the equivalence class of rays with the same exetnsion lines.

            Equations
            Instances For

              Given two distinct points $A$ and $B$, this function returns the directed line starting from $A$ in the direction of $B$. We use $\verb|DLIN| A B$ or $\verb|DLIN| A B h$ to abbreviate $\verb|DLine.mk_pt_pt| A B h$, where $h$ is a statement that $A \neq B$. When such statement $h$ is missing, we search it in all the known facts.

              Equations
              • DLIN A B h = RAY A B h
              Instances For

                Given a point $A$ and a direction, this function returns the directed line starting from $A$ in the given direction.

                Equations
                Instances For

                  Given a point $A$ and a nondegenerate vector, this function returns the directed line starting from $A$ in the same direction of the nondegenerate vector.

                  Equations
                  Instances For
                    def EuclidGeom.Line.mk_pt_pt {P : Type u_1} [EuclidGeom.EuclideanPlane P] (A : P) (B : P) (h : B A) :

                    Given two distinct points $A$ and $B$, this function returns the line passing through $A$ and $B$. We use $\verb|LIN| A B$ or $\verb|LIN| A B h$ to abbreviate $\verb|Line.mk_pt_pt| A B h$, where $h$ is a statement that $A \neq B$. When such statement $h$ is missing, we search it in all the known facts.

                    Equations
                    • LIN A B h = RAY A B h
                    Instances For

                      Given a point $A$ and a projective direction, this function returns the line through $A$ along the given projective direction.

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

                        Given a point $A$ and a direction, this function returns the line through $A$ along the given direction.

                        Equations
                        Instances For

                          Given a point $A$ and a nondegenerate vector, this function returns the line through $A$ along the nondegenerate vector.

                          Equations
                          Instances For

                            Given two distinct points $A$ and $B$, this function returns the line passing through $A$ and $B$. We use $\verb|LIN| A B$ or $\verb|LIN| A B h$ to abbreviate $\verb|Line.mk_pt_pt| A B h$, where $h$ is a statement that $A \neq B$. When such statement $h$ is missing, we search it in all the known facts.

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

                              Delaborator for Line.mk_pt_pt

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

                                Given two distinct points $A$ and $B$, this function returns the directed line starting from $A$ in the direction of $B$. We use $\verb|DLIN| A B$ or $\verb|DLIN| A B h$ to abbreviate $\verb|DLine.mk_pt_pt| A B h$, where $h$ is a statement that $A \neq B$. When such statement $h$ is missing, we search it in all the known facts.

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

                                  Delaborator for DirLine.mk_pt_pt

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

                                    Given a directed line, this function returns its direction.

                                    Equations
                                    Instances For
                                      @[inline, reducible]

                                      Given a directed line, this function returns its projected direction.

                                      Equations
                                      • l.toProj = l.toDir.toProj
                                      Instances For

                                        Given a directed line, this function returns the associated line.

                                        Equations
                                        Instances For
                                          @[inline, reducible]

                                          Given a ray, this function returns the associated directed line.

                                          Equations
                                          • ray.toDirLine = ray
                                          Instances For
                                            @[inline, reducible]

                                            Given a nondegenerate segment, this function returns the directed line in the direction of the segment.

                                            Equations
                                            • seg_nd.toDirLine = seg_nd.toDirLine
                                            Instances For

                                              Given a line, this function returns its projective direction.

                                              Equations
                                              Instances For
                                                @[inline, reducible]

                                                Given a ray, this function returns the line associated with the ray.

                                                Equations
                                                • ray.toLine = ray
                                                Instances For
                                                  @[inline, reducible]

                                                  Given a nondegenerate segment, this function returns the line associated with the ray.

                                                  Equations
                                                  • seg_nd.toLine = seg_nd.toRay
                                                  Instances For
                                                    theorem EuclidGeom.DirLine.ind {P : Type u_1} [EuclidGeom.EuclideanPlane P] {C : EuclidGeom.DirLine PProp} (h : ∀ (r : EuclidGeom.Ray P), C r.toDirLine) (l : EuclidGeom.DirLine P) :
                                                    C l

                                                    An induction principle to deduce results for directed lines from those for rays, used with induction l using DirLine.ind or induction' l using DirLine.ind with r.

                                                    theorem EuclidGeom.Line.ind {P : Type u_1} [EuclidGeom.EuclideanPlane P] {C : EuclidGeom.Line PProp} (h : ∀ (r : EuclidGeom.Ray P), C r.toLine) (l : EuclidGeom.Line P) :
                                                    C l

                                                    An induction principle to deduce results for lines from those for rays, used with induction l using Line.ind or induction' l using Line.ind with r.

                                                    @[simp]
                                                    theorem EuclidGeom.mkPtProj_toLine {P : Type u_1} [EuclidGeom.EuclideanPlane P] (A : P) (dir : EuclidGeom.Dir) :
                                                    { source := A, toDir := dir }.toLine = EuclidGeom.Line.mk_pt_dir A dir

                                                    Given a point $A$ and a direction $dir$, the line associated to the ray starting at $A$ in the direction of $dir$ is the same as the line through $A$ in the direction of $dir$.

                                                    theorem EuclidGeom.DirLine.toLine_toProj_eq_toProj {P : Type u_1} [EuclidGeom.EuclideanPlane P] (l : EuclidGeom.DirLine P) :
                                                    l.toLine.toProj = l.toProj

                                                    Given a directed line $l$, its projective direction is the same as the projective direction of the line associated to $l$.

                                                    theorem EuclidGeom.Ray.toLine_eq_toDirLine_toLine {P : Type u_1} [EuclidGeom.EuclideanPlane P] (ray : EuclidGeom.Ray P) :
                                                    ray.toLine = ray.toDirLine.toLine

                                                    The line associated to a ray is the same as the line associated to the directed line of the ray.

                                                    For coercion purpose, a ray can induce a directed line.

                                                    Equations
                                                    • EuclidGeom.instCoeRayDirLine = { coe := EuclidGeom.Ray.toDirLine }

                                                    For coercion purpose, a directed line can induce a line.

                                                    Equations
                                                    • EuclidGeom.instCoeDirLineLine = { coe := EuclidGeom.DirLine.toLine }

                                                    For coercion purpose, a ray can induce a line.

                                                    Equations
                                                    • EuclidGeom.instCoeRayLine = { coe := EuclidGeom.Ray.toLine }

                                                    Given a line $l$, this function returns the set of points that lies on the line $l$.

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

                                                      This function returns whether a point $A$ lies on a line $l$ or not. Note that no definition of LiesInt is given.

                                                      Equations
                                                      Instances For

                                                        A line is a figure in the Euclidean geometry, meaning that one can talk about its underlying subset of points.

                                                        Equations
                                                        • EuclidGeom.Line.instFigLine = { carrier := EuclidGeom.Line.carrier }
                                                        @[inline, reducible]

                                                        For a directed line, this function returns its underlying subset.

                                                        Equations
                                                        Instances For

                                                          A directed line is a figure in the Euclidean geometry, meaning that one can talk about its underlying subset of points.

                                                          Equations
                                                          • EuclidGeom.DirLine.instFigDirLine = { carrier := EuclidGeom.DirLine.carrier }

                                                          The underlying set of the line associated to a ray is teh union of the underlying set of the ray and the underlying set of the reverse of the ray.

                                                          A point lies on a line associated to a ray if and only if it lies on the ray or the reverse of the ray.

                                                          This theorem states that a point A lies on the directed line associated to a ray r if and only if A lies on the ray r or A lies on the reverse of the ray r.

                                                          A point lies on the line associated to a directed line if and only if it lies on the line.

                                                          If a point lies on a ray, then it lies on the line associated to the ray.

                                                          Given a point A lying on a nondegenerate segment s, the point A also lies on the line associated to s.

                                                          The source of a ray lies on the line associated to the ray.

                                                          The source of a nondegenerate segment lies on the line associated to the segment.

                                                          The target point of a nondegenerate segment lies on the line associated to the segment.

                                                          If a point lies on a ray, then it lies on the directed line associated to the ray.

                                                          This theorem states that if a point A lies on a nondegenerate segment s, then A also lies on the directed line associated to s.

                                                          The source of a ray lies on the directed line associated to the ray.

                                                          The source of a nondegenerate segment lies on the directed line associated to the segment.

                                                          The target point of a nondegenerate segment lies on the directed line associated to the segment.

                                                          Given a point $A$ lying on a directed line $l$, this function returns the ray starting from $A$ in the direction of $l$.

                                                          Equations
                                                          Instances For

                                                            Given a point $A$ lying on a directed line $l$, the directed line associated to the ray from $A$ in the direction of $l$ is precisely $l$ itself.

                                                            Given a point A lying on a directed line l, the direction of the ray starting from A in the direction of l is the same as the direction of l.

                                                            Given a directed line, the function returns the reverse of the directed line.

                                                            Equations
                                                            Instances For

                                                              Given a directed line $l$, the direction of its reverse is the opposite of its direction.

                                                              theorem EuclidGeom.DirLine.rev_rev_eq_self {P : Type u_1} [EuclidGeom.EuclideanPlane P] {l : EuclidGeom.DirLine P} :
                                                              l.reverse.reverse = l

                                                              The reverse of the reverse of a directed line is the line itself.

                                                              A point lies on the reverse of a directed line if and only if it lies on the directed line.

                                                              theorem EuclidGeom.DirLine.rev_toLine_eq_toLine {P : Type u_1} [EuclidGeom.EuclideanPlane P] (l : EuclidGeom.DirLine P) :
                                                              l.reverse.toLine = l.toLine

                                                              Given a directed line $l$, the line associted to the reverse of $l$ is the same as the line associated to $l$.

                                                              theorem EuclidGeom.DirLine.eq_of_toDir_eq_of_toLine_eq {P : Type u_1} [EuclidGeom.EuclideanPlane P] {l₁ : EuclidGeom.DirLine P} {l₂ : EuclidGeom.DirLine P} (h : l₁.toLine = l₂.toLine) (hd : l₁.toDir = l₂.toDir) :
                                                              l₁ = l₂

                                                              Given two directed lines $l_1$ and $l_2$ with the same associated line, if they have the same direcdtion, they are equal.

                                                              theorem EuclidGeom.DirLine.eq_rev_of_toDir_eq_neg_of_toLine_eq {P : Type u_1} [EuclidGeom.EuclideanPlane P] {l₁ : EuclidGeom.DirLine P} {l₂ : EuclidGeom.DirLine P} (h : l₁.toLine = l₂.toLine) (hd : l₁.toDir = -l₂.toDir) :
                                                              l₁ = l₂.reverse

                                                              Given two directed lines $l_1$ and $l_2$ with the same associated line, if they have the opposite direction, they are reverse of each other.

                                                              theorem EuclidGeom.DirLine.eq_rev_of_toDir_ne_of_toLine_eq {P : Type u_1} [EuclidGeom.EuclideanPlane P] {l₁ : EuclidGeom.DirLine P} {l₂ : EuclidGeom.DirLine P} (h : l₁.toLine = l₂.toLine) (hd : l₁.toDir l₂.toDir) :
                                                              l₁ = l₂.reverse

                                                              Given two directed lines $l_1$ and $l_2$ with the same associated line, if they have different directions, then $l_1$ is the reverse of $l_2$.

                                                              theorem EuclidGeom.DirLine.eq_or_eq_rev_of_toLine_eq {P : Type u_1} [EuclidGeom.EuclideanPlane P] {l₁ : EuclidGeom.DirLine P} {l₂ : EuclidGeom.DirLine P} (h : l₁.toLine = l₂.toLine) :
                                                              l₁ = l₂ l₁ = l₂.reverse

                                                              Given two directed lines $l_1$ and $l_2$, if their associated lines are equal, then either the directed lines are equal or one is the reverse of the other.

                                                              theorem EuclidGeom.Line.line_of_pt_pt_eq_rev {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {B : P} [_h : EuclidGeom.PtNe B A] :
                                                              LIN A B = LIN B A

                                                              Let $A$ and $B$ be two distinct points, the line through $A$ and $B$ is the same as the line through $B$ and $A$.

                                                              For two distinct points $A$ and $B$, $A$ lies on the line through $A$ and $B$.

                                                              The point $B$ lies on the line through $A$ and $B$.

                                                              The first point and the second point in Line.mk_pt_pt LiesOn the line it makes.

                                                              theorem EuclidGeom.Line.eq_line_of_pt_pt_of_ne {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {B : P} {l : EuclidGeom.Line P} [_h : EuclidGeom.PtNe B A] (ha : EuclidGeom.lies_on A l) (hb : EuclidGeom.lies_on B l) :
                                                              LIN A B = l

                                                              Two point determines a line, i.e. given two distinct points $A$ and $B$ on a line $l$, the line through $A$ and $B$ is the same as $l$.

                                                              theorem EuclidGeom.Line.eq_of_pt_pt_lies_on_of_ne {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {B : P} [_h : EuclidGeom.PtNe B A] {l₁ : EuclidGeom.Line P} {l₂ : EuclidGeom.Line P} (hA₁ : EuclidGeom.lies_on A l₁) (hB₁ : EuclidGeom.lies_on B l₁) (hA₂ : EuclidGeom.lies_on A l₂) (hB₂ : EuclidGeom.lies_on B l₂) :
                                                              l₁ = l₂

                                                              If two lines have two distinct intersection points, then these two lines are identical.

                                                              The theorem states that two distinct points A and B lie on a line $l$ if and only if the line through $A$ and $B$ is equal to $l$.

                                                              The theorem states that two distinct points $A$ and $B$ lie on a line $l$ if and only if the line associated to the ray from $A$ to $B$ is equal to $l$.

                                                              The theorem states that two distinct points $A$ and $B$ lies on a line $l$ if and only if the line associated with the nondegenerate segment $AB$ is the same as line $l$.

                                                              theorem EuclidGeom.Line.toProj_eq_seg_nd_toProj_of_lies_on {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {B : P} {l : EuclidGeom.Line P} (ha : EuclidGeom.lies_on A l) (hb : EuclidGeom.lies_on B l) [_hab : EuclidGeom.PtNe B A] :
                                                              (SEG_nd A B).toProj = l.toProj

                                                              Given two distinct points $A$ and $B$ lying on a line $l$, the projective direction of the nondegenerate segment $AB$ is the same as the projective direction of the line $l$.

                                                              Given a point $A$ and a projective direction, $A$ lies on the line through $A$ in the direction of the projective direction.

                                                              Given a point $A$ and a direction, $A$ lies on the line through $A$ along the given direction.

                                                              Given a point $A$ and a nondegenerate vector, then $A$ lies on the line through $A$ in the direction of the given vector.

                                                              Given a point $A$ and a projective direction $proj$, the projective direction of the line through $A$ and in the projective direction $proj$ is exactly $proj$.

                                                              Given a point $A$ lying on a line $l$, the line through $A$ along the projective direction of $l$ is precisely $l$.

                                                              Given a projective direction $x$ and a point $A$ on a line $l$, if $x$ is the same as the projective direction of $l$, then the line through $A$ in the direction of $x$ is equal to $l$.

                                                              theorem EuclidGeom.Line.eq_of_same_toProj_and_pt_lies_on {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {l₁ : EuclidGeom.Line P} {l₂ : EuclidGeom.Line P} (h₁ : EuclidGeom.lies_on A l₁) (h₂ : EuclidGeom.lies_on A l₂) (h : l₁.toProj = l₂.toProj) :
                                                              l₁ = l₂

                                                              Given two lines $l_1$ and $l_2$ with the same projective direction, if there is a point $A$ that lies on both lines, then $l_1 = l_2$.

                                                              theorem EuclidGeom.Line.exist_rep_ray_source_eq_pt {P : Type u_1} [EuclidGeom.EuclideanPlane P] {l : EuclidGeom.Line P} {A : P} (ha : EuclidGeom.lies_on A l) :
                                                              ∃ (r : EuclidGeom.Ray P), r.source = A r.toLine = l

                                                              Given a point $A$, there exists a line through $A$.

                                                              theorem EuclidGeom.DirLine.pt_pt_rev_eq_rev {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {B : P} [_h : EuclidGeom.PtNe B A] :
                                                              DLIN B A = (DLIN A B).reverse

                                                              Given two distinct points, the directed line from $B$ to $A$ is the reverse of the directed line from $A$ to $B$.

                                                              For two distinct points $A$ and $B$, $A$ lies on the directed line from $A$ to $B$.

                                                              For two distinct points $A$ and $B$, the second point $B$ lies on the directed line from $A$ to $B$.

                                                              Given two distinct points $A$ and $B$, both $A$ and $B$ lie on the directed line from $A$ to $B$.

                                                              Given a point $A$ and a direction, the point $A$ lies on the line through $A$ in the given direction.

                                                              Given a point and a nondegenerate vector, $A$ lies on the directed line from $A$ in the direction of the given vector.

                                                              The direction of the directed line from a point $A$ in the direction of $dir$ is $dir$ itself.

                                                              Given a point $A$ lying on a directed line $l$, this theorem states that the directed line from $A$ in the direction of $l$ is the same as $l$ itself.

                                                              Given a point $A$ and a directed line $l$, if $A$ lies on $l$, then the directed line from $A$ in the direction of $l$ is the same as $l$.

                                                              theorem EuclidGeom.DirLine.eq_of_same_toDir_and_pt_lies_on {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {l₁ : EuclidGeom.DirLine P} {l₂ : EuclidGeom.DirLine P} (h₁ : EuclidGeom.lies_on A l₁) (h₂ : EuclidGeom.lies_on A l₂) (h : l₁.toDir = l₂.toDir) :
                                                              l₁ = l₂

                                                              If two directed lines have a intersection point and the same direction, then these two directed lines are identical.

                                                              theorem EuclidGeom.DirLine.eq_dirline_of_toDir_eq_of_pt_of_ne {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {B : P} {l : EuclidGeom.DirLine P} [_h : EuclidGeom.PtNe B A] (ha : EuclidGeom.lies_on A l) (hd : (SEG_nd A B).toDir = l.toDir) :
                                                              DLIN A B = l

                                                              Given two distinct points $A$ and $B$, if $A$ lies on $l$ and the direction of the nondegenerate segment $AB$ is the same as the direction of a directed line $l$, then the directed line from $A$ to $B$ is the same as $l$.

                                                              theorem EuclidGeom.DirLine.eq_dirline_rev_of_toDir_ne_of_pt_pt_of_ne {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {B : P} {l : EuclidGeom.DirLine P} [_h : EuclidGeom.PtNe B A] (ha : EuclidGeom.lies_on A l) (hb : EuclidGeom.lies_on B l) (hd : (SEG_nd A B).toDir l.toDir) :
                                                              DLIN B A = l

                                                              Given two distinct points $A$ and $B$ on a directed line $l$, if the direction of the nondegenerate segment $AB$ is not the same as the direction of $l$, then the directed line from $B$ to $A$ is $l$.

                                                              theorem EuclidGeom.DirLine.eq_dirline_or_rev_of_pt_pt_of_ne {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {B : P} {l : EuclidGeom.DirLine P} [_h : EuclidGeom.PtNe B A] (ha : EuclidGeom.lies_on A l) (hb : EuclidGeom.lies_on B l) :
                                                              DLIN A B = l DLIN B A = l

                                                              If $A$ and $B$ are two distinct points that both lie on the same directed line $l$, then $l$ is either the directed line from $A$ to $B$ or the directed line from $B$ to $A$.

                                                              theorem EuclidGeom.DirLine.eq_dirline_or_rev_of_pt_pt_lies_on_of_ne {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {B : P} [_h : EuclidGeom.PtNe B A] {l₁ : EuclidGeom.DirLine P} {l₂ : EuclidGeom.DirLine P} (hA₁ : EuclidGeom.lies_on A l₁) (hB₁ : EuclidGeom.lies_on B l₁) (hA₂ : EuclidGeom.lies_on A l₂) (hB₂ : EuclidGeom.lies_on B l₂) :
                                                              l₁ = l₂ l₁ = l₂.reverse

                                                              Given two distinct points $A$ and $B$ and two directed line $l_1$ and $l_2$, assume that both $A$ and $B$ lie on $l_1$ and both $A$ and $B$ lie on $l_2$, then either $l_1$ is equal to $l_2$ or $l_1$ is equal to the reverse of $l_2$.

                                                              theorem EuclidGeom.DirLine.toProj_eq_seg_nd_toProj_of_lies_on {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {B : P} {l : EuclidGeom.DirLine P} (ha : EuclidGeom.lies_on A l) (hb : EuclidGeom.lies_on B l) [_h : EuclidGeom.PtNe B A] :
                                                              (SEG_nd A B).toProj = l.toProj

                                                              If $A$ and $B$ are two distinct points that both lie on a directed line $l$, then the projective direction of the nondegenerate segment $AB$ is the same as the projective direction of $l$.

                                                              Given a point $A$, there exists a directed line $l$ such that $A$ lies on $l$.

                                                              theorem EuclidGeom.Ray.toLine_eq_rev_toLine {P : Type u_1} [EuclidGeom.EuclideanPlane P] {r : EuclidGeom.Ray P} :
                                                              r.toLine = r.reverse.toLine

                                                              The line associated with a ray is the same as the line associated with its reverse.

                                                              The line associated to a nondegenerate segment is the same as the line associated to its extension ray.

                                                              The line associated to a nondegenerate segment is the same as the line associated to its reverse.

                                                              For a nondegenerate segment $s$, the line associated to $s$ is the same as the line associated to the ray of $s$.

                                                              theorem EuclidGeom.ray_of_pt_pt_toLine_eq_line_of_pt_pt {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {B : P} [_h : EuclidGeom.PtNe B A] :
                                                              (RAY A B).toLine = LIN A B

                                                              For two distinct points $A$ and $B$, the line associated to the ray from $A$ to $B$ is the same as the line through $A$ and $B$.

                                                              theorem EuclidGeom.seg_nd_of_pt_pt_toLine_eq_line_of_pt_pt {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {B : P} [_h : EuclidGeom.PtNe B A] :
                                                              (SEG_nd A B).toLine = LIN A B

                                                              The line associated to the nondegenerate segment $AB$ is the same as the line through $A$ and $B$.

                                                              theorem EuclidGeom.Ray.toDirLine_rev_eq_rev_toLine {P : Type u_1} [EuclidGeom.EuclideanPlane P] {r : EuclidGeom.Ray P} :
                                                              r.toDirLine.reverse = r.reverse.toDirLine

                                                              The reverse of the directed line associated to a ray is the directed line associated to the reverse of the ray.

                                                              The directed line associated with a nondegenerate segment is the same as the directed line associated with the ray of the segment.

                                                              The reverse of the directed line associated to a nondegenerate segment is the directed line associated to the reverse of the segment.

                                                              The directed line associated with a nondegenerate segment is the same as the directed line associated with its extension.

                                                              theorem EuclidGeom.ray_of_pt_pt_toDirLine_eq_dirline_of_pt_pt {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {B : P} [_h : EuclidGeom.PtNe B A] :
                                                              (RAY A B).toDirLine = DLIN A B

                                                              Let $A$ and $B$ be two distinct points, then the directed line from $A$ to $B$ is the same as the directed line associated to the ray $\overrightarrow{AB}$.

                                                              theorem EuclidGeom.seg_nd_of_pt_pt_toDirLine_eq_dirline_of_pt_pt {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {B : P} [_h : EuclidGeom.PtNe B A] :
                                                              (SEG_nd A B).toDirLine = DLIN A B

                                                              Given two distinct points $A$ and $B$, the directed line from $A$ to $B$ is the same as the directed line associated to the nondegenerate segment $AB$.

                                                              The underlying set of a ray is a subset of the underlying set of the line associated to the ray.

                                                              The underlying set of a ray is a subset of the underlying set of the line associated to the ray.

                                                              Given a point $A$ lying on a nondegenerate segment $s$, the point $A$ also lies on the line associated to $s$.

                                                              The underlying set of a nondegenerate segment $s$ is a subset of the underlying set of the line associated to $s$.

                                                              The underlying set of a nondegenerate segment is a subset of the underlying set of the line associated to the segment.

                                                              The theorem states that for any line $l$, there exist two distinct points $A$ and $B$ such that $A$ and $B$ both lie on the line $l$.

                                                              Given a point and a ray $r$, $A$ lies on the line associated to $r$ if and only if $A$ lies either in the interior of $r$ or the interior of the reverse of $r$ or $A$ is the source of $r$.

                                                              If a point $A$ does not lie in the interior of a nondegenerate segment, then $A$ lies on the line of the segment if and only if it lies on the extension ray of the segment or it lies on the extension ray of the reverse of the segment.

                                                              Given a point $X$ and a nondegenerate segment $seg_nd$, if $X$ lies on the extension ray of $seg_nd$, then $X$ lies on the line associated with $seg_nd$.

                                                              Two lines are equal iff they have the same underlying sets.

                                                              theorem EuclidGeom.Line.lies_on_iff_eq_toProj_of_lies_on {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {B : P} {l : EuclidGeom.Line P} [_h : EuclidGeom.PtNe B A] (hA : EuclidGeom.lies_on A l) :
                                                              EuclidGeom.lies_on B l (SEG_nd A B).toProj = l.toProj

                                                              If $A$ and $B$ are two distinct points and $A$ lies on a line $l$, the point $B$ lies on the line $l$ if and only if the projective direction of the nondegenerate segment $AB$ is the same as the projective direction of $l$.

                                                              Let $A$ be a point and $B$ a point that lies on the line through $A$ in a given direction $dir$. Then there exists a real number $t$ such that the vector $\xrightarrow{AB}$ is $t$ times the unit vector of the direction $dir$.

                                                              If $A$ is a point and $v$ a nondegenerate vector and if a point $B$ lies on the line through $A$ in the direction of $v$, then there exists a real number $t$ such that the vector $AB$ is $t$ times the vector $v$, i.e. $\overrightarrow{AB} = t \cdot v$.

                                                              theorem EuclidGeom.Line.exist_real_of_lies_on_of_pt_pt {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {B : P} {C : P} [_h : EuclidGeom.PtNe B A] (hc : EuclidGeom.lies_on C (LIN A B)) :

                                                              Given a point $C$ lying on the line through distinct points $A$ and $B$, there exists a real number $t$ such that the vector $\overrightarrow{AC}$ is $t$ times the vector $\overrightarrow{AB}$.

                                                              For two points $A$ and $B$ and a direction vector $dir$, there exists a real number $t$ such that the vector $\overrightarrow{AB}$ is t times $dir$, then $B$ lies on the directed line from $A$ in the direction of $dir$.

                                                              For two points $A$ and $B$ and a nondegenerate vector $v$, there exists a real number $t$ such that the vector $\overrightarrow{AB}$ is t times $v$, then $B$ lies on the directed line from $A$ in the direction of $v$.

                                                              Given points $A$, $B$, and $C$ with $A \neq B$, if there exists a real number t such that the vector $\overrightarrow {AC}$ is $t$ times the vector $\overrightarrow {AB}$, then $C$ lies on the line through $A$ and $B$.

                                                              The theorem states that the set of points on a ray is a subset of the set of points on the directed line associated with the ray.

                                                              If a line $l$ is the directed line associated to a ray $r$, then the underlying set of $r$ is the subset of the underlying set of $l$.

                                                              A point $A$ lying on a nondegenerate segment $s$ also lies on the directed line associated to $s$.

                                                              The underlying set of a nondegenerate segment $s$ is a subset of the underlying set of the line associated to $s$.

                                                              If a directed line $l$ is the directed line associated to a nondegenerate segment $s$, then the underlying set of $s$ is a subset of the underlying set of $l$.

                                                              On any directed line $l$, there exist two distinct points $A$ and $B$ on $l$.

                                                              A point lies on a directed line associated to a ray $r$ if and only if it lies in the interior of $r$ or the interior of the reverse ray or $r$, or it is the source of $r$.

                                                              If a point $A$ does not lie in hte interior of a nondegenerate segement $seg_nd$, then it lies on the line associaeted to $seg_nd$ if and only if it lies on the extension ray of $seg_nd$ or it lies on the extension ray of the reverse of $seg_nd$.

                                                              This theorem states that if a point $X$ lies on the extension ray of a nondegenerate segment seg_nd, then X also lies on the directed line associated to seg_nd.

                                                              For two directed lines $l_1$ and $l_2$, they have the same associated line if and only if for any point $A$, it lies on $l_1$ if and only if it lies on $l_2$.

                                                              theorem EuclidGeom.DirLine.lies_on_iff_eq_toProj_of_lies_on {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {B : P} {l : EuclidGeom.DirLine P} [_h : EuclidGeom.PtNe B A] (hA : EuclidGeom.lies_on A l) :
                                                              EuclidGeom.lies_on B l (SEG_nd A B).toProj = l.toProj

                                                              Given two distinct points $A$ and $B$ and a directed line $l$, assume that $A$ lies on $l$, then $B$ lies on $l$ if and only if the projective direction of $l$ is the same as the projective direction of the segment $AB$.

                                                              Given a point $A$ and a direcction $dir$, if $B$ is a point that lies on the directed line through $A$ in the direction of $dir$, there exists a real number $t$ such that the vector $\overrightarrow{AB}$ is $t$ times the unit vector of the direction $dir$.

                                                              If a point $B$ lies on the directed line through $A$ in the direction of a nondegenerate vector $v$, then the vector $\overrightarrow{AB}$ is some real multiple of $v$.

                                                              theorem EuclidGeom.DirLine.exist_real_of_lies_on_of_pt_pt {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {B : P} {C : P} [_h : EuclidGeom.PtNe B A] (hc : EuclidGeom.lies_on C (DLIN A B)) :

                                                              Let $A$ and $B$ be two distinct points and $C$ a point that lies on the directed line from $A$ to $B$. Then there exists some real number $t$ such that $\xrightarrow{AC}$ is $t$ times $\xrightarrow{AB}$.

                                                              Given two points $A$ and $B$ on a directed line $l$, there exists a real number $t$ such that the vector $\xrightarrow{AB}$ is $t$ times the unit direction vector of $l$.

                                                              Given two points $A$ and $B$ and a direction $dir$, if there exists a real number $t$ such that the vector $\overrightarrow{AB}$ is $t$ times the unit vector of the direction dir, then $B$ lies on the directed line from $A$ in the direction of $dir$.

                                                              If the vector from a point $A$ to a point $B$ is a scalar multiple of a nondegenerate vector $v$, then $B$ lies on the directed line through $A$ in the direction of $v$.

                                                              Given points $A$, $B$, and $C$, if $B$ and $A$ are distinct, and the vector $\overrightarrow {AC}$ is a real multiple of the vector $\overrightarrow{AB}$, then $C$ lies on the directed line from $A$ to $B$.

                                                              Given a point $A$ on a directed line $l$, if for some point $B$ the vector $\overrightarrow{AB}$ is a real multiple of the unit direct vector of $l$, then $B$ lies on $l$.

                                                              theorem EuclidGeom.Ray.eq_toDirLine_of_lies_int {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {r : EuclidGeom.Ray P} (h : EuclidGeom.lies_int A r) :
                                                              DLIN r.source A (_ : A r.source) = r.toDirLine
                                                              theorem EuclidGeom.Ray.eq_toLine_of_lies_int {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {r : EuclidGeom.Ray P} (h : EuclidGeom.lies_int A r) :
                                                              LIN r.source A (_ : A r.source) = r.toLine
                                                              theorem EuclidGeom.SegND.dirLine_source_pt_eq_toDirLine_of_lies_int {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {s : EuclidGeom.SegND P} (h : EuclidGeom.lies_int A s) :
                                                              DLIN s.source A (_ : A (s).source) = s.toDirLine
                                                              theorem EuclidGeom.SegND.line_source_pt_eq_toLine_of_lies_int {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {s : EuclidGeom.SegND P} (h : EuclidGeom.lies_int A s) :
                                                              LIN s.source A (_ : A (s).source) = s.toLine
                                                              theorem EuclidGeom.SegND.dirLine_pt_target_eq_toDirLine_of_lies_int {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {s : EuclidGeom.SegND P} (h : EuclidGeom.lies_int A s) :
                                                              DLIN A s.target (_ : (s).target A) = s.toDirLine
                                                              theorem EuclidGeom.SegND.line_pt_target_eq_toLine_of_lies_int {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {s : EuclidGeom.SegND P} (h : EuclidGeom.lies_int A s) :
                                                              LIN A s.target (_ : (s).target A) = s.toLine
                                                              theorem EuclidGeom.vec_eq_dist_eq_of_lies_on_line_pt_pt_of_ptNe {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {B : P} {C : P} [_hne₁ : EuclidGeom.PtNe B A] [_hne₂ : EuclidGeom.PtNe C B] (h : EuclidGeom.lies_on C (LIN A B)) (heq : dist A C = dist A B) :
                                                              theorem EuclidGeom.lies_int_seg_nd_iff_lies_on_ray_reverse {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {B : P} {C : P} [hne₁ : EuclidGeom.PtNe B C] [hne₂ : EuclidGeom.PtNe A B] (h : EuclidGeom.lies_on A (LIN B C)) :
                                                              EuclidGeom.lies_int A { source := B, target := C } EuclidGeom.lies_on C (RAY A B).reverse
                                                              theorem EuclidGeom.not_lies_on_seg_nd_iff_lies_on_ray {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {B : P} {C : P} [hne₁ : EuclidGeom.PtNe B C] [hne₂ : EuclidGeom.PtNe A B] (h : EuclidGeom.lies_on A (LIN B C)) :
                                                              ¬EuclidGeom.lies_on A { source := B, target := C } EuclidGeom.lies_on C (RAY A B)
                                                              theorem EuclidGeom.Line.pt_pt_linear {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {B : P} {C : P} [_h : EuclidGeom.PtNe B A] (hc : EuclidGeom.lies_on C (LIN A B)) :

                                                              Given three points $A$, $B$ and $C$, if $A$ and $B$ are distinct and $C$ lies on the line $AB$, then $A$, $B$, and $C$ are collinear.

                                                              theorem EuclidGeom.Line.linear {P : Type u_1} [EuclidGeom.EuclideanPlane P] {l : EuclidGeom.Line P} {A : P} {B : P} {C : P} (h₁ : EuclidGeom.lies_on A l) (h₂ : EuclidGeom.lies_on B l) (h₃ : EuclidGeom.lies_on C l) :

                                                              The theorem states that if three points $A$, $B$, and $C$ lie on the same line $l$, then they are collinear.

                                                              theorem EuclidGeom.Line.pt_pt_maximal {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {B : P} {C : P} [_h : EuclidGeom.PtNe B A] (Co : EuclidGeom.Collinear A B C) :
                                                              EuclidGeom.lies_on C (LIN A B)

                                                              If $A$ and $B$ are two distinct points and $C$ is a point such that $A$, $B$ and $C$ are collinear, then $C$ lies on the line $AB$.

                                                              theorem EuclidGeom.Line.maximal {P : Type u_1} [EuclidGeom.EuclideanPlane P] {l : EuclidGeom.Line P} {A : P} {B : P} {C : P} (h₁ : EuclidGeom.lies_on A l) (h₂ : EuclidGeom.lies_on B l) [_h : EuclidGeom.PtNe B A] (Co : EuclidGeom.Collinear A B C) :

                                                              Given two distinct points $A$ and $B$ on a line $l$, if a point $C$ is so that $A$, $B$, and $C$ are collinear, then $C$ lines on $l$.

                                                              Given two distinct points $A$ and $B$, a point $X$ lies on the line through $A$ and $B$ if and only if $A$, $B$, and $X$ are collinear.

                                                              This theorem states that if $A$ and $B$ are two distinct points on a line $l$, then a point $C$ lies on $l$ if and only if $A$, $B$, and $C$ are collinear.

                                                              The given theorem is an equivalence statement between the collinearity of three points and the existence of a line on which all three points lie.

                                                              theorem EuclidGeom.DirLine.linear {P : Type u_1} [EuclidGeom.EuclideanPlane P] {l : EuclidGeom.DirLine P} {A : P} {B : P} {C : P} (h₁ : EuclidGeom.lies_on A l) (h₂ : EuclidGeom.lies_on B l) (h₃ : EuclidGeom.lies_on C l) :

                                                              If $A$, $B$ and $C$ are three points on the same directed line $l$, then they are collinear.

                                                              theorem EuclidGeom.DirLine.pt_pt_maximal {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {B : P} {C : P} [_h : EuclidGeom.PtNe B A] (Co : EuclidGeom.Collinear A B C) :
                                                              EuclidGeom.lies_on C (DLIN A B)

                                                              If $A$, $B$ and $C$ are three collinear points in which $A \neq B$, then $C$ lies on the directed line associated to $AB$.

                                                              theorem EuclidGeom.DirLine.maximal {P : Type u_1} [EuclidGeom.EuclideanPlane P] {l : EuclidGeom.DirLine P} {A : P} {B : P} {C : P} (h₁ : EuclidGeom.lies_on A l) (h₂ : EuclidGeom.lies_on B l) [_h : EuclidGeom.PtNe B A] (Co : EuclidGeom.Collinear A B C) :

                                                              Given two points $A$ and $B$ on a directed line $l$, if a point $C$ is so that $A$, $B$, and $C$ are collinear, then $C$ lies on $l$.

                                                              Given two distinct points $A$ and $B$, a point $X$ lies on the directed line from $A$ to $B$ if and only if $A$, $B$, and $X$ are collinear.

                                                              Let $A$ and $B$ be two distinct points on a directed line $l$, then a point $C$ lies on $l$ if and only if $A$, $B$ and $C$ are collinear.

                                                              The theorem states that three points $A$, $B$, and $C$ are collinear if and only if there exists a directed line $l$ such that $A$, $B$, and $C$ all lie on $l$.

                                                              There are two distinct points on a line, i.e. given a point $A$ on a line $l$, there exists a point $B$ on $l$ such that $B \neq A$.

                                                              theorem EuclidGeom.Line.lies_on_of_SegND_toProj_eq_toProj {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {B : P} {l : EuclidGeom.Line P} (ha : EuclidGeom.lies_on A l) [_hab : EuclidGeom.PtNe B A] (hp : (SEG_nd A B).toProj = l.toProj) :

                                                              Given two distinct points $A$ and $B$, if $A$ lies on a line $l$ and the projective direction of segment $AB$ is the same as that of $l$, then $B$ lies on the $l$.

                                                              Let $A$ and $B$ be two distinct points on a line $l$, then moving $B$ by the vector $\xrightarrow{AB}$ still lies on $l$.

                                                              theorem EuclidGeom.Line.exist_pt_beyond_pt_right {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {B : P} {l : EuclidGeom.Line P} (hA : EuclidGeom.lies_on A l) (hB : EuclidGeom.lies_on B l) [_h : EuclidGeom.PtNe B A] :
                                                              ∃ (C : P), EuclidGeom.lies_on C l EuclidGeom.lies_int B { source := A, target := C }

                                                              Given two distinct points $A$ and $B$ on a line $l$, there exists a point $C$ on the line $l$ such that $B$ lies on the segment $AC$.

                                                              theorem EuclidGeom.Line.exist_pt_beyond_pt_left {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {B : P} {l : EuclidGeom.Line P} (hA : EuclidGeom.lies_on A l) (hB : EuclidGeom.lies_on B l) [_h : EuclidGeom.PtNe B A] :
                                                              ∃ (C : P), EuclidGeom.lies_on C l EuclidGeom.lies_int A { source := C, target := B }

                                                              Given two distinct points $A$ and $B$ on a line $l$, there exists some point $C$ on $l$ such that $A$ lies in the interior of the segment $CB$.

                                                              Given a point $A$ and a directed line $l$, there exists some point $B$ different from $A$ that lies on $l$.

                                                              theorem EuclidGeom.DirLine.lies_on_of_SegND_toProj_eq_toProj {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {B : P} {l : EuclidGeom.DirLine P} (ha : EuclidGeom.lies_on A l) [_hab : EuclidGeom.PtNe B A] (hp : (SEG_nd A B).toDir = l.toDir) :

                                                              Given two distinct points $A$ and $B$ and a directed line l, if $A$ lies on $l$ and the segment $AB$ is in the same direction as $l$, then $B$ lies on $l$.

                                                              theorem EuclidGeom.DirLine.exist_pt_beyond_pt_right {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {B : P} {l : EuclidGeom.DirLine P} (hA : EuclidGeom.lies_on A l) (hB : EuclidGeom.lies_on B l) [_h : EuclidGeom.PtNe B A] :
                                                              ∃ (C : P), EuclidGeom.lies_on C l EuclidGeom.lies_int B { source := A, target := C }

                                                              Given two distinct points $A$ and $B$ on a directed line $l$, there exists a point $C$ on $l$ such that $B$ lies in the interior of the segment AC.

                                                              theorem EuclidGeom.DirLine.exist_pt_beyond_pt_left {P : Type u_1} [EuclidGeom.EuclideanPlane P] {A : P} {B : P} {l : EuclidGeom.DirLine P} (hA : EuclidGeom.lies_on A l) (hB : EuclidGeom.lies_on B l) [_h : EuclidGeom.PtNe B A] :
                                                              ∃ (C : P), EuclidGeom.lies_on C l EuclidGeom.lies_int A { source := C, target := B }

                                                              Let $A$ and $B$ be two distinct points that lie on a directed line $l$, then there exists a point $C$ on $l$ such that $A$ lies in the interior of segment $CB$.

                                                              @[inline, reducible]
                                                              Equations
                                                              Instances For

                                                                A directed line can be viewed as a torsor over the addition group structure of $\mathbb{R}$, that is, points on a directed line can be translated by real multiples of the unit direction vector.

                                                                Equations

                                                                Given two points $A$ and $B$ on a directed line $l$, this function returns the distance from $A$ to $B$ on the directed line $l$, as a real number; or in short $\dist(A, B)$.

                                                                Equations
                                                                Instances For
                                                                  @[simp]

                                                                  For a point $A$ on a directed line $l$, the distance from $A$ to itself is $0$, i.e. $\dist(A, A) = 0$.

                                                                  @[simp]

                                                                  The negation of the distance from point $A$ to point $B$ on a directed line $l$ is equal to the distance from point $B$ to point $A$ on the same directed line $l$.

                                                                  @[simp]

                                                                  The distance from point $A$ to point $B$ on a directed line $l$ is zero if and only if $B$ is equal to $A$.

                                                                  @[simp]

                                                                  The distance from point $A$ to point $B$ on directed line $l$ is non-zero if and only if $B$ is not equal to $A$.

                                                                  @[simp]

                                                                  Let $A$, $B$ and $C$ be three points on a directed line $l$. Then the sum of the distance from $A$ to $B$ and the distance from $B$ to $C$ is equal to the distance from $A$ to $C$, i.e. $\dist(A, B) + \dist(B, C) = \dist(A, C)$.

                                                                  @[simp]

                                                                  On a directed line $l$, the distance from a point $A$ to point $B$ minus the distance from point $A$ to point $C$ is equal to the distance from point $C$ to point $B$.

                                                                  @[simp]

                                                                  Given three points $A$, $B$, and $C$ on a directed line $l$, the difference between the distance from $A$ to $C$ and the distance from $B$ to $C$ is equal to the distance from $A$ to $B$.

                                                                  @[simp]

                                                                  Given three points $A$, $B$, and $C$ on a directed line, the distance from point $A$ to point $B$ is equal to the distance from point $A$ to point $C$ if and only if point $B$ is the same as point $C$.

                                                                  @[simp]

                                                                  On a directed line, the distance from point $A$ to point $C$ is equal to the distance from point $B$ to point $C$ if and only if $A$ is equal to $B$.

                                                                  Let $A$, $B$, $C$ and $D$ be four points on a directed line $l$. Then the distance from $A$ to $B$ minus the distance from $C$ to $D$ is equal to the distance from $D$ to $B$ minus the distance from $C$ to $A$, i.e $\dist(A, B) - \dist(C, D) = \dist(D, B) - \dist(C, A)$

                                                                  On a directed line, the sum of the distance from $A$ to $B$ and the distance from $C$ to $D$ is equal to the sum of the distance from $A$ to $D$ and the distance from $C$ to $B$.

                                                                  The theorem states that for two points $A$ and $B$ on a directed line $l$, we write $A \leq B$ if the distance from $A$ to $B$ is nonnegative.

                                                                  For two points $A$ and $B$ on a directed line $l$, $A$ is less than $B$ if and only if the distance from $A$ to $B$ is positive.