cfahlgren1/math / lean /OAI /Computability /Logspace /QueryCombinators.lean
cfahlgren1's picture
download
raw
21 kB
22
abbrev Sight:=Cub ℕ ℕ
23
abbrev Kiwi:=Cub ℕ History
30
abbrev StampX (x:ℕ)(h:ℕ)(r:Dome)(u c:ℕ):= Fret.Punct (r.chord u 0 x).head c h
31
lemma seal0 (he:p.Suite u)(hi:2  ≤  c):StampX q 0 p u c:= by
proof · 2 lines
   have hs:=he.well.1; unfold StampX Fret.Punct; rw [lb_zero]; change 1+1 ≤ c*p.D u
   nlinarith
34
lemma seal1 (he:p.Suite u)(hi:2 ≤ c) :StampX q 1 p u c:= by
proof · 2 lines
   have hs:=he.well.1; unfold StampX Fret.Punct; rw [lb_one]; change 1+1  ≤  c*p.D u
   nlinarith
37
lemma seal_bit (he:p.Suite u)(hi:2 ≤ c) (b:Bool):StampX q (enc b) p u c:=by
proof · 3 lines
   cases b
   · exact seal0 p he hi
   exact seal1 p he hi
41
lemma seal_mark {H:ℕ}{w:Tape}{V:ℝ}(he:p.Suite u)(hi:Dome.Bullet.roomS ≤ c)
   (hv:Checked w V H){t:ℕ}(hh:t ≤ H): StampX q (enc (dsign w t)) p u c:=by
proof · 3 lines
   have hr:= lb_mono (slate_le _ (safe_d hv hh))
   unfold StampX Fret.Punct; change _+1  ≤ c*p.D u
   unfold Dome.Bullet.roomS at hi; have he1:=he.well.1; nlinarith

A reserved opaque motion; synaptic grab may also return "no". (motion called only at address clock=0; enclosing data operations strip their shot clock while keeping bounded record).

50
structure Liaison (x:ℕ) (u:ℕ)(t i:ℕ) : Prop where
body · 4 lines
   pays: p.W (cell t)+p.D u ≤ p.W u
   xem:x∈p.P
   holds:p.dual t i
   ready:p.Streams t (p.curve t)
56
def onyx (f:Kiwi) (s:Scheme)(b:Bool)(x:Word)(a:Slip):ℕ:=
body · 1 line
      s.before b x (f.f x (Scheme.token a.1).1)
58
lemma onyxK(f:Kiwi)(s:Scheme)(b):Kn (onyx f s b):=
proof · 1 line
      (s.beforeK b).comp (f.runs.comp (tokenK.left.comp Kn.first))
60
def walk (s:Scheme)(f:Kiwi)(b:Bool)(m:Bool):Cog :=
body · 1 line
      .toss ⟨_,onyxK f s b⟩ (if m then ⟨_,Kn.next⟩ else ⟨_,Kn.first.right.tuple Kn.next.right⟩)
68
lemma shares (b:Bool)(a:Pane)(hp:p.r.proper a)(hs:f.f p.x q=(t,i)):
     ((p.chord u x q).seat (glove a x)).comp 0 c (walk p.s f b true) (0,glove a x)
                                (AtM (p.curve t i b x) a x):= by
proof · 11 lines
   let P:=fun x=> (p.chord u x q).seat (glove a x)
   have hz (x:ℕ)(h:x∈p.P):(P x).OK:=hu.pit h q _ ⟨a,hp,rfl⟩
   have hy := hu.pull_shot he.pays x 0 q (seal0 p hu hc (q:=q)) (by omega:1 ≤ c) ((p.s.loc b).f p.x (t,i))
   refine Lot.Mane.toss (q':=p.pulseQ t i b) (a':=AtM (p.curve t i b x) a x) ?_ rfl
               (plight (p:=P x) (seal0 p hu hc (q:=q)) (hz _ he.xem) (by omega))
               ?_ hy (he.ready.runs i he.holds x he.xem b a hp)
   · change onyx f p.s b p.x (postcard q 0,0)=_
     unfold onyx; simp only [Scheme.token,postcard,dec_round,hs]
   cases hh:p.curve t i b x with
   | none=> exact plight (p:=P x) (seal0 p hu hc (q:=q)) (hz _ he.xem) (by omega)
   | some v=> exact plight (p:=P v) (seal1 p hu hc (q:=q)) (hz _ (he.ready.swaps i he.holds x he.xem b v hh).1) (by omega)
