Recently, I'm reading something about viscosity solution of a PDE, and the notions of limsup and liminf haunt me all the time. The following are some examples.
The upper semi-continuous envelope of a function $z: \mathbb{R}^n \rightarrow \mathbb{R}$ is defined as $$ z^*(x) := \limsup_{x' \rightarrow x}\ z(x') $$
Suppose for every partition $P$ of the interval $[0,T]$, we are given a (continuous) function $V^P: [0,T]\times \mathbb{R}^2 \rightarrow \mathbb{R}$. Then, we define $$ \bar{V}(t,x,y) := \limsup_{mesh(P)\rightarrow 0, (t',x',y')\rightarrow (t,x,y)} V^P(t',x',y') $$ where $mesh(P)$ is the mesh size of the partition.
Suppose we have a sequence of functions $f_n: \mathbb{R}^n \rightarrow \mathbb{R}$, then we can define $$ g(x) := \limsup_{n\rightarrow \infty}\ \sup_{x'\in\mathbb{R}^n} f_n(x') $$
I have formally learned limsup and liminf only in terms of sequences, so I wonder
How to interpret the above definitions of functions in precise mathematical language? ($\epsilon$-$\delta$ description will be great.)
If there are two limiting processes like in the second example, is there any kind of order of computation?
How to generalize the notions of limsup and liminf in more general settings?