2)\circ g(
      t_1) \\
    &= \bigvee_{ t_1+ t_2= t} h( t_2)\circ f( t_1)\vee \bigvee_{ t_1+
      t_2= t} h( t_2)\circ g( t_1) \\
    &= f{\mathrel{\mathop{\triangleright}}}h( t)\vee g{\mathrel{\mathop{\triangleright}}}h( t)=( f{\mathrel{\mathop{\triangleright}}}h\vee
      g{\mathrel{\mathop{\triangleright}}}h)( t)\,.
  \end{aligned}$$ The proof is complete.

Finally, a cycle in an RTEA results in a $^*$-operation:

Let $f \in {\mathcal F}$. The Kleene star of $f$ is the function $f^*\in {\mathcal F}$ such that $$\forall t\in {[ 0, \infty]}: f^*( t)= \bigvee_{n\ge 0} f^n( t)$$

Note that $f^*$ is defined for all $f\in {\mathcal F}$ because ${\mathcal F}$ is a complete lattice. We can now define the set of general real-time energy functions, corresponding to general RTEAs:

The set ${\mathcal E}$ of *real-time energy functions* is the subsemiring of ${\mathcal F}$ generated by ${\mathcal A}$, [*i.e.,*]{} the subset of ${\mathcal F}$ inductively defined by

-   ${\mathcal A}\subseteq {\mathcal E}$,

-   if $f, g\in {\mathcal E}$, then $f{\mathrel{\mathop{\triangleright}}}g\in {\mathcal E}$ and $f\vee g\in {\mathcal E}$.

We will show below that ${\mathcal E}$ is locally closed, which entails that for each $f\in {\mathcal E}$, also $f^*\in {\mathcal E}$, hence ${\mathcal E}$ indeed encompasses all RTEFs.

\[le:locallyclosed\] For every $f\in {\mathcal E}$ there exists $N\ge 0$ so that $f^*= \bigvee_{ n= 0}^N f^n$.

By distributivity, we can write $f$ as a finite supremum $
2)\circ g (
       t_1) \\ 
     & = \bigvee _ { t_1 + t_2= t } h (t_2)\circ f (t_1)\vee \bigvee _ { t_1 + 
       t_2= t } h (t_2)\circ g (t_1) \\ 
     & = f{\mathrel{\mathop{\triangleright}}}h (t)\vee g{\mathrel{\mathop{\triangleright}}}h (t)= (f{\mathrel{\mathop{\triangleright}}}h\vee 
       g{\mathrel{\mathop{\triangleright}}}h) (t)\, . 
   \end{aligned}$$ The proof is complete. 

 ultimately, a hertz in an RTEA results in a $ ^*$-operation: 

 Let $ f \in { \mathcal F}$. The Kleene star of $ f$ is the routine $ f^*\in { \mathcal F}$ such that $ $ \forall t\in { [ 0, \infty ] }: f^ * (t)= \bigvee_{n\ge 0 } f^n (t)$$ 

 Note that $ f^*$ is defined for all $ f\in { \mathcal F}$ because $ { \mathcal F}$ is a arrant wicket. We can now define the set of general real - prison term energy functions, equate to cosmopolitan RTEAs: 

 The set $ { \mathcal E}$ of * real - meter energy functions * is the subsemiring of $ { \mathcal F}$ generate by $ { \mathcal A}$, [ * i.e., * ] { }   the subset of $ { \mathcal F}$ inductively defined by 

 -    $ { \mathcal A}\subseteq { \mathcal E}$, 

 -    if $ f, g\in { \mathcal E}$, then $ f{\mathrel{\mathop{\triangleright}}}g\in { \mathcal E}$ and $ f\vee g\in { \mathcal E}$. 

 We will show below that $ { \mathcal E}$ is locally closed, which fee-tail that for each $ f\in { \mathcal E}$, also $ f^*\in { \mathcal E}$, hence $ { \mathcal E}$ indeed encompasses all RTEFs. 

 \[le: locallyclosed\ ] For every $ f\in { \mathcal E}$ there exist $ N\ge 0 $ so that $ f^*= \bigvee _ { n= 0}^N f^n$. 

 By distributivity, we can write $ f$ as a finite supremum $
2)\cirf g(
      t_1) \\
    &= \bigvee_{ t_1+ t_2= t} h( t_2)\circ f( j_1)\vwe \bigtee_{ t_1+
      t_2= t} f( t_2)\circ g( t_1) \\
    &= f{\mathrel{\matiop{\teiangoeright}}}h( t)\vee g{\mathrel{\oathop{\triwnglerigyt}}}h( u)=( f{\mathrel{\mathop{\tcjanglerlyht}}}h\vsc
      g{\mathrel{\mathok{\trianglerigvt}}}h)( t)\,.
  \end{aligtea}$$ Che proof is complete.

Finally, a cycle in an TTFA results in w $^*$-optraeion:

Mvt $f \in {\mathcal F}$. The Kleene stzr of $f$ is the functoon $f^*\in {\mathcal F}$ such thah $$\fogall t\in {[ 0, \infty]}: f^*( t)= \bigvee_{n\gg 0} f^g( t)$$

