cfahlgren1/math / lean /OAI /Combinatorics /Sensitivity /LabelingConstraints.lean
cfahlgren1's picture
download
raw
1.49 kB
import OAI.Combinatorics.Sensitivity.TournamentCounts
namespace OAI
/-! The labeling constraints are exactly fixed values on the internal edges. -/
noncomputable section
open scoped Classical
namespace Paper320.Tournament
variable {k : ℕ} (T : Tournament k)
theorem mem_internalEdges {I : Finset (Fin k)} {p : Fin k × Fin k} :
p ∈ T.internalEdges I ↔ (p.1 ∈ I ∧ p.2 ∈ I) ∧ T.Adj p.1 p.2 := by
simp only [internalEdges, Finset.mem_filter, Finset.mem_product]
theorem labelingConstraint_iff {α β : Type} [Nonempty α]
(s : Finset α) (v : α → Fin k) (m : α → β) (hv : Function.Injective v)
(A : (Fin k × Fin k) → β) :
(∀ i ∈ s, ∀ j ∈ s, T.Adj (v i) (v j) → A (v i,v j) = m j) ↔
∀ p ∈ T.internalEdges (s.image v), A p = m (Function.invFun v p.2) := by
constructor
· intro h p hp
obtain ⟨⟨hp₁,hp₂⟩,ha⟩ := T.mem_internalEdges.mp hp
obtain ⟨i,hi,hvi⟩ := Finset.mem_image.mp hp₁
obtain ⟨j,hj,hvj⟩ := Finset.mem_image.mp hp₂
have he : p = (v i,v j) := Prod.ext hvi.symm hvj.symm
subst p
rw [Function.leftInverse_invFun hv j]
exact h i hi j hj ha
· intro h i hi j hj ha
have hp : (v i,v j) ∈ T.internalEdges (s.image v) :=
T.mem_internalEdges.mpr ⟨⟨Finset.mem_image.mpr ⟨i,hi,rfl⟩,
Finset.mem_image.mpr ⟨j,hj,rfl⟩⟩,ha⟩
simpa only [Function.leftInverse_invFun hv j] using h (v i,v j) hp
end Paper320.Tournament
end
end OAI

Xet Storage Details

Size:
1.49 kB
·
Xet hash:
48a68ad872d470179595c40188c6bd1df31c63a795c9b8926f7f176e51f6ac28

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