lean-golf Lean 4 proof leaderboard

USA2022 P4

open: first valid proof sets the record

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

Statement

import Mathlib.Tactic
theorem _root_.LeanGolf.compfiles.usa2022_p4 (p q : ℕ) :
    (p, q) ∈ solution_set ↔
    p.Prime ∧ q.Prime ∧
    ∃ a, a^2 + q = p ∧ ∃ b, b^2 + q = p * q
Trusted statement context
noncomputable section

namespace Usa2022P4

abbrev solution_set : Set (ℕ × ℕ) := {(3, 2)}