83
lemma stroll {j n:ℕ}(hr:StampX q n p u c) (b:Bool)(a:Pane)(hp:p.r.proper a)
     (hs:f.f p.x q=(t,i)) (hz:p.curve t i b x=some y):
    ((p.chord u x q).seat (glove a x)).comp j c (walk p.s f b false) (n,glove a x) (n,glove a y):= by
proof · 11 lines
   let P:=fun x=>(p.chord u x q).seat (glove a x)
   have hl(x:ℕ)(h:x∈p.P):(P x).OK:=hu.pit h q _ ⟨a,hp,rfl⟩
   have hy:=he.ready.swaps i he.holds x he.xem b y hz
   refine Lot.Mane.toss (q':=p.pulseQ t i b) (a':=(1,glove a y)) ?_ rfl
          (plight (p:=P x) hr (hl _ he.xem) (by omega)) (plight (p:=P y) hr (hl _ hy.1) (by omega)) ?_ ?_
   · change onyx f p.s b p.x (postcard q j,n)=_
     unfold onyx; simp only [Scheme.token,postcard,dec_round,hs]
   · have hx:=hu.pull_shot he.pays x 0 q hr (by omega: 1 ≤ c) ((p.s.loc b).f p.x (t,i))
     refine ⟨hx.1,le_trans hx.2 ?_⟩; change c*0+c*c*(p.W u-(p.l.book _).w) ≤ c*j+c*c*(p.W u-(p.l.book (p.pulseQ t i b)).w)
     rw [mul_zero,zero_add]; exact Nat.le_add_left _ _
   have hz' := he.ready.runs i he.holds x he.xem b a hp; rw [hz] at hz'; exact hz'
99
lemma street (hz:p.curve t i true x=some y):Liaison p y u t i :=
proof · 1 line
    ⟨he.pays,(he.ready.swaps i he.holds x he.xem true y hz).1, he.holds,he.ready⟩
103
def escort (s:Scheme) (f:Kiwi) (q:Cog) : Cog:=
body · 1 line
     .seq (walk s f true false) (.seq q (walk s f false false))
108
lemma cups (hs:f.f p.x q=(t,i))(hz:p.curve t i true x=some y) (g:Cog)
     {H v:ℕ}(hv: StampX q v p u c)(hr:(p.chord u y q).hear H c g 0 v):
    (p.chord u x q).hear H c (escort p.s f g) 0 v:= by
proof · 4 lines
   rintro _ ⟨f,hf,rfl⟩
   exact .seq (stroll hu hc he (seal0 p hu hc) true f hf hs hz) (.seq
              (hr _ ⟨f,hf,rfl⟩) (stroll hu hc (street he hz)
                  hv false f hf hs (he.ready.swaps i he.holds x he.xem true y hz).2))
116
lemma bowls (hi: Bullet.roomS ≤ c)
     (hs:f.f p.x q=(t,i))(hz:p.curve t i true x=some y) (g:Cog)
     {H v:ℕ}{V:ℝ}(hr:(p.chord u y q).band c H v g V):
    (p.chord u x q).band c H v (escort p.s f g) V:=by
proof · 6 lines
    obtain ⟨w,h⟩:=hr
    have hb:Checked w (V/massB v (p.D u)) H:= (h _ ⟨clearG,p.cleared,rfl⟩).1
    have hp (t:ℕ)(ht:t ≤ H): hear (p.chord u y q) t c g 0 (enc (dsign w t)):= fun x hx=>
                                                 (h _ hx).2.digits t ht
    exact ⟨w,fun a ha=> ⟨hb,⟨fun t ht=> cups hu hc he hs hz g (seal_mark _ hu hi hb ht)
                                                      (hp t ht) _ ha⟩⟩⟩
133
abbrev matchQ (i:ℕ) : Flag:= ⟨_,Kn.next.left.eq (Kn.fix i)⟩
134
def through (p:ℕ → Cog):ℕ → Cog
body · 2 lines
    | 0=>.seq Cargo.knock (p 0)
    | i+1=>.bif (matchQ (i+1)) (.seq Cargo.knock (p (i+1))) (through p i)
137
def dial (u:Cog)(p:ℕ → Cog)(i:ℕ):Cog:=
body · 1 line
    .seq (Cog.ren ⟨_,Cargo.stripK⟩ u) (through p i)
