{"repo":"math","rev":"02fc4285df7ebfa6a7e7f10272fcfbe3bb7a81a0","blob":{"commit":"02fc4285df7ebfa6a7e7f10272fcfbe3bb7a81a0","path":"statements/UnionClosed.lean","oid":"64507f139a96952d35fc2af631943887c3327110","size":1793,"range_start":0,"range_end":1793,"truncated":false,"binary":false,"encoding":"utf8","content":"/-\nPorted from google-deepmind/formal-conjectures at commit a61ab09632df039ef8381b6ac8accc5ce4d954d7,\nfile FormalConjectures/Wikipedia/UnionClosed.lean, declaration UnionClosed.union_closed.\nCopyright 2025 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0\n(https://www.apache.org/licenses/LICENSE-2.0).\nPort: `public import FormalConjecturesUtil` replaced by specific Mathlib imports; the\n`@[category …, AMS …]` attributes and the doc comments dropped; only `IsUnionClosed`, the file's\n`open` and `variable` lines and the target kept (not the API lemmas or the variants).\nThe definition and the proposition are unchanged.\n-/\nmodule\n\npublic import Mathlib.Data.Finset.Card\npublic import Mathlib.Data.Finset.Filter\npublic import Mathlib.Algebra.Order.Field.Rat\n\n@[expose] public section\n\nopen Finset\n\nvariable {n : Type*} [DecidableEq n] {A : Finset (Finset n)}\n\nnamespace UnionClosed\n\n-- Note: Mathlib v4.36.0's extended-binder linter warns on upstream's `∀ᵉ` below and does not\n-- read its own option `linter.style.extendedBinder`, so the warning stays; the text is upstream's.\n/-- A family of finite sets closed under binary union. -/\nabbrev IsUnionClosed (A : Finset (Finset n)) : Prop :=\n  ∀ᵉ (X ∈ A) (Y ∈ A), X ∪ Y ∈ A\n\ntheorem union_closed\n    [Nonempty n]\n    (h_ne_singleton_empty : A ≠ {∅})\n    (h_union_closed : IsUnionClosed A) :\n    ∃ i : n, (1 / 2 : ℚ) * #A ≤ #{x ∈ A | i ∈ x} := by\n  sorry\n\nend UnionClosed\n\n/-- The family's target (decision 0100), under the family's name: its type is taken from upstream's\n`UnionClosed.union_closed` above, so the two cannot differ. Upstream's declaration is kept for provenance; it is not a\ntarget. -/\ntheorem UnionClosed.{u} : type_of% @UnionClosed.union_closed.{u} := by\n  sorry\n"},"raw":"/r/math/raw/02fc4285df7ebfa6a7e7f10272fcfbe3bb7a81a0/statements/UnionClosed.lean","jit":null,"api":"/v1/repos/math/blob?rev=02fc4285df7ebfa6a7e7f10272fcfbe3bb7a81a0&path=statements%2FUnionClosed.lean","api_url":"https://git.neoopensource.com/v1/repos/math/blob?rev=02fc4285df7ebfa6a7e7f10272fcfbe3bb7a81a0&path=statements%2FUnionClosed.lean"}