import Cloning.PBWSymmetricFrameRatePhysical import Cloning.PBWSymmetricFrameRateWeightSpace /-! Symmetric ONBs of the actual exact Cartan-weight blocks, with one `N⁻¹/²` constant and one threshold for every block of retained height. -/ noncomputable section open scoped ComplexOrder InnerProductSpace Topology BigOperators open Filter namespace Cloning.TensorLie open PBWSymmetricFrame Cloning.PCT set_option backward.isDefEq.respectTransparency false set_option maxHeartbeats 1200000 variable {d : ℕ} theorem length_le_loweringHeight (w : List (PositiveRoot d)) : w.length≤loweringHeight w := by induction w with | nil => rfl | cons a w ih => have := a.height_pos; simp only [List.length_cons,loweringHeight]; omega def weightRawFrame (mu : Fin d→ℕ) (hmu : Antitone mu) (R : ℕ) (η : Fin d→ℤ) (k : WeightOccupation d R η) : TensorRegister (∑a,mu a) (Fin d) := normalizedLoweringWord (partitionHighestTensor mu hmu) mu (canonicalWord k.val.val) def weightSymmetricFrame (mu : Fin d→ℕ) (hmu : Antitone mu) (R : ℕ) (η : Fin d→ℤ) : WeightOccupation d R η→TensorRegister (∑a,mu a) (Fin d) := by classical exact symmetricFrame (weightRawFrame mu hmu R η) theorem weightRawFrame_span (mu : Fin d→ℕ) (hmu : Antitone mu) (hgap : ∀a : PositiveRoot d,0canonicalWord k.val have hwords : ∀i j,(words i).Perm (words j)↔i=j := by intro i j simp only [words,canonicalWord_perm_iff,Subtype.val_inj] have hlen : ∀i,(words i).length≤R := fun i=> (length_le_loweringHeight _).trans (by rw [canonicalWord_height]; exact i.property) let A := wordGramConstant R words*rootErrorRateConstant (R*d)/Real.sqrt c let D : ℝ := Fintype.card (HeightOccupation d R) let C := D^2*A have hA : 0≤A := div_nonneg (mul_nonneg (wordGramConstant_nonneg _ _) (rootErrorRateConstant_nonneg _)) (Real.sqrt_nonneg c) have hC : 0≤C := mul_nonneg (sq_nonneg _) hA have hN : Tendsto (fun N : ℕ=>c*(N:ℝ)) atTop atTop := tendsto_natCast_atTop_atTop.const_mul_atTop hc have hz : Tendsto (fun N : ℕ=>C/Real.sqrt (N:ℝ)) atTop (𝓝 0) := tendsto_const_nhds.div_atTop (Real.tendsto_sqrt_atTop.comp tendsto_natCast_atTop_atTop) refine ⟨C,hC,?_⟩ filter_upwards [hN.eventually (eventually_ge_atTop (max 1 (2*((((R*d:ℕ):ℝ))+1)))), hz.eventually (eventually_lt_nhds zero_lt_one)] with N hlarge hsmall intro mu hmu hgap η hη have hpos : ∀a : PositiveRoot d,0 (by have := (le_max_left _ _).trans hlarge; linarith : 0k.val) Subtype.val_injective have hbound : (Fintype.card (WeightOccupation d R η):ℝ)^2*(A/Real.sqrt (N:ℝ))≤ C/Real.sqrt (N:ℝ) := by dsimp only [C] rw [mul_div_assoc] apply mul_le_mul_of_nonneg_right _ (div_nonneg hA (Real.sqrt_nonneg _)) exact pow_le_pow_left₀ (Nat.cast_nonneg _) hcard 2 obtain ⟨hon,hspan,he⟩ := symmetricFrame_properties v _ herr (hbound.trans_lt hsmall) have hs : Submodule.span ℂ (Set.range (symmetricFrame v))= cyclicSector (partitionHighestTensor mu hmu) ⊓ cartanWeightSpace (∑a,mu a) mu η := hspan.trans (weightRawFrame_span mu hmu hpos R η hη) let S := cyclicSector (partitionHighestTensor mu hmu) ⊓ cartanWeightSpace (∑a,mu a) mu η have hm (i : WeightOccupation d R η) : symmetricFrame v i∈S := hs.le (Submodule.subset_span (Set.mem_range_self i)) let f : WeightOccupation d R η→S := fun i=>⟨symmetricFrame v i,hm i⟩ have hf : Orthonormal ℂ f := by rw [orthonormal_iff_ite] exact orthonormal_iff_ite.mp hon have hfs : Submodule.span ℂ (Set.range f)=⊤ := (Submodule.span_range_subtype_eq_top_iff S hm).mpr hs let b : OrthonormalBasis (WeightOccupation d R η) ℂ S := OrthonormalBasis.mk hf hfs.ge refine ⟨b,fun i=>?_,fun i=>?_⟩ · have hb : b i = f i := congrFun (OrthonormalBasis.coe_mk hf hfs.ge) i exact congrArg (fun x : S => (x : TensorRegister (∑a,mu a) (Fin d))) hb · exact (he i).trans hbound end Cloning.TensorLie