Note that $w^*$ is defintd for all $f\jn {\mathcal F}$ because ${\mathcal F}$ ks a eomplete lajcuce. Fe can now vefine the set of nvneral seal-timr energy functlons, rorrwsponding to general CTEAs:

The set ${\mathcal E}$ of *rean-tnme energy functions* us the vubsamirkbg uf ${\javhczl F}$ gfnecated by ${\mafhcal A}$, [*i.e.,*]{} tye subset of ${\mathcak S}$ inductively sefineq fy

-   ${\mathcal A}\subseteq {\mathcal E}$,

-   if $f, g\ih {\mathcal E}$, then $f{\mathrwl{\mathop{\triangleright}}}h\in {\mathcwl E}$ and $f\vee g\in {\mathcal E}$.

We will show below thad ${\maticxl T}$ lf oofally closed, which entails that for each $f\in {\iztncsl E}$, also $f^*\in {\iathcal E}$, hrnfe ${\iathcal E}$ indged encompzsses all RTEFs.

\[le:llcallycjosed\] For everr $f\im {\mathcal E}$ there exists $N\gw 0$ so that $f^*= \vigvee_{ n= 0}^N f^n$.

By didtributivitv, we csn wrote $f$ as a finite supreoum $
2)\circ g( t_1) \\ &= \bigvee_{ t_1+ h( f( t_1)\vee t_1+ t_2= t} &= t)\vee g{\mathrel{\mathop{\triangleright}}}h( t)=( g{\mathrel{\mathop{\triangleright}}}h)( t)\,. \end{aligned}$$ proof is complete. Finally, a cycle an RTEA results in a $^*$-operation: Let $f \in {\mathcal F}$. The Kleene of $f$ is the function $f^*\in {\mathcal F}$ such that $$\forall t\in {[ \infty]}: t)= 0} t)$$ Note that $f^*$ is defined for all $f\in {\mathcal F}$ because ${\mathcal F}$ is a lattice. We can now define the set of real-time energy functions, corresponding general RTEAs: The set ${\mathcal of energy functions* the of F}$ generated by A}$, [*i.e.,*]{} the subset of ${\mathcal F}$ inductively defined by - ${\mathcal A}\subseteq {\mathcal E}$, - if g\in {\mathcal $f{\mathrel{\mathop{\triangleright}}}g\in {\mathcal and g\in E}$. We will that ${\mathcal E}$ is locally closed, for each $f\in {\mathcal E}$, also $f^*\in {\mathcal hence ${\mathcal indeed encompasses all RTEFs. \[le:locallyclosed\] For $f\in {\mathcal E}$ there exists $N\ge 0$ so $f^*= \bigvee_{ n= 0}^N f^n$. By distributivity, we can write $f$ as a finite supremum
2)\circ g(
      t_1) \\
    &= \bigvee_{ t_1+ t_2= t} h( t_2)\circ f( t_1)\veE \bigvee_{ t_1+
      t_2= t} H( t_2)\cirC g( t_1) \\
    &= F{\maThRel{\mAthoP{\triangleright}}}H( T)\vee G{\mathrel{\mathop{\triangleRight}}}H( t)=( F{\MathREl{\MathoP{\triangLErIGHt}}}h\VeE
      g{\MatHrEL{\mAthop{\TriAngleriGht}}}h)( t)\,.
  \end{alIgnEd}$$ the proof is coMPlEte.

Finally, A cyCle in an RTEA rEsuLts in a $^*$-OpEraTIon:

LeT $f \iN {\mathCal F}$. ThE kleene Star of $f$ is ThE FunctiON $f^*\in {\matHCAl f}$ sucH that $$\forall t\in {[ 0, \infTY]}: f^*( T)= \Bigvee_{n\ge 0} f^n( t)$$

NoTe that $F^*$ iS DeFINed For All $f\in {\mathCaL F}$ becAUse ${\mathCAl f}$ IS A coMPlete lattice. WE can now defiNE thE set of GeNerAL real-tIme enErGY fuNctions, corrEspoNding to geNeral RteAs:

The sET ${\mathcaL E}$ of *reAl-tIme EnerGY fUnCtiOnS* Is tHE sUbsEMirIng of ${\matHcAl f}$ geneRateD BY ${\MAthcAl A}$, [*I.e.,*]{} thE subsEt of ${\mathcal F}$ iNduCtivELy dEfineD by

-   ${\maThcaL A}\SubseTeq {\matHcal E}$,

-   If $F, g\in {\mathcal E}$, theN $f{\maThrel{\mathOp{\tRiAngLeRight}}}G\In {\mathCal e}$ anD $f\vee g\iN {\mathcaL e}$.

We WiLL SHoW below that ${\mathcal E}$ Is LOCaLly closeD, which ENtAiLS that for EaCh $f\In {\maTHCal E}$, aLso $f^*\IN {\mAthcal E}$, hEnce ${\maTHcAl e}$ indeed EnCompasSeS alL RTeFs.

\[le:LOcalLyclosEd\] For eveRy $f\in {\MAthcal E}$ there exISts $N\ge 0$ so that $f^*= \BIgVEE_{ n= 0}^n F^n$.

By DisTributivity, We caN WritE $f$ as A FiNitE SupreMum $
2)\circ g(
      t_1) \\
   &= \big vee_{  t_ 1+t_ 2= t } h(  t_2)\circ f(t _1)\ vee \bigvee_{ t_1+
     t_ 2= t} h (  t _2)\c irc g(t _1 ) \\  &=f{ \ ma threl {\m athop{\ triangleri ght }} }h( t)\vee g { \m athrel{\ma tho p{\triangler igh t}}}h(  t )=( f{\ma thr el{\m athop{ \ triang leright}} }h \ vee
    g{\m a t hr el{\ mathop{\triangler i gh t }}}h)( t)\,.
 \end{ al i gn e d }$$  Th e proof is  c omple t e.

Fin a ll y , a c y cle in an RTE A results i n  a$^*$-o pe rat i on:

L et $f  \ i n { \mathcal F} $. T he Kleene  staro f $f$ i s  the fu nction  $f ^*\ in { \ ma th cal  F } $ s u ch  th a t $ $\forall  t \i n {[0, \ i n f t y]}:  f^ *( t )= \b igvee_{n\ge 0 } f ^n(t )$$ 

Not e tha t $f ^* $ isdefine d for  a ll $f\in {\math calF}$ becau se${ \ma th cal F } $ is a  co mpl ete lat tice. W e  ca nn o w  d efine the set of g en e r al  real-ti me ene r gy  f u nctions,  c orr espo n d ing t o ge n er al RTEAs :

The se t${\math ca l E}$of  *r eal -time ener gy fun ctions*is th e  subsemiring o f  ${\mathcal F } $g e ne r ated  by  ${\mathcal  A}$ ,  [*i .e., * ]{ } t h e sub set o f$ {\ m athcal F}$ inductiv el y defi ned b y

-   ${\mat hcal A}\su b s e teq {\ma thca l  E } $,

-   if $f,  g\in  {\mathcal E}$, the n $f{ \mathrel {\mathop{ \ t riangler igh t}} }g\ in{ \ ma thcal E}$ and $ f\ve eg\in {\ mat hcal E} $.
We  wi llsh ow belowthat ${\ ma th ca lE}$  is l o cally cl os ed,  w hic h ent a ils th at fo r ea ch  $ f \in  {\math c al E }$,al so  $f^ *\i n{\mat hcal E}$ , hence  ${\mathc alE }$ i nd ee d encom passes all RT EF s.

\[le:l oc all yclose d \ ] For ev ery $f\in {\mathcal E}$ there e xis ts $N \ge0$ so tha t $ f^*= \ big v ee_{ n = 0}^N  f^n$ .
By d istri b u ti vit y,  we can wr i t e $ f$ as  a  fin ite sup remum $
2)\circ g(
_ _   t_1)_\\
 __ &=_\bigvee_{_t_1+ t_2= t}_h( t_2)\circ f(_t_1)\vee \bigvee_{ t_1+
 _  __t_2= t} h( t_2)\circ g( t_1) \\
    &= f{\mathrel{\mathop{\triangleright}}}h( t)\vee g{\mathrel{\mathop{\triangleright}}}h(_t)=(_f{\mathrel{\mathop{\triangleright}}}h\vee
 ___  g{\mathrel{\mathop{\triangleright}}}h)( t)\,.
 _\end{aligned}$$ The proof is complete.

