FOSLS-deRhaNN: native de Rham neural classes for H(div) and H(curl) with applications to first-order system least-squares neural network methods for partial differential equations
Shun Zhang
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
FOSLS-deRhaNN: NATIVE DE RHAM NEURAL CLASSES FOR H(div) AND H(curl) WITH APPLICATIONS TO FIRST-ORDER SYSTEM LEAST-SQUARES NEURAL NETWORK METHODS FOR PARTIAL DIFFERENTIAL EQUATIONS
SHUN ZHANG
Department of Mathematics, City University of Hong Kong, Kowloon Tong, Hong Kong, China
ABSTRACT. We construct neural network approximation classes that are native to the graph spaces H(div) and H(curl), in two and three dimensions and, for H(div), in arbitrary dimension. Every realization lies in the space for every value of the trainable parameters, and with kinked potentials, such as ReLU networks, and with the interface modules, the admissible jumps of the space are present at finite width. The classes are images of ordinary scalar and componentwise networks under fixed operators of the continuous de Rham complex, a Poincaré right inverse of the divergence and a regular decomposition, and they do not involve a mesh, a projection, an interpolation or a finite element emulation. For H(div) in Rn two native classes are given on an equal footing, with a skew-symmetric matrix potential A: Div A+Rnq+h, in which the divergence q is an explicit unknown, and Div A+z with an H1 field z, from a regular decomposition, which is evaluated pointwise; for H(curl) the analogous classes are gradϕ+Sr+h in two dimensions and gradϕ+z in two and three dimensions. In all of them every interface jump of the field is carried by the potential term, Div A or gradϕ, while the remaining part has no interface jump (in the regular-decomposition classes it is an H1 field). The classes with z are the componentwise approach enriched by this term. Known or learned interface geometry enters the potential through factors with trainable amplitudes, and, when the divergence also jumps, the remaining part as well. These native graph-space classes lead to the FOSLS-deRhaNN method, first-order system least squares with de Rham neural networks, in which the graph-space unknowns are represented by the native neural classes and the loss is the first-order system least-squares functional posed in the natural spaces of the weak formulation; for second-order elliptic equations the formulation works at the level of the weak problem, including H−1 right-hand sides and H1/2 Dirichlet data. Second-order elliptic equations with discontinuous coefficients and curl–curl problems are treated as instances, in which the functional is equivalent to the error; linear transport with discontinuous solutions and scalar conservation laws with shocks are treated with the same native flux classes.
1. INTRODUCTION
Many physical problems are naturally posed as first-order systems in grad, div and curl: a constitutive law relates a flux to the gradient of a potential, as in Darcy's law, Fourier's law of heat conduction and Ohm's law, and a conservation law prescribes the divergence of the flux; Maxwell's equations and linear elasticity, with the stress as flux, admit analogous first-order formulations in compatible graph spaces. The second-order equation arises by eliminating the flux, which differentiates the coefficient. With discontinuous coefficients the first-order system is the natural form: it holds in the whole domain, with the flux in H(div) and the gradient in H(curl), and the interface conditions, continuity of the normal flux and of the tangential gradient, are the intrinsic continuity of these spaces, whereas the classical strong second-order equation holds on the coefficient subdomains, together with the transmission conditions. Neural network methods for partial differential equations, going back to [42], were transformed by physics-informed neural networks (PINNs) [54]: the residual of the equation at collocation points is the loss, the method is mesh free, and it treats forward and inverse problems, nonlinear equations and the assimilation of data in one framework; it has become one of the most widely used tools of scientific machine learning [40]. In its vanilla form the residual is that of
This work was supported in part by Research Grants Council of the Hong Kong SAR, China, under the GRF Grant Project No. CityU 11305025.
S. ZHANG
the strong form, which for a second-order divergence-form equation requires second derivatives of the trial function and pointwise differentiation of the coefficient; for nonsmooth activations these derivatives exist only piecewise, and discontinuous coefficients require an explicit treatment of the interface conditions. The flux is not an unknown, and the residual is defined only for data more regular than those of the weak formulation. The deep Ritz method [30] minimizes the variational energy instead and is therefore tied to problems with a coercive energy, in particular symmetric elliptic problems.
First-order system least squares (FOSLS) [20, 22, 39, 7] keeps the structure of the physical laws: the potential and the flux are both unknowns, each in its natural space, and the constitutive law and the conservation law are separate residuals. It works at the level of the weak theory of the equation. For general second-order elliptic equations the coefficients need only be bounded, with A uniformly positive definite, the right-hand side is any element of H−1, written as f1+divf2 with f1∈L2 and f2∈L2(Ω)n (for instance f2 discontinuous, or a source on a curve), the Dirichlet data are in H1/2, and the only assumption is that the weak problem is uniquely solvable; under exactly these conditions the functional is equivalent to the error in the natural norms, also for nonsymmetric operators [60], and it is an a posteriori error estimator [44, 56]. The datum f2 enters through the constitutive law, pointwise and never differentiated (Remark 7.3), so the functional is defined for all data of the weak theory, including those for which no strong form exists. This makes it a natural loss for neural network methods: minimizing it is a minimization at the level of the weak formulation, with the flux and its conservation law as part of the problem.
1.1. Natural graph spaces and intrinsic continuity. In a FOSLS formulation the unknowns lie in H1, H(div) and H(curl), and the graph space of each unknown, determined by which distributional derivatives are required to lie in L2, determines its intrinsic continuity. For a field that is smooth on the elements of a partition, and an interior face F with unit normal nF, the singular parts of the derivatives across F are, schematically,
An L2 derivative excludes exactly the corresponding surface measure, so the intrinsic continuity across F is [[u]]=0 in H1(Ω), nF×[[E]]=0 in H(curl;Ω) and [[τ⋅nF]]=0 in H(div;Ω). In two dimensions the H(curl) condition is continuity of the scalar tangential component; in the language of forms, HΛk(Ω) requires a single-valued tangential trace of the k-form. For the second-order equation (7.1) with discontinuous A and the weak data of Section 7.1, the flux variable σ=−Agradu+βu−f2 is in H(div), while the physical constitutive flux −Agradu+βu=σ+f2 need not be when f2 jumps; σ is in general neither in H(curl) nor in H1(Ω)n, and grad u is in H(curl) but in general neither in H(div) nor in H1(Ω)n [23, 24, 19]: the normal component of σ and the tangential component of grad u are continuous across interfaces, the other components jump. This is the reason for the classical finite element choices, defined through face and edge degrees of freedom on a mesh: continuous Lagrange elements reproduce the continuity of H1, Raviart–Thomas and BDM elements the normal continuity of H(div) while allowing tangential jumps, and Nédélec elements the tangential continuity of H(curl) while allowing normal jumps [8, 31, 34, 1, 3, 2].
Standard networks represent vector fields componentwise. A scalar network with a Lipschitz activation is Lipschitz on a bounded domain and hence in H1(Ω), so a componentwise network lies in H1(Ω)n⊂H(div;Ω)∩H(curl;Ω): it is conforming, but it imposes more continuity than either graph space requires. We use native in this structural sense: the approximation respects the intrinsic continuity of the graph space rather than entering it only through a stronger componentwise H1 regularity. The distinction is visible at finite complexity. A target τ∈H(div) may have a genuine tangential jump with continuous normal trace, and E∈H(curl) a genuine normal jump with continuous tangential trace. A componentwise continuous approximation contains no such field at any finite size, since a network with a continuous activation is continuous: it can only replace the jump by a continuous transition layer whose width tends to zero as the approximation is sharpened. Least-squares ReLU networks approximate discontinuous scalar functions well in this way [10, 13]; the discontinuity is then obtained by training, not by the construction of the class. The classes of this paper supply the missing jumps by a potential term from the de Rham complex.
1.2. de Rham representations. We therefore start from the graph space of the unknown, not from the network: ordinary networks approximate H1 or L2 functions, and fixed differential and right-inverse operators associated with the de Rham complex assemble them into the graph-space field. For 0≤k≤n let HΛk(Ω):={ω∈L2Λk(Ω):dω∈L2Λk+1(Ω)}. The de Rham complex is
(1.2)
HΛ0(Ω)dHΛ1(Ω)d⋯dHΛn−1(Ω)dHΛn(Ω),
with HΛ0=H1 and HΛn≃L2; in vector proxies HΛn−1≃H(div) in any dimension, and in three dimensions HΛ1≃H(curl). The identity d2=0 gives rand⊂kerd, the finite-dimensional cohomology measures the failure of exactness, and regular-potential results allow potentials with H1 coefficients.
The H(div) construction uses the two maps adjacent to HΛn−1, and it leads to two representations, which we treat on an equal footing. The map on the right is div:H(div;Ω)→L2(Ω), so q:=divτ is a natural unknown, and a bounded right inverse gives Rnq∈H(div) with divRnq=q. What remains is divergence free, and the map on the left represents this kernel, modulo cohomology, by a potential. Alternatively, the divergence can be left to an H1 field, by a regular decomposition. Hence
with A a skew-symmetric matrix field with H1 entries and h in a finite-dimensional cohomology space; in two dimensions DivA=curlψ, and τ=curlψ+R2q+h or τ=curlψ+z. The first keeps the divergence as an explicit L2 unknown: an equation for it can be built into the class, and a jump of the divergence is integrated by Rn into a continuous field (under the segment condition of Lemma 2.5). The second needs no line integrals and no harmonic fields: it is the componentwise approach of [9, 46], z a componentwise network, enriched by the divergence-free field DivA, which carries the tangential jumps that a componentwise H1 field cannot; a jump of the divergence is carried by a kink of z. We call such a formula a de Rham representation of the field, and the auxiliary functions in it its representing functions. For the first they are the potential A, the divergence q=divτ and the cohomology part h=ΠHnτ (Sections 2.2 and 2.4); q and h are determined by τ, and A modulo ker Div, or uniquely once the bounded linear lifting of Section 2.5 is fixed. For the second they are A and z (Section 3.1).
For H(curl) the left side is the same, H1(Ω)gradH(curl;Ω)curlH(div;Ω) in three dimensions, with the gradient generating the exact curl-free part; but the curl cannot be an unconstrained L2 function, since div(curlE)=0. In general, the exterior derivative dω in an intermediate degree is constrained by d(dω)=0, which a generic network does not satisfy. For H(curl) in three dimensions we therefore use the regular decomposition
(1.4)
E=gradϕ+z,ϕ∈H1(Ω),z∈H1(Ω)3.
No separate harmonic part is needed in this form, since any topological component is absorbed into the H1 remainder z. In two dimensions H(curl) is a rotation of H(div), and both realizations are available, E=gradϕ+Sr+h with a rotated right inverse S of the curl, and E=gradϕ+z. The second H(div) representation and (1.4) are the same construction in two degrees, τ=DivA+z in degree n−1 and E=gradϕ+z in degree 1. Only in degree n−1, where the exterior derivative lands in top degree, can the exterior derivative itself be an unconstrained trainable function; this gives the first H(div) representation.
The trainable functions are the representing functions in (1.3) and (1.4). A scalar network with a Lipschitz activation lies in W1,∞(Ω)⊂H1(Ω); continuous piecewise affine finite element functions are ReLU networks of a size fixed by the mesh [32], so every finite element approximation of a representing function is available at a corresponding network size, and for smooth activations classical Sobolev approximation results apply [36]. For H(div) we approximate A in H1 and q in L2 and assemble τθ,η=DivAθ+Rnqη+h, or A and z in H1 and assemble τθ,η=DivAθ+zη; for H(curl) we approximate ϕ and z in H1 and assemble Eθ,η=gradϕθ+zη for n=2,3, or, for n=2, ϕ in H1 and r in L2 and assemble Eθ,η=gradϕθ+Srη+h. The identities divτθ,η=qη, divτθ,η=divzη and curlEθ,η=curlzη hold for every value of the trainable parameters, so conformity is produced by the continuous de Rham structure and not enforced by training. The classes do not involve a mesh, a projection or a finite element interpolation. It remains to show, for each graph space, that the representation map is onto, with representing functions bounded by the field, and that approximation of the representing functions transfers to the graph norm; this is done for H(div) in Sections 2 and 3 and for H(curl) in Section 5.
In all these representations every interface jump of the field is carried by its first part, the potential term Div A or grad ϕ given by the map on the left of the complex: Rnq+h and Sr+h are continuous for bounded
S. ZHANG
piecewise continuous q and r under the segment condition of Lemma 2.5, and the H1 remainder z has a single-valued trace across an interior interface. The continuity of the field is weaker than that of its representing functions only through the potential. In two dimensions a continuous piecewise affine potential ψθ has a piecewise constant curlψθ with continuous normal trace and possibly a tangential jump; in any dimension a continuous piecewise affine ϕθ has a piecewise constant grad ϕθ with continuous tangential trace and possibly a normal jump. This is how the finite-parameter realizations reproduce the intrinsic continuity of H(div) and H(curl) rather than the stronger continuity of a componentwise H1 network, and it is why the classes with z are the componentwise approach enriched by the potential term. The interface geometry of the jump of the field, known or learned, is accordingly carried by the potential, through a factor ∣dΓ∣ or ReLU(gη) with trainable amplitudes (Sections 4.2 and 4.4); when the divergence also jumps, the same interface information is used in the remaining part, in q or in a kinked z (Section 4.6).
1.3. Related work and outline. Least-squares neural network methods were developed systematically by Cai and coauthors. The deep least-squares method [9] uses first-order system least-squares functionals as the loss for elliptic problems, with the flux σ∈H(div) approximated by a componentwise network and its divergence obtained by differentiating the components. In the physics-preserving neural network (P²NN) methods for elliptic equations [46] the flux is again a componentwise network, and its divergence is replaced by the discrete divergence operator of [12], which is based on the definition of the divergence through the Gauss theorem, divτ(x)=limϵ→0∣Bϵ(x)∣−1∫∂Bϵ(x)τ⋅ndS: at each integration point the outward flux through the boundary of a control volume, computed by quadrature, is divided by its measure. The second class of this paper keeps such a componentwise flux and enriches it by a potential term. The least-squares ReLU neural network (LSNN) method for linear advection-reaction equations [10] showed that ReLU networks approximate discontinuous solutions along an interface without oscillation and without artificial diffusion; the network structure required for discontinuity interfaces is analyzed in [13], and non-constant jumps along curved interfaces in [14]. The method was extended to scalar nonlinear hyperbolic conservation laws [11], where the discrete divergence operator of [12] computes the divergence of the flux from its values in the conservation form; the LSNN method for hyperbolic problems is surveyed in [47]. The computational tools of this line of work are used throughout the present paper: adaptive network enhancement [48, 45, 21], which adds neurons where a local error indicator is large; the separation of the linear output parameters from the nonlinear hidden parameters, with structure-guided Gauss-Newton and block Newton iterations [15, 16, 17, 18]; derivatives of networks through moments computed from values, as in the discrete divergence operator; and adaptive quadrature [49]. Dual neural network formulations are developed in [50]. The present paper adds to this framework native representations of graph-space fields, in particular H(div) fluxes and H(curl) fields: each field is represented so that its intrinsic continuity holds for every parameter value, and its jumps are carried by the kinks of its potentials.
Compatible structure has also been built into neural networks in other ways. Networks with ReLU and binary step activations represent the lowest-order Raviart–Thomas and Nédélec spaces exactly [52]. First-order system least squares with deep neural networks is developed in [53], with networks that emulate these de Rham compatible finite element spaces on a mesh; there the least-squares residual is the loss and a computable error estimator. Finite element interpolated networks combine networks with compatible finite element spaces [4, 5], and exact discrete de Rham complexes of fixed-neuron ReLU k networks are constructed in [38]; these obtain the de Rham structure at the discrete level. In all of them the de Rham structure is constructed, not trained: it is that of a given mesh [52, 53, 4, 5] or of a given set of neurons [38], so the partition on which jumps can occur is fixed in advance. In the present classes the structure comes from the continuous de Rham operators, and conformity holds for every value of all trainable parameters, including those that place the kinks and the learned interfaces. In the deep Ritz setting, scalar, vector and antisymmetric tensor potentials from the de Rham complex are used in [26] for Poisson problems in arbitrary dimension without boundary penalties, and divergence-free fields whose potentials have scalar networks as entries are used in [55], with approximation rates for linearized ReLU k networks in [33]. The representation of divergence-free fields by potentials (stream function, vector potential, and in general dimension a skew-symmetric matrix of potentials) is classical, also for finite elements [6, 1, 3]. In the present classes these potentials form the divergence-free part of the H(div) representation, together with the Poincaré right inverse of the divergence [25, 28] and the cohomology part; for Poincaré operators, regular decompositions and potentials in the language of differential complexes see the survey [37]. In one dimension H(div;I)=H1(I), and the first-order system least-squares shallow neural network method for general second-order elliptic equations is developed in [43].
This paper constructs neural approximation classes native to H(div) and H(curl), in two and three dimensions and, for H(div), in arbitrary dimension: every realization lies in the space for every value of the trainable parameters, and, with kinked potentials such as ReLU networks and with the interface modules, the admissible jump structure of the space is present already at finite width (Propositions 4.1 and 5.8). The classes are images of scalar and componentwise networks under fixed operators,
with scalar networks, a skew-symmetric matrix of scalar networks A, a componentwise network z, and finite-dimensional harmonic parts; the field being approximated need not lie in H1(Ω)n, only its representing functions do. The native H(div) and H(curl) classes, which we call deRhaNN classes (de Rham neural network classes), are combined with first-order system least squares to obtain the FOSLS-deRhaNN method, first-order system least squares with de Rham neural networks. 1 The approximation classes carry the graph-space conformity by construction, while the FOSLS functional is posed at the natural regularity level of the weak problem; the least-squares part is standard: the error is bounded by the best approximation error of the classes (Proposition 6.3), with the regularity of the weak solution and no more.
Sections 2–4 carry out the construction for H(div) in arbitrary dimension: Section 2 the stable de Rham representation with a right inverse of the divergence and the first neural class, Section 3 the regular decomposition and the second class, both with two and three dimensions as special cases, and Section 4 the jumps at finite width, in the flux and in its divergence, for both classes, and the three levels of interface information. Section 5 does the same for H(curl) in two and three dimensions. Section 6 states the FOSLS-deRhaNN method with the standard best-approximation estimate; Sections 7 and 8 are instances (second-order elliptic equations, posed at the level of the weak formulation, and curl–curl problems), each with numerical examples (Sections 7.5 and 8.1). Section 9 treats linear transport, whose functional is the error in a norm weaker than that of the natural spaces, and Section 10 uses the native space-time flux classes in the flux least-squares formulation of scalar conservation laws, where the interface is an unknown shock.
NATIVE NEURAL APPROXIMATION IN H(div) I: RIGHT INVERSE AND STABLE DE RHAM REPRESENTATION
2.1. Motivation: the de Rham sequence. In two and three dimensions the end of the de Rham sequence is
with curlψ=(∂2ψ,−∂1ψ) in two dimensions. Two facts give the representation of a flux τ∈H(div;Ω). First, div is onto L2(Ω) and has a bounded right inverse R, divRq=q; so q:=divτ can be taken as an independent L2 function, and τ−Rq is divergence free. Second, divcurl=0, and conversely a divergence-free field is the curl of a potential, up to finitely many fields determined by the topology of Ω (none if Ω is simply connected for n=2, or if ∂Ω is connected for n=3). Hence
τ=curlψ+Rq+h,q=divτ,
with a potential ψ in H1, scalar for n=2 and vector valued for n=3, the divergence q in L2, and h in a finite-dimensional space. The two maps next to H(div) enter in different roles: the curl on the left describes the divergence-free part by a potential, and the divergence on the right contributes its range through R. Networks for ψ and q then give a flux that lies in H(div;Ω) for every value of the parameters, with divτ=q. The potential, q and h are the representing functions of τ (Section 1.2), from which the field is assembled by fixed differential and right-inverse operators associated with the de Rham complex. The functions q=divτ and h are determined by τ; the potential is determined up to the kernel of the curl, and uniquely once a bounded linear lifting is fixed; stable refers to this bounded reconstruction and to the equivalence of the representation norm with the graph norm (Section 2.5). In this representation Rq carries the divergence of τ, h its topological part, and the potential the divergence-free remainder; in the piecewise regular interface
1In the name deRhaNN the final m of de Rham is replaced by NN, for neural networks.
S. ZHANG
settings considered below, where Rq+h is continuous across the interface, the tangential jump of τ is carried entirely by the potential. Section 2.2 gives the potential in Rn, where the curl becomes the row-wise divergence of a skew-symmetric matrix; this part is used by both representations. Section 2.3 constructs R, Section 2.4 the cohomology part, Section 2.5 the stable splitting, and Section 2.6 defines the neural classes.
2.2. Skew-symmetric potentials. Let Kn:={A∈Rn×n:AT=−A}. A field A∈H1(Ω;Kn) is determined by its n(n−1)/2 entries aij:=Aij, i<j; these are the scalar functions that networks approximate, and the norms of A count each of them once:
(2.1)
∣A∣12:=i<j∑∣aij∣12,∥A∥12:=i<j∑∥aij∥12.
With Eij:=eiejT−ejeiT, A=∑i<jaijEij. The row-wise divergence of A,
(2.2)
(DivA)i:=j=1∑n∂jAij,i=1,…,n,
is the dimension-independent curl-potential operator. The entry aij contributes Div(aijEij)=(∂jaij)ei−(∂iaij)ej, and in two and three dimensions Div reduces to the scalar and the vector curl: for n=2, A=ψE12 gives DivA=(∂2ψ,−∂1ψ)T=curlψ, and for n=3, Aij=∑kεijkΨk gives DivA=curlΨ.
The potential part Div A is common to both representations of H(div) used in this paper. The following facts are standard; we record them for completeness.
Lemma 2.1 (skew potentials). Let A∈H1(Ω;Kn).
(a) The field Div A∈L2(Ω)n satisfies
(2.3)
div(DivA)=0,∥DivA∥0≤n−1∣A∣1,
where the first identity holds in the sense of distributions.
(b) Let S⊂Ω be a smooth hypersurface with unit normal n, and let A be piecewise H2 on the two sides of S in a neighborhood of S. Then on S, with one-sided traces v± and [v]:=v+−v−, where n points into the + side (this convention is used throughout),
(2.4)
[gradAij]=[∂nAij]n,[DivA]=[∂nA]n,n⋅[DivA]=0.
(c) For every j∈Rn with j⋅n=0, K:=jnT−njT∈Kn satisfies Kn=j; thus K′↦K′n maps Kn onto n⊥:={v∈Rn:v⋅n=0}. Its kernel consists of the skew-symmetric maps of n⊥ (extended by K′n=0) and has dimension (n−1)(n−2)/2; it is trivial for n=2.
Proof. (a) For ϕ∈Cc∞(Ω), ⟨divDivA,ϕ⟩=∑i,j∫ΩAij∂i∂jϕdx=0 by antisymmetry. Since Aii=0, (DivA)i has n−1 terms, and pointwise ∣DivA∣2≤(n−1)∑i∑j=i∣∂jAij∣2=(n−1)∑i<j(∣∂jaij∣2+∣∂iaij∣2)≤(n−1)∑i<j∣gradaij∣2. (b) Each Aij∈H1(Ω) has a single-valued trace on S, so its tangential derivatives agree from the two sides and the jump of its gradient is normal. Hence [(DivA)i]=∑j[∂nAij]nj, and n⋅[∂nA]n=0 because [∂nA] is skew. (c) Kn=j(n⋅n)−n(j⋅n)=j. If K′∈Kn and K′n=0, then nTK′=−(K′n)T=0, so K′ maps n⊥ into itself and vanishes on n; conversely, every skew-symmetric map of n⊥, extended by 0 on n, is in Kn. The skew-symmetric maps of the (n−1)-dimensional space n⊥ form a space of dimension (n−1)(n−2)/2.
For n=2 the bound in (2.3) is an equality (∣curlψ∣=∣gradψ∣), for n=3 it is ∥curlΨ∥0≤2∣Ψ∣1.
Remark 2.2 (differential forms and notation). Identify A with the 2-form ∑i<jAijdxi∧dxj. Then d(⋆A)=(DivA)┘vol: the (n−1)-form d(⋆A) corresponds to Div A in the identification H(div;Ω)≃HΛn−1(Ω), v↦v┘vol. Equivalently, Div A is the vector field of the 1-form d∗A, where d∗ is the formal L2-adjoint of d (the codifferential): for every compactly supported 1-form α=∑iαidxi, ∫Ω∑i<j(∂iαj−∂jαi)Aijdx=∫Ωα⋅DivAdx after integration by parts. The same operator is called curl in [26, Section 2.4]. We keep the notation Div, which shows that the operator is the row-wise divergence of a skew-symmetric matrix and that divDivA=0.
2.3. A right inverse of the divergence. In the classes below a flux is written as τ=τ0+Rnq with τ0 divergence free and Rn a fixed right inverse of the divergence, so that divτ=q. We construct Rn explicitly as an integral of q along the segments from a fixed center; for piecewise continuous q the field Rnq is continuous under a mild condition on the segments, so that it carries no jump.
Let Ω⊂Rn, n≥2, be a bounded Lipschitz domain. Fix a center x0∈Rn; the operator below depends on it, and this dependence is suppressed in the notation Rn. The center enters the constants through Cx0:=supx∈Ω∣x−x0∣, the radius of the smallest ball centered at x0 that contains Ω. In the interface geometries considered below, x0 is chosen so that the segment hypothesis of Lemma 2.5 holds; in particular, no segment from x0 lies along an interface or along a flat piece of ∂Ω. For a function g on Rn let Gg(x):=∫01tn−1g(x0+t(x−x0))dt, x∈Rn, and for q∈L2(Ω), with q its extension by zero to Rn, define
as an element of H(div;Ω), Rnq is the restriction to Ω. The domain Ω need not be star-shaped with respect to x0: q is used along the whole segment from x0 to x, which may leave and re-enter Ω, and x0 need not lie in Ω.
Lemma 2.3 (radial right inverse). For q∈L2(Ω), Rnq∈H(div;Ω) and
Moreover, (2.5) defines Rnq on all of Rn, with Rnq∈Lloc2(Rn)n and divRnq=q in Rn.
Proof. Bound. For g∈L2(Rn) and t∈(0,1] the substitution y=x0+t(x−x0), dx=t−ndy, gives ∥g(x0+t(⋅−x0))∥0,Ω≤t−n/2∥g∥0,Rn, and Minkowski's integral inequality gives
hence div((x−x0)Gg)=nGg+(x−x0)⋅gradGg=g. For q∈L2(Ω) take gk∈Cc∞(Rn) with gk→q in L2(Rn). The bound, applied to gk−q, gives (x−x0)Ggk→Rnq in L2(Ω), so for ϕ∈Cc∞(Ω)−∫ΩRnq⋅gradϕ=limk→∞∫Ωgkϕ=∫Ωqϕ, that is, divRnq=q in Ω. The third bound follows from the first two. The bound and the limit hold with Ω replaced by any ball B about x0 (and Cx0 by its radius), and ϕ∈Cc∞(B) gives −∫BRnq⋅gradϕ=∫Bqϕ, that is, divRnq=q in Rn.
Remark 2.4 (Poincaré homotopy). Formula (2.5) is the Poincaré homotopy operator with a fixed center in top degree [25], written for vector fields: for the n-form u=qdx1∧⋯∧dxn it is the vector proxy of ∫01tn−1(x−x0)┘u(x0+t(x−x0))dt, and divRnq=q is the top-degree homotopy relation. Costabel and McIntosh [28] average such fixed-center path integrals over the center with a smooth weight [28, (3.9)] to obtain operators with Sobolev mapping properties. Their [28, (1.4)] is the familiar three-dimensional analogue for curl.
We now show that Rnq is continuous even when q is only piecewise continuous, which is the situation in interface problems. Since (Rnq)(x) integrates q along the segment from x0 to x, moving x moves the segment, and the values of q on it change continuously except where the segment crosses ∂Ω or a surface across which q jumps. If on every segment these crossings form a set of measure zero, they do not affect the integral, and Rnq is continuous.
S. ZHANG
Lemma 2.5 (continuity for piecewise continuous data). Let Sq⊂Ω be closed, let q∈L∞(Ω) be continuous on Ω∖Sq, and let S be a closed set containing ∂Ω∪Sq, for instance S=∂Ω∪Sq; then q is continuous on Rn∖S. Assume that for every x∈Ω∖{x0} the open segment {x0+t(x−x0):0<t<1} meets S in a set of one-dimensional measure zero, for instance in finitely many points. Then (x−x0)Gq is continuous on Ω; in particular Rnq has no jumps.
Proof. Let xk→x in Ω. If x=x0, then ∣(xk−x0)Gq(xk)∣≤n1∣xk−x0∣∥q∥L∞→0. If x=x0, then x0+t(x−x0)∈/S for almost every t∈(0,1), and for such t, q(x0+t(xk−x0))→q(x0+t(x−x0)) by the continuity of q on Rn∖S; the integrand of Gq is bounded by tn−1∥q∥L∞, and dominated convergence gives Gq(xk)→Gq(x).
For a convex polygon or polyhedron with x0 in its interior the condition on ∂Ω holds. When the divergence q∗=divσ∗ of an exact flux is bounded and piecewise continuous, as in the interface examples below, the lemma applies even if q∗ jumps across the interfaces; it also applies to a bounded continuous network q. In both cases Rnq has no jump, so a tangential jump of a flux is carried by its potential (Section 4.1).
2.4. Cohomology part. We use the standard structure of the boundary of a bounded Lipschitz domain [6, Section 2.1]. Let O1,…,Ob be the bounded components of Rn∖Ω (the holes of Ω for n=2, the cavities for n=3); ∂Ω is the disjoint union of the closed sets Γ0, the boundary of the unbounded component, and Γi:=∂Oi, i=1,…,b; b=dimHn below is the number of these components. With the normal n exterior to Ω, which on Γi points into Oi, the cavity fluxes
Fi(v):=⟨v⋅n,1⟩Γi,i=1,…,b,
are bounded on H(div;Ω): the function equal to 1 on Γi and to 0 on the other components lies in H1/2(∂Ω), since the finitely many compact boundary components are mutually separated, and the normal trace is bounded from H(div;Ω) to H−1/2(∂Ω). Choose zi∈Oi and let
(Hn={0} if there are none). The hi are smooth and divergence free on Ω, and Fi(hj)=−∣Sn−1∣δij, since n is the inner normal of Oi; hence Fj(ΠHnv)=Fj(v): ΠHnv is the element of Hn with the cavity fluxes of v, and the coefficients of the cohomology component are determined explicitly by the cavity fluxes, ci=−Fi(v)/∣Sn−1∣. These coefficients represent the (n−1)st de Rham cohomology of Ω; in three dimensions the obstruction to a global skew potential is therefore given by cavities, not by handles (handles carry the first cohomology, which concerns curl-free fields). No canonical choice of harmonic representatives is needed.
Corollary 2.6 (fluxes of the radial part). For q∈L2(Ω), Fi(Rnq)=0 for i=1,…,b, and ⟨Rnq⋅n,1⟩Γ0=∫Ωqdx. In particular ΠHnRnq=0.
Proof. By Lemma 2.3, Rnq has a divergence in Lloc2(Rn), so its normal traces from the two sides of Γi coincide, and divRnq=q=0 in Oi; since the outer normal of Oi on Γi is −n, Fi(Rnq)=−∫OidivRnqdx=0. The divergence theorem in Ω gives ∑i=0b⟨Rnq⋅n,1⟩Γi=∫Ωqdx.
The radial part thus carries the source balance through the outer boundary and no cavity flux.
2.5. Stable splitting and regular potentials. The following splitting is classical in substance: for n = 2, 3 it is the stream-function and vector-potential description of [6, Lemmas 2.1.2 and 2.1.9] together with a right inverse of the divergence, and in general it is the exactness of the de Rham complex up to its cohomology [28]. We include a proof because of the specific right inverse Rn and the linear lifting.
Proposition 2.7 (classical H(div) splitting). P:=Rndiv is the bounded projection of H(div;Ω) onto RnL2(Ω) along ker div, and
that is, with q=divτ and h=ΠHnτ (Corollary 2.6), where q, h and DivA=τ−Rnq−h are unique and the potential A∈H1(Ω;Kn) is unique up to an element of the kernel of Div. The potential can be fixed by a bounded linear map: there is a bounded linear L from the space (2.10) to H1(Ω;Kn) with DivLv=v, and A=L(τ−Rnq−h) satisfies
∥A∥1+∥h∥0+∥q∥0≤C∥τ∥H(div).
Proof. By Lemma 2.3, P is bounded, P2=P, ranP=RnL2(Ω) and kerP=kerdiv, so H(div;Ω)=kerdiv⊕RnL2(Ω). It remains to show kerdiv=DivH1(Ω;Kn)⊕Hn and (2.10), with ∥A∥1+∥h∥0≤C∥v∥H(div) for v∈kerdiv. For a general τ this is applied to v:=τ−Rnq, q=divτ, for which ΠHnv=ΠHnτ by Corollary 2.6; then ∥q∥0≤∥τ∥H(div) and ∥v∥H(div)≤C∥τ∥H(div) by (2.6). Let O0:=B∖Ω∪O1∪⋯∪Ob for an open ball B⊃Ω.
The sum is direct. For A∈H1(Ω;Kn) let A∈H1(Rn;Kn) be a skew-symmetric extension: each aij, i<j, is extended by a bounded extension operator of the Lipschitz domain Ω, and Aji:=−Aij. By (2.3), DivA∈L2(Rn)n is divergence free, so its normal traces from the two sides of Γi coincide, and Fi(DivA)=−∫OidivDivAdx=0, i=1,…,b. An h∈Hn with zero cavity fluxes vanishes, since Fi(hj)=−∣Sn−1∣δij; hence DivH1(Ω;Kn)∩Hn={0}, and DivH1(Ω;Kn) is contained in the right-hand side of (2.10).
Every divergence-free field is represented. Let v∈H(div;Ω) with divv=0, and let h:=ΠHnv; then ∥h∥0≤C∥v∥H(div) by the boundedness of the Fi. The field w:=v−h is divergence free with zero flux through Γ1,…,Γb, and through Γ0 as well, because the fluxes through all components sum to ∫Ωdivwdx=0. For i=0,…,b let ϕi∈H1(Oi), unique up to a constant, solve the Neumann problem
∫Oigradϕi⋅gradχdx=−⟨w⋅n,χ⟩Γiforallχ∈H1(Oi),
that is, Δϕi=0 in Oi, gradϕi⋅n=w⋅n on Γi (the outer normal of Oi there is −n) and, for i=0, ∂νϕ0=0 on ∂B. The right-hand side vanishes for χ=1 because the flux of w through Γi is zero, so ϕi exists, and ∥gradϕi∥0,Oi≤C∥w⋅n∥H−1/2(Γi)≤C∥w∥H(div). The field w equal to w in Ω and to gradϕi in Oi has the same normal trace from both sides of every Γi, so w∈L2(B)n is divergence free in B, with ∥w∥0,B≤C∥v∥H(div). The (n−1)-form w⊥vol is closed in B, and B is starlike with respect to a ball, so [28, Proposition 4.1(i)] gives an (n−2)-form μ∈H1(B,Λn−2) with dμ=w⊥vol and ∥μ∥1,B≤C∥w∥0,B. Let A∈H1(B;Kn) be the skew-symmetric matrix of the 2-form with ⋆A=μ. By Remark 2.2, (DivA)⊥vol=d(⋆A)=w⊥vol, so DivA=w, and ∥A∥1,B≤C∥w∥0,B. Then A:=A∣Ω satisfies DivA=v−h and ∥A∥1≤C∥v∥H(div). If Fi(v)=0 for all i, then h=0 and v=DivA, which gives the other inclusion in (2.10). For n=2 and n=3 this is the classical argument for the stream function and the vector potential [6, Lemmas 2.1.2 and 2.1.9]. Every step is linear in v: the Neumann problems with ϕi normalized by zero mean, the extension w, and the integral operator of [28, Proposition 4.1(i)]; restricted to the space (2.10), where h=0, this is the map L.
The splitting is a bounded direct sum: PR:=Rn div and PH:=ΠHn are bounded projections ( PHhi=hi since Fj(hi)=−∣Sn−1∣δij), with PHPR=0 because Rnq has no cavity fluxes (Corollary 2.6) and PRPH=0 because every h∈Hn is divergence free. Hence P0:=I−PR−PH satisfies P02=P0, and the three projections have the ranges RnL2(Ω), Hn and DivH1(Ω;Kn).
Corollary 2.8 (representation norm). For τ=DivA+Rnq+h as in Proposition 2.7, with any potential A,
and the same holds for τ−τm with A−Am, h−hm, q−qm in place of A, h, q.
Proof. For K∈kerDiv, ∥τ∥H(div)≤∥Div(A−K)∥0+∥h∥0+∥Rnq∥H(div)≤n−1∣A−K∣1+∥h∥0+C∥q∥0 by (2.3) and (2.6). Conversely, ∥q∥0≤∥τ∥H(div), ∥h∥0≤C∥τ∥H(div) by the boundedness of the Fi, and A−LDivA∈kerDiv, so distH1(A,kerDiv)≤∥L(τ−Rnq−h)∥1≤C∥τ∥H(div). The statement for τ−τm follows by linearity.
S. ZHANG
Thus, after quotienting out the gauge of the potential, the potential, the cohomology part and the divergence give a norm-equivalent representation of H(div;Ω): with H1(Ω;Kn)/ker Div equipped with its quotient norm distH1(A,ker Div),
is an isomorphism of Banach spaces: it is onto by Proposition 2.7; it is injective, since DivA+h+Rnq=0 gives q=0 by taking the divergence, then h=0 by applying ΠHn, and then DivA=0; and both it and its inverse are bounded by Corollary 2.8.
Corollary 2.9 (regular potentials). Let r≥0, u∈Hr(Ω)n with divu=0 and Fi(u)=0, i=1,…,b. Then u=DivA with A∈Hr+1(Ω;Kn) and ∥A∥r+1≤Cr∥u∥r.
Proof. By (2.10) and Proposition 2.7, u=Div A0 with A0∈H1(Ω;Kn) and ∥A0∥1≤C∥u∥H(div)=C∥u∥0≤C∥u∥r. By Remark 2.2, u⊥vol=dμ0 with μ0:=⋆A0∈H1(Ω,Λn−2). By [28, Corollary 4.7(a)] with s=r and t=1 there is μ∈Hr+1(Ω,Λn−2) with dμ=u⊥vol and ∥μ∥r+1≤Cr(∥u∥r+∥μ0∥1)≤Cr∥u∥r. The skew-symmetric matrix A of the 2-form with ⋆A=μ satisfies Div A=u by Remark 2.2, and ∥A∥r+1≤Cr∥u∥r. The splitting removes the topological obstruction, and [28, Corollary 4.7(a)] raises the regularity.
On domains starlike with respect to a ball this is the lifting of [28, Proposition 4.1(i)] used in [33]; on a general bounded Lipschitz domain it holds after the cohomology component has been removed.
For finite elements the representation by potentials holds at the discrete level: the divergence-free fields of the H(div) elements are, up to the discrete cohomology, Div of skew-symmetric polynomial potentials on each simplex [1, 3]. The neural use of these potentials in the literature is discussed in Section 1.3.
2.6. Neural classes. Let {Am}m≥1 and {Qm}m≥1 be nested families of sets with Am⊂H1(Ω;Kn) and Qm⊂L2(Ω); the index m may stand for a tuple of complexity parameters of the two classes. In the neural realization Am=∑i<jaij,mEij, where the n(n−1)/2 entries aij,m are scalar networks (independent networks, or one network with n(n−1)/2 outputs and shared hidden layers), so that skew symmetry holds by construction, and qm is a scalar network. Let
(2.12)
Σm,ndR:={DivAm+Rnqm+h:Am∈Am,qm∈Qm,h∈Hn}.
The trainable functions are Am and qm, which are assembled into the field by the fixed operators Div and Rn, together with the b coefficients of h; the H(div) field itself is not taken as an unconstrained componentwise network (the entries of Am are), and Rnqm is in general not itself a network. The representing functions of a target are those of Proposition 2.7.
Theorem 2.10 (neural H(div) classes in Rn). Every τm=DivAm+Rnqm+h∈Σm,ndR lies in H(div;Ω), and divτm=qm. Let τ∈H(div;Ω), q=divτ, h=ΠHnτ, and let A∈H1(Ω;Kn) be any potential with DivA=τ−Rnq−h. Then
Proof. Conformity and the divergence identity follow from (2.3), Lemma 2.3 and div h=0. The lower bound holds because ∥τ−τm∥H(div)≥∥div(τ−τm)∥0=∥q−qm∥0 for every τm∈Σm,ndR. For the upper bound let Am∈Am and qm∈Qm be arbitrary and τm:=DivAm+Rnqm+h, with the same h as τ. Then τ−τm=Div(A−Am)+Rn(q−qm). The first term is divergence free, so its H(div) norm is ∥Div(A−Am)∥0≤n−1∣A−Am∣1 by (2.3); the second is bounded by (1+4Cx02/n2)1/2∥q−qm∥0 by (2.6). The triangle inequality and independent minimization over Am and qm give the upper bound.
Since the bound holds for every potential, infAm∣A−Am∣1 may be replaced by its infimum over all potentials A with DivA=τ−Rnq−h.
Corollary 2.11 (density). If ⋃mAm is dense in H1(Ω;Kn) and ⋃mQm is dense in L2(Ω), then ⋃mΣm,ndR is dense in H(div;Ω), and infτm∈Σm,ndR∥τ−τm∥H(div)→0 as m→∞ for every τ∈H(div;Ω).
Proof. By Proposition 2.7 every τ has a representation with A, h, q; the two infima in (2.13) are nonincreasing in m because the families are nested, and they tend to zero by the density assumptions.
The radial part Rnqm requires only one-dimensional integrals of qm along segments and no derivative of qm; its evaluation by quadrature is described in Section 6.
Remark 2.12 (relation to Raviart–Thomas elements). The splitting mirrors the local polynomial decomposition of the Raviart–Thomas spaces; on a simplex the topological component Hn is absent. Let T⊂Rn be a simplex and xT∈T a center chosen locally in T, independently of the global center x0 of Rn; let Rn,T denote (2.5) on T with center xT. Let Pk be the polynomials of total degree at most k, Pk those homogeneous of degree k in x−xT, and Kn(Pk+1) the skew-symmetric matrices with entries in Pk+1. Then RTk(T)=Pkn⊕(x−xT)Pk, and
RTk(T)=DivKn(Pk+1)⊕(x−xT)Pkforeveryk≥0
(the Koszul decomposition, [1]): an element p+(x−xT)p, p∈Pk, has divergence divp+(n+k)p, so its divergence-free elements lie in Pkn, and the divergence-free fields in Pkn are DivKn(Pk+1) by the exactness of the polynomial de Rham complex [1]; the second part carries the divergence. For polynomials Rn,T produces exactly the second part: T is convex and contains xT, so the segments from xT to the points of T stay in T, and for qj homogeneous of degree j in x−xT, Rn,Tqj(x)=(x−xT)qj(x)∫01tn−1+jdt=(x−xT)qj(x)/(n+j). Hence DivA+Rn,Tq with A∈Kn(Pk+1) and q∈Pk is exactly RTk(T), and the neural classes replace the polynomials A and q by networks. On a triangulation the corresponding global statement is made in two dimensions only.
2.7. Two and three dimensions. For n=2 every A∈K2 is A=ψE12,E12=(0−110), with ψ=a12, and
Div(ψE12)=(∂2ψ,−∂1ψ)T=curlψ,∣ψE12∣1=∣ψ∣1.
If n=(n1,n2)T and t=(−n2,n1)T, then E12n=−t and
(2.14)
curlψ⋅n=∂tψ,curlψ⋅t=−∂nψ.
For n=3 let Aij=∑kεijkΨk, that is a12=Ψ3, a13=−Ψ2, a23=Ψ1. Then
and for Nij=∑kεijkNk, Nv=v×N. The fields (2.8) are hi(x)=(x−zi)/∣x−zi∣n with zi in the holes (n=2) or cavities (n=3) of Ω, with fluxes −2πδij and −4πδij; for n=2 we write H:=H2. Let {Pm}m≥1, {Nm}m≥1 and {Qm}m≥1 be nested families with Pm⊂H1(Ω), Nm⊂H1(Ω)3 and Qm⊂L2(Ω), for example network classes; the classes (2.12) become
For n = 2 this is the classical stream-function form of the two-dimensional de Rham decomposition, with explicit representatives of the finite-dimensional cohomology.
Corollary 2.13 (neural H(div) classes for n=2,3). Let n∈{2,3}. Every τ∈H(div;Ω) can be written
where q and h are unique (h is determined by the hole or cavity fluxes of τ, Corollary 2.6), ψ∈H1(Ω) is unique up to a constant and Ψ∈H1(Ω)3 up to an element of the kernel of curl, and they can be chosen with ∥ψ∥1, respectively ∥Ψ∥1, plus ∥h∥0+∥q∥0 bounded by C∥τ∥H(div). Every element of Σm,ndR lies in H(div;Ω), with divergence qm, and for every such ψ or Ψ
for n = 2 the first term on the right does not depend on the choice of ψ.
S. ZHANG
Proof. Proposition 2.7 and Theorem 2.10 with A=ψE12 ( n=2) and Aij=∑kεijkΨk ( n=3): Div A is curlψ, respectively curl Ψ, so the kernel of Div corresponds to that of the curl (the constants for n=2, Ω being connected), ∣A∣1=∣ψ∣1, respectively ∣Ψ∣1, and n−1 and (1+4Cx02/n2)1/2 give the constants; the seminorm ∣⋅∣1 is invariant under constants.
In three dimensions an implementation of this form has three scalar potential outputs for Ψ (three scalar networks, or one network with three outputs and shared hidden layers), one for q, and the b cavity coefficients.
Remark 2.14 (Raviart–Thomas elements on a triangulation). On a conforming triangulation Th of a simply connected Ω, RT0(Th)∩kerdiv=curlS1(Th), S1(Th) the continuous piecewise linear functions, and every function in S1(Th) is a ReLU network [32]; hence curlS1(Th)⊂Σm,2dR for a network size depending only on Th, whereas a componentwise network with continuous activations is a continuous vector field, so for no network size does it contain a field of curlS1(Th) with a tangential jump; it can only approximate such a field. For a general τh∈RT0(Th), R2qh with qh=divτh piecewise constant need not be piecewise polynomial, so exact finite realization is not asserted; Corollary 2.13 gives τh=curlψh+R2qh with ψh∈H1(Ω), and by (2.17) fitting τh is a scalar approximation problem for ψh and qh. In three dimensions, on a topologically trivial domain, the divergence-free fields of RT0(Th) are the curls of lowest-order Nédélec fields, which in general are not continuous; on a general domain the corresponding discrete harmonic fields must be added.
3. NATIVE NEURAL APPROXIMATION IN H(div) II: REGULAR DECOMPOSITION
3.1. Regular decomposition. The right inverse of Section 2 makes the divergence an explicit unknown. A second stable representation leaves the divergence to an H1 field, τ=Div A+z with z∈H1(Ω)n; it comes from a regular decomposition. Let H0(div;Ω) denote the subspace of H(div;Ω) with τ⋅n=0 on ∂Ω.
Proposition 3.1 (regular decomposition of H(div)). Every τ∈H(div;Ω) can be written τ=Div A+z with A∈H1(Ω;Kn) and z∈H1(Ω)n depending linearly on τ and ∥A∥1+∥z∥1≤C∥τ∥H(div); for τ∈H0(div;Ω) the same holds with A∈H01(Ω;Kn) and z∈H01(Ω)n. Then divτ=divz, and no cohomology part appears: the harmonic fields are absorbed into z.
Proof. By Remark 2.2, τ corresponds to the (n−1)-form ω=τ┘vol, with dω=(divτ) vol, and an (n−2)-form μ to the skew-symmetric matrix A with ⋆A=μ, with dμ=(DivA)┘vol. By [28, Theorem 4.6] there are operators Rℓ (regularized Poincaré operators, not to be confused with Rn), bounded from HsΛℓ(Ω) to Hs+1Λℓ−1(Ω) for every s, and Kℓ, bounded from HsΛℓ(Ω) to C∞Λℓ(Ω), with dRℓu+Rℓ+1du=u−Kℓu. For u=ω take μ=Rn−1ω, which is in H1, and z┘vol=Rndω+Kn−1ω, which is in H1 since dω∈L2. For H0(div;Ω) the Bogovskii-type operators Tℓ, Lℓ of the same theorem, applied to the extension of ω by zero, give the same identity with supports in Ω. Taking the divergence of τ=DivA+z gives divτ=divz by (2.3).
Similar ideas can be generalized to the de Rham spaces HΛk(Ω),1≤k≤n, through the same theorem of [28]; we do not pursue this here.
3.2. The second neural class. The second class takes the H1 field of Proposition 3.1 as a componentwise network. Let {Zm}m≥1 be nested families of sets Zm⊂H1(Ω)n, in the neural realization vectors of n scalar networks (or one network with n outputs), and
(3.1)
Σm,nreg:={DivAm+zm:Am∈Am,zm∈Zm}.
For H0(div;Ω) both the potential and the H1 field are taken in the corresponding H01 classes, Am⊂H01(Ω;Kn) and Zm⊂H01(Ω)n, for instance through a boundary factor, in agreement with Proposition 3.1; then τm⋅n=0 on ∂Ω.
Theorem 3.2 (second neural H(div) class). Every τm=DivAm+zm∈Σm,nreg lies in H(div;Ω), and divτm=divzm. For τ∈H(div;Ω) and any A, z as in Proposition 3.1,
Proof. div Div Am=0 by (2.3), and zm∈H1(Ω)n⊂H(div;Ω). For τm=DivAm+zm, τ−τm=Div(A−Am)+(z−zm); the first term is divergence free, with ∥Div(A−Am)∥0≤n−1∣A−Am∣1 by (2.3), and for w∈H1(Ω)n, ∥divw∥0≤n∣w∣1, so ∥w∥H(div)≤n∥w∥1.
In two and three dimensions the second class reads curlψm+zm for n=2 and curlΨm+zm for n=3, with the estimate (3.2) and ∣ψ−ψm∣1, respectively 2∣Ψ−Ψm∣1, in place of n−1∣A−Am∣1.
3.3. The two classes. The two classes differ in where the divergence sits. In Σm,ndR the divergence qm is an independent L2 unknown: an equation for the divergence can be built into the class, and a divergence that jumps across an interface is integrated by Rn into a continuous field under the segment condition of Lemma 2.5. In Σm,nreg the fields are evaluated pointwise, without the line integrals along segments that Rnqm requires, and no harmonic fields are needed; the divergence divzm is not an independent unknown, and a divergence that jumps across an interface requires a kink of zm there. In both classes every interface jump of τm is carried by the potential: Rnqm has no jumps for a bounded, piecewise continuous qm under the segment condition of Lemma 2.5, and zm∈H1 has no interface jump, its trace being single valued. The second class is therefore the componentwise approach, with zm a componentwise network of the kind used for fluxes in [9, 46], enriched by DivAm. The enrichment is divergence free, so it leaves divτm and conformity unchanged, and it adds exactly the discontinuities that H(div) admits, the tangential jumps, which a componentwise H1 field cannot carry. Both classes are used in the examples.
4. NATIVE NEURAL APPROXIMATION IN H(div) III: FINITE-WIDTH JUMPS AND INTERFACE-ADAPTED POTENTIALS
Sections 2 and 3 give every τ∈H(div;Ω) the representations τ=DivA+Rnq+h and τ=DivA+z, and bound the best approximation error of the neural classes in H(div) by the approximation errors of A and q, or of A and z. With smooth activations the potential component DivAm is smooth, so a field with a tangential jump can only be approximated; to represent such a jump at finite width the potential must have kinks, as a ReLU potential does. Throughout this section we write
(4.1)
τ=DivA+w,
with the remaining part w=Rnq+h in the first class and w=z in the second. The section concerns the potential part Div A, which the two classes share, and its results apply to both in the same form. It shows that kinks of the potential carry the admissible tangential jumps of the flux, builds a known or a learned interface into the potential, shows that, under an additional hypothesis on the jump amplitude, extracting the interface kink restores the regularity of the remaining potential, and defines the three levels of interface information used in the numerical examples. Only a jump of the divergence concerns the remaining part, and it is carried differently in the two classes (Section 4.6).
4.1. Tangential jumps carried by kinks of the potential. Across a smooth interface where a piecewise regular field in H(div;Ω) has one-sided traces, its normal component is continuous and only its tangential component may jump. In both classes the remaining part w has no jump across an interior interface in the situations of interest, so the tangential jump is carried by kinks of the potential A.
Proposition 4.1 (jump carried by the potential). Let τ=Div A+w as in (4.1) with A∈H1(Ω;Kn), let Γ⊂Ω be a smooth hypersurface with unit normal n, let A be piecewise H2 on the two sides of Γ in a neighborhood of Γ, and let w have no jump across Γ, its one-sided traces coinciding. (For w=Rnq+h this holds by Lemma 2.5 if q is bounded and piecewise continuous and the condition on the segments of that lemma is satisfied, h being smooth; for w=z∈H1(Ω)n the trace on Γ is single valued.) Then, with one-sided traces,
[τ⋅n]=0,[τ]=[∂nA]n.
Thus the normal continuity required by H(div) is automatic, and the tangential jump of τ is carried entirely by the kink of A. Conversely, pointwise on Γ, every admissible jump j ( j⋅n=0) is produced by the kink [∂nA]=jnT−njT; two kinks that produce the same jump differ by a skew-symmetric K with Kn=0, which vanishes for n=2 and ranges over a space of dimension (n−1)(n−2)/2 for n≥3. The statement holds for every potential of τ that is piecewise H2 near Γ; since [τ] does not depend on the potential, the kinks of two such potentials differ by such a K.
S. ZHANG
Proof. Since w has no jump across Γ, [τ]=[Div A], and Lemma 2.1(b) gives [Div A]=[∂nA]n and n⋅[Div A]=0. The converse and the nonuniqueness are Lemma 2.1(c).
The construction of a global potential with a prescribed jump field along a whole interface is the role of the interface modules below. At finite width, ReLU networks give the following instance.
Corollary 4.2 (continuous piecewise linear potentials). Let the entries aij, i<j, of A be continuous and piecewise affine on a finite partition of Ω into polyhedral cells; for finite ReLU networks this is the common refinement of the activation partitions of the entries. Then Div A is piecewise constant, belongs to H(div;Ω) with div Div A = 0, and across the relative interior of every interior codimension-one face, with unit normal n,
n⋅[DivA]=0,[DivA]=[∂nA]n.
Proof. A∈W1,∞(Ω;Kn) (continuous and piecewise affine on a finite polyhedral partition), hence A∈H1(Ω;Kn), and Lemma 2.1(a) applies; on the relative interior of a face, A is affine on each side, and Lemma 2.1(b) applies.
A generic ReLU potential therefore has the correct jump geometry automatically: its tangential jumps lie on the flat faces of its activation partition, which is determined implicitly by the parameters, and a curved interface is matched by such faces only approximately. Sections 4.2 and 4.4 make this geometry explicit when an interface is known or is itself to be learned.
4.2. Fixed-interface potential modules. The classes (2.12) and (3.1) need no interface enrichment for conformity or for the estimates above. Without an explicit interface module, however, an ordinary finite ReLU potential can place exact kinks only on faces of its activation partition (Corollary 4.2), and a finite smooth network has no exact kink. Moreover, if the divergence-free part has a nonzero tangential jump on a subset of positive (n−1)-dimensional measure of a smooth interface, then no potential of it belongs to H3/2(Ω): A∈H3/2 would give Div A∈H1/2(Ω)n, whereas a piecewise regular function with a nonzero jump across a Lipschitz hypersurface on a set of positive surface measure is not in H1/2 (after a bi-Lipschitz flattening, which preserves H1/2, and integration over the tangential variables, the Sobolev–Slobodeckij seminorm contains ∬s<0<t(t−s)−2dsdt=∞ times the squared jump). The modules below place a kink of the H1 potential, and with it the tangential jump of the flux, on a given hypersurface (this subsection) or a learned one (Section 4.4); they do not affect H(div) conformity. Both are instances of one mechanism.
Lemma 4.3 (multiplicative kink). Let ρ∈W1,∞(Ω), N∈H1(Ω;Kn) and B:=ρN. Then B∈H1(Ω;Kn), and Div(A0+B)+w∈H(div;Ω) for every A0∈H1(Ω;Kn) and every remaining part w of either class. Let further x∗∈Ω, let Γ be a hypersurface of class C1 near x∗ with x∗∈Γ and unit normal n, let ρ vanish on Γ and be continuously differentiable on each side of Γ near x∗, up to Γ, with one-sided gradients gradρ±, and let N be Lipschitz continuous near x∗. Then, in the sense of one-sided essential limits at x∗,
with [gradρ]=[∂nρ]n evaluated at x∗, and the same identities hold for A0+B if A0 is continuously differentiable near x∗.
Proof. Since ρ∈W1,∞(Ω) and N∈H1, B∈H1 with grad(ρNij)=Nijgradρ+ρgradNij almost everywhere, and conformity follows from (2.3) and Lemma 2.3. Near x∗, N is continuous and ∣gradN∣≤L almost everywhere (L a Lipschitz constant), and ρ is continuous with ρ(x∗)=0, so ess sup∣ρgradN∣≤Lsup∣ρ∣→0 on shrinking neighborhoods of x∗; the first term has the one-sided limits Nij(x∗)gradρ±(x∗). Since ρ=0 on Γ, its tangential derivatives vanish from both sides, so [gradρ]=[∂nρ]n, and n⋅Nn=0 because N is skew. Where A0 is continuously differentiable, its gradient adds no jump.
Only the Lipschitz continuity of N near x∗ enters, so activation interfaces of a ReLU amplitude network N may cross Γ without changing the jump, whereas a kink of A0 on Γ adds its own jump. Only N(x∗)n enters the jump. For n≥3 the map N↦Nn has a nontrivial kernel (K∈Kn with Kn=0, Proposition 4.1), so a prescribed jump does not determine N on Γ. This is a property of the jump map only: it does not mean that N and N+K give the same flux in the bulk (in general they do not), and the remaining degrees of freedom are available to fit the bulk residual. Independently, the potential has the usual gauge nonuniqueness: the functional depends on it only through Div A.
First let Γ={x∈Ω:dΓ(x)=0} be a known interface, where dΓ∈W1,∞(Ω) is continuously differentiable near Γ with graddΓ=0 on Γ; by the implicit function theorem Γ is a C1 hypersurface, and on Γ let n:=graddΓ/∣graddΓ∣, which points into the + side {dΓ>0}.
Proposition 4.4 (fixed interface, trainable amplitude). Let A=A0+∣dΓ∣N with A0,N∈H1(Ω;Kn). Lemma 4.3 applies with ρ=∣dΓ∣ and ∥gradρ∥=2graddΓ:A∈H1(Ω;Kn), DivA+w∈H(div;Ω) for every remaining part w as in Lemma 4.3, and at every x∗∈Γ near which N is Lipschitz continuous and A0 is continuously differentiable,
[∂nA]=2∣graddΓ∣N,[DivA]=2NgraddΓ=2∣graddΓ∣Nn.
Every Lipschitz tangential jump field is attained: let dΓ be in C1,1 near Γ, let j:Γ→Rn be Lipschitz with j⋅n=0, let U be a neighborhood of Γ on which ∣grad dΓ∣ is bounded away from zero, j a Lipschitz extension of j to U (componentwise), n:=grad dΓ/∣grad dΓ∣ on U, and χ a Lipschitz cutoff with χ=1 on Γ and support in U. Then
(4.2)
N:=2∣graddΓ∣χ(jnT−njT)
(extended by 0 outside U) is skew-symmetric and Lipschitz, and [Div(∣dΓ∣N)]=j at every point of Γ. The geometry is fixed and the jump amplitude is trainable.
Proof. On the two sides of Γ, ∣dΓ∣=±dΓ is continuously differentiable up to Γ with gradients ±graddΓ, so [gradρ]=2graddΓ and [∂nρ]=2∣graddΓ∣, and Lemma 4.3 gives the identities. For (4.2): j,n,1/∣graddΓ∣ and χ are bounded and Lipschitz on U, so N is Lipschitz and the identities hold at every point of Γ; there χ=1 and n=n, so 2NgraddΓ=(jnT−njT)n=j−n(j⋅n)=j.
The amplitude required for a jump j is ∣N∣∼∣j∣/∣grad dΓ∣, uniformly controlled because ∣grad dΓ∣ is bounded away from zero on Γ. A signed distance, with ∣grad dΓ∣=1 on Γ, normalizes the geometric scale: the jump is 2Nn, and the effective amplitude satisfies Nn=21j.
Proposition 4.4 concerns the function-space module: every Lipschitz tangential jump field is attained exactly by a Lipschitz amplitude N. In the classes N is a network, and the jump of the finite neural module approximates j as the network approximates N in H1.
Corollary 4.5 (approximation of the jump amplitude). Let U be a bounded Lipschitz domain with Γ⊂∂U (a one-sided neighborhood of Γ), let ∣grad dΓ∣≤G on Γ, and for M∈H1(U;Kn) let JΓ(M):=2∣grad dΓ∣Mn∈L2(Γ)n, with the trace of M. Then
∥JΓ(M)−JΓ(M′)∥L2(Γ)≤22GCtr∥M−M′∥H1(U)
for M,M′∈H1(U;Kn), with Ctr the constant of the trace inequality ∥w∥L2(Γ)≤Ctr∥w∥H1(U). In particular, if N is the amplitude (4.2) of a jump j and Nm are Lipschitz networks, then [[Div(∣dΓ∣Nm)]]=JΓ(Nm) and [[Div(∣dΓ∣Nm)]]−j∥L2(Γ)≤22GCtr∥N−Nm∥H1(U).
Proof. JΓ is linear and ∣Mn∣≤(∑i,jMij2)1/2=2(∑i<jMij2)1/2 pointwise; apply the trace inequality to each entry. The identity for Nm is Proposition 4.4 with A0=0.
Remark 4.6 (Kellogg checkerboard). Several fixed interfaces are treated by one module each, and where two of them cross a product term is added. For the interfaces {x1=0} and {x2=0} of the Kellogg checkerboard problem [41, 58] the two-dimensional potential is
(4.3)
ψθ=N0+∣x1∣N1+∣x2∣N2+∣x1∣∣x2∣N3,
and the same form vθ=V0+∣x1∣V1+∣x2∣V2+∣x1∣∣x2∣V3 is used for the scalar solution, which is continuous with coefficient-induced derivative jumps. On {x1=0}, [∂x1ψθ]=2N1(0,x2)+2∣x2∣N3(0,x2) (Lemma 4.3 with ρ=∣x1∣ and the amplitude N1+∣x2∣N3), and [curlψθ⋅t] is minus this (Corollary 4.10); similarly on {x2=0}. The two break lines are present for every parameter value. The singular behavior at the cross point, u∼rαφ(ϑ) with 0<α<1, is left to the trainable networks.
S. ZHANG
4.3. Regularity recovery and enriched approximation. The module also recovers regularity: after the kink is extracted, the remaining potential is globally smoother.
Proposition 4.7 (regularity recovery). Let Γ divide Ω into Lipschitz subdomains Ω±, let dΓ∈W1,∞(Ω) with dΓ∣UΓ∈C1,1(UΓ) on a neighborhood UΓ of Γ, Γ⊂{dΓ=0}, ±dΓ>0 on Ω±∩UΓ, and ∣graddΓ∣ bounded away from zero on Γ, and let v∈H(div;Ω) satisfy divv=0, Fi(v)=0, i=1,…,b, and v∣Ω±∈H1(Ω±)n, with jump j:=[v] on Γ. If N∈H2(Ω;Kn) is supported in UΓ and 2∣graddΓ∣Nn=j on Γ, then
Proof. Let w:=Div(∣dΓ∣N). Since ∣dΓ∣N∈H1(Ω;Kn), w lies in the space (2.10): divw=0 and Fi(w)=0. On Ω±, ∣dΓ∣N=±dΓN∈H2, so w is in H1 on both sides, and w=Ngrad∣dΓ∣+∣dΓ∣ Div N has the traces ±NgraddΓ on Γ, since ∣dΓ∣=0 there; hence ∥w∥=2NgraddΓ=2∣graddΓ∣Nn=j. The field v0:=v−w is divergence free, has zero cavity fluxes, is in H1 on both sides and has no jump across Γ, so v0∈H1(Ω)n (a function that is in H1 on both sides of a Lipschitz interface and has equal traces there is in H1). Corollary 2.9 with r=1 gives v0=DivA0 with A0∈H2(Ω;Kn) and ∥A0∥2≤C1∥v0∥1.
For a flux τ=DivA+w, with w=Rnq+h or w=z, the proposition is applied to its potential part v=DivA=τ−w, which is divergence free and has zero cavity fluxes, whenever that part is piecewise H1; no regularity of w is needed. The existence of N∈H2 is a hypothesis on the jump: piecewise H1 regularity of v gives only j∈H1/2(Γ)n, whereas the trace of 2∣graddΓ∣Nn with N∈H2 is smoother. It holds if NΓ:=(jnT−njT)/(2∣graddΓ∣) on Γ, for which 2∣graddΓ∣NΓn=j, has an H2 extension supported in UΓ. Two facts are thus separate: a Lipschitz jump is realized exactly by a Lipschitz amplitude (Proposition 4.4), and an H2 amplitude yields an H2 remainder. With the fixed-interface classes, the approximation problem then splits into approximation problems for smooth functions.
Corollary 4.8 (fixed-interface best approximation). Let τ=Div(A0+∣dΓ∣N)+w with A0,N∈H1(Ω;Kn), dΓ∈W1,∞(Ω) and a remaining part w of either class, and let the class consist of Div(A0,m+∣dΓ∣Nm)+wm with A0,m∈Am, Nm∈Am′, {Am′} a second family as in Section 2.6, and wm=Rnqm+h with qm∈Qm, respectively wm=zm∈Zm. Then
with Cd:=∥dΓ∥L∞(Ω)+∥graddΓ∥L∞(Ω) and Ew=(1+4Cx02/n2)1/2infqm∈Qm∥q−qm∥0 in the first class, Ew=ninfzm∈Zm∥z−zm∥1 in the second.
Proof. The upper bounds in the proofs of Theorems 2.10 and 3.2 hold for every Am, in particular for Am=A0,m+∣dΓ∣Nm. Since grad(∣dΓ∣M)=sign(dΓ)M⊗graddΓ+∣dΓ∣gradM almost everywhere, ∣∣dΓ∣M∣1≤Cd∣∣M∣∣1, which applied to M=N−Nm gives the estimate.
Under the H2-amplitude hypothesis of Proposition 4.7, the prescribed amplitude N is in H2, and the recovered remainder A0 is in H2 as well. The interface singularity is thus isolated in the explicit kink factor, and the remaining potential approximation problems are for smooth functions; this is the intended purpose of the module. The remaining part, q or z, is not affected.
4.4. Learned-interface potentials. The same mechanism works without prescribing the interface. With a trainable scalar function gη let
(4.4)
Aθ,η=A0,θ+ReLU(gη)Nθ;
the zero level set of gη carries the geometry, while the jump is determined by the product Nθ grad gη.
Proposition 4.9 (trainable interface). Let gη∈W1,∞(Ω), A0,θ,Nθ∈H1(Ω;Kn) and Bθ,η:=ReLU(gη)Nθ. Then Aθ,η∈H1(Ω;Kn) and DivAθ,η+w∈H(div;Ω) for every (θ,η) and every remaining part w as in Lemma 4.3, also where Γη:={gη=0} has singular points, branches, or points with gradgη=0; moving the learned interface never destroys H(div) conformity. Let x∗∈Γη be a regular point: gη is continuously differentiable near x∗ (for a ReLU network gη: x∗ away from its own activation interfaces) with gradgη(x∗)=
0, and Nθ is Lipschitz continuous near x∗. With the + side {gη>0} and nη=grad gη/∣grad gη∣, in the sense of one-sided essential limits at x∗,
and the same identities hold for Aθ,η if A0,θ is continuously differentiable near x∗. At each regular point the jump map N↦Ngrad gη(x∗) is onto nη⊥: for j⋅nη=0, N=∣grad gη(x∗)∣−1(jnηT−nηjT) gives Ngrad gη(x∗)=j. This is a pointwise statement; it does not assert that a fixed finite network realizes a prescribed jump field exactly along Γη.
Proof. ReLU(gη)∈W1,∞(Ω), so the first part of Lemma 4.3 gives conformity for every (θ,η); it uses neither the zero set nor its regularity. Near a regular point, Γη is a C1 hypersurface, ReLU(gη) equals gη on {gη>0} and 0 on {gη<0}, both continuously differentiable up to Γη, so ∥gradρ∥=gradgη(x∗), and Lemma 4.3 gives the identities.
The amplitude required at a regular point is ∣Nθ(x∗)∣∼∣j∣/∣grad gη(x∗)∣; uniform control of it on a part of Γη requires a lower bound ∣grad gη∣≥c0>0 there, which the signed distance of the fixed module provides with c0=1. The one-sided module ReLU(gη)Nθ is a convenient choice; ∣gη∣Nθ gives the two-sided analogue, with jump 2Nθ grad gη as in Proposition 4.4. In both modules the jump is the amplitude network times the jump of the gradient of the multiplier.
The parameterization has the positive scaling symmetry
which leaves the realized potential, the zero set and the jump product Nθ grad gη unchanged. There may be further nonuniqueness; for instance, where Nθ=0 the zero set of gη is not seen at all. Any unregularized functional that depends on (gη,Nθ) only through the realized field is invariant under this scaling, and a normalization of gη can remove this global scaling degeneracy.
For a fixed interface the results above give the exact realization of every Lipschitz admissible jump, the recovery of regularity, and an enriched best-approximation estimate. The learned-interface results establish conformity for every parameter value and the local jump mechanism; no theorem on the global recovery of the interface or on an improved approximation rate is asserted for Level II.
As a realizable function class, a class with a module contains the class without it (Nθ=0, the same A0,θ), so the conformity and approximation upper bounds above, in particular (2.13) and (3.2), remain valid for it; this does not compare the parameter budgets of the two architectures. The purpose of a module is to improve the finite-parameter representation of an interface kink, without forcing the flux into H1(Ω)n, whose components have single-valued traces on an interior interface and therefore no jump there: the potential is in H1, and its kink carries the jump.
4.5. Two and three dimensions. With A=ψE12 for n=2 and Aij=∑kεijkΨk for n=3 (Section 2.7), the results of this section read as follows.
Corollary 4.10 (two-dimensional jumps). (a) If ψ is continuous and piecewise affine on a finite polygonal partition (for instance a finite ReLU network), then curlψ is piecewise constant, belongs to H(div;Ω), and across the relative interior of every interior edge [curlψ⋅n]=0 and [curlψ⋅t]=−[∂nψ].
(b) Under the hypotheses of Proposition 4.1, with A=ψE12: [∂tψ]=0, [∂nψ]=−[τ⋅t] and [τ⋅n]=0; the kink of ψ is determined by the tangential jump of τ.
(c) At points of Γ near which N1 is Lipschitz continuous and N0 is continuously differentiable, ψ=N0+∣dΓ∣N1 has [∂nψ]=2∣graddΓ∣N1 and [curlψ⋅t]=−2∣graddΓ∣N1 (2N1 and −2N1 for a signed distance). For
(4.6)
ψθ,η=N0,θ+ReLU(gη)N1,θ,
at a regular point of Γη near which N1,θ is Lipschitz continuous and N0,θ is continuously differentiable, with tη=(−nη,2,nη,1)T, [gradψθ,η]=N1,θgradgη, [curlψθ,η⋅nη]=0 and [curlψθ,η⋅tη]=−N1,θ∣gradgη∣.
S. ZHANG
Proof. Corollary 4.2, Proposition 4.1 and Propositions 4.4 and 4.9 with A=ψE12, N=N1E12: [∂nA]=[∂nψ]E12 and E12n=−t.
Corollary 4.11 (three-dimensional jumps). (a) If Ψ∈H1(Ω)3 is piecewise H2 on the two sides of a smooth interface with unit normal n (or continuous and piecewise affine, across the relative interior of every interior face), then [curlΨ]=n×[∂nΨ].
(b) For Ψ=Ψ0+∣dΓ∣N with dΓ as in Section 4.2, at points of Γ near which N is Lipschitz continuous and Ψ0 is continuously differentiable, [curlΨ]=2grad dΓ×N.
(c) For Ψθ,η=Ψ0,θ+ReLU(gη)Nθ, at regular points of Γη near which Nθ is Lipschitz continuous and Ψ0,θ is continuously differentiable, [curlΨθ,η]=gradgη×Nθ.
All these jumps are tangential.
Proof. With Aij=∑kεijkΨk and Nij=∑kεijkNk, [∂nA]n=n×[∂nΨ] and Nv=v×N; (a) is Lemma 2.1(b) and Corollary 4.2, (b) and (c) are Lemma 4.3 with [gradρ]=2graddΓ and [gradρ]=gradgη (Propositions 4.4 and 4.9).
4.6. A divergence that jumps. The tangential jumps above are carried by the potential in both classes. A jump of the divergence concerns the remaining part w. If the divergence q∗=divτ∗ of the target is piecewise continuous and jumps across Γ, the two classes carry this jump as follows. In the first class, qm itself may jump: a piecewise qm for a known interface, or qm=Q0+χQ1 with χ the indicator function of {gη>0} for a learned one; Rnqm remains continuous under the segment condition of Lemma 2.5, and conformity is not affected, since only qm∈L2 is required. In the second class, zm∈H1 has no interface jump, and the jump of its divergence comes from a kink.
Lemma 4.12 (divergence of a kinked field). Let ρ∈W1,∞(Ω), z0,Z1∈H1(Ω)n and z:=z0+ρZ1. Then z∈H1(Ω)n. Let further x∗∈Ω, Γ, n and ρ be as in Lemma 4.3, let Z1 be Lipschitz continuous and z0 continuously differentiable near x∗. Then, in the sense of one-sided essential limits at x∗, [[z]]=0 and
[divz]=Z1(x∗)⋅[gradρ]=[∂nρ]Z1(x∗)⋅n.
For ρ=∣dΓ∣ this is 2Z1⋅graddΓ, and for ρ=ReLU(gη) it is Z1⋅gradgη. If dΓ∈C1,1 near Γ, every Lipschitz jump j on Γ is attained with the Lipschitz amplitude Z1=χj~graddΓ/(2∣graddΓ∣2), j~ a Lipschitz extension of j and χ a cutoff as in Proposition 4.4.
Proof. As in Lemma 4.3, applied to the components of z: grad(ρZ1)=Z1⊗gradρ+ρgradZ1∈L2, and near x∗ the term ρgradZ1 tends to zero, so [gradz]=Z1(x∗)⊗[gradρ], whose trace is the jump of divz; z itself is continuous. For the last statement, 2Z1⋅graddΓ=χj~=j on Γ.
In Σm,nreg the module zm=z0,m+∣dΓ∣Z1,m for a known interface, or zm=Z0,m+ReLU(gη)Z1,m for a learned one, therefore carries the jump of the divergence with the same factor as the potential; in a generic network, a kink of zm at the zero set of a unit of a shared last layer does the same. When the divergence of the target is continuous across Γ, no module in zm is needed.
4.7. Three implementation levels. The three levels below describe how the interface geometry enters the skew potential carrying the flux jump, in the same way for both classes. If the divergence also jumps, the same interface information is used in the remaining part, as described in Section 4.6. With the n(n−1)/2 entries aij,i<j, of the potential as scalar network outputs, the flux is
(4.7)
τθ,η=DivAθ,η+wθ,wθ=Rnqθ+r∑crhrorwθ=zθ,
and the levels are the following choices of Aθ,η, with A0,θ and Nθ skew.
Level I (known interface): A=A0,θ+∣dΓ∣Nθ with a fixed level-set function dΓ; the geometry is given; the amplitude network is Nθ, and the module contributes the flux jump [Div(∣dΓ∣Nθ)]=2Nθgrad dΓ ( 2Nθn for a signed distance), which is the jump of Div A where A0,θ has no kink on Γ. The n(n−1)/2 entries of A0,θ and of Nθ are scalar outputs, for instance of one network with a linear output layer; the module doubles the number of output coefficients of the potential and adds no trainable parameter for the geometry. The function dΓ is data, evaluated in closed form, for instance dΓ(x)=x1−s for the plane {x1=s} or dΓ(x)=∣x−xC∣−R for a sphere (smooth away from xC); both are signed distances, but any level-set function as in Proposition 4.4 can be used. The module contains an explicit multiplication and need not itself be representable by an ordinary finite ReLU network; when both factors are continuous and piecewise linear, their product is in general piecewise quadratic; in a ReLU-based implementation ∣dΓ∣Nθ=2ReLU(dΓ)Nθ−dΓNθ, and the last term has no additional kink across Γ. The derivative is evaluated piecewise from the explicit formula grad(∣dΓ∣Nθ)=sign(dΓ)Nθ⊗graddΓ+∣dΓ∣gradNθ (almost everywhere), so no numerical differentiation across the kink and no derivative of sign(dΓ) is required; since the residual integrand is in general only piecewise smooth and may jump across Γ, the quadrature is split along Γ, which is possible because Γ is known. With a smooth activation the identities of Proposition 4.4 hold at every point of Γ; with ReLU layers they hold away from the points where activation interfaces of A0,θ meet Γ.
Level II (learned interface): A=A0,θ+ReLU(gη)Nθ with a trainable scalar network gη; the geometry is learned through gη, whose parameters η are the only trainable parameters of the geometry; the amplitude network is Nθ, and the module contributes the flux jump [Div(ReLU(gη)Nθ)]=Nθgradgη at regular points of Γη, which is the jump of Div A where A0,θ has no kink on Γη. By Proposition 4.9 the field is in H(div) for every η. The derivative is evaluated piecewise from grad(ReLU(gη)Nθ)=χ{gη>0}(Nθ⊗gradgη+gηgradNθ) (almost everywhere); for a ReLU network gη the jump formula holds at points of Γη away from the activation interfaces of gη. A finite ReLU network gη is continuous and piecewise linear, so its zero set Γη is piecewise flat on its activation partition; a smooth geometry network can produce a genuinely curved zero set. Since the kink moves with η, the numerical integration must account for the moving zero set, either by cutting the quadrature cells along the current zero set of gη (the derivative with respect to η then contains the motion of the cut) or by a cellwise weak treatment of the derivatives; a fixed pointwise rule with automatic differentiation alone does not in general capture the contribution associated with the motion of the kink.
Level III (generic): A=Aθ, an ordinary skew network without interface variable; the geometry is implicit in the activation partition. With ReLU layers the zero sets of the hidden preactivations provide the possible finite-width kink sets (a zero set produces no kink in the output if, for instance, its downstream coefficients vanish); with smooth activations an exact jump is absent at finite width and can only be approximated by a smooth transition layer.
If the target divergence is continuous across the interface, the remaining part wθ, given by the networks qθ and the harmonic coefficients, or zθ, is unchanged across the three levels; if the divergence jumps, it is treated as in Section 4.6; in two and three dimensions ψ and Ψ (Section 2.7) replace A. The fields are evaluated as described in Section 6.
5. NATIVE NEURAL APPROXIMATION IN H(curl)
5.1. Motivation: the de Rham sequence. In two and three dimensions the de Rham sequence at H(curl) is
with the scalar curl curl v=∂1v2−∂2v1 for n=2. The intrinsic continuity of H(curl) is tangential continuity: across an interface the tangential trace is single valued, while the normal component may jump. In two dimensions the picture is that of Sections 2 and 3 rotated, and both representations are available: curl is onto L2(Ω) and has a bounded right inverse S, so r:=curlE is an independent L2 function, E−Sr is curl free and hence a gradient up to finitely many fields determined by the topology, and E=gradϕ+Sr+h; or, by the regular decomposition, E=gradϕ+z with ϕ∈H1(Ω) and z∈H1(Ω)2. In three dimensions curl is not onto: its range is divergence free, so an unconstrained network cannot represent the curl, and only the regular decomposition E=gradϕ+z with z∈H1(Ω)3 is used. In all cases the gradient on the left carries the normal jumps through the kinks of ϕ, the remaining part has no interface jump in the situations of interest ( Sr+h is continuous for a bounded piecewise continuous r under the segment condition of Lemma 2.5, rotated, and z∈H1 has a single-valued trace), and networks for the representing functions give a field in H(curl;Ω) for every value of the parameters.
5.2. Two dimensions. For v=(v1,v2)T let J(v1,v2)T:=(−v2,v1)T and K:=−J. With the scalar curl of Section 5.1,
(5.1)
curlv=div(Kv),(Kv)⋅n=v⋅t,Kgradϕ=curlϕ,
S. ZHANG
so K (= E12 of Section 2.7) is an isometry from H(curl;Ω) onto H(div;Ω) that maps tangential traces to normal traces. With S:=K−1R2=JR2, Lemma 2.3 gives curl(Sr)=r and ∥Sr∥0≤Cx0∥r∥0. As for H(div), there are two representations: the rotation of Corollary 2.13 and the rotation of Proposition 3.1 with n=2 give
In the first, r and hcurl are unique, the potential is unique up to a constant, and
(5.3)
∣ϕ∣1+∥hcurl∥0+∥r∥0≤C∥E∥H(curl),
the rotation of the bound in Corollary 2.13. The cohomology part is determined by the circulations of E around the holes. By (5.1) the circulation ⟨v⋅t,1⟩Γj is the flux of Kv through Γj: for Jhi it is the flux of KJhi=hi, that is −2πδij; for grad ϕ it is zero, ϕ being single valued on the closed curve Γj; and for Sr it is the flux of R2r, which is zero by Corollary 2.6. So the coefficients of hcurl are the circulations of E divided by −2π. In the second, ϕ and z depend linearly on E with ∥ϕ∥1+∥z∥1≤C∥E∥H(curl) (Corollary 5.2), and no cohomology part appears. Let {Pm}, {Qm} and {Zm} be nested families with Pm⊂H1(Ω), Qm⊂L2(Ω) and Zm⊂H1(Ω)2, and let
Corollary 5.1 (first two-dimensional neural H(curl) class). For every value of the trainable parameters, every element of EmdR lies in H(curl;Ω) and curl(gradϕm+Srm+hcurl)=rm. For E as in (5.2)
Proof. Apply the isometry K and Corollary 2.13. Directly: E−Em=grad(ϕ−ϕm)+S(r−rm), the first term is curl free, and ∥S(r−rm)∥H(curl)2=∥R2(r−rm)∥02+∥r−rm∥02≤(1+Cx02)∥r−rm∥02. The lower bound holds since curl Em=rm gives ∥E−Em∥H(curl)≥∥r−rm∥0.
Corollary 5.2 (second two-dimensional neural H(curl) class). Every E∈H(curl;Ω) can be written E=gradϕ+z with ϕ∈H1(Ω) and z∈H1(Ω)2 depending linearly on E, ∥ϕ∥1+∥z∥1≤C∥E∥H(curl) and curlE=curlz. For every value of the trainable parameters, every element of Emreg lies in H(curl;Ω) and curl(gradϕm+zm)=curlzm, and
Proof. Apply Proposition 3.1 with n=2 to KE: KE=curlψ+w with ψ∈H1(Ω) and w∈H1(Ω)2. Since K−1=J and Jcurlψ=JKgradψ=gradψ by (5.1), E=gradψ+Jw; take ϕ=ψ and z=Jw, so that ∥ϕ∥1+∥z∥1≤C∥KE∥H(div)=C∥E∥H(curl), and curlz=div(KJw)=divw=divKE=curlE. For the classes, curl gradϕm=0, and for w∈H1(Ω)2, ∣curlw∣2≤2(∣∂1w2∣2+∣∂2w1∣2), so ∥w∥H(curl)≤2∥w∥1.
As for H(div), the second class is the componentwise approach enriched by the curl-free field gradϕm, which carries the interface jumps (Section 5.1).
The correct finite-parameter continuity is already visible for piecewise affine potentials.
Lemma 5.3 (piecewise affine scalar potentials). If ϕ is continuous and piecewise affine on a finite polygonal partition, then gradϕ is piecewise constant and belongs to H(curl;Ω), and across every interior edge with unit tangent t and normal n
(5.7)
[gradϕ⋅t]=0,[gradϕ⋅n]maybenonzero.
This applies to every finite scalar ReLU network.
Proof. The trace of ϕ on the edge is single valued, so its tangential derivative is the same from both sides; the piecewise curl of grad ϕ vanishes, and the continuity of the tangential trace excludes an edge contribution to the distributional curl.
A finite ReLU scalar potential therefore generates jumps of exactly the admissible H(curl) type, in both classes; this is the rotation of Corollary 4.10(a).
5.3. Three dimensions. In three dimensions the rotation is not available, and the regular decomposition replaces it. We consider ΓD=∅ or ΓD=∂Ω only and let HΓD(curl;Ω):={u∈H(curl;Ω):u×n=0 on ΓD}, with the trace in the usual weak sense, and HΓD1(Ω):={v∈H1(Ω):v=0 on ΓD}; thus H∅(curl;Ω)=H(curl;Ω) and H∂Ω(curl;Ω)=H0(curl;Ω). For a bounded Lipschitz domain in R3 the regular decomposition
(5.8)
E=gradϕ+z,ϕ∈HΓD1(Ω),z∈HΓD1(Ω)3,
holds for every E∈HΓD(curl;Ω), with ϕ and z depending linearly and boundedly on E,
(5.9)
∥ϕ∥1+∥z∥1≤C∥E∥H(curl),
so that, once the decomposition operator is fixed, E↦(ϕ,z) is a bounded linear map [35], [34, Lemma 2.4]. For ΓD=∅ this follows from the regularized Poincaré operators Rℓ and the smoothing operators Kℓ of [28, Theorem 4.6], which satisfy grad R1E+R2 curl E=E−K1E with R1,R2:L2→H1 bounded and K1E smooth: ϕ=R1E and z=R2 curl E+K1E. For ΓD=∂Ω the Bogovskii-type operators Tℓ, Lℓ of the same theorem, applied to the extension of E by zero, give ϕ∈H01(Ω) and z∈H01(Ω)3 in the same way. There is no topological restriction and no separate harmonic part: a topological component is absorbed into the H1 field z. The neural realization is
(5.10)
Eθ=gradϕθ+zθ
with an ordinary scalar network ϕθ and an ordinary componentwise vector network zθ. With the boundary conditions imposed on ϕθ and zθ, Eθ∈HΓD(curl;Ω) and curl Eθ=curlzθ for every parameter value; the represented field need not lie in H1(Ω)3, since the gradient part may have normal jumps.
Lemma 5.4 (intrinsic H(curl) continuity). If ϕ is continuous and piecewise affine on a polyhedral partition of Ω⊂R3, then gradϕ is piecewise constant, gradϕ∈H(curl;Ω), and across every interior face F with unit normal nF
(5.11)
nF×[∣gradϕ∣]=0,[∣gradϕ⋅nF∣]may be nonzero.
Consequently gradϕ+z with z∈H1(Ω)3 has the same tangential continuity and may retain the normal jump of gradϕ.
Proof. The restriction of ϕ to F is single valued, so all tangential derivatives agree from both sides, which is nF×[gradϕ]=0; the distributional curl therefore has no surface part on F.
Let {Pm}m≥1 and {Zm}m≥1 be nested families with Pm⊂HΓD1(Ω) and Zm⊂HΓD1(Ω)3, and let Em:={gradϕm+zm:ϕm∈Pm,zm∈Zm}.
Proposition 5.5 (three-dimensional neural H(curl) class). Every realization in Em lies in HΓD(curl;Ω), and for a regular decomposition E=gradϕ+z
Proof. For Em=gradϕm+zm we have curl Em=curlzm, hence ∥E−Em∥H(curl)≤∣ϕ−ϕm∣1+∥z−zm∥H(curl), and ∥v∥H(curl)2=∥v∥02+∥curlv∥02≤∥v∥02+2∣v∣12≤2∥v∥12 since ∣curlv∣2≤2∣gradv∣2 pointwise; the regular decomposition is surjective, so every E has such a representation.
The representing functions inherit the regularity of the field.
Remark 5.6 (smoother decompositions). If ΓD=∅ and E, curl E∈Hr(Ω)3, r≥0, the regular decomposition can be chosen with ϕ∈Hr+1(Ω), z∈Hr+1(Ω)3 and ∥ϕ∥r+1+∥z∥r+1≤Cr(∥E∥r+∥curlE∥r): a field z0∈Hr+1(Ω)3 with curl z0=curlE exists by [28, Corollary 4.7(a)], and the curl-free remainder E−z0 is grad ϕ plus a smooth field of a finite-dimensional space [28, Theorem 4.9(b)], which is added to z0. This is used in Proposition 5.10.
S. ZHANG
Remark 5.7 (regular decomposition, not Helmholtz decomposition). (5.8) is not a Helmholtz decomposition: z is neither divergence free nor orthogonal to gradients. This matters for the neural parameterization, since on a nonconvex domain the divergence-free part of a Helmholtz decomposition may lie in H(curl)∩H(div) without belonging to H1(Ω)3 [27]; the regular decomposition is used because both of its parts are in H1.
If the classes for the representing functions have dense unions in the corresponding H1 spaces (with their boundary conditions), and in L2 for the curl r of the two-dimensional class, then the native H(curl) classes are dense in the graph space, by (5.5) and (5.12).
5.4. Normal jumps and interface modules. The mechanism of Lemmas 5.3 and 5.4 holds near a smooth interface as well, also with the interface modules of Sections 4.2 and 4.4 applied to the scalar potential. With Pτ:=I−n⊗n the tangential projection, Pτ[E]=0 is the continuity of the tangential trace; for n=3 it is n×[E]=0.
Proposition 5.8 (normal jumps carried by the scalar potential). Let Ω⊂Rn, n=2,3, let Γ be a smooth interface with unit normal n, and let E=gradϕ+w near Γ, where ϕ∈H1 is piecewise H2 on the two sides of Γ, and w∈H(curl) has no jump across Γ (its one-sided traces coincide; w∈H1 is sufficient). Then, with one-sided traces,
Pτ[E]=0,[E⋅n]=[∂nϕ],
and a prescribed normal jump j is carried by the kink [∂nϕ]=j, which it determines. For the modules the same formulas hold in the sense of one-sided essential limits, under the weaker local assumptions of Lemma 4.3: for ϕ=ϕ0+∣dΓ∣N with ϕ0,N∈H1 and dΓ as in Section 4.2, [∂nϕ]=2∣graddΓ∣N at the points of Γ near which N is Lipschitz continuous and ϕ0 is continuously differentiable; for ϕ=ϕ0+ReLU(gη)N, [gradϕ]=Ngradgη, a normal vector, at the regular points of Γη (as in Proposition 4.9) near which N is Lipschitz continuous and ϕ0 is continuously differentiable. In both cases gradϕ+w∈H(curl) for every value of the parameters.
Proof. ϕ has a single-valued trace on Γ, so [gradϕ]=[∂nϕ]n, and [E]=[gradϕ]. The modules are treated as in Propositions 4.4 and 4.9 with the scalar N in place of the skew matrix. Conformity holds because ϕ∈H1 and curl gradϕ=0.
In two dimensions (5.2) has this form with w=Sr+hcurl∈H(curl), which has no jump across Γ when r is bounded and piecewise continuous and the condition on the segments of Lemma 2.5 holds (rotated); in the regular decomposition w=z∈H1.
If E has a nonzero normal jump on a subset of positive (n−1)-dimensional measure of a smooth interface, as can occur across a coefficient interface in a curl–curl problem, then ϕ∈/H3/2(Ω) in every decomposition E=gradϕ+w with w as in Proposition 5.8: w has no jump, so gradϕ=E−w carries the jump, which excludes gradϕ∈H1/2(Ω)n by the H1/2 jump obstruction of Section 4.2. The modules separate the singular part from smoother functions.
If dΓ∈C1,1 near Γ, every prescribed normal jump is attained by the fixed module: for a Lipschitz function j on Γ, the amplitude N:=χj/(2∣graddΓ∣), with a Lipschitz extension j of j and a cutoff χ as in Proposition 4.4, gives [∂n(∣dΓ∣N)]=j on Γ. The jump depends continuously on the amplitude.
Corollary 5.9 (approximation of the normal-jump amplitude). With U, G and Ctr as in Corollary 4.5, ∥2∣graddΓ∣(M−M′)∥L2(Γ)≤2GCtr∥M−M′∥H1(U) for M,M′∈H1(U). In particular, if N is the amplitude of a jump j and Nm are Lipschitz networks, then ∥[∂n(∣dΓ∣Nm)]−j∥L2(Γ)≤2GCtr∥N−Nm∥H1(U).
Proof. Apply the trace inequality to M−M′; the identity [∂n(∣dΓ∣Nm)]=2∣graddΓ∣Nm is Proposition 5.8 with ϕ0=0.
The module also extracts the whole normal jump at the level of the field, as for H(div) (Proposition 4.7).
Proposition 5.10 (regularity recovery). Let n=2,3, and let Γ, Ω±, dΓ and UΓ be as in Proposition 4.7. Let E∈H(curl;Ω) with E∣Ω±∈H1(Ω±)n and normal jump j:=[E⋅n] on Γ, and let N∈H2(Ω) be supported in UΓ with 2∣graddΓ∣N=j on Γ. Then
E=grad(∣dΓ∣N)+z,z∈H1(Ω)n.
This is the form of the second representation; for n=2, in the first representation of (5.2), E=grad(ϕ0+∣dΓ∣N)+Sr+hcurl with ϕ0∈H1(Ω), r=curlE and hcurl the cohomology part of E. If n=3 and curlE∈H1(Ω)3, then E=grad(ϕ0+∣dΓ∣N)+z′ with ϕ0∈H2(Ω) and z′∈H2(Ω)3.
Proof. Since E∈H(curl;Ω), its tangential trace is single valued, Pτ[E]=0, so [E]=jn. On Ω±, ∣dΓ∣N=±dΓN∈H2, so grad(∣dΓ∣N)=Ngrad∣dΓ∣+∣dΓ∣gradN is in H1 on both sides, with traces ±NgraddΓ on Γ; its jump is 2NgraddΓ=2∣graddΓ∣Nn=jn. Hence z:=E−grad(∣dΓ∣N) is in H1 on both sides and has no jump across Γ, so z∈H1(Ω)n by the same gluing argument. For n=2, (5.2) applied to z gives z=gradϕ0+Sr+hcurl with r=curlz=curlE, and hcurl has the circulations of z, which are those of E, since the gradient of an H1 function has zero circulations. For n=3, curlz=curlE∈H1(Ω)3, and Remark 5.6 with r=1 gives z=gradϕ0+z′ with ϕ0∈H2(Ω) and z′∈H2(Ω)3.
The scalar kink extracts the entire admissible jump of an H(curl) field, and the remainder is an ordinary H1 field; this is the counterpart of the extraction of the tangential jump of an H(div) field by the kink of the skew potential. As there, the existence of N∈H2 is a hypothesis on the jump: it holds if NΓ:=j/(2∣graddΓ∣) on Γ has an H2 extension supported in UΓ.
Corollary 5.11 (fixed-interface best approximation). Let dΓ∈W1,∞(Ω), let {Pm′} be a second family of scalar classes, and let Cd be as in Corollary 4.8.
(a) For n=2, E=grad(ϕ0+∣dΓ∣N)+Sr+hcurl with ϕ0,N∈H1(Ω), r∈L2(Ω), hcurl∈JH, and the class of the fields grad(ϕ0,m+∣dΓ∣Nm)+Srm+hcurl with ϕ0,m∈Pm, Nm∈Pm′,rm∈Qm,
(b) For n=3 and ΓD=∅, E=grad(ϕ0+∣dΓ∣N)+z with ϕ0,N∈H1(Ω), z∈H1(Ω)3, and the class of the fields grad(ϕ0,m+∣dΓ∣Nm)+zm with ϕ0,m∈Pm, Nm∈Pm′,zm∈Zm,
Proof. In both cases E−Em is grad(ϕ0−ϕ0,m)+grad(∣dΓ∣(N−Nm)) plus S(r−rm) for n=2 and z−zm for n=3. The gradients are curl free, and ∣∣dΓ∣M∣1≤Cd∣∣M∣∣1 as in Corollary 4.8; ∥S(r−rm)∥H(curl)≤(1+Cx02)1/2∣∣r−rm∣∣0 as in the proof of Corollary 5.1, and ∥v∥H(curl)≤2∥v∥1 as in the proof of Proposition 5.5.
With ΓD=∂Ω the module is placed inside the boundary-conforming parameterization of the scalar potential, as described at the end of this subsection. For n=3, if curl E∈H1 and N∈H2, Proposition 5.10 gives ϕ0, N and z′ in H2, and the nonsmooth graph-space field is reduced to approximation problems for smooth functions.
Remark 5.12 (the kink is intrinsic). The regular decomposition is not unique, but its singular part is. If E=gradϕ1+z1=gradϕ2+z2 with z1,z2∈H1(Ω)n, then grad(ϕ1−ϕ2)=z2−z1∈H1(Ω)n, so ϕ1−ϕ2∈H2(Ω); where one-sided traces exist, [∂nϕ1]=[∂nϕ2]=[E⋅n]. The kink is determined by the field, not by the decomposition operator.
The three implementation levels of Section 4.7 apply to the scalar potential: ϕθ=ϕ0,θ+∣dΓ∣Nθ with the interface known, ϕθ=ϕ0,θ+ReLU(gη)Nθ with the interface learned, or a generic ReLU network ϕθ, whose normal jumps lie on its kink sets (Lemmas 5.3 and 5.4). With the essential condition on ΓD=∂Ω the module is placed inside the boundary-conforming parameterization of the scalar potential, for instance ϕθ=B(ϕ0,θ+∣dΓ∣Nθ) with a boundary factor B∈W1,∞(Ω) that vanishes on ΓD and is positive in Ω (Section 8.1), so that ϕθ∈HΓD1(Ω) for every parameter value; the kink is then 2B∣graddΓ∣Nθ, and likewise with ReLU(gη).
5.5. Relation to finite elements and componentwise networks
Remark 5.13 (relation to Nédélec elements). In two dimensions K−1=J maps the Raviart–Thomas spaces onto the Nédélec spaces of the first kind and curls to gradients; Remark 2.12 therefore gives, on a triangle T with a local center xT and ST:=JR2,T,
Nk(T)=JRTk(T)=gradPk+1⊕STPk,
S. ZHANG
so grad ϕ+STr with ϕ∈Pk+1 and r∈Pk is exactly Nk(T), and the class EmdR of (5.4) replaces the polynomials ϕ and r by networks. On a conforming triangulation Th of a simply connected Ω, the curl-free fields of the lowest-order Nédélec space are grad S1(Th), and every function in S1(Th) is a ReLU network [32]; this is the rotation of Remark 2.14. In three dimensions Nk(T)=Pk3⊕(x−xT)×Pk3=gradPk+1⊕(x−xT)×Pk3 [1], where the second part is the Poincaré operator applied to the curl. The class (5.10) replaces it by the H1 field z, since the curl cannot be prescribed freely (Section 5.1), and no correspondence with Nédélec spaces is claimed.
Since H1(Ω)n⊂H(curl;Ω), a componentwise H1 network is automatically H(curl)-conforming. It imposes more continuity than H(curl) requires, however: an H1 field has single-valued traces of all components across interior interfaces (and a finite network with a continuous activation is componentwise continuous), whereas the graph space requires only a single-valued tangential trace; so no realization has a normal jump across an interior interface, and a normal jump of the target can only be approximated by a continuous transition layer. The structured class gradϕθ+zθ does not impose this continuity: with a ReLU potential, gradϕθ has a normal jump already at finite width while keeping the correct tangential trace. Componentwise continuous networks are a continuous-space analogue of vector Lagrange elements ( C0)^n, and the structured classes one of Nédélec elements, exactly so on a triangle in two dimensions (Remark 5.13).
6. THE FOSLS-DERHANN METHOD
Given a stable FOSLS formulation in the natural spaces of the weak problem, the deRhaNN classes above provide conforming neural trial classes. We recall the resulting standard best-approximation estimate.
6.1. FOSLS-deRhaNN approximation. Let X=X1×⋯×XJ be a product of the natural spaces of a problem (H1,H(div),H(curl),L2, with homogeneous essential boundary conditions where required), Y a product of L2 spaces (and of a trace space such as H1/2(∂Ω) when a boundary condition is imposed through the functional, Section 7.3), L:X→Y bounded and linear, and F∈Y. The first-order system is Lz=F, and its least-squares functional is
J(z;F):=∥Lz−F∥Y2.
Assumption 6.1 (FOSLS stability). There are 0<cL≤CL with cL∥z∥X2≤∥Lz∥Y2≤CL∥z∥X2 for all z∈X, and Lz∗=F has a solution z∗∈X.
Then z∗ is the unique minimizer of J(⋅;F) over X, J(z∗;F)=0, and J(z;F)=∥L(z−z∗)∥Y2 for every z∈X. For the second-order elliptic equation, Assumption 6.1 holds under unique solvability alone, for right-hand sides in L2 and in H−1 [60].
Definition 6.2 (FOSLS-deRhaNN method). For j=1,…,J let {Xj,m}m be nested classes for Xj: ordinary networks for scalar unknowns in H1 or L2, and the native classes of Sections 2–5 for vector unknowns (for H(div) either the class of Section 2 or that of Section 3, for H(curl) in two dimensions either class of Section 5.2). Every realization lies in Xj for every parameter value. Let Xm:=X1,m×⋯×XJ,m. A FOSLS-deRhaNN approximation is any zm∈Xm with J(zm;F)≤infXmJ(⋅;F)+εm2, where εm≥0 is a suboptimality defect (from nonlinear optimization, stopping, regularized linear algebra or another numerical effect, which are not distinguished here). We call the resulting method FOSLS-deRhaNN, first-order system least squares with de Rham neural networks, in which the graph-space unknowns are represented by the deRhaNN classes developed above and the loss is the FOSLS functional posed in the natural spaces of the weak formulation.
Proposition 6.3 (best-approximation estimate). Under Assumption 6.1, Xm⊂X for every value of the trainable parameters, and
Proof. For every x∈Xm, J(zm;F)≤J(x;F)+εm2=∥L(x−z∗)∥Y2+εm2≤CL∥x−z∗∥X2+εm2, and J(zm;F)=∥L(zm−z∗)∥Y2≥cL∥zm−z∗∥X2.
Hence the best-approximation results for the native H(div) and H(curl) classes apply directly to the corresponding variables of any stable FOSLS formulation; in particular zm→z∗ if εm→0 and the classes have dense unions, which holds when the scalar network classes for the representing functions are dense in H1 (with their boundary conditions) and in L2 (Corollary 2.11 and Section 5.3).
6.2. Remarks on the trial classes
Remark 6.4 (shared hidden layers). The approximation estimates of Sections 2–5 minimize over each representing function independently, that is, over a product of scalar classes. In the computations the representing functions are outputs of one network with shared hidden layers, which at a fixed width is in general a proper subset of that product. Conversely, s networks of the same depth with widths m1,…,ms form one network with s outputs and width m1+⋯+ms: the first hidden layers are stacked, the deeper ones are block diagonal, and the output layer selects the blocks. The estimates over the product therefore hold for the shared architecture with the widths added, not at the same width.
Remark 6.5 (variants). Boundary conditions. Inhomogeneous essential conditions are imposed exactly in the classes (affine sets) or weakly through the functional (Section 7.3). Built-in equations. If L=(L1,L2) and the trial set is restricted to {L2z=F2}, which z∗ satisfies, then L2(z−z∗)=0, so J=∥L1z−F1∥2 on this set and the stability of Assumption 6.1 restricts to it; Proposition 6.3 holds unchanged. Any z2,p with L2z2,p=F2 gives the affine representation z2,p+kerL2, with native classes for kerL2; a bounded right inverse R2 of L2 is a convenient stable construction of such a lift, z2,p=R2F2, and is not needed for the stability. Density. Conformity alone does not suffice: if the closure of the union of the classes is a proper subspace of X, the best approximation error stays bounded away from zero. With Maxwell-type boundary conditions on nonsmooth domains, an H1-conforming single-field class may fail to be dense in the corresponding intersection graph space [27]; this is avoided by the first-order formulations used here.
Remark 6.6 (one variable per continuity space). As in least-squares finite element methods, the first-order system is chosen so that every variable lies in one continuity space and each continuity space has its own variable: u∈H1 and σ∈H(div) for second-order equations, E∈H(curl) and D∈H(div) for div-curl systems. The native classes are taken for each variable separately. What remains problem-specific is the equivalence of Assumption 6.1 for the chosen system, as for least-squares finite elements. An exterior-derivative equation dω=g can be built into the trial class with g an unconstrained trainable function only in top degree: in intermediate degree right inverses exist, but g must satisfy dg=0, which an arbitrary network does not satisfy automatically.
Remark 6.7 (a divergence equation in the system: two levels). Suppose the first-order system contains an equation divσ+B(z′)=f for the divergence of its H(div) unknown, with B acting on the other unknowns z′; in Section 7 B(v)=b⋅gradv+cv, in Section 9 B(v)=γv. (i) Simplification. In the first class τ=DivA+Rnq+h the divergence is one of the representing functions, divτ=q exactly, so the divergence residual is q+B(z′)−f: it contains q by its values and no derivative of the potential, which enters only the other residuals. In the second class the divergence residual is divz+B(z′)−f: it contains the first derivatives of z and, again, no derivative of the potential. This is used in the formulations of Sections 7, 9 and 10, which contain a divergence equation, and in their numerical examples, except the generic level of Section 9.1 with the first class. The curl–curl system of Section 8 has no divergence equation. (ii) Elimination. With the first class (Section 2), for some problems the divergence q can be eliminated by q:=f−B(z′), which builds the divergence equation into the class with the lift Rn(f−B(z′)) (the built-in equations of Remark 6.5); the divergence residual then vanishes identically. This removes one network and one residual, at the price of tying q to z′ (for the elliptic equation through gradv, Section 7.4). It is an option, not the main formulation; it is used for the generic level of transport with the first class (Section 9.1).
Sections 7 and 8 are instances of Proposition 6.3; Section 9 uses an error identity in a norm that is not equivalent to that of X.
6.3. Computation. The following describes the implementation used in the numerical examples. All theoretical statements refer to the exactly integrated least-squares functional; in the computations the integrals are evaluated numerically, and no convergence analysis of the quadrature or optimization procedures is attempted.
S. ZHANG
in this paper. The computed approximation does depend on how the functional is integrated: for free-knot linear splines, exact integration of the L2 fit leads to Gibbs oscillations at discontinuities [57]; adaptive quadrature for neural network functionals is used, for instance, in [49].
Output coefficients and nonlinear parameters. For the linear problems considered below, once the hidden and interface parameters are fixed, the output coefficients enter the residuals linearly and are computed by a linear least-squares (Galerkin) solve; the small regularization added there is a numerical stabilization of the linear algebra and not part of the functional. The representation maps have kernels that the functional does not see: A↦A+K with K∈kerDiv (for instance a constant skew matrix; in two dimensions ψ↦ψ+C), ϕ↦ϕ+C in the regular decomposition when constants are admissible, and more generally the nonuniqueness of the regular decomposition. The analysis concerns the fields, that is, the quotient by these kernels, whereas the linear least-squares problem for the output coefficients is singular in the corresponding directions when the outputs have biases; the regularization selects a solution there, and its effect on the functional is part of the suboptimality defect εm. The remaining nonlinear parameters, including those of the level-set network, are trained on the resulting reduced functional by Levenberg–Marquardt, restarted when it stalls, or by L-BFGS where noted; for the nonlinear conservation law the treatment is stated in Section 10.1.
Integration. We use two implementations for derivative residuals: direct integration on a partition cut along explicitly tractable kink sets (a given or learned level set, or the zero sets of the units of a network), and a cellwise moment treatment when resolving the activation partition explicitly is inconvenient. The choice used in each numerical experiment is stated below. In the moment treatment, every residual R=D+V that contains a derivative of the network, with D its derivative part and V its value part, enters training through its moments against P1 on the cells of a training partition, together with the part of V orthogonal to P1, integrated pointwise; residuals that contain only values are integrated pointwise. The moments of D are computed from values of the network by integration by parts on each cell, as in the discrete divergence operator of [12], whenever this can be done without differentiating a nonsmooth coefficient, the cells being split along coefficient interfaces where necessary. On a cell K the training functional Jh thus contains ∥ΠKR∥K2+∥(I−ΠK)V∥K2 instead of ∥R∥K2; the first term is at most ∥R∥K2, but the difference ∥(I−ΠK)D∥K2+2((I−ΠK)D,(I−ΠK)V)K has no sign in general, so Jh is not a lower bound for J. The computed iterate is checked by Jcheck, the functional integrated on a finer rule, cut along the physical interface and, where feasible, piecewise linearly on subcells along the zero sets of the ReLU units of the network; the rule used in each experiment is stated below. It is an independent finer evaluation of the functional, not a bound. Training cells on which Jcheck−Jh is large are refined, and units are added to the ReLU layer where Jcheck is large, by the adaptive network enhancement of [48, 45, 21]. The separation of output coefficients and hidden parameters follows [15, 16].
Evaluation of the H(div) representations. The fields of both classes are evaluated term by term. In the potential part, common to both, the entry aij contributes (∂jaij)ei−(∂iaij)ej to Div A, so the cost grows with the dimension through the n(n−1)/2 entries, each of which requires only the two partial derivatives ∂iaij and ∂jaij. In the first class the radial part Rnqm is evaluated by its one-dimensional integral. Since q is extended by zero in (2.5), the integral runs over the parts of Ix:={t∈(0,1):x0+t(x−x0)∈Ω} (the segment is clipped to Ω; Ix=(0,1) if Ω is starlike with respect to x0). For the computational geometries considered below these intersections have finitely many connected components, which are enumerated explicitly (for a general Lipschitz domain a line may meet Ω in infinitely many components, which does not affect the definition of Rn), and on each part (ta,tb) an Nt-point Gauss rule with nodes tℓ and weights ωℓ on (ta,tb) gives the contribution
(6.1)
(x−x0)ℓ=1∑Ntωℓtℓn−1qm(x0+tℓ(x−x0)),
so no derivative of qm is needed. The accuracy is that of the Gauss rule for t↦tn−1qm(x0+t(x−x0)) on each part: it is high for a smooth network, while kinks of qm along the segment (ReLU layers) or a piecewise qm across a known interface limit it unless the rule is split there as well. If the network qm is evaluated outside Ω instead of being extended by zero, the right-inverse identity still holds in Ω, while the bound (2.6), and with it (2.13), involves ∥q−qm∥L2(Ωx0∗), with q the zero extension of q and Ωx0∗:={x0+t(x−x0):x∈Ω,0≤t≤1} the union of the segments from x0 to Ω, instead of ∥q−qm∥0,Ω. The quadrature is an evaluation of the exact operator Rn: conformity and div Rnqm=qm are properties of Rn, and the computed field differs from Rnqm by the quadrature error; a Gauss sum regarded as an operator in its own right is not an exact right inverse of the divergence. In the second class there is no radial part: zm is evaluated pointwise, and div zm from the first derivatives of its components, like the entries of Am; conformity and divτm=divzm hold for the computed field exactly.
7. SECOND-ORDER ELIPTIC EQUATIONS
7.1. Problem and first-order system
Assumption 7.1. (i) Ω⊂R2 is a bounded Lipschitz polygon. Ω is partitioned into polygonal subdomains {Ωi}i=1m (the coefficient subdomains).
(ii) A∈L∞(Ω)2×2 is symmetric with λ0∣ξ∣2≤ξTAξ≤λ1∣ξ∣2; b,β∈L∞(Ω)2; c∈L∞(Ω). No derivatives of the coefficients are used.
(iii) The data are those of the weak formulation: f1∈L2(Ω), f2∈L2(Ω)2, and gD∈H1/2(∂Ω).
(iv) The bilinear form a(v,w):=(Agrad v−βv,grad w)+(b⋅grad v+cv,w) induces an isomorphism H01(Ω)→H−1(Ω). Equivalently, the homogeneous problem has only the trivial solution: a satisfies a Gărding inequality, and the lower-order terms are compact from H01(Ω) to H−1(Ω) ( v↦b⋅grad v+cv is bounded into L2(Ω), which embeds compactly into H−1(Ω), and v↦βv is compact into L2(Ω)2 by Rellich's theorem), so the operator is Fredholm of index zero.
The problem is posed at the level of the weak formulation: find u∈H1(Ω) with u=gD on ∂Ω and
(7.1)
a(u,w)=(f1,w)−(f2,gradw)∀w∈H01(Ω),
formally −div(Agrad u)+b⋅grad u+div(βu)+cu=f1+divf2 in Ω. Every F∈H−1(Ω) is of the form w↦(f1,w)−(f2,grad w): take z∈H01(Ω) with (z,w)+(grad z,grad w)=F(w) for all w, and f1=z, f2=−grad z. Hence Assumption 7.1(iii) is the general data class for which the weak problem is well posed, and u has only the regularity of the weak solution. Examples for which no strong form exists: f2 discontinuous, for instance the gradient of a continuous piecewise linear function [60]; and sources on curves, for instance, for the line {x1=0}, F(w)=∫{x1=0}gwds is of this form with f1=0 and f2=χ{x1>0}g(x2)e1. Point sources are not in H−1 for n≥2 and are not covered.
With the flux σ:=−Agradu+βu−f2, testing (7.1) with w∈Cc∞(Ω) gives divσ+b⋅gradu+cu=f1∈L2(Ω), so σ∈H(div;Ω). The first-order system is
(7.2)
A−1/2(σ−βu+f2)+A1/2gradu=0,divσ+b⋅gradu+cu=f1.
The H(div) unknown is σ; the physical flux −Agrad u+βu=σ+f2 is in general not in H(div;Ω) when f2 jumps [60]. For F:=(f1,f2) and (v,τ)∈H1(Ω)×H(div;Ω) define
Remark 7.3 (data at the level of the weak formulation). Lemma 7.2 concerns the homogeneous operator only, so the error identity and the norm equivalence hold for all data in Assumption 7.1(iii), with no regularity beyond that of the weak formulation [60]. In the native classes of Section 2 only f1 enters the right inverse (through q=f1−b⋅grad v−cv in the balanced formulation below), in those of Section 3 it enters only the divergence residual, and in both f2 enters only the constitutive residual, pointwise and never differentiated. The representation F=f1+div f2 of a datum in H−1(Ω) is not unique: the weak solution u does not depend on it, but the flux σ=−Agrad u+βu−f2 does, and with it the regularity, the interface structure and the best approximation of the flux. The representation is therefore part of the first-order formulation; when the data come with a natural one, such as a source on an interface or a curve, or a given physical flux, that one is used. A strong-form residual −div(Agrad v)+⋯−f1−div f2 is not defined for such data. The Dirichlet data are imposed either in the trial set, v∈Hg1(Ω) (Theorem 7.4), or weakly through the functional (Section 7.3).
S. ZHANG
The method is Proposition 6.3 with X=H01(Ω)×H(div;Ω) (shifted by a lifting of gD), or with X=H1(Ω)×H(div;Ω) when the Dirichlet condition is imposed weakly (Section 7.3), L given by (7.2), cL=Cℓ and CL=Cu from Lemma 7.2, and the native classes of Sections 2.7 and 3.2. Assumption 7.1(i) is stated in two dimensions; Lemma 7.2 holds, with the same proof [60], for a bounded Lipschitz domain Ω⊂Rn, and the native classes are then those of Sections 2.6 and 3.2.
7.2. Structured-flux formulation. Let U⊂H1(Ω) be a scalar neural network class, possibly augmented by the interface modules of Sections 4.2 and 4.4. Let
Q:={i=1∑m1Ωiqi:qi∈Qi}⊂L2(Ω),
where each Qi is a scalar network class on the coefficient subdomain Ωi; no continuity is imposed across coefficient interfaces. Define
with Z⊂H1(Ω)2 a class of vector networks, with the modules of Section 4.6 if the divergence jumps across a coefficient interface. By Corollary 2.13 and Theorem 3.2, every element of Σθ is H(div)-conforming for every parameter value, with div(curlψ+R2q+h)=q, respectively div(curlψ+z)=divz. Hence, for the first class,
and, for the second, the same with z in place of R2q+h and divz in place of q. Only gradv, gradψ and, in the second class, the first derivatives of z are differentiated; neither q nor the discontinuous coefficients are differentiated.
Given an admissible set Ug⊂U, an ε-minimizer satisfies
(7.6)
LS(uθ,σθ;F)≤(v,τ)∈Ug×ΣθinfLS(v,τ;F)+ε2.
The infimum need not be attained; this is the correct statement for a nonclosed neural approximation set.
Theorem 7.4 (exact boundary conditions). Suppose Ug⊂Hg1(Ω). Then
Since the full harmonic space H is in the class, h=h∗ is admissible and the last term contributes no approximation error, only finitely many coefficients. Since q∈Q is piecewise, jumps of q∗ across coefficient interfaces carry no approximation penalty beyond the separate subdomain L2 errors. With (ψ∗,z∗) from Proposition 3.1 with n=2,
∥σ−(curlψ+z)∥H(div)≤∣ψ∗−ψ∣1+2∥z∗−z∥1,
and jumps of q∗ are carried by kinks of z (Lemma 4.12).
Remark 7.6 (why q is kept). In the first class the divergence q is an independent L2 function in the representation of the flux and is approximated directly: its target q∗=f1−b⋅gradu−cu may jump across coefficient interfaces, and the piecewise classes Q impose no continuity there. The two residuals in (7.5) stay separate, so the equilibrium residual ∥q+b⋅gradv+cv−f1∥0 is available as its own indicator, and no cancellation between R2f1 and R2(b⋅gradv+cv) occurs. Eliminating q, as in the balanced formulation, removes one network and one residual, at the price of that cancellation and of tying the flux error to ∥u−v∥1. In the second class the equilibrium residual ∥divz+b⋅gradv+cv−f1∥0 stays separate in the same way.
7.3. Weakly imposed Dirichlet condition. A network class does not satisfy v=gD on ∂Ω in general, and building the condition into the class requires a lifting of gD and a factor vanishing on ∂Ω. Instead, the Dirichlet residual is added to the functional: for wD>0 and (v,τ)∈H1(Ω)×H(div;Ω), (7.7)
The H1/2 boundary residual is the natural form covered by the continuous stability theory: with a bounded right inverse E:H1/2(∂Ω)→H1(Ω) of the trace γ, write v=v0+E(γv) with v0∈H01(Ω); Lemma 7.2 applied to (v0,τ), together with ∥(E(γv),0)∥≤Cu1/2∥E(γv)∥1≤Cu1/2CE∥γv∥1/2,∂Ω, gives ∥v∥12+∥τ∥H(div)2≲∥(v,τ)∥2+∥γv∥1/2,∂Ω. Hence Proposition 6.3 applies with X=H1(Ω)×H(div;Ω) and classes without boundary conditions. The Dirichlet residual may also be measured in L2(∂Ω) with a large weight, wb∥v−gD∥02,∂Ω; for least-squares functionals with weakly imposed boundary conditions, Dirichlet and Neumann, see [59]. The double integral in (7.7) is computed by a product quadrature rule on ∂Ω.
7.4. Built-in variant: the PDE-balanced formulation. This is the second level of Remark 6.7, with the first class: the independent q-network can be eliminated. For any v∈H1(Ω) set
(7.8)
q[v]:=f1−b⋅gradv−cv∈L2(Ω)
and define
(7.9)
τ[v,ψ,h]:=curlψ+R2q[v]+h.
Then, for every parameter value,
(7.10)
divτ[v,ψ,h]+b⋅gradv+cv=f1
holds identically. Thus one of the two first-order equations is built into the architecture and the least-squares loss reduces to the constitutive residual
In other words, the balanced method is the full least-squares problem restricted to the exact equilibrium manifold {divτ+b⋅gradv+cv=f1}: one residual vanishes identically, and the remaining constitutive residual is still equivalent to the complete natural error. Only two scalar neural fields, v and ψ, are required (plus the finitely many coefficients of h).
Remark 7.7 (equations built into the trial class). The construction is an instance of one rule. Write an equation of the system as Dz2+Bz1=F, where D has a bounded right inverse RD ( DRD=I) and B acts on the other unknowns, and parameterize z2=z2,0+RD(F−Bz1) with z2,0 in a conforming class for ker D. The equation then holds for every parameter value, the functional is the full least-squares functional restricted to {Dz2+Bz1=F}, and its equivalence with the error is inherited (Remark 6.5). Here D=div, RD=R2, z2=τ, Bv=b⋅gradv+cv, F=f1 and kerdiv=curlH1⊕H (Corollary 2.13), which gives τ=τ0+R2(f1−b⋅gradv−cv).
Theorem 7.8 (error equivalence for the PDE-balanced formulation). Let (v,ψ,h) satisfy the exact boundary conditions v=gD on ∂Ω. Then
Proof. For the error pair (u−v,σ−τ[v,ψ,h]) the second residual in (7.3) vanishes by (7.10). Hence its full least-squares norm is exactly (7.11); apply Lemma 7.2.
S. ZHANG
Corollary 7.9 (two scalar approximation problems). Let q∗=f1−b⋅gradu−cu and σ=curlψ∗+R2q∗+h∗. Then
Thus, apart from the finite-dimensional harmonic component, approximation of the H(div) flux is reduced to H1 approximation of the two scalar functions u and ψ∗.
Proof. Use Corollary 7.5 with q=q[v] and
∥q∗−q[v]∥0≤∥b∥∞∥grad(u−v)∥0+∥c∥∞∥u−v∥0.
Remark 7.10 (what is and is not built into the network). The fixed interface factors ∣dΓ∣, the Poincaré operator R2, and the harmonic basis H are deterministic ingredients given in closed form. They are not themselves emulated by specially constructed neural networks. The trainable objects are ordinary scalar networks approximating the unknown amplitudes. Thus exact H(div) conformity and the prescribed interface locations do not have to be learned by optimization.
7.5. Numerical examples. The formulation is that of Section 7.2, with v and the representing functions of the flux as outputs of one network, and both H(div) classes are used; the divergence equation is treated at the first level of Remark 6.7, with qθ a network output in the first class and divzθ in the second. The Dirichlet condition is imposed weakly, through the boundary term of Section 7.3. We report Jcheck and the relative errors ∣u−uθ∣1/∣u∣1 and ∥σ−σθ∥0/∥σ∥0, and ∥div(σθ−σ)∥0/∥σ∥0, the divergence error normalized by ∥σ∥0 so that it is on the scale of the flux error (\| \boldsymbol{\sigma} \|_H^2_{\mathrm{div}} = \|\boldsymbol{\sigma}\|_0^2 + \|\mathrm{div}\boldsymbol{\sigma}\|_0^2); it is not the standard relative divergence error.
Example 1 (curved interface, nonsymmetric problem with a line source). Ω=(−1,1)2, Γ={∣x−C∣=R}∩Ω with C=(−2,0) and R=2.1, A=αI with α=1 for ∣x−C∣<R and α=3 outside, b=21(−x2,x1+2), divergence free and tangent to the circles about C, β=0 and c=1; r and ϑ are the distance to C and the polar angle about C, er the radial unit vector and χ+ the indicator function of r>R. With U=sin(πx1/2+0.3)cos(πx2/2),
u=U+χ+(r−R)V(ϑ),f2=χ+g(ϑ)rRer,σ=−αgradu−f2,
V(ϑ)=(π2R/3)U(C+Rer(ϑ)),g=−(α+−α−)∂rU−α+V on Γ, f1=divσ+b⋅gradu+cu and gD=u. Since g(ϑ)R/rer is divergence free for r>R, divf2=gδΓ: the H−1 part of the data is a line source on Γ, and f2∈L2 is not in H(div). Then ∥u∥=0, ∥∂ru∥=V, ∥σ⋅n∥=0 and ∥σ⋅eθ∥=−(α+−α−)∂ϑU/R on Γ: u has a kink and the flux a tangential jump. V is chosen so that ∥αΔu∥=0, which with b⋅n=0 on Γ makes f1 and q∗=divσ continuous across Γ, so that the divergence, a continuous network output qθ or the divergence of a continuous field zθ, has no jump to represent, and no module is needed in either. The classes are generic, σθ=curlψθ+R2qθ with x0=(0.2,0.1), or σθ=curlψθ+zθ, and ψθ,qθ or the two components of zθ, and vθ are outputs of one network (qθ a single continuous output, not the piecewise class Q of Corollary 7.5) with two tanh layers of width 30 followed by three ReLU layers of width 20; at the start the first ReLU layer is fitted to lines in Ω and the deeper ones are the identity (active in all of Ω), so that the initial kinks are those of the first layer. The boundary term is the H1/2(∂Ω) norm, ∥e∥0,∂Ω2+∫∂Ω∫∂Ω∣e(s)−e(t)∣2∣s−t∣−2dsdt, by the product midpoint rule with 256 points per side, in which the pairs with equal midpoints are omitted (for a Lipschitz e the diagonal cell pairs contribute O(h) in total). The training cells are squares of side 2/64, refined twice within distance 0.1 of Γ and cut along Γ, and the derivative residuals enter by the cellwise moment treatment of Section 6.3; training runs in six phases of fifteen minutes, with refinement and four new units after each phase. The check Jcheck uses squares of side 2/128, refined near Γ and cut along Γ and all kink sets of the network.
class
width
cells
steps
time
Jh
Jcheck
∣u−uθ∣1
∥σ−σθ∥0
∥div(σθ−σ)∥0
R2q
40
24229
422
90 min
6.19⋅10−4
8.01⋅10−4
0.28%
0.26%
0.11%
z
40
26719
274
90 min
1.19⋅10−3
1.37⋅10−3
0.30%
0.27%
0.27%
line source (b, c, f₁, F₂), generic: log10∣σθ−σ∣ (interface: white)
(a) log10∣σθ−σ∣, Γ white
line source (b, c, f₁, F₂), generic: zero sets of the ReLU layers (1 red, 2 blue, 3 green); (g = 0) red (initial dashed); interface black
(b) kink sets of the network, Γ black
line source (b, c, f₁, F₂), generic: tangential jump of σ along Γ
(c) tangential jump of σ along Γ: exact (black), across ±0.005 (blue)
FIGURE 1. Example 1, generic level, first class: (a) log10∣σθ−σ∣; (b) the kink sets of the three ReLU layers and Γ; (c) the tangential jump of σ along Γ against the polar angle about C: exact, and of σθ across ±0.005.
At 90 minutes the two classes give errors of 0.28% and 0.30% in u and of 0.26% and 0.27% in σ; the second run made 274 steps, the first 422. With the first, Jcheck decreased in every phase, from 4.1⋅10−3 after the first to 8.0⋅10−4 after the last (0.60% and 0.26% for σ), and was still decreasing at the time limit. Figure 1 shows the first class. The error of σ is largest in a narrow band along Γ (Figure 1(a)). No single kink set of the network lies on Γ; the tangential jump of σ is carried by several kink sets of the first layer close to it (Figure 1(b)), and measured across ±0.005 it follows the exact jump with a relative error of 7.8% (Figure 1(c)).
Example 2 (hyperplane interface in Rn, Levels I and II). Ω is the unit ball of Rn, n=4,8, Γ={x1=s}∩Ω with s=0.1, A=αI with α=1 for x1<s and α=3 for x1>s, b=n−1/2(1,…,1), β=0, c=1, so the problem is nonsymmetric. The solution and the flux are chosen independently:
U=n−1/2∑rcos(πxr/2),V=1+21sinπx2,Sr=n−1/2sin(πxr+1/2)+x1δr1(indices cyclic),M=1+2sinπx3,and f2=−αgrad u−σ,f1=div σ+b⋅grad u+cu,gD=u.Then [u]=0,[∂1u]=V,[σ⋅e1]=0 and [σ⋅e2]=M:the kink of u and the tangential jump of σ are independent, and f2∈L2 is not in H(div),since [f2⋅e1]=−[α∂1u]=0.The classes are σθ=Div Aθ+Rnqθ with center 0,or σθ=Div Aθ+zθ
S. ZHANG
with zθ an output of n components without module, since divσ=1 on both sides; Aθ=A0,θ+mNθ skew, vθ=v0,θ+mv1,θ, all outputs of one network with two tanh layers of width 32; m=∣x1−s∣ (Level I) or m=ReLU(gη) (Level II) with gη(x)=a⋅x−c0+wTtanh(Wx+b0)+c2, W with 10 rows, initially the plane x1+0.15x2+0.1x3=s+0.15. The integrals are taken on rays from 0 along N scrambled Sobol directions, split at Γ (Level I) or at the zeros of gη (Level II), with Gauss rules for the weight ρn−1, so the functional is integrated directly; the boundary term is the L2 form of Section 7.3, w_b\|v - g_D\|_0^2_{0,\partial \Omega} with wb=100. Level I is trained by Levenberg–Marquardt; Level II in two stages, L-BFGS on all parameters (the interface fixed for the first 100 iterations) until the zeros of gη settle, then Levenberg–Marquardt on the network with the interface fixed. The check Jcheck uses 4N directions.
n
level
class
N
iterations
J
Jcheck
∣u−uθ∣1
∥σ−σθ∥0
distance
4
I
Rnq
1024
463
8.9⋅10−9
1.5⋅10−8
1.7⋅10−5
4.0⋅10−5
-
4
I
z
1024
543
4.5⋅10−9
8.6⋅10−9
1.3⋅10−5
3.6⋅10−5
-
8
I
Rnq
2048
99
8.4⋅10−6
1.5⋅10−5
5.9⋅10−4
1.0⋅10−3
-
8
I
z
2048
97
2.1⋅10−6
4.8⋅10−6
4.0⋅10−4
3.7⋅10−4
-
4
II
Rnq
1024
586
1.5⋅10−3
2.7⋅10−3
1.2%
1.5%
3.6⋅10−4
4
II
z
1024
875
9.7⋅10−4
1.5⋅10−3
1.0%
1.0%
6.3⋅10−5
8
II
Rnq
4096
548
5.9⋅10−4
7.1⋅10−4
0.82%
0.93%
1.8⋅10−5
8
II
z
4096
398
1.4⋅10−3
1.7⋅10−3
1.2%
1.5%
6.0⋅10−5
“Distance” is the mean of ∣x1∗−s∣ over the section x4=⋯=xn=0 of Γ , where gη(x1∗,x2,x3,0,…,0)=0 (for the first class the maximum is 1.4⋅10−3 for n=4 and 1.4⋅10−4 for n=8; Figure 2). With the known interface the module carries the kink exactly on Γ ; for the first class the errors are 10−5 for n=4 and about 10−3 for n=8, both runs ended at their time limits of 15 and 30 minutes, and for n=8 an iteration takes 18 seconds. For the first class with the learned interface, the first stage moved the zero set of gη from the initial tilted plane toward Γ ; the interface was then fixed, and Levenberg–Marquardt was applied to the remaining network parameters: for n=4, 500 L-BFGS iterations and 86 Levenberg–Marquardt steps; for n=8, 486 L-BFGS iterations, at the limit of 84 minutes for the first stage, and 62 Levenberg–Marquardt steps, in 120 minutes in all. For the first class at n=8, the learned interface lies within 1.4⋅10−4 of Γ on the section, and the errors are below 1%. With the same network and time, the second class gives, with the known interface, errors of u and σ smaller by factors 1.3 and 1.1 for n=4 and 1.5 and 2.7 for n=8. With the learned interface it gives smaller errors and a smaller mean distance for n=4 (1.0% against 1.2% and 1.5%, 6.3⋅10−5 against 3.6⋅10−4 , maximum 3.8⋅10−4 ), and larger ones for n=8 (1.2% and 1.5% against 0.82% and 0.93%, 6.0⋅10−5 against 1.8⋅10−5 , maximum 5.6⋅10−4 ), where it made 398 iterations against 548. Figure 2 shows the first class.
8. CURL-CURL PROBLEMS
Let Ω⊂R3 be a bounded Lipschitz domain, μ,κ∈L∞(Ω) with μ≥μ0>0 and κ≥κ0>0, and f∈L2(Ω)3. Seek E∈H0(curl;Ω) with
(8.1)
curl(μ−1curlE)+κE=f in Ω,E×n=0 on ∂Ω.
With H:=μ−1curlE∈H(curl;Ω) the first-order system is μ1/2H−μ−1/2curlE=0, curl H+κE=f, and
Proof. Expanding, the cross terms are −2(W,curlF)+2(curlW,F), and (curlW,F)=(W,curlF) for F∈H0(curl;Ω).
Since the system is linear, L3(F,W;f) is the right-hand side of the lemma for (E−F,H−W): the functional is exactly the error in the energy norms, and no separate stability argument for the least-squares formulation is needed (the existence of the solution comes from the well-posedness of (8.1)). This is Proposition 6.3 with X=H0(curl;Ω)×H(curl;Ω) and cL=CL=1 in these norms. We use the classes of Section 5.3,
Eθ=gradϕθ+zθ,Hθ=gradχθ+wθ,
(a) section x3=⋯=xn=0
FIGURE 2. Example 2, Level II. (a) Section x3=⋯=xn=0 of the unit ball: Γ={x1=s} (gray), the initial zero set of gη (red) and the learned zero sets for n=4 (blue) and n=8 (green). (b), (c) Position of the learned zero set on the section x4=⋯=xn=0: x1∗−s with gη(x1∗,x2,x3,0,…,0)=0, for n=4 (scale 10−3) and n=8 (scale 10−4).
with ϕθ∈H01(Ω) and zθ∈H01(Ω)3 (networks multiplied by a function that vanishes on ∂Ω), so that Eθ×n=0 on ∂Ω for every parameter value, and χθ∈H1(Ω), wθ∈H1(Ω)3; by Proposition 5.5 the error is bounded by the H1 errors of ϕθ, zθ, χθ and wθ.
Interfaces. Across an interface of κ or μ, E and H have continuous tangential traces, while E⋅n may jump, and so may H⋅n where μ jumps, since μH=curlE∈H(div;Ω) has a continuous normal component. Both normal jumps are kinks of the scalar potentials, [E⋅n]=[∂nϕ] and [H⋅n]=[∂nχ] (Proposition 5.8), and the scalar interface modules of that proposition are used for ϕθ (inside the boundary factor) and χθ; the regular parts zθ and wθ have no jumps.
Remark 8.2 (no equation built in). Neither equation is built in. Building in curl Eθ=μHθ would require div(μHθ)=0, which a network Hθ∈H(curl) does not satisfy automatically; parameterizing μH=curlΨ instead loses the tangential continuity of H across jumps of μ. Only the conformity is structural.
8.1. Numerical example. Ω=(0,1)3, μ=1, κ=1 for x1<21 and κ=10 for x1>21, and
with A=9/11, H=curlE1 and f=2π2E1+κE. Then E×n=0 on ∂Ω, E×e1 is continuous across x1=21, [E⋅e1]=−2Asinπx2sinπx3 and [κE⋅e1]=0. The classes are Eθ=grad(Bϕθ)+Bzθ and Hθ=gradχθ+wθ with 1/B=1/(x1(1−x1))+1/(x2(1−x2))+1/(x3(1−x3)), so that B is Lipschitz in Ω, smooth in Ω and B=0 on ∂Ω, and ϕθ, zθ, χθ, wθ are outputs of one network with two tanh layers of width 30. At Level I, ϕθ=ϕ0,θ+∣x1−21∣Nθ; at Level II, ϕθ=ϕ0,θ+ReLU(gη)Nθ with gη as in Example 2, initially a tilted plane; at Level III the network has three further ReLU layers of width 20 and no module. The training functional is that of Section 6, with the moments of grad(Bϕ), curl(Bz), gradχ and curl w computed from values on boxes; the boxes have side 1/16, graded three times towards x1=21 and once towards ∂Ω, and are refined after every phase of ten minutes, up to 16000 boxes. The check Jcheck uses 28224 boxes with 33 Gauss points; for Level III it is not cut along the kink sets of the network. We report the relative L2 errors and the relative error in the energy norm of Lemma 8.1.
level
seed
steps
time
Jcheck
E
curl E
H
curl H
energy
I
1
96
13 min
3.4⋅10−3
0.49%
1.49%
0.14%
0.10%
0.42%
II
1
75
13 min
7.9⋅10−3
1.15%
2.19%
0.28%
0.22%
0.64%
II
2
72
13 min
1.0⋅10−2
1.73%
2.42%
0.39%
0.27%
0.72%
II
3
56
10 min
2.6⋅10−2
2.23%
3.58%
1.00%
0.78%
1.14%
III
1
183
60 min
3.6⋅10−2
4.47%
3.49%
1.23%
1.17%
1.35%
S. ZHANG
(a)
(b) seed 1
(c) seed 2
(d) seed 3
FIGURE 3. Section 8.1, Level II. (a) The interface x1=21 (dashed), the initial zero set of gη (red) and the learned zero set for the first initial network (blue). (b)-(d) Position of the learned zero set for the three initial networks: x1∗−21 with gη(x1∗,x2,x3)=0, over (x2,x3)∈(0,1)2.
The runs at Levels I and II ended before their time limit of 30 minutes. At Level II all three initial networks moved the zero set of gη from the initial tilted plane to the interface (Figure 3): with gη(x1∗,x2,x3)=0, the mean of ∣x1∗−21∣ over (x2,x3)∈(0,1)2 is 7.5⋅10−4, 1.0⋅10−3 and 7.9⋅10−5, and its maximum 1.3⋅10−3, 1.2⋅10−3 and 2.1⋅10−3. The energy-norm error is below 1.5% at all levels and about 0.5% with the interface known.
9. LINEAR TRANSPORT
We use the flux formulation of [51], in which the flux is the H(div) unknown.
Let Ω⊂R2 be a bounded, simply connected Lipschitz polygon, β∈W1,∞(Ω)2, γ∈L∞(Ω), f∈L2(Ω), and Γ−:={x∈∂Ω:β⋅n<0} the inflow boundary. We seek u with
(9.1)
div(βu)+γu=finΩ,u=gonΓ−,
where β, γ satisfy [51, Assumption 2.1] and g∈L2(∣β⋅n∣;Γ−); then (9.1) has a unique solution [51, Theorem 2.2]. The flux σ:=βu satisfies σ−βu=0 and divσ+γu=f, so σ∈H(div;Ω), and σ⋅n=(β⋅n)g on Γ−. In the language of differential forms, σ is the contraction ιβ of the density u vol, and divσ is its Lie derivative along β, by Cartan's formula Lβ=dιβ+ιβd for forms of top degree [37, Section 5.1]; this is why the flux is the H(div) unknown. The least-squares functional is
Both inflow conditions hold for the solution and are imposed here through the boundary terms, ws,wu>0; for the last term we assume in addition g∈L2(Γ−) (the weighted term wu∥∥β⋅n∥1/2(v−g)∥0,Γ−2 would need no additional assumption). With the flux condition imposed in the trial space and ws=wu=0, (9.2) is the functional of [51, Section 3]; the native classes of Sections 2 and 3, however, do not preserve a prescribed normal trace on Γ−. We consider the functional on admissible pairs (τ,v)∈H(div;Ω)×L2(Ω) for which the two boundary traces appearing in Jtr,τ⋅n and v on Γ−, are defined and square integrable; this includes the exact solution and the neural trial classes used below.
Lemma 9.1 (error identity). For admissible pairs (τ,v) let ∣∣∣(τ,v)∣∣∣2:=∥τ−βv∥02+∥divτ+γv∥02+ws∥τ⋅n∥0,Γ−+wu∥v∥0,Γ−. Then
Proof. The problem is linear and (σ,u) makes every term vanish, which gives (9.3). If ∣∣∣(τ,v)∣∣∣=0, then τ=βv, div(βv)+γv=0 and (β⋅n)v=τ⋅n=0 on Γ−, so v=0 there and v=0, τ=0 by uniqueness [51, Lemma 3.1]. The upper bound is the triangle inequality.
No lower bound by the norm of H(div;Ω)×L2(Ω) is claimed: the functional is the error in ∥∥⋅∥∥, and the statements below are in this norm; in particular nothing is claimed for the L2 error of v. For the flux classes of Sections 2.7 and 3.2, τθ=curlψθ+R2qθ or τθ=curlψθ+zθ, and a scalar network vθ, (9.3) bounds the error of an approximate minimizer by the best approximation error in ∥∥⋅∥∥, and hence by the errors of the representing functions of σ=curlψ∗+R2q∗, q∗=f−γu (Corollary 2.13), or of σ=curlψ∗+z∗ (Theorem 3.2), of u in L2(Ω), and of σ⋅n and u in L2(Γ−). The divergence equation is treated at the first level of Remark 6.7: the second residual is qθ+γvθ−f, or divzθ+γvθ−f; eliminating q by q=f−γv, which only the first class allows, would be the second level.
Assume in addition that f and γ are piecewise continuous near a characteristic Γ through a jump of g, with γ continuous across Γ and f without a jump there. Across Γ, u jumps and β⋅nΓ=0, so [[σ⋅n]]=0 and [[σ]]=[u]β is tangential. By Corollary 4.10(b) the jump is carried by the kink of the potential, [[∂nψ∗]]=−[[σ⋅t]], while q∗ jumps by −γ[u]: in the first class R2q∗ is continuous under the condition on the segments of Lemma 2.5, and in the second the jump of q∗=divz∗ is carried by a kink of z∗∈H1(Ω)2, which has no interface jump (Lemma 4.12). The interface modules of Sections 4.2 and 4.4 apply with the characteristic as the interface. The value v enters only through τ−βv, γv and the inflow term, and v and q are required only in L2; with an interface variable they may therefore jump across it, v=V0+χV1 and q=Q0+χQ1 with χ the indicator function of one side, or, without an interface variable, by steps of the units of a generic network (Section 9.1), while a continuous network vθ approximates the jump of u by a transition.
9.1. Numerical example. We take the example of [51, Section 7.10] in its discontinuous limit: Ω=(0,1)2, β=(x2+1,−x1)/r with r=∣(x1,x2+1)∣, the unit clockwise field about (0,−1), which is divergence free, γ=0.1, f=0, the inflow boundary Γ−={x1=0}∪{x2=1}, and
u=8πeγrϑsgn(r−1.5),ϑ=atan2(x2+1,x1).
Since β is tangent to the circles r=const, β⋅gradu+γu=0 holds in the sense of distributions, and u jumps across the characteristic Γ={r=1.5}, which runs from (0,0.5) to (1,0.118), by (π/4)e0.15ϑ∈[0.89,0.99]. (The computations use the profile 41eγrϑarctan((r−1.5)/ε) of [51] with ε=10−10, which differs from u only in a layer of width O(ε) about Γ; all numerical errors reported below are measured against this profile.) The interface is learned (Level II of Section 4.7): σθ=curlψθ+R2qθ with x0=(0.3,0.2) and
where P0, P1 are the outputs of a network with two tanh layers of width 30, Q0, Q1, V0, V1 those of a network with two tanh layers of width 20, and gη=g~−g~(xd) with g~(x)=a⋅x+c+wTtanh(Ux+b), U with 10 rows, so that the curve {gη=0} passes through the jump point xd=(0,0.5) of the inflow data for every parameter value. In the second class σθ=curlψθ+zθ with the same ψθ and vθ and
zθ=Z0+ReLU(gη)Z1,
Z0,Z1 four further outputs of the flux network and Q0,Q1 dropped: the divergence −γu of the exact flux jumps with u, and by Lemma 4.12 the kink of zθ on {gη=0} carries this jump while zθ, a network with continuous activations, stays continuous. Initially {gη=0} is the line x2=0.5, the tangent of the characteristic at xd, which is determined by the data. The functional is (9.2) with ws=10 and wu=100. It is integrated on squares of side 1/Nq; a square crossed by {gη=0} is cut along the chord of gη linearized at its center, with the centroid rule on the two pieces and χ given by the side of the chord, and the inflow edges, with 2Nq segments each, are cut likewise; in the first class R2qθ is evaluated on rays split at the zeros of gη. The derivative with respect to η contains the motion of the cut: a term on the chords, point terms where {gη=0} meets the inflow edges, and, in the first class, the moving zeros on the rays. The output coefficients are computed by the linear least-squares solve and the other parameters by L-BFGS. Two starts of 8 minutes with Nq=128 were made, and the better was continued for 60 minutes with Nq=256; Jcheck is the functional on the rule with squares and segments halved. By Lemma 9.1 the functional is the error in ∥∥⋅∥∥; the L2 errors are reported for information.
S. ZHANG
Jcheck
∥u∥0∥u−vθ∥0
∥u∥L1∥u−vθ∥L1
∥σ∥0∥σ−σθ∥0
∥divσ∥0∥div(σ−σθ)∥0
jump
distance to Γ
mean
max
R2q, start, Nq=128
8.1⋅10−10
5.3⋅10−4
1.4⋅10−4
5.3⋅10−4
5.3⋅10−4
3.5⋅10−4
2.3⋅10−5
4.0⋅10−5
R2q, main, Nq=256
1.7⋅10−10
1.8⋅10−4
6.4⋅10−5
1.8⋅10−4
1.8⋅10−4
2.9⋅10−4
7.2⋅10−6
1.5⋅10−5
z, start, Nq=128
3.9⋅10−11
9.5⋅10−5
2.1⋅10−5
9.5⋅10−5
1.1⋅10−4
1.1⋅10−4
2.1⋅10−6
6.8⋅10−6
z, main, Nq=256
1.2⋅10−11
4.7⋅10−5
1.9⋅10−5
4.7⋅10−5
5.5⋅10−5
3.1⋅10−5
2.6⋅10−6
7.1⋅10−6
The jump column is the relative ℓ2 error of the jump of vθ across Γ, from the traces at distance 0.005 along the normal, and the distance of {gη=0} from Γ is taken on the chords of the training rule. The other start reached Jcheck=1.1⋅10−9 with the first class and 4.1⋅10−11 with the second. The second class gives smaller values in all reported quantities, by factors from about 2 (the maximal distance) to 14 (Jcheck). It needs no ray evaluation: in the main run of 60 minutes it made 7586 iterations, against 1560 for the first. With the first class (Figure 4), starting from a straight line, the learned curve moves onto the characteristic, to within 1.5⋅10−5 (Figure 4(a)), and the solution is resolved as a jump, not as a transition layer (Figure 4(b)-(d)): the jump of vθ agrees with that of u along Γ, and the error is largest in a band downstream along Γ, at about 3⋅10−4, apart from points between the learned curve and Γ. The functional was still decreasing when the time limit was reached.
Generic level. Without an interface variable, the class is one network with two tanh layers h of width 30 and a last layer ak=W3h+b3 of 20 units, and
H the unit step. v is only required in L2, so its class may jump, and its jump sets are the zero sets of the same units that carry the kinks of ψθ: across {ak=0}, curlψθ jumps by ckcurlak and vθ by dk+ek⋅x, which may vary along the zero set. When the zero set of a unit meets the inflow edge within 0.02 of the jump point xd=(0,0.5) of the inflow data, the unit is tied to it, b3,k=−W3,kh(xd), so that ak(xd)=0 for all parameters; xd is a point of the data, and the tie removes the corner of J in the position of a step at the jump of the data. With the first class the divergence equation is built in at the second level of Remark 6.7, q=f−γv and σθ=curlψθ+R2(f−γvθ), so that R2 carries the divergence −γvθ, which jumps with vθ. The rule is that of the learned level, cut along the zero sets of all units with the motion of every cut in the derivative, and R2vθ is evaluated on rays split at the zeros of all units. In the second class the divergence equation cannot be built in, so the first level is used: σθ=curlψθ+zθ with zθ=CzT(h,1)+∑kcz,kReLU(ak) on the same last layer, so that zθ kinks where vθ steps (Lemma 4.12), and the residual divzθ+γvθ−f; no rays are needed. Two starts of 8 minutes with Nq=128 reached Jcheck=8.4⋅10−5 and 3.7⋅10−4 with the first class and 1.6⋅10−3 and 6.7⋅10−6 with the second; the better was continued for at most 60 minutes with Nq=256:
class
Jcheck
∥u∥0∥u−vθ∥0
∥u∥L1∥u−vθ∥L1
∥σ∥0∥σ−σθ∥0
jump
distance to Γ
mean
max
R2(f−γv)
3.4⋅10−6
3.4%
0.51%
3.4%
1.5%
4.1⋅10−4
8.4⋅10−4
z
4.4⋅10−6
4.9%
0.57%
4.9%
2.4%
7.0⋅10−4
1.2⋅10−3
The jump column is the relative ℓ2 error of the jump of vθ across Γ (traces at distance 0.005), the distance is that of the zero set of the tied unit. Its zero set moved from a line onto the characteristic, and it is the only unit with a step of vθ along its zero set (Figure 5(a)); its step, measured along its own zero set, follows the exact jump along Γ, which decreases from 0.99 to 0.89, with a relative error of 1.6%. The computed vθ jumps, without a transition layer (Figure 5(b)-(d)). The L2 error of vθ is reported separately; Lemma 9.1 does not give an L2 estimate for u−vθ. With the second class the zero set of the tied unit lies on the characteristic (Figure 6(a)), at a mean distance of 7.0⋅10−4 from Γ, its step has a relative error of 2.6%, and ∥div(σ−σθ)∥0/∥σ∥0=0.52% (here ∥divσ∥0=γ∥σ∥0). Among the four starts the smallest Jcheck, 6.7⋅10−6, was obtained with the second class; the main run from it stopped after 25 iterations, when L-BFGS found no descent step. Figures 5 and 6 show the first and the second class.
(a) learned curve {gη=0}, Γ and the initial line
(b) computed vθ
(c) log10∣u−vθ∣ and Γ
(d) jump of vθ across Γ
FIGURE 4. Linear transport with a learned interface (Level II), first class, after the main run: (a) the learned curve {gη=0} (solid), Γ (dashed) and the initial line x2=0.5 (dotted); (b) vθ; (c) log10∣u−vθ∣, with Γ; (d) the jump of vθ across Γ (circles) and that of u (dashed), against x1.
10. SCALAR CONSERVATION LAWS: AN UNKNOWN MOVING INTERFACE
In Sections 7 and 8 the interfaces are those of the coefficients, whose location is part of the data even where the class does not use it (Levels II and III), and in Section 9 they are characteristics determined by the data. For a scalar conservation law the discontinuities are shocks whose location is part of the solution. We use the flux least-squares formulation of [29] as it stands; the only change is that the H(div)-conforming finite element flux is replaced by a native neural class. No shock location or interface module is supplied to the class; the generic deRhaNN flux class is used.
Formulation. Let Ω⊂Rn be a bounded Lipschitz domain, Q:=(0,T)×Ω, and
(10.1)
∂tu+divF(u)=0inQ,u(0)=u0,
with inflow data on the part of (0,T)×∂Ω where F′(u)⋅n<0. With the space-time flux f(u):=(u,F(u))∈Rn+1 the equation reads divt,xf(u)=0, and for a weak solution the space-time flux lies in H(divt,x;Q) with zero divergence. Across a shock surface Γ⊂Q with space-time normal n=(nt,nx), continuity of the normal
S. ZHANG
(a) zero sets of the last layer, Γ dashed
(b) vθ
(c) log10∣u−vθ∣ and Γ
(d) vθ and u on x1=0.5
FIGURE 5. Linear transport, generic level, first class: (a) the zero sets of the last layer, colored by the mean step of vθ along them, Γ dashed; (b) vθ; (c) log10∣u−vθ∣, with Γ; (d) vθ and u on x1=0.5.
component,
[f(u)⋅n]Γ=[u]Γnt+[F(u)]Γ⋅nx=0,
is the Rankine–Hugoniot condition, while the tangential components of f(u) jump. A shock is therefore an interface of exactly the kind that H(div) fields carry, as the interfaces of Section 7, except that its location is unknown. The flux least-squares functional of [29] takes the flux τ≈f(u) as an independent variable,
where Γin is the inflow part of ∂Q, uin the inflow data (u0 on {t=0}) and g=f(uin)⋅n (so g=−u0 on {t=0}, where n=(−1,0)). We consider v with f(v)∈L2(Q), as is the case for the bounded neural trial functions used below. The inflow condition can be imposed on τ⋅n, on v, or on both, since both hold for the solution; we use both. The functional is not quadratic, and Proposition 6.3 does not apply. The LSNN method for conservation laws [11, 12] uses an equivalent least-squares formulation on a solution set that admits discontinuous solutions, with ReLU networks and a physics-preserving numerical differentiation, the discrete divergence operator [12], and without artificial viscosity or entropy penalization [47]; here the flux is an independent variable in a native H(div) class.
(a) zero sets of the last layer, Γ dashed
(b) vθ
(c) log10∣u−vθ∣ and Γ
(d) vθ and u on x1=0.5
FIGURE 6. Linear transport, generic level, second class ( σθ=curlψθ+zθ): (a) the zero sets of the last layer, colored by the mean step of vθ along them, Γ dashed; (b) vθ; (c) log10∣u−vθ∣, with Γ; (d) vθ and u on x1=0.5.
Native space-time flux classes. The flux is a field in H(div) on the (n+1)-dimensional domain Q, and Theorem 2.10 in dimension n+1 gives the generic native class
τΘ=Divt,xAθ+Rn+1qη+h,AθT=−Aθ,
with a skew-symmetric matrix of scalar networks Aθ, a scalar network qη, and h=0 when Ω has no cavities, since then Rn+1∖Q has no bounded component. Then divt,xτΘ=qη, and the first term of (10.2) is ∥qη∥0,Q. Since the conservation law is homogeneous, it can also be built in: with qη=0, τΘ=Divt,xAθ is divergence free for every parameter value, the class is native to the divergence-free subspace of H(divt,x;Q) (Theorem 2.10 with q=0), and the divergence residual vanishes, so that (10.2) reduces to its last three terms. Space-time divergence-free networks of this form are the construction of [55], where they satisfy the continuity equation exactly. The unknown v is a separate scalar network, as in [29].
For n=1 the skew matrix has one entry, and the built-in class is the space-time curl of one scalar network, τΘ=(∂xψθ,−∂tψθ). Then ψθ plays the role of the cumulative variable ∫xudx′:∂xψ=u and ∂tψ=−F(u), and a shock of u is a kink of ψ. A ReLU network ψθ has kinks on hyperplanes whose positions are trained
S. ZHANG
parameters, so a shock can be represented by a trained kink location. The represented flux has continuous normal component across its kinks by construction; where τΘ=f(vθ) holds, this is the Rankine–Hugoniot relation. With a smooth activation the shock is a layer, which has to be resolved by the quadrature, whose refinement cannot be prescribed in advance when the shock location is unknown.
Proposition 10.1 (consistency). Let F be Lipschitz, or, for a locally Lipschitz flux such as Burgers' flux F(u)=u2/2, let supm∥vm∥L∞(Q)+∥v∥L∞(Q)<∞, and let (τm,vm) with τm∈H(divt,x;Q), vm∈L2(Q) satisfy Jcl(τm,vm)→0, τm→τ and vm→v in L2(Q). Then τ=f(v) and divt,xτ=0 in Q, and v is a weak solution of (10.1) with the inflow data: (f(v),gradt,xϕ)Q=⟨g,ϕ⟩Γin for every smooth ϕ with ϕ=0 near ∂Q∖Γin.
Proof. ∥τm−f(vm)∥0,Q→0 and ∥f(vm)−f(v)∥0,Q≤(1+Lip(F))∥vm−v∥0,Q→0, with Lip(F) the Lipschitz constant of F on an interval containing the ranges of the vm and of v, give τ=f(v). For ϕ as stated, the Green formula in H(divt,x;Q) gives (τm,gradt,xϕ)Q=−(divt,xτm,ϕ)Q+⟨τm⋅n,ϕ⟩Γin; the first term on the right tends to 0, and the second to ⟨g,ϕ⟩Γin because ∥τm⋅n−g∥0,Γin→0.
This is the neural counterpart of the conservation property proved for H(div)-conforming least-squares finite elements in [29], and its proof uses only the conformity τm∈H(divt,x;Q) for every parameter value.
10.1. Numerical example. Burgers' equation, F(u)=u2/2 and n=1, on Q=(0,1)×(−1,1) with the variables (t,x), with u0=1 for x<0, u0=0 for x>0 and u=1 on {x=−1}; on {x=1}, where u=0, the boundary is characteristic. The entropy solution is the shock x=t/2 between the states 1 and 0. Across it f(u)=(u,u2/2) has the purely tangential jump (1,21), of length 1.118, and its position is not given to the class. The class is the generic first class, τΘ=curlψθ+R2qθ with curlψ=(∂xψ,−∂tψ) and x0=(0.5,0); ψθ and qθ are outputs of a network with two tanh layers of width 30 followed by three ReLU layers of width 20, the first fitted to lines in Q at the start and the deeper ones initialized as the identity, and vθ is the output of a separate network with two tanh layers of width 20 and three ReLU layers of width 20. The inflow terms of (10.2), on Γin={t=0}∪{x=−1}, have the weights 10 on τ⋅n−g and 100 on v−uin. Since f(v) is nonlinear in v, the coefficients of vθ, its output layer included, are trained by Levenberg–Marquardt together with the hidden parameters of the flux network; the output coefficients of ψθ and qθ, which enter linearly for fixed vθ, are the least-squares solution. The derivative residual curlψθ enters by the cellwise moment treatment of Section 6.3. The training cells are squares of side 1/32. Two starts of six minutes from different initial networks are run, and the better one is continued for at most 48 minutes in phases of ten minutes, with refinement and up to four new units after each phase. The check Jcheck uses the training squares halved, cut along all kink sets of both networks. We report Jcheck, the L1 error of vθ relative to ∥u∥L1(Q)=1.25, the relative L2 error of τΘ, ∥qθ∥0 (the divergence of τΘ, zero for the solution), and the largest error of the shock position at t=0.2,0.4,0.6,0.9,1, located as the level 21 of vθ and of the first component (τΘ)t.
width
cells
steps
time
Jh
Jcheck
∥u−vθ∥L1
∥f(u)−τΘ∥0
∥qθ∥0
shock (vθ,τt)
35
2606
156
33 min
4.05⋅10−4
1.22⋅10−3
1.97%
7.65%
1.07⋅10−3
0.014, 0.013
Jcheck decreased in every phase, from 5.7⋅10−2 to 1.2⋅10−3, and the L1 error with it, from 4.2% to 2.0%; the run stopped when Levenberg-Marquardt made no further progress after the last phase. The shock is resolved within one to two training cells (Figure 7), without oscillations. It lies ahead of x=t/2 by at most 0.014 for t≤0.6 and by 0.003 at t=1; at t=1, vθ exceeds 1 by 4% and (τΘ)t by 8% just behind the shock. The active kink sets of ψθ cluster along the shock; Figure 7(b) shows those across which τΘ has a tangential jump of at least 2% of the exact one. The normal continuity [τΘ⋅n]=0 holds by construction.
11. CONCLUDING REMARKS
We constructed two deRhaNN classes for H(div) and native deRhaNN classes for H(curl). In each case the graph-space field is assembled from ordinary neural representing functions by fixed operators of the de Rham complex. The classes are conforming for every parameter value, and the admissible interface jumps are carried at finite width by kinks of the potential.
(a) vθ
(b) kinks of ψθ, coloured by ∣τ⋅t∣
(c) vθ (solid), τt (dashed)
FIGURE 7. Burgers’ equation, Riemann data, generic level. (a) vθ on Q, the exact shock x=t/2 white. (b) The kinks of ψθ across which τΘ has a tangential jump of at least 2% of the exact one, colored by the jump; the exact shock dashed. (c) vθ (solid) and (τΘ)t (dashed) at t=0.25, 0.5, 1; the exact solution dotted.
Combined with first-order system least squares, these classes give the FOSLS-deRhaNN method. The elliptic and curl-curl examples retain the natural graph-space stability, while the transport and conservation-law examples use the same native flux constructions for discontinuous solutions and moving interfaces.
REFERENCES
[1] Douglas N. Arnold, Richard S. Falk, and Ragnar Winther. Finite element exterior calculus, homological techniques, and applications. Acta Numerica, 15:1–155, 2006.
[2] Douglas N. Arnold. Finite element exterior calculus. SIAM, 2018.
[3] Douglas N. Arnold, Richard S. Falk, and Ragnar Winther. Finite element exterior calculus: from Hodge theory to numerical stability. Bull. Amer. Math. Soc., 47:281–354, 2010.
[4] Santiago Badia, Wei Li, and Alberto F. Martín. Finite element interpolated neural networks for solving forward and inverse problems. Computer Methods in Applied Mechanics and Engineering, 418(116505), 2024.
[5] Santiago Badia, Wei Li, and Alberto F. Martin. Compatible finite element interpolated neural networks. Computer Methods in Applied Mechanics and Engineering, 439(117889), 2025.
[6] Christine Bernardi, Vivette Girault, Frédéric Hecht, Pierre-Arnaud Raviart, and Béatrice Rivière. Mathematics and Finite Element Discretizations of Incompressible Navier–Stokes Flows, revised and expanded edition of Girault and Raviart (Springer, 1986). Classics in Applied Mathematics 90. SIAM, Philadelphia, 2025.
[7] Pavel B. Bochev and Max D Gunzburger. Least-Squares Finite Element Methods. Applied Mathematical Sciences, 166. Springer, 2009.
[8] Daniele Boffi, Franco Brezzi, and Michel Fortin. Mixed Finite Element Methods and Applications, volume 44 of Springer Series in Computational Mathematics. Springer, 2013.
[9] Zhiqiang Cai, J. Chen, M. Liu, and X. Liu. Deep least-squares methods: an unsupervised learning-based numerical method for solving elliptic PDEs. Journal of Computational Physics, 420(109707), 2020.
[10] Zhiqiang Cai, Jingshuang Chen, and Min Liu. Least-squares ReLU neural network (LSNN) method for linear advection-reaction equation. Journal of Computational Physics, 443(110514), 2021.
[11] Zhiqiang Cai, Jingshuang Chen, and Min Liu. Least-squares ReLU neural network (LSNN) method for scalar nonlinear hyperbolic conservation law. Appl. Numer. Math., 174:163–176, 2022.
[12] Zhiqiang Cai, Jingshuang Chen, and Min Liu. Least-squares neural network (LSNN) method for scalar nonlinear hyperbolic conservation laws: discrete divergence operator. Journal of Computational and Applied Mathematics, 433(115298), 2023.
[13] Zhiqiang Cai, Junpyo Choi, and Min Liu. Least-squares neural network (LSNN) method for linear advection-reaction equation: Discontinuity interface. SIAM J. Sci. Comput., 46(4):C448–C478, 2024.
[14] Zhiqiang Cai, Junpyo Choi, and Min Liu. Least-squares neural network (LSNN) method for linear advection-reaction equation: non-constant jumps. International Journal of Numerical Analysis and Modeling, 21(5):609–628, 2024.
S. ZHANG
[15] Zhiqiang Cai, Tong Ding, Min Liu, Xinyu Liu, and Jianlin Xia. A structure-guided Gauss-Newton method for shallow ReLU neural network. arXiv:2404.05064 [cs.LG], 2024.
[16] Zhiqiang Cai, Anastassia Doktorova, Robert D. Falgout, and César Herrera. Efficient shallow Ritz method for 1D diffusion problems. Computers & Mathematics with Applications, 200:349–363, 2025.
[17] Zhiqiang Cai, Anastassia Doktorova, Robert D. Falgout, and César Herrera. Efficient shallow Ritz method for 1D diffusion-reaction problems. SIAM J. Sci. Comput., S414–S435, 2025.
[18] Zhiqiang Cai, Anastassia Doktorova, Robert D. Falgout, and César Herrera. Convergence analysis of block Newton methods for 1D shallow neural network approximation. Journal of Intelligent Algorithms and Scientific Computing, 1(1):1–23, 2026.
[19] Zhiqiang Cai, Cuiyu He, and Shun Zhang. Improved ZZ a posteriori error estimators for diffusion problems: Conforming linear elements. Computer Methods in Applied Mechanics and Engineering, 313:433–449, 2017.
[20] Zhiqiang Cai, Raytcho D. Lazarov, Thomas A. Manteuffel, and Stephen F. McCormick. First order system least-squares for second order partial differential equations: Part I. SIAM J. Numer. Anal., 31:1785–1799, 1994.
[21] Zhiqiang Cai and Min Liu. Self-adaptive ReLU neural network method in least-squares data fitting. In Principles and Applications of Adaptive Artificial Intelligence, pages 242–262, 2024.
[22] Zhiqiang Cai, Tom Manteuffel, and Stephen F. McCormick. First-order system least squares for second-order partial differential equations: Part ii. SIAM J. Numer. Anal., 34(2):425–454, 1997.
[23] Zhiqiang Cai and Shun Zhang. Recovery-based error estimator for interface problems: Conforming linear elements. SIAM J. Numer. Anal., 47(3):2132–2156, 2009.
[24] Zhiqiang Cai and Shun Zhang. Recovery-based error estimators for interface problems: Mixed and nonconforming finite elements. SIAM J. Numer. Anal., 48(1):30–52, 2010.
[25] Henri Cartan. Formes différentielles. Hermann, Paris, 1967.
[26] J. Chen, X. Ji, H. Yu, and S. Zhang. Penalty-free natural deep Ritz method based on de Rham complex for high-dimensional Dirichlet boundary value problems, 2026. arXiv:2607.00676.
[27] Martin Costabel. A coercive bilinear form for Maxwell's equations. Journal of Mathematical Analysis and Applications, 157(2):527–541, 1991.
[28] Martin Costabel and Alan McIntosh. On Bogovskii and regularized Poincaré integral operators for de Rham complexes on Lipschitz domains. Mathematische Zeitschrift, 265(2):297–320, 2010.
[29] H. De Sterck, Thomas A. Manteuffel, Stephen F. McCormick, and Luke Olson. Numerical conservation properties of H(div)-conforming least-squares finite element methods for the Burgers equation. SIAM J. Sci. Comput., 26:1573–1597, 2005.
[30] Weinan E and Bing Yu. The deep Ritz method: a deep learning-based numerical algorithm for solving variational problems. Commun. Math. Stat., 6(1):1–12, 2018.
[31] Gabriel N. Gatica. A Simple Introduction to the Mixed Finite Element Method: Theory and Applications. Springer Briefs in Mathematics. Springer, 2014.
[32] Juncai He, Lin Li, Jinchao Xu, and Chunyue Zheng. ReLU deep neural networks and linear finite elements. Journal of Computational Mathematics, 38(3):502–527, 2020.
[33] Juncai He, Xinliang Liu, and Zitong Tian. Divergence-free linearized neural networks: integral representation and optimal approximation rates, 2026. arXiv:2603.28638.
[34] Ralf Hiptmair. Finite elements in computational electromagnetism. Acta Numerica, 11:237–339, 2002.
[35] Ralf Hiptmair and Clemens Pechstein. Regular decompositions of vector fields – continuous, discrete, and structure-preserving. Technical Report 2019-18, Seminar for Applied Mathematics, ETH Zürich, 2019. Abridged version in Spectral and High Order Methods for PDEs – ICOSAHOM 2018, Lect. Notes Comput. Sci. Eng. 134, Springer, 2020, pp. 45–60.
[36] Kurt Hornik. Approximation capabilities of multilayer feedforward networks. Neural Networks, 4(2):251–257, 1991.
[37] Kaibo Hu. Many facets of cohomology: differential complexes and structure-aware formulation. R. Soc. Open Sci., 13:250728, 2026.
[38] Kaibo Hu, Jindong Wang, and Jinchao Xu. ReLU k neural de Rham complexes, 2026. arXiv:2607.22478.
[39] Bo-nan Jiang. The Least-Squares Finite Element Method Theory and Applications in Computational Fluid Dynamics and Electromagnetics. Scientific Computation. Springer, 1998.
[40] George Em Karniadakis, Ioannis G. Kevrekidis, Lu Lu, Paris Perdikaris, Sifan Wang, and Liu Yang. Physics-informed machine learning. Nat. Rev. Phys., 3:422–440, 2021.
[41] R. Bruce Kellogg. On the Poisson equation with intersecting interfaces. Applicable Anal., 4(2):101–129, 1974.
[42] Isaac E. Lagaris, Aristidis Likas, and Dimitrios I. Fotiadis. Artificial neural networks for solving ordinary and partial differential equations. IEEE Trans. Neural Netw., 9(5):987–1000, 1998.
[43] Ziyan Li and Shun Zhang. First-order system least-squares shallow neural network method for second-order general elliptic equation in one dimension. Preprint, 2025.
[44] Ziyan Li and Shun Zhang. Non-intrusive least-squares functional a posteriori error estimator: linear and nonlinear problems with plain convergence. Comput. Math. Appl., 191:275–295, 2025.
[45] Min Liu and Zhiqiang Cai. Adaptive two-layer ReLU neural network: II. Ritz approximation to elliptic PDEs. Comput. Math. Appl., 113:103–116, 2022.
[46] Min Liu and Zhiqiang Cai. Physics-preserving neural network (P²NN) methods for elliptic partial differential equations. IEEE Computing in Science & Engineering, submitted, 2026.
[47] Min Liu and Zhiqiang Cai. Least-squares neural network (LSNN) method for scalar hyperbolic partial differential equations, 2026. arXiv:2601.20013.
[48] Min Liu, Zhiqiang Cai, and Jingshuang Chen. Adaptive two-layer ReLU neural network: I. Best least-squares approximation. Comput. Math. Appl., 113:34–44, 2022.
[49] Min Liu, Zhiqiang Cai, and Karthik Ramani. Deep Ritz method with adaptive quadrature for linear elasticity. Computer Methods in Applied Mechanics and Engineering, 415(116229), 2023.
[50] Min Liu, Zhiqiang Cai, and Karthik Ramani. Dual neural network (DuNN) method for elliptic partial differential equations and systems. Journal of Computational and Applied Mathematics, 467:116596, 2025.
[51] Qunjie Liu and Shun Zhang. Adaptive least-squares finite element methods for linear transport equations based on an H(div) flux reformulation. Comput. Methods Appl. Mech. Engrg., 366:113041, 2020.
[52] Marcello Longo, Joost A. A. Opschoor, Nico Disch, Christoph Schwab, and Jakob Zech. De Rham compatible deep neural network FEM. Neural Networks, 165:721–739, 2023.
[53] Joost A. A. Opschoor, Philipp C. Petersen, and Christoph Schwab. First order system least squares neural networks. arXiv:2409.20264 [math.NA], 2024.
[54] Maziar Raissi, Paris Perdikaris, and George Em Karniadakis. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. J. Comp. Phys., 378:686–707, 2019.
[55] Jack Richter-Powell, Yaron Lipman, and Ricky T. Q. Chen. Neural conservation laws: a divergence-free perspective. In Advances in Neural Information Processing Systems, volume 35, 2022.
[56] Yueyao Wu and Shun Zhang. Goal-oriented error estimation for least-squares finite element methods via physically meaningful adjoint PDEs. arXiv:2607.23850, 2026.
[57] Shun Zhang. Battling Gibbs phenomenon: On finite element approximations of discontinuous solutions of PDEs. Computers and Mathematics with Applications, 122:35–47, 2022.
[58] Shun Zhang. Why the Kellogg mesh is radial: a mathematical explanation of a classical computational benchmark. arXiv:2608.22991 [math.NA], 2026.
[59] Shun Zhang. Least-squares finite element methods with weakly enforced boundary conditions. In preparation.
[60] Shun Zhang. A simple proof of coerciveness of first-order system least-squares methods for general second-order elliptic PDEs. Computers & Mathematics with Applications, 130:98–104, 2023.