cfahlgren1's picture
download
raw
3.51 kB
import OAI.Combinatorics.HadwigerCounterexample.FiniteConditioning
import OAI.Combinatorics.HadwigerCounterexample.MatrixRanks
import OAI.Combinatorics.HadwigerCounterexample.ExponentialRates
namespace OAI
/-! # Finite Affine Laws -/
noncomputable section
namespace HadwigerCounterexample
open Matrix Module LinearMap
open scoped BigOperators
section General
variable (V W : Type)
variable [AddCommGroup V] [Module F V] [AddCommGroup W] [Module F W]
theorem card_space [Fintype V] : (Fintype.card V : ℝ) = bp (dim V) := by
rw [Module.card_eq_pow_finrank (K:=F)]
rw [show Fintype.card F = 2 from ZMod.card 2, bp_nat]
push_cast; rfl
variable {V W}
theorem add_polar (t : V) : ∀ x : V, x+t+t=x := by
intro x; rw [add_assoc,char_two,add_zero]
/-- Equally likely images along every direction of an indexed family. The
translation hypothesis is before testing the specified targets. -/
theorem translate_cap [Fintype V] [Fintype W] {T : Type*} [Fintype T] [Nonempty T]
{w : Wgt V} (hw : SubLaw w)
(f : V →ₗ[F] W) (g : T ↪ W) (h : ∀ t, ∃ v, f v = g t ∧ ∀ x, w (x+v) = w x) (y : W) :
pr w (fun x => f x=y) ≤ (Fintype.card T : ℝ)⁻¹ := by
classical
let u := mapW w f
have h1 (t : T) : u (y+g t) = u y := by
obtain ⟨v,hv,he⟩ := h t
change avg w _ = avg w _
let E : V ≃ V := ⟨(·+v),(·+v),add_polar v,add_polar v⟩
rw [← avg_bij E w (fun x => ind (f x = y+g t))]
change (avg (fun x => w (x+v)) (fun x => ind (f (x+v)=y+g t))) = _
simp_rw [he,map_add,hv]
simp
have hu' : ∀ x, 0 ≤ u x := fun _ => pr_nonneg hw.nz
have hut : tot u ≤ 1 := by
have h : tot u = tot w := by simpa [u] using mapW_pr w f (fun _ => True)
exact h.le.trans hw.total
let k : T ↪ W := ⟨fun t => y+g t, fun i j h => g.injective (add_left_cancel h)⟩
have h2 : (Fintype.card T:ℝ)*u y ≤ tot u := calc
_ = ∑ t : T, u (y+g t) := by simp [h1]
_ = ∑ x ∈ Finset.univ.map k, u x := by rw [Finset.sum_map]; rfl
_ ≤ _ := Finset.sum_le_sum_of_subset_of_nonneg (Finset.subset_univ _)
(fun i _ _ => hu' i)
change u y ≤ _
rw [←one_div,le_div_iff₀ (by exact_mod_cast Fintype.card_pos)]
rw [mul_comm]
exact h2.trans hut
theorem unif_lin [Fintype V] [Fintype W] (f : V →ₗ[F] W) :
mapW unif f = unifOn (fun y => y ∈ range f) := by
rw [← unifOn_true]
refine uniform_orbit _ ⟨0,trivial⟩ (fun x _ => ⟨x,rfl⟩) ?_
rintro _ _ ⟨y,rfl⟩ ⟨z,rfl⟩
let d := z-y
let E : V ≃ V := ⟨(·+d),(·+d),add_polar d,add_polar d⟩
refine ⟨E,fun _ => Iff.rfl, fun x => ?_⟩
change f x = f y ↔ f (x+(z-y))=f z
rw [map_add,map_sub]
constructor
· intro h; rw [h,add_sub_cancel]
· intro h
apply add_right_cancel (b := f z-f y)
rw [h,add_sub_cancel]
theorem pr_unif_lin [Fintype V] [Fintype W] (f : V →ₗ[F] W) (y : W) :
pr unif (fun x => f x=y) = ind (y ∈ range f) * bp (-(rk f:ℝ)) := by
classical
change mapW unif f y = _
rw [unif_lin,unifOn_val,nbr_eq_card]
rw [card_space,bp_neg,div_eq_mul_inv]
theorem map_unif_surjective [Fintype V] [Fintype W] (f : V →ₗ[F] W)
(h : Function.Surjective f) : mapW unif f = unif := by
rw [unif_lin,range_eq_top.mpr h]
simp only [Submodule.mem_top,unifOn_true]
end General
theorem dim_mat (I J : Type) [Fintype I] [Fintype J] :
dim (Mat I J) = Fintype.card I * Fintype.card J := by
simp only [dim,Mat,finrank_matrix,finrank_self,mul_one]
end HadwigerCounterexample
end
end OAI

Xet Storage Details

Size:
3.51 kB
·
Xet hash:
7b699a98c61aac1ab967d568de949b2b6a2fc1575f4c6cc450e0bd619f17f18d

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