{
  "id": "3555",
  "ident": "NS.03555",
  "slug": "erdos-898",
  "title": "Erdős Problem 898",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "If $A,B,C\\in \\mathbb{R}^2$ form a triangle and $P$ is a point in the interior then, if $N$ is\nwhere the perpendicular from $P$ to $AB$ meets the triangle, and similarly for $M$ and $L$,\n$$\n\\overline{PA}+\\overline{PB}+\\overline{PC}\\geq 2(\\overline{PM}+\\overline{PN}+\\overline{PL}).\n$$\n\nConjectured by Erdős in 1932 (according to [Er82e]) and proved by Mordell soon afterwards, now\nknown as the Erdős-Mordell inequality.",
  "subjects": [
    "math.MG",
    "msc:51"
  ],
  "tags": [
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos898.erdos_898",
  "statement_lean": "theorem erdos_898 (A B C P L M N : ℝ²) (hABC : AffineIndependent ℝ ![A, B, C])\n    (hP : P ∈ interior (convexHull ℝ ({A, B, C} : Set ℝ²)))\n    (hN : N ∈ line[ℝ, A, B]) (hPN : line[ℝ, P, N].direction ⟂ line[ℝ, A, B].direction)\n    (hM : M ∈ line[ℝ, B, C]) (hPM : line[ℝ, P, M].direction ⟂ line[ℝ, B, C].direction)\n    (hL : L ∈ line[ℝ, C, A]) (hPL : line[ℝ, P, L].direction ⟂ line[ℝ, C, A].direction) :\n    dist P A + dist P B + dist P C ≥ 2 * (dist P M + dist P N + dist P L)",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Erdős Problem 898\n\n*References:*\n- [erdosproblems.com/898](https://www.erdosproblems.com/898)\n- [Er82e] Erdős, Paul, *Some of my favourite problems which recently have been solved*.\n  (1982), 59--79.\n- [Wikipedia](https://en.wikipedia.org/wiki/Erd%C5%91s%E2%80%93Mordell_inequality)\n-/\n\n@[expose] public section\n\nopen Affine EuclideanGeometry\n\nnamespace Erdos898\n\nset_option linter.style.formal_proof_palomar false in\n/--\nIf $A,B,C\\in \\mathbb{R}^2$ form a triangle and $P$ is a point in the interior then, if $N$ is\nwhere the perpendicular from $P$ to $AB$ meets the triangle, and similarly for $M$ and $L$,\n$$\n\\overline{PA}+\\overline{PB}+\\overline{PC}\\geq 2(\\overline{PM}+\\overline{PN}+\\overline{PL}).\n$$\n\nConjectured by Erdős in 1932 (according to [Er82e]) and proved by Mordell soon afterwards, now\nknown as the Erdős-Mordell inequality.\n-/\n@[category research solved, AMS 51, formal_proof using lean4 at \"https://github.com/plby/lean-proofs/blob/main/src/v4.29.1/ErdosProblems/Erdos898.lean\"]\ntheorem erdos_898 (A B C P L M N : ℝ²) (hABC : AffineIndependent ℝ ![A, B, C])\n    (hP : P ∈ interior (convexHull ℝ ({A, B, C} : Set ℝ²)))\n    (hN : N ∈ line[ℝ, A, B]) (hPN : line[ℝ, P, N].direction ⟂ line[ℝ, A, B].direction)\n    (hM : M ∈ line[ℝ, B, C]) (hPM : line[ℝ, P, M].direction ⟂ line[ℝ, B, C].direction)\n    (hL : L ∈ line[ℝ, C, A]) (hPL : line[ℝ, P, L].direction ⟂ line[ℝ, C, A].direction) :\n    dist P A + dist P B + dist P C ≥ 2 * (dist P M + dist P N + dist P L) := by\n  sorry\n\nend Erdos898\n",
  "statement_hash": "dbc3597fedf431318413a72f9821b51370f07ede6ed0b3b139041af10df59f71",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}