| 1 | /- |
| 2 | Ported from google-deepmind/formal-conjectures at commit a61ab09632df039ef8381b6ac8accc5ce4d954d7, |
| 3 | file FormalConjectures/Wikipedia/UnionClosed.lean, declaration UnionClosed.union_closed. |
| 4 | Copyright 2025 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 |
| 5 | (https://www.apache.org/licenses/LICENSE-2.0). |
| 6 | Port: `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). |
| 9 | The definition and the proposition are unchanged. |
| 10 | -/ |
| 11 | module |
| 12 | |
| 13 | public import Mathlib.Data.Finset.Card |
| 14 | public import Mathlib.Data.Finset.Filter |
| 15 | public import Mathlib.Algebra.Order.Field.Rat |
| 16 | |
| 17 | @[expose] public section |
| 18 | |
| 19 | open Finset |
| 20 | |
| 21 | variable {n : Type*} [DecidableEq n] {A : Finset (Finset n)} |
| 22 | |
| 23 | namespace UnionClosed |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | abbrev IsUnionClosed (A : Finset (Finset n)) : Prop := |
| 29 | ∀ᵉ (X ∈ A) (Y ∈ A), X ∪ Y ∈ A |
| 30 | |
| 31 | theorem 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 | |
| 38 | end 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 |
| 42 | target. -/ |
| 43 | theorem UnionClosed.{u} : type_of% @UnionClosed.union_closed.{u} := by |
| 44 | sorry |