140
lemma remise (q:Port){c k a t m:ℕ}{v:ℕ → Cog}(h:k ≤ m)
    (hi:q.l.state c ⟨q.w,t⟩ (k,q.src))(he:q.comp t c (v k) (q.s 0) (q.s a)):
    q.comp t c (through v m) (q.s k) (q.s a):=by
proof · 8 lines
    have hf:q.comp t c (.seq Cargo.knock (v k)) (q.s k) (q.s a):=
            .seq (etches _ _ (i:=k) rfl hi he.spots.1) he
    induction m with
    | zero=>have hv:k=0:=by omega
            subst k; exact hf
    | succ i ih=> by_cases hh:k=i+1
                  · subst k; exact .yes (show decide (i+1=i+1)=true by simp) hf
                  exact .no (show decide (k=i+1)=false by simp [hh]) (ih (by omega))
152
lemma rosary {t y:ℕ}(h:k ≤ m)(hp:p.rite c C k)(he:p.hear t c (v k) 0 y):
        p.hear t c (dial C v m) 0 y:=by
proof · 2 lines
    intro x hx; have hz:=Cargo.expands (p:=p.seat x) (t:=t) (hp x hx)
    exact .seq hz (remise (p.seat x) h hz.spots.2 (he x hx))
156
lemma parcel {H v0:ℕ}{V:ℝ}(h:k ≤ m)(hp:p.rite c C k)(he:p.band c H v0 (v k) V):
        p.band c H v0 (dial C v m) V:=by
proof · 3 lines
   obtain ⟨w,hq⟩:=he
   have he(t:ℕ)(hr:t ≤ H): p.hear t c (v k) 0 (enc (dsign w t)):= fun x hx=> (hq x hx).2.digits t hr
   exact ⟨w,fun _ hx=> ⟨(hq _ hx).1,⟨fun t ht=> rosary h hp (he t ht) _ hx⟩⟩⟩

Probe a pure function of (info, cursor) before any descent.

178
def search (g:Cub (ℕ×ℕ) ℕ):Cog :=
body · 3 lines
    let h:= (g.runs.comp ((tokenK.left.comp Kn.first).tuple
                                 (((Kn.unpack (α:=Foot)).comp Kn.next.right)).left))
    Cog.edit ⟨_,h.tuple Kn.next.right⟩
184
lemma found (hu:p.Suite u)(hx:x∈p.P)(hc:2 ≤ c)
   {g:Cub (ℕ×ℕ) ℕ}{m:ℕ}(hg:g.f p.x (q,x)=m)(hp:StampX q m p u c):
   (p.chord u x q).rite c (search g) m:=by
proof · 6 lines
    rintro _ ⟨a,ha,rfl⟩
    let S:= (p.chord u x q).seat (glove a x)
    have hf:S.OK:=hu.pit hx _ _ ⟨a,ha,rfl⟩
    refine Lot.Mane.edit ?_ (plight (p:=S) (seal0 p (q:=q) hu hc) hf (by omega)) (plight (p:=S) hp hf (by omega))
    change (g.f _ ((Scheme.token _).1,(dec _:Foot).1),_)=_
    simp only [token,postcard,glove,dec_round]; exact congrArg (fun i=> (i,enc (x,a))) hg
193
def plumb (m:ℕ):Cog:= etch (α:=ℕ) (fun _ _=>m) (Kn.fix m)
194
lemma pureQ (hu:p.Suite u)(hx:x∈p.P)(hc:2 ≤ c)
   (m:ℕ)(hp:StampX q m p u c) : (p.chord u x q).rite c (plumb m) m:= by
proof · 1 line
    exact pointed0 (hu.pit hx q) hc (seal0 p (q:=q) hu hc) hp
197
abbrev chose (g:Cog)(w:ℕ):Cog:=Cargo.choose g Cargo.knock (plumb w)
198
abbrev win(a n:ℕ):ℕ:= if a=0 then 0 else n
199
lemma picks (hu:p.Suite u)(hx:x∈p.P)(hc:2 ≤ c)(a n:ℕ){g:Cog}
    (hg:(p.chord u x q).rite c g a)(hp:StampX q n p u c) :
    (p.chord u x q).rite c (chose g n) (win a n):=by
