(* Julien Narboux *)
(* Formalization of *)
(* Tarski's axiomatic *)
Require Export Ch02_congruence_properties.
(** Axiom 12 of Givant. *)
Proof with eTarski.
intros.
assert (exists x : Point, Bet A B x /\ Cong B x B B)...
DecompExAnd H x.
assert (B = x).
assert (Cong B B B x)...
congruence.
Qed.
Hint Resolve beetween_trivial : Tarski.
(** Axiom 14 of Givant. *)
Proof with eTarski.
intros.
assert (Bet B C C)...
assert (exists x, Bet B x B /\ Bet C x A)...
DecompExAnd H1 x.
assert (B=x)...
congruence.
Qed.
Hint Resolve between_symmetry : sTarski.
Hint Resolve beetween_trivial beetween_trivial2 : Tarski.
Proof with Tarski.
intros.
assert
(exists x : Point,
Bet B x B /\ Bet A x A).
eapply inner_pasch;eauto.
DecompExAnd H1 x.
assert (A = x)...
assert (B = x)...
rewrite <- H2 in H1.
assumption.
Qed.
Hint Resolve between_egality : Tarski.
(** Inner transitivity 'axiom' for betweenness. *)
Proof with eTarski.
intros.
assert (exists x,Bet B x B /\ Bet C x A)...
DecompExAnd H1 x.
apply between_symmetry.
assert (B=x)...
congruence.
Qed.

Lemma between_exchange3 : forall A B C D,
Bet A B C -> Bet A C D -> Bet B C D.