Library GeoCoq.Elements.OriginalProofs.lemma_equalanglestransitive

Require Export GeoCoq.Elements.OriginalProofs.lemma_angledistinct.
Require Export GeoCoq.Elements.OriginalProofs.lemma_layoff.
Require Export GeoCoq.Elements.OriginalProofs.lemma_equalanglesNC.
Require Export GeoCoq.Elements.OriginalProofs.lemma_equalangleshelper.
Require Export GeoCoq.Elements.OriginalProofs.proposition_04.

Section Euclid.

Context `{Ax:euclidean_neutral}.

Lemma lemma_equalanglestransitive :
    A B C D E F P Q R,
   CongA A B C D E F CongA D E F P Q R
   CongA A B C P Q R.
Proof.
intros.
assert (neq A B) by (forward_using lemma_angledistinct).
assert (neq D E) by (forward_using lemma_angledistinct).
assert (neq B A) by (conclude lemma_inequalitysymmetric).
assert (neq E D) by (conclude lemma_inequalitysymmetric).
assert (neq E F) by (forward_using lemma_angledistinct).
assert (neq B C) by (forward_using lemma_angledistinct).
assert (neq P Q) by (forward_using lemma_angledistinct).
assert (neq Q P) by (conclude lemma_inequalitysymmetric).
let Tf:=fresh in
assert (Tf: U, (Out E D U Cong E U B A)) by (conclude lemma_layoff);destruct Tf as [U];spliter.
let Tf:=fresh in
assert (Tf: V, (Out E F V Cong E V B C)) by (conclude lemma_layoff);destruct Tf as [V];spliter.
assert (neq E U) by (conclude lemma_raystrict).
assert (neq E V) by (conclude lemma_raystrict).
assert (CongA P Q R D E F) by (conclude lemma_equalanglessymmetric).
assert (neq Q R) by (forward_using lemma_angledistinct).
let Tf:=fresh in
assert (Tf: u, (Out Q P u Cong Q u E U)) by (conclude lemma_layoff);destruct Tf as [u];spliter.
let Tf:=fresh in
assert (Tf: v, (Out Q R v Cong Q v E V)) by (conclude lemma_layoff);destruct Tf as [v];spliter.
assert (nCol A B C) by (conclude_def CongA ).
assert (Triangle A B C) by (conclude_def Triangle ).
assert (nCol D E F) by (conclude lemma_equalanglesNC).
assert (eq U U) by (conclude cn_equalityreflexive).
assert (eq V V) by (conclude cn_equalityreflexive).
assert (neq E U) by (conclude lemma_raystrict).
assert (neq E V) by (conclude lemma_raystrict).
assert (Out E U U) by (conclude lemma_ray4).
assert (Out E V V) by (conclude lemma_ray4).
assert (Cong E U E U) by (conclude cn_congruencereflexive).
assert (Cong E V E V) by (conclude cn_congruencereflexive).
assert (Cong U V U V) by (conclude cn_congruencereflexive).
assert (CongA A B C U E V) by (conclude lemma_equalangleshelper).
assert (nCol U E V) by (conclude lemma_equalanglesNC).
assert (Triangle U E V) by (conclude_def Triangle ).
assert (Cong B A E U) by (conclude lemma_congruencesymmetric).
assert (Cong B C E V) by (conclude lemma_congruencesymmetric).
assert ((Cong A C U V CongA B A C E U V CongA B C A E V U)) by (conclude proposition_04).
assert (Triangle U E V) by (conclude_def Triangle ).
assert (Cong E U Q u) by (conclude lemma_congruencesymmetric).
assert (Cong E V Q v) by (conclude lemma_congruencesymmetric).
assert (CongA D E F u Q v) by (conclude lemma_equalangleshelper).
assert (nCol u Q v) by (conclude lemma_equalanglesNC).
assert (CongA u Q v D E F) by (conclude lemma_equalanglessymmetric).
assert (CongA u Q v U E V) by (conclude lemma_equalangleshelper).
assert (CongA U E V u Q v) by (conclude lemma_equalanglessymmetric).
assert (nCol u Q v) by (conclude lemma_equalanglesNC).
assert (Triangle u Q v) by (conclude_def Triangle ).
assert ((Cong U V u v CongA E U V Q u v CongA E V U Q v u)) by (conclude proposition_04).
assert (Cong A C u v) by (conclude lemma_congruencetransitive).
assert (Cong B A Q u) by (conclude lemma_congruencetransitive).
assert (Cong B C Q v) by (conclude lemma_congruencetransitive).
assert (eq A A) by (conclude cn_equalityreflexive).
assert (eq C C) by (conclude cn_equalityreflexive).
assert (Out B A A) by (conclude lemma_ray4).
assert (Out B C C) by (conclude lemma_ray4).
assert (CongA A B C P Q R) by (conclude_def CongA ).
close.
Qed.

End Euclid.