cfahlgren1/math / lean /OAI /Combinatorics /Sensitivity /RecursiveChildren.lean
cfahlgren1's picture
download
raw
1.68 kB
import OAI.Combinatorics.Sensitivity.RecursiveDefinitions
namespace OAI
/-! Each row clause uses exactly the stated number of distinct child blocks. -/
noncomputable section
open scoped Classical
namespace Paper320
def rowChildren {k r : ℕ} (T : Tournament k) (label : Fin k → Fin k → Fin r)
(i : Fin k) : Finset (Fin k × Fin r) :=
Finset.univ.image (fun c => (i, c)) ∪
(Finset.univ.filter (T.Adj i)).image (fun j => (j, label i j))
theorem rowChildren_disjoint {k r : ℕ} (T : Tournament k)
(label : Fin k → Fin k → Fin r) (i : Fin k) :
Disjoint (Finset.univ.image fun c => (i, c))
((Finset.univ.filter (T.Adj i)).image fun j => (j, label i j)) := by
apply Finset.disjoint_left.mpr
intro p hp hq
obtain ⟨c, _, rfl⟩ := Finset.mem_image.mp hp
obtain ⟨j, hj, he⟩ := Finset.mem_image.mp hq
have hji : j = i := congrArg Prod.fst he
exact T.loopless i (hji ▸ (Finset.mem_filter.mp hj).2)
theorem rowChildren_card {k r : ℕ} (T : Tournament k)
(label : Fin k → Fin k → Fin r) (i : Fin k) :
(rowChildren T label i).card = r + (Finset.univ.filter (T.Adj i)).card := by
rw [rowChildren, Finset.card_union_of_disjoint (rowChildren_disjoint T label i)]
rw [Finset.card_image_of_injective _ (fun _ _ h => congrArg Prod.snd h)]
rw [Finset.card_image_of_injective _ (fun _ _ h => congrArg Prod.fst h)]
simp
theorem regular_rowChildren_card {M r : ℕ} (T : RegularTournament M)
(label : Fin (2 * M ^ 2 + 1) → Fin (2 * M ^ 2 + 1) → Fin r)
(i : Fin (2 * M ^ 2 + 1)) :
(rowChildren T.toTournament label i).card = r + M ^ 2 := by
rw [rowChildren_card, T.outdegree]
end Paper320
end
end OAI

Xet Storage Details

Size:
1.68 kB
·
Xet hash:
1b72aec4bfdb25d7e2500ee96b48c8d9460d2abde2d3566402cf61b830c2fa81

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.