import YM.MergeProof.North.Antique import YM.MergeProof.North.Apiary import YM.MergeProof.Temper import YM.MultipleContact.Bunch.Focal import YM.MultipleContact.Bunch.Dew import YM.MultipleContact.Bunch.Gush import YM.MultipleContact.Bunch.Sugary import YM.MultipleContact.Bunch.Stained import YM.MultipleContact.Bunch.Stator import YM.MultipleContact.Bunch.Fermi import YM.MultipleContact.Bunch.Corn import YM.MultipleContact.Bunch.Lyme import YM.MultipleContact.Bunch.Botan import YM.MultipleContact.Bunch.Junction import YM.MultipleContact.Bunch.Nigella import YM.MultipleContact.Bunch.Buoy import YM.MultipleContact.Bunch.Gild import YM.MultipleContact.Bunch.Farr import YM.MultipleContact.Bunch.Billow import YM.MultipleContact.Bunch.Blot import YM.MultipleContact.Bunch.Pond import YM.MultipleContact.Bunch.Shan import YM.MultipleContact.Bunch.SkyFall import YM.MultipleContact.Bunch.Quark import YM.MultipleContact.Bunch.Menu import YM.MultipleContact.Bunch.Platform import YM.MultipleContact.Bunch.Islands import YM.MultipleContact.Bunch.Quiet import YM.MultipleContact.Bunch.Price import YM.MultipleContact.Bunch.Wraith import YM.MultipleContact.Bunch.Thumb import YM.MultipleContact.Bunch.Antique import YM.MultipleContact.Bunch.Apiary /- generalized from YM.MergeProof.North.Stable to arbitrary arity -/ set_option autoImplicit false set_option linter.unusedSectionVars false noncomputable section namespace YM.MergeProof.BatchRibbons variable {slot:Type}[Fintype slot][DecidableEq slot][Inhabited slot] open Function Filter Lattice RG Pressure Wilson Finset MeasureTheory open Push Marker Accent BatchRibbon Local Menu Extra.Histories Motion Merge PhysicalNext.Repeat Lotus open Extra.Multi GridApprox.Nil open Extra.Trajectories open scoped Topology BigOperators Classical variable {V : Type}[Fintype V][DecidableEq V]{G:Gauge} variable (A:RG.History G) (N m p:ℕ) local notation "f"=> A.S.side (m+1) p local notation "c"=> A.S.side m p local notation "X0"=> A.rep N p m local notation "X1"=> A.rep N p (m+1) local notation "Z"=> A.levels.clock.op m p local notation "P0"=> (A.levels.budget m) local notation "P1"=> (A.levels.budget (m+1)) variable {x d t u w :ℝ} {I: Name V slot→ℝ} {J:Name V slot→ℝ} {θ:Config G (A.S.side (m+1) p)→Poly (Aged V slot)} {o:Name V slot→Site (A.S.side (m+1) p)} {F: Name V slot→ Config G (A.S.side (m+1) p)→ℂ} {L: Name V slot→ Res G (A.S.side (m+1) p)} {F': Name V slot→ Config G (A.S.side m p)→ℂ} {L': Name V slot→ℕ→ Config G (A.S.side m p)→ℂ} {D:GaugeDoor (A.rep N p (m+1)) (A.rep N p m)} (C:ℕ→ℕ) {P:V→Motion}{E:V→Site (A.S.side m p)}{v:V}{B:V→Equiv.Perm V} set_option quotPrecheck false local notation "Ω"=> (Z).ratio.parent ∘ o local notation "ρ"=> (Z).push (X1).beta θ -- S contract. station Law. lemma freshArc (h:A.Selected)(hm:m(Z).ratio.embed (E i)) B o I w 1)(hX:(P1).supportExponent-4≤w)(hO:Occupancy o (C m))(hO':Occupancy ((Z).ratio.parent ∘ o) (C m)) (hT:∀ i,i≠v→∀ j:slot,I (i,j)=I (v,j)) {s r:slot→ℝ}{δ:Name V slot→ℂ}(hc:∀ i:Name V slot,2*I i*s i.2 ≤ 1)(hy:∀ i:Name V slot,I i*r i.2≤1) (hK:∀ i:slot,let y: Name V slot:=(v,i);∃ p:Set Wing,p.Finite∧ Tale p (o y) (Ω y) 1 (F y) (L y) (profile (X0).activities (L' y)) (δ y) (s i) (r i) D) (hp:chimes v P E B o (Ω) F L (fun i=>profile (X0).activities (L' i)) δ Z) (hH:∀ i,Nonempty ((X1).activities.Moves (P i).1 ((Z).ratio.embed (E i)))) : Arc X0 F' L' (ρ) v P E B (Ω) (fun i=>d*I i) ((P0).supportExponent+1/2) ((P0).supportExponent+1) 1 u d δ :=by let T:= fun i=> d*I i; have ht i:0 < T i:=mul_pos hu.hats.1 (hI i) have hK': (P0)=(X0).p:=(h.represents N p m hm.le).vac.symm; have hk:(P1)=(X1).p:=(h.represents N p _ hm).vac.symm have hh := h'.prune (e:=d) hI ht (slighter hI ht (w:=d) (by intro i;rfl) hu.hats.1.le hu.hats.2) hu.hats.1.le (show (P1).supportExponent-4+0≤ w from by rwa [add_zero]) (le_of_eq (mul_one d)) apply ranch (d:=d) H.tunes H.propagate hp (fun i=>(hH i).some) ht (fun i hi j=> congr_arg (d*·) (hT _ hi j)) hK hO hu.hats.1.le ?_ ?_ ?_ ?_ (h.represents N p _ hm).good hh ?_ H.contact (A.levels.transition_mass ..) hO' hr · rw [← hk]; exact hu.copper · rw [← hk];linarith only · intro i; change 2* (d* _) * _ ≤ _; calc _ = d*(2*I i*s i.2):= by ring _ ≤ _ := mul_le_of_le_one_right hu.hats.1.le (hc i) · intro i; exact (le_of_eq (mul_assoc ..)).trans (mul_le_of_le_one_right hu.hats.1.le (hy i)) · rw [← hK']; linarith only linarith only [hu.exp.2] lemma descended (h:A.Selected)(hm:md*I i) J (1/2) 1 (Aged V slot)) {δ:Name V slot→ℂ} (hr:Arc (X0) F' L' (ρ) v P E B (Ω) (fun i=>d*I i) ((P0).supportExponent+1/2) ((P0).supportExponent+1) 1 u d δ) (hy:∀ i,Dominated (L' i))(hz:∀ i U,((ρ) U).part ((Aged V slot).fire i)=coin (X0) (F' i) (L' i) U): Serves (X0) F' (fun i=>profile (X0).activities (L' i)) (ρ) v P E B (Ω) J (P0).supportExponent 1:=by have hA:= h.represents N p m hm.le apply thru («Z»:=1) hr hA.good.labels (fun i=>mul_pos hu.hats.1 (hI _)) hu.hats.1.le hT (by linarith only [hu.exp.1]) ?_ hJ (hA.vac ▸ hv) zero_le_one (by simp) ?_ hz hy (fun U=>(Tour.bright A h N p m hm.le U).ne') · rw [hA.vac]; exact hu.stakes.1.trans_eq (by ring) rw [hA.vac,one_mul]; exact hu.stakes.2 end YM.MergeProof.BatchRibbons