Require Export GeoCoq.Elements.OriginalProofs.euclidean_tactics.

Section Euclid.

Context `{Ax1:area}.

Lemma lemma_rectanglerotate : 
   forall A B C D, 
   RE A B C D ->
   RE B C D A.
Proof.
(* Goal: forall (A B C D : @Point Ax0) (_ : @RE Ax0 A B C D), @RE Ax0 B C D A *)
intros.
(* Goal: @RE Ax0 B C D A *)
assert ((Per D A B /\ Per A B C /\ Per B C D /\ Per C D A /\ CR A C B D)) by (conclude_def RE ).
let Tf:=fresh in
assert (Tf:exists M, (BetS A M C /\ BetS B M D)) by (conclude_def CR );destruct Tf as [M];spliter.
(* Goal: @RE Ax0 B C D A *)
assert (BetS C M A) by (conclude axiom_betweennesssymmetry).
(* Goal: @RE Ax0 B C D A *)
assert (CR B D C A) by (conclude_def CR ).
(* Goal: @RE Ax0 B C D A *)
assert (RE B C D A) by (conclude_def RE ).
(* Goal: @RE Ax0 B C D A *)
close.
Qed.

End Euclid.


