IMO1961 P1A
open: first valid proof sets the record
Compfiles · Imo · Apache-2.0
Copyright (c) 2020 David Renshaw. All rights reserved. Authors: David Renshaw, Roozbeh Yousefzadeh
Statement
import Mathlib.Tactic
theorem _root_.LeanGolf.compfiles.imo1961_p1a (a b x y z : ℝ) :
⟨x,y,z⟩ ∈ xyz_of_ab a b ↔ IsSolution a b x y zTrusted statement context
noncomputable section
namespace Imo1961P1
abbrev IsSolution (a b x y z : ℝ) : Prop :=
x + y + z = a ∧
x^2 + y^2 + z^2 = b^2 ∧
x * y = z^2
abbrev xyz_of_ab (a b : ℝ) : Set (ℝ × ℝ × ℝ) :=
{ p | let ⟨x,y,z⟩ := p
(a ≠ 0 ∧
z = (a^2 - b^2) / (2 * a) ∧
∀ m, (m - x) * (m - y) =
m^2 - (a^2 + b^2) / (2 * a) * m + ((a^2 - b^2) / (2 * a))^2) ∨ (a = 0 ∧ b = 0 ∧ x = 0 ∧ y = 0 ∧ z = 0) }