introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
1.11 kB
import Mathlib
namespace OAI
namespace Balanced
open scoped _root_.Balanced
structure PartiteHypergraph (r n : β„•) where
edges : Finset (Fin r β†’ Fin n)
namespace PartiteHypergraph
variable {r n : β„•}
abbrev Vertex (r n : β„•) := Fin r Γ— Fin n
def Covers (H : PartiteHypergraph r n) (C : Finset (Vertex r n)) : Prop :=
βˆ€ e ∈ H.edges, βˆƒ i, (i, e i) ∈ C
def Intersecting (H : PartiteHypergraph r n) : Prop :=
H.edges.Nonempty ∧ βˆ€ e ∈ H.edges, βˆ€ f ∈ H.edges, βˆƒ i, e i = f i
def Nonisolated (H : PartiteHypergraph r n) : Prop :=
βˆ€ i v, βˆƒ e ∈ H.edges, e i = v
def HasCoverNumber (H : PartiteHypergraph r n) (k : β„•) : Prop :=
(βˆƒ C : Finset (Vertex r n), H.Covers C ∧ C.card = k) ∧
βˆ€ C : Finset (Vertex r n), H.Covers C β†’ k ≀ C.card
end PartiteHypergraph
def BalancedCounterexample (q : β„•) : Prop :=
βˆƒ H : PartiteHypergraph (q + 1) (q + 1),
H.Intersecting ∧ H.Nonisolated ∧ H.HasCoverNumber (q + 1)
def MainResult : Prop :=
βˆƒ qβ‚€ : β„•, βˆ€ q : β„•, qβ‚€ ≀ q β†’ q.Prime β†’ BalancedCounterexample q
end Balanced
end OAI