Download PFR/Mathlib/Data/Set/Card.lean from cfahlgren1/lean-pfr: direct link, hf CLI and curl.
- Browser
- Download file 534 Bytes
-
https://huggingface.co/datasets/cfahlgren1/lean-pfr/resolve/main/PFR/Mathlib/Data/Set/Card.lean
- Command line
-
hf download hf://datasets/cfahlgren1/lean-pfr/PFR/Mathlib/Data/Set/Card.lean
-
curl -L -o Card.lean https://huggingface.co/datasets/cfahlgren1/lean-pfr/resolve/main/PFR/Mathlib/Data/Set/Card.lean
534 Bytes
| module | |
| public import Mathlib.Data.Set.Card | |
| public import PFR.Mathlib.Data.Set.Insert | |
| public section | |
| namespace Set | |
| variable {α : Type*} | |
| -- TODO: Rename `ncard_singleton_inter` to `ncard_singleton_inter_le_one` | |
| lemma ncard_singleton_inter' (a : α) (s : Set α) [Decidable (a ∈ s)] : | |
| ({a} ∩ s).ncard = if a ∈ s then 1 else 0 := by | |
| split_ifs <;> simp [*] | |
| lemma ncard_inter_singleton (a : α) (s : Set α) [Decidable (a ∈ s)] : | |
| (s ∩ {a}).ncard = if a ∈ s then 1 else 0 := by | |
| split_ifs <;> simp [*] | |
| end Set | |