cfahlgren1/math / lean /OAI /Combinatorics /RamseyFive /Decoding /FinsetEquivPositions.lean
cfahlgren1's picture
download
raw
712 Bytes
import Mathlib
namespace OAI
namespace SharpRamseyFive
open scoped Classical
noncomputable section
variable {A B : Type*} [Fintype A] [Fintype B] [DecidableEq A] [DecidableEq B]
def equivPositions (e : A≃B) (S : Finset A) : Finset B := S.map e.toEmbedding
omit [Fintype A] [Fintype B] [DecidableEq A] [DecidableEq B] in
lemma mem_equivPositions (e : A≃B) (S : Finset A) (i : B) :
i∈equivPositions e S ↔ e.symm i∈S := by
simp [equivPositions]
lemma equivPositions_compl_card (e : A≃B) (S : Finset A) :
(equivPositions e S)ᶜ.card=Sᶜ.card := by
rw [Finset.card_compl,Finset.card_compl]
simp only [equivPositions,Finset.card_map,Fintype.card_congr e]
end
end SharpRamseyFive
end OAI

Xet Storage Details

Size:
712 Bytes
·
Xet hash:
ac6fd017b31d63eb5eb219bedb6ca3e28d101d85c47620500de3edd59a58c304

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