Buckets:
| import Mathlib.Data.Fintype.BigOperators | |
| namespace OAI | |
| /-! Exact finite counting when a specified set of coordinates is fixed. -/ | |
| noncomputable section | |
| open scoped Classical | |
| namespace Paper320 | |
| variable {α β : Type} [Fintype α] [Fintype β] [DecidableEq α] | |
| def fixedCoordinatesEquiv (s : Finset α) (v : α → β) : | |
| {f : α → β // ∀ i ∈ s, f i = v i} ≃ ({i : α // i ∉ s} → β) where | |
| toFun f i := f.val i.val | |
| invFun f := ⟨fun i => if h : i ∈ s then v i else f ⟨i,h⟩, by | |
| intro i hi | |
| simp only [dite_eq_left hi]⟩ | |
| left_inv f := by | |
| apply Subtype.ext | |
| funext i | |
| by_cases hi : i ∈ s | |
| · simp only [dite_eq_left hi] | |
| exact (f.property i hi).symm | |
| · simp only [dite_eq_right hi] | |
| right_inv f := by | |
| funext i | |
| simp only [dite_eq_right i.property] | |
| theorem card_fixedCoordinates (s : Finset α) (v : α → β) | |
| [DecidablePred (fun f : α → β => ∀ i ∈ s, f i = v i)] : | |
| (Finset.univ.filter fun f : α → β => ∀ i ∈ s, f i = v i).card = | |
| Fintype.card β ^ (Fintype.card α - s.card) := by | |
| rw [← Fintype.card_subtype] | |
| rw [Fintype.card_congr (fixedCoordinatesEquiv s v), Fintype.card_fun, | |
| Fintype.card_subtype_compl, Fintype.card_coe] | |
| end Paper320 | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 1.27 kB
- Xet hash:
- c07c11120af1b9f6d2dd287b15caa67a06362ba00380ecae05266202938063f8
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.