USA2008 P5
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.Order.Star.Real
import Mathlib.AlgebraicTopology.SimplexCategory.Basic
import Mathlib.Analysis.Normed.Field.Basic
theorem _root_.LeanGolf.compfiles.usa2008_p5 (r : Fin 3 → ℝ) (hr : ∀ i, 0 ≤ r i)
(a : Fin 3 → ℤ) (ha : a ≠ 0) (hsum : ∑ i, (a i : ℝ) * r i = 0) :
∃ r' : Fin 3 → ℝ, Relation.ReflTransGen Step r r' ∧ ∃ i, r' i = 0Trusted statement context
noncomputable section
namespace Usa2008P5
abbrev Step (r r' : Fin 3 → ℝ) : Prop :=
∃ i j : Fin 3, i ≠ j ∧ r j ≤ r i ∧ r' = Function.update r i (r i - r j)