File size: 1,588 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | import OAI.Combinatorics.MatchingPSD.PermutationSmoothing
namespace OAI
universe u_1 u_2 u_3
namespace MatchingSmoothing
open scoped BigOperators
section GroupAveraging
variable {G : Type u_1} {I : Type u_2} [Fintype G] [Group G] [Fintype I]
{P : I β Type u_3} [β i, Fintype (P i)] [β i, Nonempty (P i)]
lemma mean_right_translate (g : G) (f : G β β) :
(πΌ a : G, f (a*g)) = πΌ a : G, f a := by
exact Fintype.expect_equiv (Equiv.mulRight g) _ _ (fun _ => rfl)
omit [Fintype I] in
lemma mean_le_of_local_means (lift : (i : I) β P i β G)
(err : I β G β β) (b : I β β)
(hb : β i a, (πΌ p : P i, err i (a * lift i p)) β€ b i) (i : I) :
(πΌ a : G, err i a) β€ b i := by
have hh : (πΌ a : G, πΌ p : P i, err i (a * lift i p)) β€ b i :=
Finset.expect_le Finset.univ_nonempty (fun a _ => hb i a)
rw [Finset.expect_comm] at hh
simpa only [mean_right_translate, Fintype.expect_const] using hh
lemma exists_total_le_of_local_means (lift : (i : I) β P i β G)
(err : I β G β β) (b : I β β)
(hb : β i a, (πΌ p : P i, err i (a * lift i p)) β€ b i) :
β a : G, (β i, err i a) β€ β i, b i := by
have he (i : I) : (πΌ a : G, err i a) β€ b i :=
mean_le_of_local_means lift err b hb i
have htotal : (πΌ a : G, β i, err i a) β€ β i, b i := by
rw [Finset.expect_sum_comm]
exact Finset.sum_le_sum (fun i _ => he i)
obtain β¨a, _, haβ© := Finset.exists_le_of_expect_le Finset.univ_nonempty htotal
exact β¨a,haβ©
end GroupAveraging
end MatchingSmoothing
end OAI
|