IMO1986 P6
open: first valid proof sets the record
Compfiles · Imo · Apache-2.0
Copyright (c) 2026 The Compfiles Contributors. All rights reserved. Authors: Kimi K3
Statement
import Mathlib.Tactic
theorem _root_.LeanGolf.compfiles.imo1986_p6 (S : Finset (ℤ × ℤ)) :
if does_exist then
∃ ε : ℤ × ℤ → ℤ,
(∀ p ∈ S, ε p = 1 ∨ ε p = -1) ∧
(∀ x : ℤ, |∑ p ∈ S.filter (fun p => p.1 = x), ε p| ≤ 1) ∧
(∀ y : ℤ, |∑ p ∈ S.filter (fun p => p.2 = y), ε p| ≤ 1)
else
¬ ∃ ε : ℤ × ℤ → ℤ,
(∀ p ∈ S, ε p = 1 ∨ ε p = -1) ∧
(∀ x : ℤ, |∑ p ∈ S.filter (fun p => p.1 = x), ε p| ≤ 1) ∧
(∀ y : ℤ, |∑ p ∈ S.filter (fun p => p.2 = y), ε p| ≤ 1)Trusted statement context
noncomputable section
namespace Imo1986P6
open Finset
abbrev does_exist : Bool := true