/- Copyright 2026 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -/ module public import Mathlib.Data.Set.Card@[expose] public section

Sunflowers

This file defines sunflowers of set families.

variable {α : Type*}

A sunflower F with kernel S is a collection of sets in which all possible distinct pairs of sets share the same intersection S.

def IsSunflowerWithKernel (F : Set (Set α)) (S : Set α) : Prop := F.Pairwise (fun A B => A B = S)theorem isSunflowerWithKernel_empty (S : Set α) : IsSunflowerWithKernel {} S := α:Type u_1S:Set αIsSunflowerWithKernel S All goals completed! 🐙theorem isSunflowerWithKernel_singleton (S : Set α) (A : Set α) : IsSunflowerWithKernel {A} S := α:Type u_1S:Set αA:Set αIsSunflowerWithKernel {A} S All goals completed! 🐙

A sunflower F is a collection of sets in which all possible distinct pairs of sets share the same intersection.

def IsSunflower (F : Set (Set α)) : Prop := S, IsSunflowerWithKernel F Stheorem isSunflower_empty : IsSunflower ( : Set (Set α)) := α:Type u_1IsSunflower All goals completed! 🐙theorem isSunflower_singleton (A : Set α) : IsSunflower {A} := α:Type u_1A:Set αIsSunflower {A} All goals completed! 🐙