lean-golf Lean 4 proof leaderboard

USA1976 P1 FIRST

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.BigOperators.Group.Finset
import Mathlib.AlgebraicTopology.SimplexCategory.Basic
import Mathlib.Data.Fin.VecNotation
theorem _root_.LeanGolf.compfiles.usa1976_p1_first (c : Fin 4 → Fin 7 → Bool) : HasMonoRectangle c
Trusted statement context
noncomputable section

namespace Usa1976P1

def HasMonoRectangle {m n : ℕ} (c : Fin m → Fin n → Bool) : Prop :=
  ∃ r1 r2 : Fin m, ∃ j1 j2 : Fin n, ∃ b : Bool,
    r1 ≠ r2 ∧ j1 ≠ j2 ∧
    c r1 j1 = b ∧ c r2 j1 = b ∧ c r1 j2 = b ∧ c r2 j2 = b