IMO1991 P4
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
import Mathlib.Combinatorics.SimpleGraph.Trails
import Mathlib.Combinatorics.SimpleGraph.DeleteEdges
import Mathlib.Combinatorics.SimpleGraph.Connectivity.Connected
import Mathlib.Algebra.GCDMonoid.Finset
theorem _root_.LeanGolf.compfiles.imo1991_p4 {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V)
[DecidableRel G.Adj] (hG : G.Connected) :
∃ Φ : G.edgeSet → ℕ,
(∀ e : G.edgeSet, 1 ≤ Φ e ∧ Φ e ≤ Fintype.card G.edgeSet) ∧
(Function.Injective Φ) ∧
(∀ v : V, 2 ≤ G.degree v →
((G.incidenceFinset v).attach.gcd fun ⟨x, h⟩ =>
Φ ⟨x, mem_edgeFinset.mp <| incidenceFinset_subset G v h⟩) = 1)Trusted statement context
namespace Imo1991P4
open SimpleGraph Finset
variable {V : Type*} [Fintype V] [DecidableEq V] {G : SimpleGraph V} [DecidableRel G.Adj]