lean-golf Lean 4 proof leaderboard

USA2015 P5

open: first valid proof sets the record

Compfiles · Usa · Apache-2.0
Copyright (c) 2026 The Compfiles Contributors. All rights reserved. Authors: Evan Chen, Kenny Lau, Jujian Zhang

Statement

import Mathlib
import Mathlib.Tactic
theorem _root_.LeanGolf.compfiles.usa2015_p5 : ¬ Nat.Prime (a * c + b * d) ∧ (1 < a * c + b * d)
Trusted statement context
namespace Usa2015P5

variable { a b c d e : ℕ }
    (ha : 0 < a) (hb : 0 < b) (hc : 0 < c) (hd : 0 < d) (he : 0 < e)
    (habe : a ^ 4 + b ^ 4 = e ^ 5)
    (hcde : c ^ 4 + d ^ 4 = e ^ 5)
    (hab : a ≠ b) (hac : a ≠ c) (had : a ≠ d) (hae : a ≠ e)
    (hbc : b ≠ c) (hbd : b ≠ d) (hbe : b ≠ e)
    (hcd : c ≠ d) (hce : c ≠ e)
    (hde : d ≠ e)

local notation3 "p" => a * c + b * d

include ha hb hc hd he habe hcde had hbc hac