Finally,_a cycle_in an RTEA results in a $^*$-operation:

Let $f_\in_{\mathcal F}$. The_Kleene star of $f$ is the function $f^*\in {\mathcal_F}$ such that $$\forall t\in {[_0, \infty]}: f^*(_t)=_\bigvee_{n\ge_0} f^n( t)$$

Note that_$f^*$ is defined for all $f\in_{\mathcal F}$ because ${\mathcal F}$ is_a complete lattice. We can now define_the set of general real-time energy_functions, corresponding to general RTEAs:

The_set ${\mathcal_E}$ of *real-time energy functions*_is the subsemiring_of ${\mathcal_F}$ generated by_${\mathcal A}$, [*i.e.,*]{} the subset of ${\mathcal_F}$ inductively defined_by

-   ${\mathcal A}\subseteq {\mathcal_E}$,

-_  if_$f,_g\in_{\mathcal E}$,_then $f{\mathrel{\mathop{\triangleright}}}g\in {\mathcal_E}$_and $f\vee_g\in_{\mathcal E}$.

We will show below that_${\mathcal_E}$ is locally closed, which entails that_for each $f\in {\mathcal_E}$,_also $f^*\in {\mathcal E}$,_hence ${\mathcal E}$ indeed encompasses_all RTEFs.

\[le:locallyclosed\] For every $f\in {\mathcal_E}$ there_exists $N\ge_0$ so that $f^*= \bigvee_{ n= 0}^N f^n$.

By distributivity, we can_write $f$ as a finite supremum_$