{
  "verdict": "pass",
  "decl": "EuclideanGeometry.pappus_area",
  "author_status": "proved",
  "lean_source": "import Mathlib\n\n/-!\n# Pappus's area theorem\n\nWe prove Pappus's area theorem (Wikidata Q3527044) in the Euclidean plane\n`EuclideanSpace ℝ (Fin 2)`, for arbitrary (possibly oblique) parallelograms erected outside a\ntriangle, with area meaning Lebesgue measure (`MeasureTheory.volume`) of the parallelogram as a set.\n\nThe proof is by determinants: the area of the parallelogram `P +ᵥ parallelepiped ![p, q]` is\n`|p 0 * q 1 - p 1 * q 0|` (`EuclideanGeometry.volume_vadd_parallelepiped`), the \"outside\"\nhypotheses (`AffineSubspace.SOppSide`) are translated into sign conditions on such determinants,\nand the third signed area is the difference of the other two, which have opposite signs.\n\n## Main statements\n\n* `EuclideanGeometry.pappus_area`: Pappus's area theorem.\n-/\n\nopen MeasureTheory\nopen scoped Pointwise\n\nnamespace EuclideanGeometry\n\nlocal notation \"ℝ²\" => EuclideanSpace ℝ (Fin 2)\n\n/-- The planar cross product (a `2 × 2` determinant) of two vectors of the Euclidean plane. -/\nnoncomputable def cross₂ (p q : ℝ²) : ℝ := p 0 * q 1 - p 1 * q 0\n\ntheorem ext₂ {p q : ℝ²} (h0 : p 0 = q 0) (h1 : p 1 = q 1) : p = q := by\n  ext i; fin_cases i\n  · exact h0\n  · exact h1\n\ntheorem mem_line_iff {P Q X : ℝ²} : X ∈ line[ℝ, P, Q] ↔ ∃ r : ℝ, X = P + r • (Q - P) := by\n  have hX : X = (X - P) +ᵥ P := by simp [vadd_eq_add]\n  rw [hX, vadd_left_mem_affineSpan_pair]\n  simp only [vsub_eq_sub, vadd_eq_add, sub_add_cancel]\n  constructor\n  · rintro ⟨r, hr⟩\n    exact ⟨r, by rw [hr]; abel⟩\n  · rintro ⟨r, hr⟩\n    exact ⟨r, by rw [hr]; abel⟩\n\ntheorem volume_vadd_parallelepiped (P p q : ℝ²) :\n    volume (P +ᵥ parallelepiped ![p, q]) = ENNReal.ofReal |cross₂ p q| := by\n  rw [← Set.image_vadd]\n  simp only [vadd_eq_add, Set.image_add_left, measure_preimage_add]\n  rw [← (EuclideanSpace.basisFun (Fin 2) ℝ).addHaar_eq_volume, Measure.addHaar_parallelepiped,\n    Module.Basis.det_apply, Matrix.det_fin_two]\n  simp [Module.Basis.toMatrix_apply, cross₂]\n  congr 1; ring\n\ntheorem cross₂_mul_cross₂_neg_of_sOppSide {P Q X Y : ℝ²} (h : line[ℝ, P, Q].SOppSide X Y)\n    (hY : cross₂ (Q - P) (Y - P) ≠ 0) :\n    cross₂ (Q - P) (X - P) * cross₂ (Q - P) (Y - P) < 0 := by\n  rw [AffineSubspace.sOppSide_iff_exists_left (left_mem_affineSpan_pair ℝ P Q)] at h\n  obtain ⟨hX, hY', p₂, hp₂, hr⟩ := h\n  obtain ⟨r, rfl⟩ := mem_line_iff.1 hp₂\n  simp only [vsub_eq_sub] at hr\n  rcases hr with h0 | h0 | ⟨r₁, r₂, hr₁, hr₂, he⟩\n  · exact absurd (by rw [sub_eq_zero.1 h0]; exact left_mem_affineSpan_pair ℝ P Q) hX\n  · exact absurd (by rw [← sub_eq_zero.1 h0]; exact hp₂) hY'\n  · have e0 := congrArg (· 0) he\n    have e1 := congrArg (· 1) he\n    simp only [PiLp.smul_apply, PiLp.sub_apply, PiLp.add_apply, smul_eq_mul] at e0 e1\n    have key : r₁ * cross₂ (Q - P) (X - P) = -r₂ * cross₂ (Q - P) (Y - P) := by\n      simp only [cross₂, PiLp.sub_apply]\n      linear_combination (Q 0 - P 0) * e1 - (Q 1 - P 1) * e0\n    have hsq : 0 < cross₂ (Q - P) (Y - P) ^ 2 := by positivity\n    have h2 : r₁ * (cross₂ (Q - P) (X - P) * cross₂ (Q - P) (Y - P)) =\n        -(r₂ * cross₂ (Q - P) (Y - P) ^ 2) := by\n      rw [← mul_assoc, key]; ring\n    by_contra hc\n    push Not at hc\n    nlinarith [mul_nonneg hr₁.le hc, mul_pos hr₂ hsq]\n\ntheorem sOppSide_of_cross₂_mul_cross₂_neg {P Q X Y : ℝ²}\n    (h : cross₂ (Q - P) (X - P) * cross₂ (Q - P) (Y - P) < 0) :\n    line[ℝ, P, Q].SOppSide X Y := by\n  have hX : cross₂ (Q - P) (X - P) ≠ 0 := by rintro h0; rw [h0, zero_mul] at h; exact lt_irrefl _ h\n  have hY : cross₂ (Q - P) (Y - P) ≠ 0 := by rintro h0; rw [h0, mul_zero] at h; exact lt_irrefl _ h\n  rw [AffineSubspace.sOppSide_iff_exists_left (left_mem_affineSpan_pair ℝ P Q)]\n  refine ⟨fun hm => ?_, fun hm => ?_, ?_⟩\n  · obtain ⟨r, hr⟩ := mem_line_iff.1 hm\n    exact hX (by rw [hr]; simp only [cross₂, PiLp.sub_apply, PiLp.add_apply, PiLp.smul_apply,\n      smul_eq_mul]; ring)\n  · obtain ⟨r, hr⟩ := mem_line_iff.1 hm\n    exact hY (by rw [hr]; simp only [cross₂, PiLp.sub_apply, PiLp.add_apply, PiLp.smul_apply,\n      smul_eq_mul]; ring)\n  · set a := X - P\n    set b := Y - P\n    set d := Q - P\n    have had : cross₂ a d ≠ 0 := by\n      intro h0; apply hX; simp only [cross₂] at h0 ⊢; linarith\n    refine ⟨P + (cross₂ a b / cross₂ a d) • d, mem_line_iff.2 ⟨_, rfl⟩, ?_⟩\n    simp only [vsub_eq_sub]\n    have hc : 0 < cross₂ d b / cross₂ a d := by\n      have : cross₂ a d = -cross₂ d a := by simp only [cross₂]; ring\n      rw [this, div_neg, neg_pos]\n      rcases lt_or_gt_of_ne hX with hx | hx\n      · exact div_neg_of_pos_of_neg (by nlinarith) hx\n      · exact div_neg_of_neg_of_pos (by nlinarith) hx\n    have hY' : Y = P + b := by simp [b]\n    have key : P + (cross₂ a b / cross₂ a d) • d - Y = (cross₂ d b / cross₂ a d) • a := by\n      rw [hY']\n      simp only [cross₂] at had ⊢\n      refine ext₂ ?_ ?_ <;>\n      · simp only [PiLp.sub_apply, PiLp.add_apply, PiLp.smul_apply, smul_eq_mul]\n        field_simp\n        ring\n    rw [key]\n    exact SameRay.sameRay_pos_smul_right a hc\n\ntheorem cross₂_ne_zero_of_not_collinear {A B C : ℝ²} (h : ¬ Collinear ℝ {A, B, C}) :\n    cross₂ (B - A) (C - A) ≠ 0 := by\n  intro h0\n  apply h\n  by_cases hu : B = A\n  · subst hu\n    rw [Set.insert_eq_of_mem (Set.mem_insert _ _)]\n    exact collinear_pair ℝ B C\n  have hC : C ∈ line[ℝ, A, B] := by\n    simp only [cross₂, PiLp.sub_apply] at h0\n    by_cases h00 : B 0 - A 0 = 0\n    · have h11 : B 1 - A 1 ≠ 0 := by\n        intro h11; apply hu; exact ext₂ (by linarith) (by linarith)\n      have hv0 : C 0 - A 0 = 0 := by\n        rw [h00, zero_mul, zero_sub, neg_eq_zero] at h0\n        exact (mul_eq_zero.1 h0).resolve_left h11\n      refine mem_line_iff.2 ⟨(C 1 - A 1) / (B 1 - A 1), ext₂ ?_ ?_⟩ <;>\n        simp only [PiLp.sub_apply, PiLp.add_apply, PiLp.smul_apply, smul_eq_mul]\n      · rw [h00, mul_zero]; linarith\n      · rw [div_mul_cancel₀ _ h11]; ring\n    · have h1 : (C 0 - A 0) / (B 0 - A 0) * (B 1 - A 1) = C 1 - A 1 := by\n        rw [div_mul_eq_mul_div, div_eq_iff h00]; linear_combination -h0\n      refine mem_line_iff.2 ⟨(C 0 - A 0) / (B 0 - A 0), ext₂ ?_ ?_⟩ <;>\n        simp only [PiLp.sub_apply, PiLp.add_apply, PiLp.smul_apply, smul_eq_mul]\n      · rw [div_mul_cancel₀ _ h00]; ring\n      · rw [h1]; ring\n  have := collinear_insert_of_mem_affineSpan_pair hC\n  convert this using 1\n  ext p\n  simp only [Set.mem_insert_iff, Set.mem_singleton_iff]\n  tauto\n\nprivate theorem cramer_aux {u₀ u₁ v₀ v₁ x₀ x₁ y₀ y₁ : ℝ} (hk : u₀ * v₁ - u₁ * v₀ ≠ 0) :\n    x₀ + (v₀ * x₁ - v₁ * x₀ - (v₀ * y₁ - v₁ * y₀)) / (u₀ * v₁ - u₁ * v₀) * u₀ =\n        y₀ + (u₀ * x₁ - u₁ * x₀ - (u₀ * y₁ - u₁ * y₀)) / (u₀ * v₁ - u₁ * v₀) * v₀ ∧\n      x₁ + (v₀ * x₁ - v₁ * x₀ - (v₀ * y₁ - v₁ * y₀)) / (u₀ * v₁ - u₁ * v₀) * u₁ =\n        y₁ + (u₀ * x₁ - u₁ * x₀ - (u₀ * y₁ - u₁ * y₀)) / (u₀ * v₁ - u₁ * v₀) * v₁ := by\n  have hinv := mul_inv_cancel₀ hk\n  constructor\n  · linear_combination (y₀ - x₀) * hinv\n  · linear_combination (y₁ - x₁) * hinv\n\n/-- **Pappus's area theorem** (Wikidata [Q3527044](https://www.wikidata.org/wiki/Q3527044)).\n\n\"Given an arbitrary triangle with two arbitrary parallelograms attached to two of its sides the\ntheorem tells how to construct a parallelogram over the third side, such that the area of the third\nparallelogram equals the sum of the areas of the other two parallelograms.\" Concretely: let `A`, `B`, `C` be non-collinear\npoints of the Euclidean plane. Erect on `AB` the parallelogram with sides `AB` and `x`, and on `AC`\nthe parallelogram with sides `AC` and `y`, both outside the triangle (`A + x` lies strictly on the\nother side of line `AB` from `C`, and `A + y` strictly on the other side of line `AC` from `B`); the\nparallelograms may be oblique. Then the lines of the sides opposite to `AB` and `AC` meet in exactly\none point `H`, the parallelogram on `BC` whose second side is the vector `A - H` (from `H` to `A`)\nlies on the other side of line `BC` from `A`, and its area (Lebesgue measure) is the sum of the\nareas of the two given parallelograms. -/\ntheorem pappus_area (A B C x y : ℝ²) (hABC : ¬ Collinear ℝ {A, B, C})\n    (hx : line[ℝ, A, B].SOppSide (A + x) C) (hy : line[ℝ, A, C].SOppSide (A + y) B) :\n    (∃! H, H ∈ line[ℝ, A + x, B + x] ∧ H ∈ line[ℝ, A + y, C + y]) ∧\n    ∀ H, H ∈ line[ℝ, A + x, B + x] → H ∈ line[ℝ, A + y, C + y] →\n      line[ℝ, B, C].SOppSide (B + (A - H)) A ∧\n      volume (B +ᵥ parallelepiped ![C - B, A - H]) =\n        volume (A +ᵥ parallelepiped ![B - A, x]) + volume (A +ᵥ parallelepiped ![C - A, y]) := by\n  have hk := cross₂_ne_zero_of_not_collinear hABC\n  have hk' : cross₂ (C - A) (B - A) ≠ 0 := by\n    intro h0; apply hk; simp only [cross₂] at h0 ⊢; linarith\n  have h1 := cross₂_mul_cross₂_neg_of_sOppSide hx hk\n  have h2 := cross₂_mul_cross₂_neg_of_sOppSide hy hk'\n  simp only [add_sub_cancel_left] at h1 h2\n  have hl₁ : ∀ H, H ∈ line[ℝ, A + x, B + x] ↔ ∃ r : ℝ, H = A + x + r • (B - A) := by\n    intro H; rw [mem_line_iff, add_sub_add_right_eq_sub]\n  have hl₂ : ∀ H, H ∈ line[ℝ, A + y, C + y] ↔ ∃ r : ℝ, H = A + y + r • (C - A) := by\n    intro H; rw [mem_line_iff, add_sub_add_right_eq_sub]\n  simp only [hl₁, hl₂]\n  refine ⟨?_, ?_⟩\n  · -- Existence and uniqueness of the intersection point `H`.\n    set u := B - A\n    set v := C - A\n    refine ⟨A + x + ((cross₂ v x - cross₂ v y) / cross₂ u v) • u, ⟨⟨_, rfl⟩,\n      ⟨(cross₂ u x - cross₂ u y) / cross₂ u v, ?_⟩⟩, ?_⟩\n    · simp only [cross₂] at hk ⊢\n      have hc := cramer_aux (x₀ := x 0) (x₁ := x 1) (y₀ := y 0) (y₁ := y 1) hk\n      refine ext₂ ?_ ?_ <;> simp only [PiLp.add_apply, PiLp.smul_apply, smul_eq_mul]\n      · linarith [hc.1]\n      · linarith [hc.2]\n    · rintro H ⟨⟨r, hr⟩, ⟨r', hr'⟩⟩\n      have e0 := congrArg (· 0) (hr.symm.trans hr')\n      have e1 := congrArg (· 1) (hr.symm.trans hr')\n      simp only [PiLp.add_apply, PiLp.smul_apply, smul_eq_mul] at e0 e1\n      have hrs : r = (cross₂ v x - cross₂ v y) / cross₂ u v := by\n        rw [eq_div_iff hk]\n        simp only [cross₂]\n        linear_combination v 1 * e0 - v 0 * e1\n      rw [hr, hrs]\n  -- Components of the data, to work with real numbers.\n  set k := cross₂ (B - A) (C - A) with hk_def\n  set a := cross₂ (B - A) x with ha_def\n  set b := cross₂ (C - A) y with hb_def\n  have hkk : cross₂ (C - A) (B - A) = -k := by simp only [k, cross₂]; ring\n  rw [hkk] at h2\n  · rintro H ⟨r, hr⟩ ⟨r', hr'⟩\n    have hw₁ : cross₂ (B - A) (A - H) = -a := by\n      rw [hr]; simp only [a, cross₂, PiLp.sub_apply, PiLp.add_apply, PiLp.smul_apply, smul_eq_mul]\n      ring\n    have hw₂ : cross₂ (C - A) (A - H) = -b := by\n      rw [hr']; simp only [b, cross₂, PiLp.sub_apply, PiLp.add_apply, PiLp.smul_apply, smul_eq_mul]\n      ring\n    have hw : cross₂ (C - B) (B + (A - H) - B) = a - b := by\n      rw [add_sub_cancel_left]\n      have : cross₂ (C - B) (A - H) = cross₂ (C - A) (A - H) - cross₂ (B - A) (A - H) := by\n        simp only [cross₂, PiLp.sub_apply]; ring\n      rw [this, hw₁, hw₂]; ring\n    have hA : cross₂ (C - B) (A - B) = k := by\n      simp only [k, cross₂, PiLp.sub_apply]; ring\n    refine ⟨sOppSide_of_cross₂_mul_cross₂_neg ?_, ?_⟩\n    · rw [hw, hA]; nlinarith\n    · rw [volume_vadd_parallelepiped, volume_vadd_parallelepiped, volume_vadd_parallelepiped,\n        ← ENNReal.ofReal_add (abs_nonneg _) (abs_nonneg _)]\n      rw [add_sub_cancel_left] at hw\n      rw [hw]\n      congr 1\n      rcases lt_or_gt_of_ne hk with hk0 | hk0\n      · have ha : 0 < a := by nlinarith\n        have hb : b < 0 := by nlinarith\n        rw [abs_of_pos (by linarith), abs_of_pos ha, abs_of_neg hb]; ring\n      · have ha : a < 0 := by nlinarith\n        have hb : 0 < b := by nlinarith\n        rw [abs_of_neg (by linarith), abs_of_neg ha, abs_of_pos hb]; ring\n\nend EuclideanGeometry\n\n#print axioms EuclideanGeometry.pappus_area\n",
  "source_sha256": "df91feb8e09b6802a4329513feb2b54389961533558cc0f2bc23e54218e0a3eb",
  "build_output": "Fresh empty compilation directory, using only the prebuilt bundles. Both archive SHA-256 checks against fetch.json returned OK.\nLean (version 4.36.0, x86_64-unknown-linux-gnu, commit 611c117bfaf7b7ae1cfcf246ce6fba31e8f509e9, Release)\nMathlib bundle revision specified by the brief: fc4f59e577feb1a4956671bc04ac18aaaf8cd842.\nlean -DautoImplicit=false PappusArea.lean\nExit code: 0\n'EuclideanGeometry.pappus_area' depends on axioms: [propext, Classical.choice, Quot.sound]\nWhole-word scan of the unchanged source for all eight forbidden tokens returned no matches.\n",
  "fidelity_review": [
    {
      "clause": "Non-collinear points of the plane",
      "finding": "A, B and C are arbitrary elements of EuclideanSpace ℝ (Fin 2), the standard real Euclidean plane. The hypothesis excludes collinear triples. All real Euclidean planes admit an orthonormal coordinate identification with this model.",
      "sources": [
        "https://api.imd.fun/artifacts/9a9bdc991ff88b23a040c6ba8f7c859c2c60c060358967bc0bb4b036312a253a"
      ]
    },
    {
      "clause": "Any two nondegenerate outward parallelograms on AB and AC",
      "finding": "The edge vectors x and y range independently over the entire plane. The strict SOppSide tests place A+x across AB from C and A+y across AC from B and exclude zero or base-parallel edges. They impose no angle or length restriction. The hypotheses are satisfiable with oblique edges, for example A=(0,0), B=(1,0), C=(0,1), x=(1,-1), y=(-1,1).",
      "sources": [
        "https://api.imd.fun/artifacts/9a9bdc991ff88b23a040c6ba8f7c859c2c60c060358967bc0bb4b036312a253a",
        "https://raw.githubusercontent.com/leanprover-community/mathlib4/fc4f59e577feb1a4956671bc04ac18aaaf8cd842/Mathlib/Analysis/Convex/Side.lean"
      ]
    },
    {
      "clause": "Exactly one intersection of the far-side lines",
      "finding": "The lines through (A+x,B+x) and (A+y,C+y) are the full affine extensions of the opposite sides. The ∃! clause asserts both existence and uniqueness of their common point. The subsequent claim holds for every point on both lines, so it holds for that unique H.",
      "sources": [
        "https://api.imd.fun/artifacts/9a9bdc991ff88b23a040c6ba8f7c859c2c60c060358967bc0bb4b036312a253a"
      ]
    },
    {
      "clause": "Outward construction on BC using the vector from H to A",
      "finding": "The base is C−B and the second edge is A−H. The strict side test on B+(A−H) is sufficient for the entire closed parallelogram: at a point B+s(C−B)+t(A−H) its signed displacement across BC is t times the displacement at that far vertex. The base t=0 lies on BC and every point with t>0 is strictly across BC from A. The same reasoning applies to the two input parallelograms.",
      "sources": [
        "https://api.imd.fun/artifacts/9a9bdc991ff88b23a040c6ba8f7c859c2c60c060358967bc0bb4b036312a253a",
        "https://raw.githubusercontent.com/leanprover-community/mathlib4/fc4f59e577feb1a4956671bc04ac18aaaf8cd842/Mathlib/Analysis/Convex/Side.lean",
        "https://raw.githubusercontent.com/leanprover-community/mathlib4/fc4f59e577feb1a4956671bc04ac18aaaf8cd842/Mathlib/MeasureTheory/Measure/Haar/OfBasis.lean"
      ]
    },
    {
      "clause": "Area equality for the closed parallelograms as sets",
      "finding": "The Mathlib parallelepiped of a two-vector family is the image of two independent closed unit intervals under the linear combination of the edge vectors. The pointwise translate puts each parallelogram at its stated base vertex. Volume is the Euclidean Lebesgue measure, normalized by an orthonormal basis. The theorem equates these three set measures. The determinant calculation is a proof of the measure identity.",
      "sources": [
        "https://api.imd.fun/artifacts/9a9bdc991ff88b23a040c6ba8f7c859c2c60c060358967bc0bb4b036312a253a",
        "https://raw.githubusercontent.com/leanprover-community/mathlib4/fc4f59e577feb1a4956671bc04ac18aaaf8cd842/Mathlib/MeasureTheory/Measure/Haar/OfBasis.lean",
        "https://raw.githubusercontent.com/leanprover-community/mathlib4/fc4f59e577feb1a4956671bc04ac18aaaf8cd842/Mathlib/MeasureTheory/Measure/Lebesgue/EqHaar.lean",
        "https://raw.githubusercontent.com/leanprover-community/mathlib4/fc4f59e577feb1a4956671bc04ac18aaaf8cd842/Mathlib/MeasureTheory/Measure/Haar/InnerProductSpace.lean"
      ]
    }
  ],
  "prior_work": {
    "checked": [
      {
        "finding": "On 2026-11-26, a downloaded Mathlib master snapshot had no case-insensitive match for pappus or Q3527044 in Lean files. Its docs/1000.yaml entry has only a title. The missing list contains the ID and the completed list does not show it.",
        "sources": [
          "https://raw.githubusercontent.com/leanprover-community/mathlib4/master/docs/1000.yaml",
          "https://leanprover-community.github.io/1000-missing.html",
          "https://leanprover-community.github.io/1000.html"
        ]
      },
      {
        "finding": "GitHub issue/PR API searches restricted to open Mathlib PRs returned zero for pappus and zero for parallelogram area.",
        "sources": [
          "https://api.github.com/search/issues?q=repo%3Aleanprover-community%2Fmathlib4+is%3Apr+is%3Aopen+pappus",
          "https://api.github.com/search/issues?q=repo%3Aleanprover-community%2Fmathlib4+is%3Apr+is%3Aopen+parallelogram+area"
        ]
      },
      {
        "finding": "GitHub repository search for pappus lean returned three repositories (pascal-hexagon, paperi_arbelos, cayley-bacharach). Search for the exact phrase Pappus area with Lean returned none. Repository metadata searches cannot establish the absence of an arbitrary Lean file.",
        "sources": [
          "https://api.github.com/search/repositories?q=pappus+lean",
          "https://api.github.com/search/repositories?q=%22Pappus+area%22+Lean"
        ]
      },
      {
        "finding": "The complete Lean Genius main tree at inspection had 39,647 entries. Searching filenames for pappus or 3527044 yielded one Lean file and its metadata. The file proves the distinct hexagon collinearity theorem.",
        "sources": [
          "https://api.github.com/repos/rjwalters/lean-genius/git/trees/main?recursive=1",
          "https://raw.githubusercontent.com/rjwalters/lean-genius/main/proofs/Proofs/PappusTheoremOQ02.lean"
        ]
      },
      {
        "finding": "Web searches for Pappus area theorem with Lean, the declaration and filename variants on GitHub, and Pappus with parallelogram area on the public Lean Zulip archive produced no matching proof. The archive Pappus hit inspected discusses abstract affine planes and skew fields.",
        "sources": [
          "https://leanprover-community.github.io/archive/stream/113489-new-members/topic/attempt.20at.20some.20geometry.html"
        ]
      }
    ],
    "unverified": "UNVERIFIED: GitHub full code search returned HTTP 401. The entire Lean Zulip archive and all third-party repository contents were not exhaustively searched. The scoped checks found no earlier Lean proof of the vetted statement."
  },
  "explanation": "Take a non-collinear triangle and attach two arbitrary outward parallelograms to AB and AC. Extend their far sides until they meet at H. Attaching the vector from H to A at each end of BC gives a third outward parallelogram whose area is the sum of the first two. The proof writes u=B−A and v=C−A. Their determinant k is nonzero, so solving a two-by-two linear system gives a unique H. The strict side conditions imply that a=det(u,x) and b=det(v,y) have opposite signs. With w=A−H, membership in the two lines gives det(u,w)=−a and det(v,w)=−b. Thus det(C−B,w)=a−b, whose sign is opposite to det(C−B,A−B)=k, proving the outward placement. Translation invariance and the orthonormal-basis Haar measure formula identify each area with the absolute value of its determinant. Since a and b have opposite signs, |a−b|=|a|+|b|.",
  "database_entry": {
    "wikidata_id": "Q3527044",
    "title": "Pappus's area theorem",
    "decl": "EuclideanGeometry.pappus_area",
    "file": "PappusArea.lean",
    "yaml": "Q3527044:\n  title: Pappus's area theorem\n  decl: EuclideanGeometry.pappus_area\n"
  },
  "stuck": null,
  "repairs": [],
  "sources": [
    "https://api.imd.fun/artifacts/9a9bdc991ff88b23a040c6ba8f7c859c2c60c060358967bc0bb4b036312a253a",
    "https://github.com/Identity-md/lean-bundles/releases/download/pequalnp-e125f04d0dc6/fetch.json",
    "https://leanprover-community.github.io/1000-missing.html",
    "https://leanprover-community.github.io/1000.html",
    "https://raw.githubusercontent.com/leanprover-community/mathlib4/master/docs/1000.yaml",
    "https://raw.githubusercontent.com/leanprover-community/mathlib4/fc4f59e577feb1a4956671bc04ac18aaaf8cd842/Mathlib/Analysis/Convex/Side.lean",
    "https://raw.githubusercontent.com/leanprover-community/mathlib4/fc4f59e577feb1a4956671bc04ac18aaaf8cd842/Mathlib/MeasureTheory/Measure/Haar/OfBasis.lean",
    "https://raw.githubusercontent.com/leanprover-community/mathlib4/fc4f59e577feb1a4956671bc04ac18aaaf8cd842/Mathlib/MeasureTheory/Measure/Lebesgue/EqHaar.lean",
    "https://raw.githubusercontent.com/leanprover-community/mathlib4/fc4f59e577feb1a4956671bc04ac18aaaf8cd842/Mathlib/MeasureTheory/Measure/Haar/InnerProductSpace.lean",
    "https://api.github.com/search/issues?q=repo%3Aleanprover-community%2Fmathlib4+is%3Apr+is%3Aopen+pappus",
    "https://api.github.com/search/issues?q=repo%3Aleanprover-community%2Fmathlib4+is%3Apr+is%3Aopen+parallelogram+area",
    "https://api.github.com/search/repositories?q=pappus+lean",
    "https://api.github.com/search/repositories?q=%22Pappus+area%22+Lean",
    "https://api.github.com/repos/rjwalters/lean-genius/git/trees/main?recursive=1",
    "https://raw.githubusercontent.com/rjwalters/lean-genius/main/proofs/Proofs/PappusTheoremOQ02.lean",
    "https://leanprover-community.github.io/archive/stream/113489-new-members/topic/attempt.20at.20some.20geometry.html"
  ]
}
