Ptolemy

Geogebra sheet

Coq statement

Lemma Ptolemy: forall A B C D O:point, forall x4 x5 x6:R,
  X A = 0 ->  Y A = 0 ->
  equaldistance O A O B -> 
  equaldistance O A O C ->
  equaldistance O A O D ->
  (distance2 A B) * (distance2 C D) = x4^2 ->
  (distance2 B C) * (distance2 A D) = x5^2 ->
  (distance2 B D) * (distance2 A C) = x6^2 ->
  (x4 + x5 - x6) * (x4 + x5 + x6) * (x4 - (x5 - x6)) * (x4 - (x5 + x6)) = 0
  \/ ((X C - X A)^2 + (Y C - Y A)^2)^2 = 0
  \/ Y B = 0
  \/ ((X B - X A)^2 + (Y B - Y A)^2)^2 = 0
  \/ (Y B * X C - X B * Y C)^2 = 0.
Proof.
geo_begin.
tzRpv 0%Z (Y B::X B::X C::Y C::Y D::nil)
  (Y O::X O::X D::x4::x5::x6::nil).
Qed.

Algebraic version

p:=  ((u1^7+u1^3*u2^4+2*u1^5*u2^2)*u3^6+(u1*u2^6+2*u1^3*u2^4+u1^5*u2^2)*u4^6+(((-2)*u1^2*u2^5+(-4)*u1^4*u2^3+(-2)*u1^6*u2)*u3)*u4^5+((u1^7+2*u1*u2^6+5*u1^3*u2^4+4*u1^5*u2^2)*u3^2)*u4^4+(((-4)*u1^2*u2^5+(-8)*u1^4*u2^3+(-4)*u1^6*u2)*u3^3)*u4^3+((2*u1^7+u1*u2^6+4*u1^3*u2^4+5*u1^5*u2^2)*u3^4)*u4^2+(((-2)*u1^2*u2^5+(-4)*u1^4*u2^3+(-2)*u1^6*u2)*u3^5)*u4) *i^4 +  (((-2)*u1^7+(-2)*u1^3*u2^4+(-4)*u1^5*u2^2)*u3^6+((-2)*u1*u2^6+(-4)*u1^3*u2^4+(-2)*u1^5*u2^2)*u4^6+((4*u1^2*u2^5+8*u1^4*u2^3+4*u1^6*u2)*u3)*u4^5+(((-2)*u1^7+(-4)*u1*u2^6+(-10)*u1^3*u2^4+(-8)*u1^5*u2^2)*u3^2)*u4^4+((8*u1^2*u2^5+16*u1^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