lean-golf Lean 4 proof leaderboard

USA1996 P6

open: first valid proof sets the record

Compfiles · Usa · Apache-2.0
Copyright (c) 2026 The Compfiles Contributors. All rights reserved. Authors: Karl Mehltretter

Statement

import Mathlib.Data.Int.Basic
import Mathlib.Data.Nat.Digits.Defs
import Mathlib.Tactic
theorem _root_.LeanGolf.compfiles.usa1996_p6 :
    does_exist ↔ ∃ X : Set ℤ, UniqueRepresentationSet X
Trusted statement context
noncomputable section

namespace Usa1996P6

def UniqueRepresentationSet (X : Set ℤ) : Prop :=
  ∀ n : ℤ, ∃! p : ℤ × ℤ,
    p.1 ∈ X ∧ p.2 ∈ X ∧ p.1 + 2 * p.2 = n

abbrev does_exist : Bool := true