proof · 3 lines
    apply Seats.steer hg
    · intro h; unfold win; rw [ite_eq_left h]; exact Seats.blankD (hu.pit hx q) hc
    intro h; unfold win; rw [ite_eq_right h]; exact pureQ p hu hx hc _ hp
206
abbrev demand (g w:Cog):Cog:=Cargo.choose g Cargo.knock w
207
lemma wanted (hu:p.Suite u)(hx:x∈p.P)(hc:2 ≤ c)(a n:ℕ){g w:Cog}
    (hg:(p.chord u x q).rite c g a)(hw:a≠0→(p.chord u x q).rite c w n) :
    (p.chord u x q).rite c (demand g w) (win a n):=by
proof · 3 lines
    apply Seats.steer hg
    · intro h; unfold win; rw [ite_eq_left h]; exact Seats.blankD (hu.pit hx q) hc
    intro h; unfold win; rw [ite_eq_right h]; exact hw h
213
lemma win_stamped (hu:p.Suite u)(hc:2 ≤ c)(a n:ℕ)(he:StampX q n p u c):
     StampX q (win a n) p u c:= by unfold win; split; exact seal0 p hu hc; exact he
215
lemma brilliant(p b:Bool) : win (enc p) (enc b)=enc (p&&b):=by cases p <;> cases b <;> rfl

Two threshold constants compiled as motions.Literal recipes are regenerated without using the cursor.

219
lemma gild (u v:ℕ)(_:u ≤ v):1 ≤  v+1:= Nat.le_add_left _ _
220
abbrev clan (f:Sight)(w:ℕ):Kiwi:=⟨_, f.runs.tuple (Kn.fix w)⟩
222
abbrev garnish (P:Cub ℕ (ℕ×ℕ×NoteM)): Sight:=
body · 2 lines
   let h:= Kn.wash.comp (P.runs.left.tuple (Kn.wash.comp P.runs.right))
   ⟨_,h⟩

one visit interpreted as a boolean at the endpoint, payload already rebased.

226
lemma maskB {h:Harp}{v:Harp.Wick}{b i x q:ℕ}{f:Option (ℕ×ℕ)}{C:Cub ℕ (ℕ×ℕ×NoteM)}
    (hu:v.d.Suite u)(hx:x∈v.d.P)(hc:2 ≤ c)(hh:v.d.W b+v.d.D u ≤ v.d.W u)
    (hz:v.Veil h b){m:NoteM}(hr:C.f v.d.x q=(b,i,m))(he:v.Ok m)
    (hf:v.r.Flora h.p b i x f)(a:Bool)
    (ha:match f with
proof · 16 lines
        | none=>a=false
        | some (_,y) => ∀ p,v.d.r.proper p→ h.lit v.d.x m y p=(a,p)):
   (v.d.chord u x q).rite c (Dome.Bullet.snap (garnish C)) (enc a) :=by
   have hg:(garnish C).f v.d.x q=hole b (enc (i,m)):=by
            change enc ((C.f _ _).1,enc (C.f _ _).2)=_
            rw [hr]; rfl
   apply Bullet.copy v.d hu hc hx hh hg (t:=0) (seal_bit _ hu hc (q:=q) a)
   intro p hp
   have ht:= hz _ _ he _ _ hf p hp
   change v.d.talk _ _ _
   cases f with
   | none=> have hs:a=false:=ha
            subst a; exact ht
   | some g=> obtain ⟨t,y⟩:=g
              dsimp only [Harp.Wick.state] at ha ht
              rw [ha p hp] at ht; exact ht
250
structure Gate where
body · 4 lines
    grab:Cog
    top:ℕ
    hue:Sight
    loyal:Cog
258
abbrev reach (k:ℕ):Kiwi:=clan g.hue (k-1)
259
def garden (s:Scheme):Cog:=
body · 3 lines
    let w(k):= if k=0 then Cargo.knock else
                       Pier.escort s (g.reach k) (chose g.loyal k)
    Iris.dial g.grab w g.top
263
def openE (s:Scheme)(f:ℕ → Cog) : Cog :=
body · 1 line
    Iris.dial (g.garden s) f g.top
267
structure Crest (p:Dome) (u q c x i:ℕ):Prop where
body · 6 lines
    safe:(p.chord u x q).rite c g.grab i
    upper0:i ≤ g.top
    east:p.Suite u
    fine:x∈p.P
    tall:2 ≤ c
    nice:StampX q i p u c
