USA2004 P2
open: first valid proof sets the record
Compfiles · Usa · Apache-2.0
Copyright (c) 2026 The Compfiles Contributors. All rights reserved. Authors: Kimi K3
Statement
import Mathlib.Algebra.BigOperators.Ring.Finset
import Mathlib.Algebra.CharP.Defs
import Mathlib.Algebra.GCDMonoid.Finset
import Mathlib
import Mathlib.Order.ConditionallyCompleteLattice.Basic
import Mathlib.Tactic.NormNum.DivMod
import Mathlib.Tactic.Ring
theorem _root_.LeanGolf.compfiles.usa2004_p2 {n : ℕ} (a : Fin n → ℤ) (S : Set ℤ)
(hgcd : Finset.univ.gcd a = 1)
(ha : ∀ i, a i ∈ S)
(hdiff : ∀ i j, a i - a j ∈ S)
(hcond : ∀ x y : ℤ, x ∈ S → y ∈ S → x + y ∈ S → x - y ∈ S) :
S = Set.univTrusted statement context
namespace Usa2004P2
variable {n : ℕ} {a : Fin n → ℤ} {S : Set ℤ}