noncomputabledefpatternBins {m : ℕ} (w top xi : ℝ) (pattern : Fin m →Fin (binCount w top xi)) :
Fin m →Finsetℕ:=fun i => primeBin (lower w top xi (pattern i)) (width w top xi (pattern i))
theoremactual_choice_label {m : ℕ} {w top xi : ℝ} (hw : 1 < w) (htop : w < top) (hxi : 0 < xi)
(pattern : Fin m →Fin (binCount w top xi)) (f : Fin m →ℕ)
(hf : f ∈ choices (patternBins w top xi pattern)) (i : Fin m) :
label (zero_lt_one.trans hw) htop hxi (f i)=pattern i :=by
proof · 3
lines
havehp : f i ∈ primeBin (lower w top xi (pattern i)) (width w top xi (pattern i)) :=
(Fintype.mem_piFinset.mp hf) i
exact ((bin_mem_iff_label (zero_lt_one.trans hw) htop hxi (pattern i) (f i)).mp hp).2.2.2
theoremactual_choice_coordinate {m : ℕ} {w top xi : ℝ}
(pattern : Fin m →Fin (binCount w top xi)) (f : Fin m →ℕ)
(hf : f ∈ choices (patternBins w top xi pattern)) (i : Fin m) :
f i ∈ primeBin (lower w top xi (pattern i)) (width w top xi (pattern i)) :=
theoremfirst_tag_coordinate {m : ℕ} {Y w top Cseta xi : ℝ}
(hw : 1 < w) (htop : w < top) (hxi : 0 < xi)
(pattern : Fin m →Fin (binCount w top xi)) (f : Fin m →ℕ) (a : ℕ→ℤ)
(hf : f ∈ choices (patternBins w top xi pattern))
(t : Tag (binCount w top xi))
(ht : sourceTag Y w Cs eta (lower w top xi) (width w top xi)
(label (zero_lt_one.trans hw) htop hxi) a (List.ofFn f)=some t) :
∃ i ∈ searchPositions w top xi pattern,pattern i=t.bin ∧
owner Y w Cs eta (lower w top xi (pattern i)) (width w top xi (pattern i)) a=some t.rational ∧
aligns a t.rational (f i) :=by
proof · 9
lines
obtain ⟨pre,p,tail,heq,_hindex,hbin,_hp,hs,ho,ha,_hbefore⟩ :=
sourceTag_witness Y w Cs eta (lower w top xi) (width w top xi)
(label (zero_lt_one.trans hw) htop hxi) a (List.ofFn f) ht
havehp : p ∈List.ofFn f :=by rw [heq]; simp
obtain ⟨i,hi⟩ :=List.mem_ofFn.mp hp
have hl := actual_choice_label hw htop hxi pattern f hf i
rw [← hi,hl] at hbin hs ho
rw [← hi] at ha
exact ⟨i,Finset.mem_filter.mpr ⟨Finset.mem_univ _,hs⟩,hbin.symm,ho,ha⟩