276
lemma asleep (h:g.Crest p u q c x 0):
     (p.chord u x q).rite c (g.garden p.s) 0:=by
proof · 2 lines
    apply Iris.rosary (t:=0) h.upper0 h.safe
    exact blankD (h.east.pit h.fine q) h.tall
280
lemma morning (h:g.Crest p u q c x i)(he:i≠0){t:ℕ}(hc:g.hue.f p.x q=t)
    (ht:Liaison p x u t (i-1))(hz:p.curve t (i-1) true x=some y)
    (hp:(p.chord u y q).rite c g.loyal z):
    (p.chord u x q).rite c (g.garden p.s) (win z i):=by
proof · 5 lines
   apply Iris.rosary h.upper0 h.safe
   rw [ite_eq_right he]
   apply cups h.east h.tall ht ?_ hz _ (win_stamped p h.east h.tall z i h.nice)
          (picks p h.east (street ht hz).xem h.tall z i hp h.nice)
   exact congrArg (fun m=> (m,i-1)) hc

Enter a transparent Bernoulli coin (pure rational expression).

306
abbrev Tear:=Cub History Coin
307
abbrev here (g:Tear) :Cub CoinQuery Coin :=
body · 1 line
    ⟨_,g.runs.comp (Kn.first.tuple (((Kn.unpack (α:=Foot)).comp Kn.next).left))⟩
309
abbrev moonF (g:Tear)(c:ℕ):Lyric:=.solo c (here g)
310
abbrev opaque0(f:Sight)(i:ℕ):Lyric:=.use i (Bullet.snap f)
311
abbrev syrup (g:Coin):Tear:=⟨_,Kn.fix g⟩
312
abbrev first0 (g:Cub ℕ Coin):Tear:=⟨_,g.runs.comp Kn.first⟩
313
abbrev awry(p:Knob)(i:ℕ):Tear:= first0 ⟨_,scaleK p i⟩
316
lemma occlude (he:Standard (p.chord a x q) k H)(g:Tear)(r:ℕ)
   {v:ℝ}(hh:(g.f p.x (q,x)).v=v)(hb:|v|  ≤  massB r (p.D a)):
   Chor k c H (p.chord a x q) (moonF g r) v:=by
proof · 5 lines
   subst v
   apply Chor.played he.st he.he ?_ hb
   rintro _ ⟨a,ha,rfl⟩
   change g.f _ (_,(dec (glove _ _):Foot).1)=_
   rw [glove,dec_round]; rfl
324
lemma scalingF (he:Align (p.chord a x q).head k)(r:ℕ):
   ((awry k r).f p.x (q,x)).v=massB r (p.D a):= scalen he ..
327
lemma normalizeF (u:p.Suite a)(r:Sight)(hc:Bullet.roomS ≤ c)(hi:x∈p.P)
   {b n t j:ℕ}(hf:r.f p.x q = hole b n)(he:p.W b+p.D a ≤ p.W a)
   {v:ℝ}(hg:p.Voice b x n t j v)(hh:H ≤ t):
   band (p.chord a x q) c H 0 (Bullet.snap r) (v/(2:ℝ)^j):=by
proof · 2 lines
   refine Bullet.clef p u hc hi he hf hh ?_
   obtain ⟨w,h,hv⟩:=hg; refine ⟨w,?_,hv⟩; simpa only [Nat.zero_mul,pow_zero,div_one] using h
334
abbrev shade (f:Cog)(c:ℕ)(g:Tear):Lyric:= times (.use 0 f) (moonF g c)
335
abbrev petal(r:Sight)(c:ℕ)(g:Tear):Lyric:= shade (Bullet.snap r) c g
336
abbrev blossoms(f:Kiwi)(s:Scheme)(r:Sight)(c:ℕ)(g:Tear):Lyric := shade (Pier.escort s f (Bullet.snap r)) c g
337
lemma cast {f:Cog}{g:Tear}{j r:ℕ}(he:Standard (p.chord a x q) k H)
    {v:ℝ}(hh:band (p.chord a x q) c H 0 f (v/(2:ℝ)^j))
    (hb:(g.f p.x (q,x)).v=(2:ℝ)^j)(hr:(2:ℝ)^j ≤ massB r (p.D a)):
    Chor k c H (p.chord a x q) (shade f r g) v:=by
