lean-golf Lean 4 proof leaderboard

USA1985 P1

open: first valid proof sets the record

Compfiles · Usa · Apache-2.0
Copyright (c) 2024 David Renshaw. All rights reserved. Authors: David Renshaw

Statement

import Mathlib.Tactic
theorem _root_.LeanGolf.compfiles.usa1985_p1 :
    if does_exist
    then ∃ x y z, is_valid x y z
    else ¬ ∃ x y z, is_valid x y z
Trusted statement context
noncomputable section

namespace Usa1985P1

abbrev does_exist : Bool := true

abbrev is_valid (x : ℕ → ℤ) (y z : ℤ) : Prop :=
    (∀ i ∈ Finset.range 1985, 0 < x i) ∧
    0 < y ∧ 0 < z ∧
    ∑ i ∈ Finset.range 1985, x i ^ 2 = y ^ 3 ∧
    ∑ i ∈ Finset.range 1985, x i ^ 3 = z ^ 2 ∧
    ∀ i ∈ Finset.range 1985, ∀ j ∈ Finset.range 1985, i ≠ j → x i ≠ x j