02fc4285 / statements / UnionClosed.lean

1/-
2Ported from google-deepmind/formal-conjectures at commit a61ab09632df039ef8381b6ac8accc5ce4d954d7,
3file FormalConjectures/Wikipedia/UnionClosed.lean, declaration UnionClosed.union_closed.
4Copyright 2025 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0
5(https://www.apache.org/licenses/LICENSE-2.0).
6Port: `public import FormalConjecturesUtil` replaced by specific Mathlib imports; the
7`@[category …, AMS …]` attributes and the doc comments dropped; only `IsUnionClosed`, the file's
8`open` and `variable` lines and the target kept (not the API lemmas or the variants).
9The definition and the proposition are unchanged.
10-/
11module
12
13public import Mathlib.Data.Finset.Card
14public import Mathlib.Data.Finset.Filter
15public import Mathlib.Algebra.Order.Field.Rat
16
17@[expose] public section
18
19open Finset
20
21variable {n : Type*} [DecidableEq n] {A : Finset (Finset n)}
22
23namespace UnionClosed
24
25-- Note: Mathlib v4.36.0's extended-binder linter warns on upstream's `∀ᵉ` below and does not
26-- read its own option `linter.style.extendedBinder`, so the warning stays; the text is upstream's.
27/-- A family of finite sets closed under binary union. -/
28abbrev IsUnionClosed (A : Finset (Finset n)) : Prop :=
29 ∀ᵉ (X ∈ A) (Y ∈ A), X ∪ Y ∈ A
30
31theorem union_closed
32 [Nonempty n]
33 (h_ne_singleton_empty : A ≠ {∅})
34 (h_union_closed : IsUnionClosed A) :
35 ∃ i : n, (1 / 2 : ℚ) * #A ≤ #{x ∈ A | i ∈ x} := by
36 sorry
37
38end UnionClosed
39
40/-- The family's target (decision 0100), under the family's name: its type is taken from upstream's
41`UnionClosed.union_closed` above, so the two cannot differ. Upstream's declaration is kept for provenance; it is not a
42target. -/
43theorem UnionClosed.{u} : type_of% @UnionClosed.union_closed.{u} := by
44 sorry