proof · 2 lines
    have hf:=occlude (c:=c) he g r hb (by rwa [abs_of_pos (by positivity)])
    convert he.mult0 (Chor.byear hh) hf using 1; field_simp
343
lemma pour (u:p.Suite a)(r:Sight)(hc:Bullet.roomS ≤ c)(hi:x∈p.P)
   {b n t j:ℕ}(hf:r.f p.x q = hole b n)(he:p.W b+p.D a ≤ p.W a)
   {v:ℝ}(hg:p.Voice b x n t j v)(hh:H ≤ t)
   (h0: Standard (p.chord a x q) k H){g:Tear}{d:ℕ}(hv:(g.f p.x (q,x)).v=(2:ℝ)^j)
   (hl:(2:ℝ)^j ≤ massB d (p.D a)):Chor k c H (p.chord a x q) (petal r d g) v :=
proof · 1 line
   cast h0 (normalizeF u r hc hi hf he hg hh) hv hl
349
lemma seeds {f:Kiwi}(u:p.Suite a)(r:Sight)(hc:Bullet.roomS ≤ c){ψ m:ℕ}
    (h:Liaison p x a ψ m) (hs:f.f p.x q=(ψ,m))
    (hz:p.curve ψ m true x=some y)
   {b n t j:ℕ}(hf:r.f p.x q = hole b n)(he:p.W b+p.D a ≤ p.W a)
   {v:ℝ}(hg:p.Voice b y n t j v)(hh:H ≤ t)
   (h0: Standard (p.chord a x q) k H){g:Tear}{d:ℕ}(hv:(g.f p.x (q,x)).v=(2:ℝ)^j)
   (hl:(2:ℝ)^j ≤ massB d (p.D a)):Chor k c H (p.chord a x q) (blossoms f p.s r d g) v :=by
proof · 4 lines
   have hr:2 ≤ c:=by unfold Bullet.roomS at hc; omega
   apply cast h0 _ hv hl
   apply bowls u hr h hc hs hz
   exact normalizeF u r hc (street h hz).xem hf he hg hh

Ballot compilation including explicit reset to desired output exponent. (Called only on successful gate, fallback zero separately).

363
abbrev roost (r:Knob)(f:Lyric)(v:ℕ) : Cog:= Lyric.choir r (reset f v)
364
lemma onQ {s:Seats} (r:Knob)(f:Lyric)(v:ℕ)(ht: Standard s r T)
   {x:ℝ}(hp:Chor r c T s f x)(hc:1  ≤  c) (he:H+(tail (reset f v))*s.d  ≤  T)
   (hs:(cost (reset f v) c) ≤ d) (hr:|x|  ≤  massB v s.d) :
   s.band d H v (roost r f v) x:= Seats.flex (sing (ht.ring0 hp _ hr) hc he)
proof · 1 line
                                       (cost_hi (p:=reset f v) hc) hs le_rfl
370
abbrev snow (r:Knob)(v:ℕ) : Cog:= Lyric.choir r (son 0 v)
371
lemma steam {s:Seats} (r:Knob)(v:ℕ)(ht:Standard s r H)
   (hs:powder 100 ≤ c): s.band c H v (snow r v) 0:= by
proof · 2 lines
   have hp:Chor r 2 H s (son 0 v) 0:=by simpa only [Nat.cast_zero] using ht.shins 2 v 0 (by simp)
   exact flex (sing hp (by omega) (by simp [son,tail])) (cost_hi (p:=son 0 v) (c:=2) (by omega)) hs le_rfl
391
abbrev provided :Flag:= ⟨_,a.runs.comp (tokenK.left.comp Kn.first)⟩
392
def pleas (p q:Cog):Cog:= Cog.bif (provided a) p q
393
lemma picked {b _ _ _ _:ℕ}:0≤b:=Nat.zero_le _
394
lemma park {t c:ℕ} {f g:Cog}{r s:Site}{v:Port}
    (hp:a.f v.l.x v.info=true)(he:v.comp t c f r s):v.comp t c (pleas a f g) r s:=
proof · 1 line
    Lot.Mane.yes (by change a.f _ ((token (postcard _ _)).1)=_; rw [token,postcard,dec_round]; exact hp) he
397
lemma parks {t c:ℕ} {f g:Cog}{r s:Site}{v:Port}
    (hp:a.f v.l.x v.info=false)(he:v.comp t c g r s):v.comp t c (pleas a f g) r s:=
