import OAI.Combinatorics.Crossing.CircleChords import OAI.Combinatorics.Crossing.PlanarDeterminant namespace OAI namespace Zarankiewicz theorem circle_det_formula (a b : ℝ) : det2 (circlePoint a) (circlePoint b) = 2*(b-a)*(1+a*b)/((1+a^2)*(1+b^2)) := by have ha := ne_of_gt (circle_denominator_pos a) have hb := ne_of_gt (circle_denominator_pos b) dsimp [det2,circlePoint] field_simp ring theorem circle_det_pos_iff (a b : ℝ) (h : 0<1+a*b) : 0