proof · 1 line
    Lot.Mane.no (by change a.f _ ((token (postcard _ _)).1)=_; rw [token,postcard,dec_round]; exact hp) he
400
lemma pinTrue {i T c:ℕ}{v:ℝ}{f g} (hp:a.f P.l.x P.info=true)(ht:P.band c T i f v):
    P.band c T i (pleas a f g) v:=by
proof · 2 lines
    obtain ⟨w,h⟩:=ht
    exact ⟨w,fun x hx=> ⟨(h _ hx).1,⟨fun t ht=>park a hp ((h _ hx).2.digits t ht)⟩⟩⟩
404
lemma pinFalse {i T c:ℕ}{v:ℝ}{f g} (hp:a.f P.l.x P.info=false)(ht:P.band c T i g v):
    P.band c T i (pleas a f g) v:=by
proof · 2 lines
    obtain ⟨w,h⟩:=ht
    exact ⟨w,fun x hx=> ⟨(h _ hx).1,⟨fun t ht=>parks a hp ((h _ hx).2.digits t ht)⟩⟩⟩

Constant scalar polymer. fourth powers of rising

410
abbrev ein:= kohn 1
411
abbrev deuce:=kohn 2
412
abbrev divN (f:Lyric)(n:ℕ) : Lyric := times f (bi .flip (kohn n) zeroE)
413
def sQ (f:Lyric) : Lyric:= Reed.Lu.inf ein (Reed.Lu.sup zeroE f)
414
def quat (f:Lyric):Lyric:= let q:=times f f; times q q
415
def takeF(f:Lyric):Lyric:= quat (sQ (times deuce f))
416
def faded (f:Lyric):Lyric:= divN (psum (takeF f) (diff ein (takeF (diff ein f)))) 2
418
def boostR (f:Lyric): Lyric:= faded (diff (times (kohn 4) f) ein)
419
def gammaR (f:Lyric): Lyric:= diff ein (faded (divN (diff (times (kohn 10) f) (kohn 5)) 3))
424
lemma divideF (i:ℕ)(hi:1 ≤ i): Chor k c T s (divN f i) (x/(i:ℝ)):=by
proof · 4 lines
    have hz := (h.rove c i).minuet h.sil h.st Doop.flip
    apply Eq.mp _ (h.mult0 he hz)
    rw [show Doop.val .flip _ 0 = (i:ℝ)⁻¹ from ?_,div_eq_mul_inv]
    change (max (i:ℝ) 1)⁻¹=(i:ℝ)⁻¹; rw [max_eq_left]; exact_mod_cast hi
429
lemma between0 : Chor k c T s (sQ f) (smooth x):=by
proof · 1 line
    exact h.lo0 (by simpa only [Nat.cast_one]  using h.rove c 1) (h.up0 h.sil he)
431
lemma quadrat:Chor k c T s (quat f) (x^4):=by
proof · 1 line
    convert h.mult0 (h.mult0 he he) (h.mult0 he he) using 1 <;> first | rfl | ring
433
lemma tapS : Chor k c T s (takeF f) (smooth (2*x)^4):=by
proof · 2 lines
    apply quadrat h; apply between0 h
    exact h.mult0 (h.rove c 2) he
436
lemma went : Chor k c T s (faded f) (fade x):=by
proof · 3 lines
    have hs:Chor k c T s ein 1:= by simpa only [Nat.cast_one]  using h.rove c 1
    apply divideF h _ 2 (by omega)
    exact h.additions (tapS h he) (h.dubs hs (tapS h (h.dubs hs he)))
440
lemma boosted : Chor k c T s (boostR f) (boost x):=by
proof · 2 lines
    have hs := went h (h.dubs (h.mult0 (h.rove c 4) he) (h.rove c 1))
    convert hs using 1 <;> first | rfl | unfold boost rising; ring_nf
443
lemma gammed : Chor k c T s (gammaR f) (gamma x):=by
proof · 3 lines
    have hs:=h.dubs (h.rove c 1) (went h (divideF h (h.dubs (h.mult0 (h.rove c 10) he)
                                  (h.rove c 5)) 3 (by omega)))
    convert hs using 1 <;> first | rfl | unfold gamma rising; ring_nf

Xet Storage Details

Size:
21 kB
·
Xet hash:
5d4c72f4b229646f8deae91431b7506de466b1709afd2a89e4a25234490ec3c1

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