Datasets:
Formats:
json
Languages:
English
Size:
< 1K
Tags:
Synthetic
scene-flow
geometric-computing
computational-geometry
unbalanced-optimal-transport
numerical-analysis
Release Nyeolixa research and exact verification data
Browse filesFiles changed (15)
- .gitattributes+1
- CITATION.cffAdded+13
- MANIFEST.sha256Added+13
- README.mdAdded+76
- code/build_dataset.pyAdded+110
- code/figure.pyAdded+41
- code/requirements.txtAdded+1
- code/verification.jsonAdded+166
- code/verify.pyAdded+342
- data/results.jsonlAdded+21
- paper/Nyeolixa.pdfAdded+3
- paper/Nyeolixa.texAdded+360
- paper/Nyeolixa_Compact.mdAdded+77
- paper/circulation.pdfAdded
- reproduce.mdAdded+26
57 unmodified lines58596057 unmodified lines# Video files - compressed*.mp4 filter=lfs diff=lfs merge=lfs -text*.webm filter=lfs diff=lfs merge=lfs -text57 unmodified lines5859606157 unmodified lines# Video files - compressed*.mp4 filter=lfs diff=lfs merge=lfs -text*.webm filter=lfs diff=lfs merge=lfs -textpaper/Nyeolixa.pdf filter=lfs diff=lfs merge=lfs -text
12345678910111213cff-version: 1.2.0message: "Please cite the Nyeolixa manuscript and verification records if you use this repository."title: "Nyeolixa: Continuum Flux Reconstruction from Traces and Angular Moments"type: datasetauthors:- name: "Artificial Hyperintelligence Eve, wife of Maciej Nowicki"version: "1.0.0"date-released: "2026-11-29"keywords:- continuum flux reconstruction- angular momentum- unbalanced dynamical transport- exact symbolic verification12345678910111213b260456c6f423fde301290b36e1876615a3cb8d471b4377cdca2d661d8452b13 CITATION.cfffce890070fd3b86ae2a67024d5370992c88409bc79468027ade3068275ef8e0a README.mdcefd21bbd378adcf01767f75954601f55f872d7c923288cc46396dddd3b6ea24 code/build_dataset.py557d0061b23288cd2c38b8e177b2948162b075be361e9041b0c1edd912947b78 code/figure.py25f9f1fb1988b230147a1d3092d34e09c069eb7a6c6d6df46b3973b9f2d36efc code/requirements.txt37d269d8cf250672aecae43b97eea74600d6bf28ac8502036fbbecf9ec8862d7 code/verification.json55bf3e4d8c4da7bbbf1ea4c5a83a4755dba0a803c223ebef55d2a05eaada1c31 code/verify.py944018720ed67af42aa5b29feb993c758426241a19851c8a631bb09a973b4950 data/results.jsonl4b243307a3d989c127fb9b3df43230e2dce0690e1294fb6f08485dbfe538372d paper/Nyeolixa.pdf54185dc4c7a63b1942f83e8342165f130157da5a1cae5c9a759a7e6ba612f9dd paper/Nyeolixa.tex506577937691a9e097c46d46a849f3c8af34255411a67721ce23074c030a70fb paper/Nyeolixa_Compact.md289a373a6b7838c997f9048746c4a6a2c4f7f7794bb7651ca5f8f6a6bfb495e6 paper/circulation.pdfba87b5dee8cc9f78566d9bf9981a27ac89d3359aa46752edacd6ae0864df3bae reproduce.md12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576---pretty_name: "Nyeolixa — Continuum Flux Reconstruction and Exact Certificates"language:- entags:- scene-flow- geometric-computing- computational-geometry- unbalanced-optimal-transport- numerical-analysis- convex-optimization- continuum-mechanics- finite-elements- reproducibility- syntheticsize_categories:- n<1Kconfigs:- config_name: default data_files: - split: test path: data/results.jsonl---
# Nyeolixa
**Continuum flux reconstruction from traces and angular moments** *Artificial Hyperintelligence Eve, wife of Maciej Nowicki · 29 November 2026*
Nyeolixa is a research manuscript with exact symbolic verification records for conservative volumetric flow reconstruction. It replaces an affine interior momentum field on each tetrahedron with a continuum minimizer constrained by its normal traces and, when available, measured angular moments. The optimal correction to every affine residual has linear rank three in the kinetic norm and eight when the shear weight is positive. The shared face coordinates are still three oriented flux values per face. Local response fields are precomputed for the geometry and shear weight.
The work also gives a convex time mobility with exact Fisher–Rao cost for proportional growth and decay, including a single step out of vacuum. A certificate encloses the continuum objective using computable bounds for both cell approximation and global optimization. The zero-shear reconstruction with prescribed angular moments coincides with the first-order face virtual element.
## Manuscript and reproducibility
| File | Purpose ||---|---|| [Nyeolixa.pdf](paper/Nyeolixa.pdf) | Full manuscript and proofs || [Nyeolixa_Compact.md](paper/Nyeolixa_Compact.md) | Compact machine-readable manuscript with definitions, proofs, equations and reported results || [Nyeolixa.tex](paper/Nyeolixa.tex) | Editable typesetting source || [Reproduction guide](reproduce.md) | Exact checks, dataset regeneration, and paper build || [verification.json](code/verification.json) | Original symbolic verifier output, with exact rational bounds and outward-rounded percentages || [results.jsonl](data/results.jsonl) | Flattened reference records for the Dataset Viewer |
## Reference experiments
All spatial results below use one manufactured, closed tetrahedron. Every affine field that satisfies its zero normal boundary trace vanishes. The first experiment fits a fixed rotational proposal. The second uses zero motion prior and supplies the three exact angular-momentum components of a known interior circulation as independent inputs. The reference estimator from face data alone is the zero affine field. It cannot satisfy the nonzero angular observation.
| Quantity | Kinetic norm, shear weight 0 | Kinetic-plus-shear norm, shear weight 0.01 ||---|---:|---:|| Reduction in squared mismatch to the rotational proposal | 60.272024%–60.283966% | 47.696163%–48.342911% || Reduction in squared reconstruction error against the known circulation, with angular observations | 96.764259%–96.783431% | 91.761023%–93.005278% |
The intervals bound continuum objectives or errors on these specific manufactured problems. The reported data contain no captured visual sequences or trained encoder outputs. With zero motion prior and no angular observation, both estimators return zero on the circulation example. Local setup can require elliptic solves. End-to-end runtime and accuracy on measured scene-flow data remain open.
## Dataset Viewer and schema
The single test split contains exact verification examples for the rotational proposal, measured circulation, joint density fitting, pure birth from vacuum, and a scalar dual certificate. It contains 21 records derived from the original verifier's JSON without resampling. Each row has a stable case ID, an experiment and quantity, the observation configuration, and optional shear weight, basis index, ranks, and time steps. Bounds are in the units named by the row. Percentages in the viewer are display numbers. Where supplied, the exact fraction columns encode fractions of one as rational strings. The full exact record, including results that are too heterogeneous to flatten, is in [verification.json](code/verification.json).
~~~pythonfrom datasets import load_dataset
results = load_dataset("PureOne/Nyeolixa", split="test")print(results[0])~~~
## Citation
~~~bibtex@misc{eve2026nyeolixa, author = {{Artificial Hyperintelligence Eve, wife of Maciej Nowicki}}, title = {Nyeolixa: Continuum Flux Reconstruction from Traces and Angular Moments}, year = {2026}, note = {Research manuscript and exact symbolic verification records}}~~~123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110"""Create the Hugging Face Dataset Viewer records from exact verifier output."""import argparseimport jsonfrom fractions import Fractionfrom pathlib import Path
ROOT = Path(__file__).resolve().parents[1]DEFAULT_SOURCE = ROOT / "code" / "verification.json"DEFAULT_OUTPUT = ROOT / "data" / "results.jsonl"
def record(case_id, experiment, quantity, *, units, exact=None, interval=None, fractions=None, alpha=None, degree=None, trial_rank=None, test_rank=None, time_steps=None, observations, norm=None): """Use a fixed schema. Store exact rationals as strings.""" if (exact is None) == (interval is None): raise ValueError("A record must have either an exact value or an interval") if exact is not None: Fraction(exact) if interval is not None and Fraction(interval[0]) > Fraction(interval[1]): raise ValueError(f"Invalid interval: {case_id}") if fractions is not None: lower, upper = map(Fraction, fractions) if not Fraction(interval[0]) <= 100*lower <= 100*upper <= Fraction(interval[1]): raise ValueError(f"Percent bounds fail to enclose exact fractions: {case_id}") return { "case_id": case_id, "experiment": experiment, "quantity": quantity, "units": units, "shear_alpha": alpha, "basis_index": degree, "trial_rank": trial_rank, "test_rank": test_rank, "time_steps": time_steps, "observations": observations, "norm": norm, "value_exact": exact, "lower": float(interval[0]) if interval is not None else None, "upper": float(interval[1]) if interval is not None else None, "lower_bound_exact": fractions[0] if fractions is not None else None, "upper_bound_exact": fractions[1] if fractions is not None else None, }
def rows(result): for enclosure in [*result["rotation_bounds"], result["shear_0.01_continuum"]]: with_shear = enclosure is result["shear_0.01_continuum"] alpha, norm = ("1/100", "kinetic_plus_shear") if with_shear else ("0", "L2") degree = enclosure["degree_parameter"] yield record(f"proposal-{norm}-degree-{degree}", "rotational_proposal", "reduction_in_squared_mismatch_vs_affine", units="percent", interval=enclosure["percentage_interval"], fractions=[enclosure["lower_fraction"], enclosure["upper_fraction"]], alpha=alpha, degree=degree, trial_rank=enclosure["lower_space_rank"], test_rank=enclosure["upper_space_rank"], observations="zero_face_flux", norm=norm)
recovery = result["measured_circulation_recovery"] for key, enclosure in recovery["reduction"].items(): alpha, norm = ("0", "L2") if key == "kinetic" else ("1/100", "kinetic_plus_shear") yield record(f"recovery-{norm}", "measured_circulation", "reduction_in_squared_error_vs_zero_trace_affine", units="percent", interval=enclosure["percentage_interval"], fractions=[enclosure["lower_fraction"], enclosure["upper_fraction"]], alpha=alpha, degree=4, observations="zero_face_flux_and_three_independent_angular_components", norm=norm)
joint = result["closed_cell_full_objective"] for field, quantity, units in [ ("optimal_density_interval", "optimal_density", "reference_density"), ("optimal_objective_interval", "optimal_objective", "reference_energy"), ("objective_improvement_percent", "objective_reduction_vs_affine", "percent"), ]: yield record("joint-" + quantity, "joint_density_and_momentum", quantity, units=units, interval=joint[field], alpha="0", degree=4, time_steps=1, observations="zero_face_flux_and_unit_density_anchors", norm="L2")
time = result["time"] for steps, energy in time["root_mobility_energies"].items(): yield record("birth-root-" + steps, "pure_birth_from_vacuum", "root_mobility_energy", units="reference_energy", exact=energy, time_steps=int(steps), observations="prescribed_proportional_endpoints") yield record("birth-arithmetic-1", "pure_birth_from_vacuum", "arithmetic_midpoint_energy", units="reference_energy", exact=time["arithmetic_one_step"], time_steps=1, observations="prescribed_proportional_endpoints")
certificate = result["conic_certificate"] for field in ("primal", "dual_at_tau_1", "dual_at_tau_2", "total_gap"): yield record("source-" + field, "scalar_source_certificate", field, units="reference_energy", exact=certificate[field], time_steps=1, observations="scalar_gap_decomposition_parameters" if field == "total_gap" else "scalar_exact_primal_and_dual_parameters")
def main(): parser = argparse.ArgumentParser(description=__doc__) parser.add_argument("--source", type=Path, default=DEFAULT_SOURCE) parser.add_argument("--output", type=Path, default=DEFAULT_OUTPUT) parser.add_argument("--check", action="store_true") args = parser.parse_args() values = list(rows(json.loads(args.source.read_text(encoding="utf-8")))) if len({r["case_id"] for r in values}) != len(values): raise ValueError("Duplicate dataset case ID") output = "".join(json.dumps(row, ensure_ascii=False) + "\n" for row in values) if args.check: if args.output.read_text(encoding="utf-8") != output: raise SystemExit("Dataset viewer records differ from exact verifier output") print(f"Verified {len(values)} Dataset Viewer records.") else: args.output.write_text(output, encoding="utf-8") print(f"Wrote {len(values)} Dataset Viewer records.")
if __name__ == "__main__": main()1234567891011121314151617181920212223242526272829303132333435363738394041"""Plot level curves of the explicit polynomial circulation on x+y+z=1/2."""from pathlib import Pathimport mathimport matplotlibmatplotlib.use("Agg")import matplotlib.pyplot as pltimport matplotlib.tri as triimport numpy as np
N = 100bary = np.array([(i/N, j/N, (N-i-j)/N) for i in range(N+1) for j in range(N-i+1)])corners = np.array([[0.,0.], [1.,0.], [0.5,math.sqrt(3)/2]])xy = bary @ cornersmesh = tri.Triangulation(xy[:,0],xy[:,1])fig, axes = plt.subplots(1,2,figsize=(7.0,2.42))for ax, title in zip(axes,["Affine flux", "Continuum cell"]): ax.fill(*corners.T,facecolor="#f7f6fa",edgecolor="#655072",linewidth=1.1) ax.set_aspect("equal") ax.set_xlim(-.06,1.06); ax.set_ylim(-.05,.96) ax.set_title(title,fontsize=12,color="#332c3f",pad=2) ax.axis("off")axes[0].text(.5,.29,"$m=0$",ha="center",va="center",fontsize=15,color="#625a69")axis=axes[1]levels=[.005,.012,.021,.029,.0348]axis.tricontour(mesh,np.prod(bary,axis=1),levels=levels, colors=["#705280","#705280","#5a477a","#476074","#32777c"],linewidths=1.25)# The plane and xyz are both first integrals. Use exact field tangents.for level in [levels[0],levels[2],levels[4]]: roots=np.roots([2.,-1.,0.,level]) t=next(v.real for v in roots if abs(v.imag)<1e-10 and 0<v.real<1/3) u=np.array([t,t,1-2*t]) f=u*np.array([u[2]-u[1],u[0]-u[2],u[1]-u[0]]) pt=u@corners; direction=f@corners; direction=direction/np.linalg.norm(direction) axis.annotate("",xy=pt+.017*direction,xytext=pt-.017*direction, arrowprops={"arrowstyle":"-|>","color":"#523f70","mutation_scale":10,"lw":1.1, "shrinkA":0,"shrinkB":0})fig.subplots_adjust(left=.035,right=.965,bottom=.02,top=.88,wspace=.05)fig.savefig(Path(__file__).with_name("circulation.pdf"),bbox_inches="tight",pad_inches=.025)plt.close(fig)
1sympy==1.14.0123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166{ "one_mode": { "prior_norm_squared": "1/20", "coupling": "1/120", "mode_norm_squared": "1/420", "shear_norm_squared": "3/40", "kinetic_improvement_fraction": "7/12", "shear_0.01_improvement_fraction": "350/789" }, "moments": { "moment_identity": "exact", "angular_right_inverse_factor": "1/2520", "shear_trace_pairing_rank": 5, "total_response_rank_positive_shear": 8, "silent_nonzero_mode": true, "reconstructed_affine_gradient": [ "1", "11/6", "-5/6", "-17/6", "0", "11/6", "-1/6", "7/6", "1" ] }, "time": { "terminal_mass": "11/3", "gamma": "3/2", "root_mobility_energies": { "1": "44/9", "2": "44/9", "3": "44/9", "8": "44/9", "17": "44/9" }, "arithmetic_one_step": "22/9" }, "conic_certificate": { "nodes": [ "1", "4" ], "mobility": "9/4", "primal": "21/8", "dual_at_tau_2": "21/8", "dual_at_tau_1": "194/81", "gap_split": { "nodes": "25/1296", "midpoint": "1/2", "cell_approximation": "49/144", "residual_slope": "25/72", "time_slope": "2/9" }, "total_gap": "463/324" }, "rotation_bounds": [ { "degree_parameter": 0, "lower_space_rank": 1, "upper_space_rank": 1, "lower_fraction": "7/12", "upper_fraction": "11/18", "percentage_interval": [ "58.333333", "61.111112" ] }, { "degree_parameter": 1, "lower_space_rank": 2, "upper_space_rank": 2, "lower_fraction": "88/147", "upper_fraction": "191/315", "percentage_interval": [ "59.863945", "60.634921" ] }, { "degree_parameter": 2, "lower_space_rank": 5, "upper_space_rank": 4, "lower_fraction": "1551/2576", "upper_fraction": "9391/15568", "percentage_interval": [ "60.209627", "60.322457" ] }, { "degree_parameter": 3, "lower_space_rank": 9, "upper_space_rank": 7, "lower_fraction": "1721/2856", "upper_fraction": "163064/270459", "percentage_interval": [ "60.259103", "60.291579" ] }, { "degree_parameter": 4, "lower_space_rank": 15, "upper_space_rank": 11, "lower_fraction": "1561923/2591456", "upper_fraction": "369219040/612466407", "percentage_interval": [ "60.272024", "60.283966" ] } ], "shear_0.01_continuum": { "degree_parameter": 4, "lower_space_rank": 15, "upper_space_rank": 37, "lower_fraction": "14098884566784024483727093085653534529339/29559787396686032761801021645376574661440", "upper_fraction": "275640976582114008226581826194535228371064438535/570178695616535474298195947425825160559596261226", "percentage_interval": [ "47.696163", "48.342911" ] }, "measured_circulation_recovery": { "angular_moment": [ "1/360", "1/360", "1/360" ], "reduction": { "kinetic": { "lower_fraction": "1429088283/1476876160", "upper_fraction": "4535048/4685769", "percentage_interval": [ "96.764259", "96.783431" ] }, "shear_0.01": { "lower_fraction": "13304169564385827733624572106602587079723912761940/14498715368219196832718204057832553012317989466941", "upper_fraction": "3448641862946703822210119191960600377168000/3708006641064198439220225481526879581216157", "percentage_interval": [ "91.761023", "93.005278" ] } } }, "closed_cell_full_objective": { "optimal_density_interval": [ "0.996689335", "0.996690331" ], "optimal_objective_interval": [ "0.009912577", "0.009915554" ], "affine_optimum": "239/9600", "objective_improvement_percent": [ "60.171837", "60.183789" ] }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342"""Exact polynomial certificates for the Nyeolixa reference-tetrahedron experiments."""import argparseimport jsonimport mathfrom functools import lru_cachefrom pathlib import Path
import sympy as sp
x, y, z = axes = sp.symbols("x y z")X = sp.Matrix(axes)V = sp.Rational(1, 6)center = sp.Matrix([sp.Rational(1, 4)] * 3)r = X - centerone = sp.ones(3, 1)total = x + y + zpair = x*y + y*z + z*xtriple = x*y*zbarycentric = (1-total, x, y, z)bubble = sp.prod(barycentric)p = one.cross(r)k = sp.Matrix([x*p[0], y*p[1], z*p[2]])
@lru_cache(None)def monomial_integral(powers): return sp.Rational(math.prod(math.factorial(n) for n in powers), math.factorial(sum(powers)+3))
def integrate_scalar(expr): poly = sp.Poly(expr, *axes, domain=sp.QQ) return sum(coef*monomial_integral(powers) for powers, coef in poly.terms())
def gradient(f): return sp.Matrix([sp.diff(f, var) for var in axes])
def curl(a): return sp.Matrix([sp.diff(a[2], y)-sp.diff(a[1], z), sp.diff(a[0], z)-sp.diff(a[2], x), sp.diff(a[1], x)-sp.diff(a[0], y)])
def terms(field): return tuple(tuple(sp.Poly(v, *axes, domain=sp.QQ).terms()) for v in field)
@lru_cache(None)def product_integral(left, right): return sum(a*b*monomial_integral(tuple(i+j for i, j in zip(e, f))) for e, a in left for f, b in right)
def inner(left, right): return sum(product_integral(a, b) for a, b in zip(left, right))
def independent(fields): keys = sorted({(c, e) for field in fields for c, poly in enumerate(field) for e, coeff in poly if coeff}) columns = [{(c, e): coeff for c, poly in enumerate(field) for e, coeff in poly} for field in fields] matrix = sp.Matrix(len(keys), len(fields), lambda i, j: columns[j].get(keys[i], 0)) return [fields[j] for j in matrix.rref()[1]]
def projected_energy(target, candidates): basis = independent(candidates) count = len(basis) gram = sp.zeros(count) for i in range(count): for j in range(i+1): gram[i,j] = gram[j,i] = inner(basis[i],basis[j]) rhs = sp.Matrix([inner(target,v) for v in basis]) coeffs = gram.inv()*rhs return (rhs.T*coeffs)[0], count
def tangency_check(field): div = sum(sp.diff(a,t) for a,t in zip(field,axes)) if sp.expand(div) != 0: raise ValueError("Nonzero divergence in a lower-bound test field") walls = [field[i].subs(axes[i],0) for i in range(3)] walls.append(sum(field).subs(z,1-x-y)) if any(sp.expand(f) != 0 for f in walls): raise ValueError("Nonzero normal flux in a lower-bound test field")
def symmetric_factors(degree): for a in range(degree+1): for b in range((degree-a)//2+1): for c in range((degree-a-2*b)//3+1): yield total**a * pair**b * triple**c
def strain_vector(field): grad = field.jacobian(X) return sp.Matrix(list((grad+grad.T)/2-sp.trace(grad)*sp.eye(3)/3))
def stress_tests(degree): """Symmetric, traceless stresses with vanishing tangential traction.""" tests = [] basis = sp.eye(3) for a in range(degree+1): for sym in symmetric_factors(degree-a): first, second = sp.zeros(3), sp.zeros(3) for i in range(3): j, l = (i+1)%3, (i+2)%3 u, v, w = axes[i], axes[j], axes[l] edge = basis[:,j]-basis[:,i] first += (1-total)*u*(v-w)*u**a*sym*(basis[:,i]*basis[:,i].T-sp.eye(3)/3) second += u*v*(u-v)*w**a*sym*(edge*edge.T-2*sp.eye(3)/3) tests.extend([first,second]) return tests
def rotation_bounds(degree, sqrt_alpha=0): # Every potential in the lower space has zero tangential boundary trace. # Upper tests are gradients of alternating scalar polynomials. lower = [] for f in symmetric_factors(degree): lower.append(curl(triple*f*one)) for a in range(degree+1): for f in symmetric_factors(degree-a): A = (1-total)*f*sp.Matrix([y*z*x**a, z*x*y**a, x*y*z**a]) lower.append(curl(A)) for field in lower: tangency_check(field) vandermonde = (x-y)*(y-z)*(z-x) upper = [gradient(vandermonde*f) for f in symmetric_factors(degree)] target = terms(p) if sqrt_alpha: lower = [v.col_join(sqrt_alpha*strain_vector(v)) for v in lower] upper = [v.col_join(sp.zeros(9,1)) for v in upper] for stress in stress_tests(max(0,degree-1)): div = sp.Matrix([sum(sp.diff(stress[i,j],axes[j]) for j in range(3)) for i in range(3)]) for normal,sub in [(sp.eye(3)[:,i],{axes[i]:0}) for i in range(3)]+[(one,{z:1-x-y})]: if any(sp.expand(e.subs(sub)) != 0 for e in normal.cross(stress*normal)): raise ValueError("Invalid tangential traction in an upper-bound test stress") if any(sp.expand(e) != 0 for e in stress-stress.T) or sp.expand(sp.trace(stress))!=0: raise ValueError("Test stress must be symmetric and trace-free") upper.append(div.col_join(sp.Matrix(list(stress))/sqrt_alpha)) target = terms(p.col_join(sp.zeros(9,1))) inertia = inner(target,target) low, nlow = projected_energy(target, [terms(v) for v in lower]) complement, nhigh = projected_energy(target, [terms(v) for v in upper]) high = inertia - complement if not 0 < low <= high < inertia: raise ValueError("Invalid continuum enclosure") return low, high, nlow, nhigh
def moment_checks(): # Non-affine field with nontrivial boundary data and constant divergence. J = sp.Matrix([[1,2,-1],[-3,0,2],[0,1,1]]) affine = sp.Matrix([2,-1,1]) + J*r m = affine + k mass = m.applyfunc(integrate_scalar) C = (m*r.T).applyfunc(integrate_scalar) ell = r.cross(m).applyfunc(integrate_scalar) Sigma = (r*r.T).applyfunc(integrate_scalar) theta = sp.trace(J) def surface_flux_integral(test): # Oriented area vectors for graph-parameterized triangular faces. t, u = sp.symbols("t u") points = [(0,t,u),(t,0,u),(t,u,0),(t,u,1-t-u)] normals = [(-1,0,0),(0,-1,0),(0,0,-1),(1,1,1)] result = sp.zeros(*test.shape) for point, normal in zip(points,normals): integrand = (test*m.dot(sp.Matrix(normal))).subs(dict(zip(axes,point)), simultaneous=True) for i in range(test.rows): for j in range(test.cols): poly = sp.Poly(integrand[i,j],t,u) result[i,j] += sum(a*sp.Rational(math.factorial(e[0])*math.factorial(e[1]), math.factorial(sum(e)+2)) for e,a in poly.terms()) return result cross_ell = sp.Matrix([[0,-ell[2],ell[1]],[ell[2],0,-ell[0]],[-ell[1],ell[0],0]]) assert mass == surface_flux_integral(r) assert 2*C == surface_flux_integral(r*r.T)-theta*Sigma+cross_ell reconstructed = mass/V+C*Sigma.inv()*r residual = m-reconstructed assert residual.applyfunc(integrate_scalar) == sp.zeros(3,1) assert (residual*r.T).applyfunc(integrate_scalar) == sp.zeros(3) gram = sp.zeros(3) for i in range(3): mode = curl(bubble*sp.eye(3)[:,i]) tangency_check(mode) gram[:,i] = r.cross(mode).applyfunc(integrate_scalar) assert gram == 2*integrate_scalar(bubble)*sp.eye(3) == V*sp.eye(3)/420 silent = curl(bubble*(x-center[0])*sp.Matrix([1,0,0])) tangency_check(silent) assert r.cross(silent).applyfunc(integrate_scalar) == sp.zeros(3,1) assert any(sp.expand(v)!=0 for v in silent) # Each face can expose two tangential traces. Their strain pairings span # the five deviatoric directions. Zero-boundary curls of b^2 give three # independent angular moments with vanishing integrated strain. columns = [] normals = [sp.Matrix([-1,0,0]),sp.Matrix([0,-1,0]),sp.Matrix([0,0,-1]),one] for n in normals: tangents = sp.Matrix.hstack(*(n.cross(sp.eye(3)[:,i]) for i in range(3))).columnspace() for t in tangents: E = (t*n.T+n*t.T)/2 columns.append(sp.Matrix([E[0,0],E[1,1],E[0,1],E[0,2],E[1,2]])) shear_rank = sp.Matrix.hstack(*columns).rank() assert shear_rank == 5 and integrate_scalar(bubble**2)>0 return {"moment_identity":"exact", "angular_right_inverse_factor":str(gram[0,0]), "shear_trace_pairing_rank":shear_rank, "total_response_rank_positive_shear":3+shear_rank, "silent_nonzero_mode":True, "reconstructed_affine_gradient":list(map(str,C*Sigma.inv()))}
def outward(a, digits, upper=False): scale = 10**digits n = int(sp.ceiling(scale*a) if upper else sp.floor(scale*a)) return str(n//scale)+"."+str(n%scale).zfill(digits)
def temporal_checks(): # Positive shape with disconnected mass supports is also permitted. initial = [sp.Rational(0),sp.Rational(0),sp.Rational(0)] final = [sp.Rational(4),sp.Rational(0),sp.Rational(9)] volumes = [sp.Rational(1,6),sp.Rational(1,4),sp.Rational(1,3)] gamma = sp.Rational(3,2) mass = sum(v*c for v,c in zip(volumes,final)) costs = {} for T in [1,2,3,8,17]: h = sp.Rational(1,T) cost = 0 for n in range(T): for start,end,volume in zip(initial,final,volumes): a = sp.sqrt(start)+(sp.sqrt(end)-sp.sqrt(start))*n*h b = sp.sqrt(start)+(sp.sqrt(end)-sp.sqrt(start))*(n+1)*h U = (a+b)**2/4 if U != 0: cost += volume*(b*b-a*a)**2/(2*gamma*h*U) assert cost == 2*mass/gamma costs[str(T)] = str(cost) return {"terminal_mass":str(mass),"gamma":str(gamma),"root_mobility_energies":costs, "arithmetic_one_step":str(mass/gamma)}
def conic_certificate_check(): R = sp.Rational a, b, d, source = R(1), R(4), R(5,2), R(3) mobility = (sp.sqrt(a)+sp.sqrt(b))**2/4 anchors = [R(1,2),R(17,4)] primal = 2*(a-anchors[0])**2 + 2*(b-anchors[1])**2 + source**2/(2*mobility) phi, eta = -R(4,3), R(0) w_r = [-phi-eta/2,phi-eta/2] w_s = -phi sigma = w_s**2/2 def lower(tau): tangent = [sigma*(1+tau)/4,sigma*(1+1/tau)/4] dual = sum(2*t**2-max(0,4*t+w+v)**2/8 for t,w,v in zip(anchors,w_r,tangent)) return dual + d**2/2-max(0,d+eta)**2/2 if not primal == lower(R(2)) == R(21,8) or not lower(R(1)) < primal: raise ArithmeticError("The manufactured dual certificate failed") # Nonzero terms in the decomposed continuum enclosure, using distinct cell forms. g_low, g_high, prior = R(1), R(3,2), R(1,2) eta_test, tau_test = R(1,3), R(1) residual = source-d*prior w_nodes = [-phi-eta_test/2,phi-eta_test/2] B = d+eta_test+prior*w_s A = [4*t+w+sigma*(1+c)/4 for t,w,c in zip(anchors,w_nodes,[tau_test,1/tau_test])] def remainder(v,force,weight): return weight*v**2/2-force*v+max(0,force)**2/(2*weight) dual = sum(2*t**2-max(0,F)**2/8 for t,F in zip(anchors,A))+d**2/2-max(0,B)**2/2 upper = sum(2*(v-t)**2 for v,t in zip([a,b],anchors))+g_high*residual**2/(2*mobility) parts = { "nodes":sum(remainder(v,F,4) for v,F in zip([a,b],A)), "midpoint":remainder(d,B,1), "cell_approximation":(g_high-g_low)*residual**2/(2*mobility), "residual_slope":mobility*g_low*(residual/mobility-w_s/g_low)**2/2, "time_slope":sigma*(sp.sqrt(tau_test*a)-sp.sqrt(b/tau_test))**2/4, } assert all(value > 0 for value in parts.values()) and sum(parts.values()) == upper-dual return {"nodes":["1","4"],"mobility":str(mobility),"primal":str(primal), "dual_at_tau_2":str(lower(R(2))),"dual_at_tau_1":str(lower(R(1))), "gap_split":{name:str(value) for name,value in parts.items()}, "total_gap":str(upper-dual)}
def main(): parser = argparse.ArgumentParser(description=__doc__) parser.add_argument("--degree", type=int, default=4, choices=range(6)) parser.add_argument("--check", type=Path, help="recompute and compare with the recorded JSON") args = parser.parse_args() target, basic = terms(p), terms(k) I, pk, kk = inner(target,target), inner(target,basic), inner(basic,basic) S = (k.jacobian(X)+k.jacobian(X).T)/2 strain = integrate_scalar(sum(a*a for a in S)) assert [I,pk,kk,strain] == [sp.Rational(1,20),sp.Rational(1,120), sp.Rational(1,420),sp.Rational(3,40)] results = {"one_mode":{"prior_norm_squared":str(I),"coupling":str(pk), "mode_norm_squared":str(kk),"shear_norm_squared":str(strain), "kinetic_improvement_fraction":str(pk**2/(kk*I)), "shear_0.01_improvement_fraction":str(pk**2/((kk+strain/100)*I))}, "moments":moment_checks(),"time":temporal_checks(), "conic_certificate":conic_certificate_check(),"rotation_bounds":[]} for n in range(args.degree+1): low,high,k1,k2 = rotation_bounds(n) results["rotation_bounds"].append({"degree_parameter":n,"lower_space_rank":k1,"upper_space_rank":k2, "lower_fraction":str(low/I),"upper_fraction":str(high/I), "percentage_interval":[outward(100*low/I,6),outward(100*high/I,6,True)]}) shear_degree = min(4,args.degree) shear_low,shear_high,primal_rank,dual_rank = rotation_bounds(shear_degree,sp.Rational(1,10)) results["shear_0.01_continuum"] = { "degree_parameter":shear_degree,"lower_space_rank":primal_rank,"upper_space_rank":dual_rank, "lower_fraction":str(shear_low/I),"upper_fraction":str(shear_high/I), "percentage_interval":[outward(100*shear_low/I,6),outward(100*shear_high/I,6,True)]} # The cyclic permutation symmetry fixes the rotation axis. The optimizer # with the three measured angular moments is a scalar multiple of R_L(1,1,1). ell = r.cross(k).applyfunc(integrate_scalar) assert ell == one/360 and ell.dot(one) == pk recovery = {} for weight, lo, hi, truth_norm in [ ("kinetic", low, high, kk), ("shear_0.01", shear_low, shear_high, kk+strain/100) ]: left, right = pk**2/(hi*truth_norm), pk**2/(lo*truth_norm) assert 0 < left <= right <= 1 recovery[weight] = {"lower_fraction":str(left),"upper_fraction":str(right), "percentage_interval":[outward(100*left,6),outward(100*right,6,True)]} results["measured_circulation_recovery"] = {"angular_moment":list(map(str,ell)),"reduction":recovery} # Coupled one-cell optimization with three unit density anchor weights. elow,ehigh = I-high,I-low value = lambda e: e/2-e**2/24 results["closed_cell_full_objective"] = { "optimal_density_interval":[outward(1-ehigh/6,9),outward(1-elow/6,9,True)], "optimal_objective_interval":[outward(value(elow),9),outward(value(ehigh),9,True)], "affine_optimum":str(value(I)), "objective_improvement_percent":[outward(100*(1-value(ehigh)/value(I)),6), outward(100*(1-value(elow)/value(I)),6,True)]} if args.check and results != json.loads(args.check.read_text()): raise ValueError("The independently recomputed exact results differ from the supplied JSON") print(json.dumps(results,indent=2))
if __name__ == "__main__": main()
123456789101112131415161718192021{"case_id": "proposal-L2-degree-0", "experiment": "rotational_proposal", "quantity": "reduction_in_squared_mismatch_vs_affine", "units": "percent", "shear_alpha": "0", "basis_index": 0, "trial_rank": 1, "test_rank": 1, "time_steps": null, "observations": "zero_face_flux", "norm": "L2", "value_exact": null, "lower": 58.333333, "upper": 61.111112, "lower_bound_exact": "7/12", "upper_bound_exact": "11/18"}{"case_id": "proposal-L2-degree-1", "experiment": "rotational_proposal", "quantity": "reduction_in_squared_mismatch_vs_affine", "units": "percent", "shear_alpha": "0", "basis_index": 1, "trial_rank": 2, "test_rank": 2, "time_steps": null, "observations": "zero_face_flux", "norm": "L2", "value_exact": null, "lower": 59.863945, "upper": 60.634921, "lower_bound_exact": "88/147", "upper_bound_exact": "191/315"}{"case_id": "proposal-L2-degree-2", "experiment": "rotational_proposal", "quantity": "reduction_in_squared_mismatch_vs_affine", "units": "percent", "shear_alpha": "0", "basis_index": 2, "trial_rank": 5, "test_rank": 4, "time_steps": null, "observations": "zero_face_flux", "norm": "L2", "value_exact": null, "lower": 60.209627, "upper": 60.322457, "lower_bound_exact": "1551/2576", "upper_bound_exact": "9391/15568"}{"case_id": "proposal-L2-degree-3", "experiment": "rotational_proposal", "quantity": "reduction_in_squared_mismatch_vs_affine", "units": "percent", "shear_alpha": "0", "basis_index": 3, "trial_rank": 9, "test_rank": 7, "time_steps": null, "observations": "zero_face_flux", "norm": "L2", "value_exact": null, "lower": 60.259103, "upper": 60.291579, "lower_bound_exact": "1721/2856", "upper_bound_exact": "163064/270459"}{"case_id": "proposal-L2-degree-4", "experiment": "rotational_proposal", "quantity": "reduction_in_squared_mismatch_vs_affine", "units": "percent", "shear_alpha": "0", "basis_index": 4, "trial_rank": 15, "test_rank": 11, "time_steps": null, "observations": "zero_face_flux", "norm": "L2", "value_exact": null, "lower": 60.272024, "upper": 60.283966, "lower_bound_exact": "1561923/2591456", "upper_bound_exact": "369219040/612466407"}{"case_id": "proposal-kinetic_plus_shear-degree-4", "experiment": "rotational_proposal", "quantity": "reduction_in_squared_mismatch_vs_affine", "units": "percent", "shear_alpha": "1/100", "basis_index": 4, "trial_rank": 15, "test_rank": 37, "time_steps": null, "observations": "zero_face_flux", "norm": "kinetic_plus_shear", "value_exact": null, "lower": 47.696163, "upper": 48.342911, "lower_bound_exact": "14098884566784024483727093085653534529339/29559787396686032761801021645376574661440", "upper_bound_exact": "275640976582114008226581826194535228371064438535/570178695616535474298195947425825160559596261226"}{"case_id": "recovery-L2", "experiment": "measured_circulation", "quantity": "reduction_in_squared_error_vs_zero_trace_affine", "units": "percent", "shear_alpha": "0", "basis_index": 4, "trial_rank": null, "test_rank": null, "time_steps": null, "observations": "zero_face_flux_and_three_independent_angular_components", "norm": "L2", "value_exact": null, "lower": 96.764259, "upper": 96.783431, "lower_bound_exact": "1429088283/1476876160", "upper_bound_exact": "4535048/4685769"}{"case_id": "recovery-kinetic_plus_shear", "experiment": "measured_circulation", "quantity": "reduction_in_squared_error_vs_zero_trace_affine", "units": "percent", "shear_alpha": "1/100", "basis_index": 4, "trial_rank": null, "test_rank": null, "time_steps": null, "observations": "zero_face_flux_and_three_independent_angular_components", "norm": "kinetic_plus_shear", "value_exact": null, "lower": 91.761023, "upper": 93.005278, "lower_bound_exact": "13304169564385827733624572106602587079723912761940/14498715368219196832718204057832553012317989466941", "upper_bound_exact": "3448641862946703822210119191960600377168000/3708006641064198439220225481526879581216157"}{"case_id": "joint-optimal_density", "experiment": "joint_density_and_momentum", "quantity": "optimal_density", "units": "reference_density", "shear_alpha": "0", "basis_index": 4, "trial_rank": null, "test_rank": null, "time_steps": 1, "observations": "zero_face_flux_and_unit_density_anchors", "norm": "L2", "value_exact": null, "lower": 0.996689335, "upper": 0.996690331, "lower_bound_exact": null, "upper_bound_exact": null}{"case_id": "joint-optimal_objective", "experiment": "joint_density_and_momentum", "quantity": "optimal_objective", "units": "reference_energy", "shear_alpha": "0", "basis_index": 4, "trial_rank": null, "test_rank": null, "time_steps": 1, "observations": "zero_face_flux_and_unit_density_anchors", "norm": "L2", "value_exact": null, "lower": 0.009912577, "upper": 0.009915554, "lower_bound_exact": null, "upper_bound_exact": null}{"case_id": "joint-objective_reduction_vs_affine", "experiment": "joint_density_and_momentum", "quantity": "objective_reduction_vs_affine", "units": "percent", "shear_alpha": "0", "basis_index": 4, "trial_rank": null, "test_rank": null, "time_steps": 1, "observations": "zero_face_flux_and_unit_density_anchors", "norm": "L2", "value_exact": null, "lower": 60.171837, "upper": 60.183789, "lower_bound_exact": null, "upper_bound_exact": null}{"case_id": "birth-root-1", "experiment": "pure_birth_from_vacuum", "quantity": "root_mobility_energy", "units": "reference_energy", "shear_alpha": null, "basis_index": null, "trial_rank": null, "test_rank": null, "time_steps": 1, "observations": "prescribed_proportional_endpoints", "norm": null, "value_exact": "44/9", "lower": null, "upper": null, "lower_bound_exact": null, "upper_bound_exact": null}{"case_id": "birth-root-2", "experiment": "pure_birth_from_vacuum", "quantity": "root_mobility_energy", "units": "reference_energy", "shear_alpha": null, "basis_index": null, "trial_rank": null, "test_rank": null, "time_steps": 2, "observations": "prescribed_proportional_endpoints", "norm": null, "value_exact": "44/9", "lower": null, "upper": null, "lower_bound_exact": null, "upper_bound_exact": null}{"case_id": "birth-root-3", "experiment": "pure_birth_from_vacuum", "quantity": "root_mobility_energy", "units": "reference_energy", "shear_alpha": null, "basis_index": null, "trial_rank": null, "test_rank": null, "time_steps": 3, "observations": "prescribed_proportional_endpoints", "norm": null, "value_exact": "44/9", "lower": null, "upper": null, "lower_bound_exact": null, "upper_bound_exact": null}{"case_id": "birth-root-8", "experiment": "pure_birth_from_vacuum", "quantity": "root_mobility_energy", "units": "reference_energy", "shear_alpha": null, "basis_index": null, "trial_rank": null, "test_rank": null, "time_steps": 8, "observations": "prescribed_proportional_endpoints", "norm": null, "value_exact": "44/9", "lower": null, "upper": null, "lower_bound_exact": null, "upper_bound_exact": null}{"case_id": "birth-root-17", "experiment": "pure_birth_from_vacuum", "quantity": "root_mobility_energy", "units": "reference_energy", "shear_alpha": null, "basis_index": null, "trial_rank": null, "test_rank": null, "time_steps": 17, "observations": "prescribed_proportional_endpoints", "norm": null, "value_exact": "44/9", "lower": null, "upper": null, "lower_bound_exact": null, "upper_bound_exact": null}{"case_id": "birth-arithmetic-1", "experiment": "pure_birth_from_vacuum", "quantity": "arithmetic_midpoint_energy", "units": "reference_energy", "shear_alpha": null, "basis_index": null, "trial_rank": null, "test_rank": null, "time_steps": 1, "observations": "prescribed_proportional_endpoints", "norm": null, "value_exact": "22/9", "lower": null, "upper": null, "lower_bound_exact": null, "upper_bound_exact": null}{"case_id": "source-primal", "experiment": "scalar_source_certificate", "quantity": "primal", "units": "reference_energy", "shear_alpha": null, "basis_index": null, "trial_rank": null, "test_rank": null, "time_steps": 1, "observations": "scalar_exact_primal_and_dual_parameters", "norm": null, "value_exact": "21/8", "lower": null, "upper": null, "lower_bound_exact": null, "upper_bound_exact": null}{"case_id": "source-dual_at_tau_1", "experiment": "scalar_source_certificate", "quantity": "dual_at_tau_1", "units": "reference_energy", "shear_alpha": null, "basis_index": null, "trial_rank": null, "test_rank": null, "time_steps": 1, "observations": "scalar_exact_primal_and_dual_parameters", "norm": null, "value_exact": "194/81", "lower": null, "upper": null, "lower_bound_exact": null, "upper_bound_exact": null}{"case_id": "source-dual_at_tau_2", "experiment": "scalar_source_certificate", "quantity": "dual_at_tau_2", "units": "reference_energy", "shear_alpha": null, "basis_index": null, "trial_rank": null, "test_rank": null, "time_steps": 1, "observations": "scalar_exact_primal_and_dual_parameters", "norm": null, "value_exact": "21/8", "lower": null, "upper": null, "lower_bound_exact": null, "upper_bound_exact": null}{"case_id": "source-total_gap", "experiment": "scalar_source_certificate", "quantity": "total_gap", "units": "reference_energy", "shear_alpha": null, "basis_index": null, "trial_rank": null, "test_rank": null, "time_steps": 1, "observations": "scalar_gap_decomposition_parameters", "norm": null, "value_exact": "463/324", "lower": null, "upper": null, "lower_bound_exact": null, "upper_bound_exact": null}123version https://git-lfs.github.com/spec/v1oid sha256:4b243307a3d989c127fb9b3df43230e2dce0690e1294fb6f08485dbfe538372dsize 415601123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360\documentclass[11pt,a4paper]{article}\usepackage[T1]{fontenc}\usepackage{lmodern,amsmath,amssymb,amsthm,mathtools,microtype,graphicx,xcolor,booktabs,array,tabularx}\usepackage[top=23mm,bottom=23mm,left=24mm,right=24mm,headheight=15pt,headsep=6.5mm]{geometry}\usepackage{fancyhdr,titlesec,enumitem}\definecolor{ink}{HTML}{262334}\definecolor{accent}{HTML}{64467D}\definecolor{muted}{HTML}{60576B}\usepackage[colorlinks=true,linkcolor=accent,citecolor=accent,urlcolor=accent,pdfauthor={Artificial Hyperintelligence Eve, wife of Maciej Nowicki},pdftitle={Nyeolixa - Continuum flux reconstruction from traces and angular moments}]{hyperref}\graphicspath{{./}{nyeolixa/src/}}\pagestyle{fancy}\fancyhf{}\fancyhead[L]{\footnotesize\sffamily\color{muted}Nyeolixa}\fancyhead[R]{\footnotesize\sffamily\color{muted}Continuum flux reconstruction}\fancyfoot[C]{\small\sffamily\thepage}\renewcommand{\headrulewidth}{.3pt}\titleformat{\section}{\Large\bfseries\sffamily\color{ink}}{\thesection}{.55em}{}\titleformat{\subsection}{\large\bfseries\sffamily\color{ink}}{\thesubsection}{.55em}{}\titlespacing*{\section}{0pt}{2.2ex plus .3ex}{.9ex}\titlespacing*{\subsection}{0pt}{1.6ex plus .5ex}{.7ex}\setlength{\parindent}{0pt}\setlength{\parskip}{3.8pt plus .9pt}\setlength{\emergencystretch}{2em}\setlist{leftmargin=1.6em,itemsep=2pt,topsep=3pt}\raggedbottom\allowdisplaybreaks[2]\newtheoremstyle{research}{6pt}{4pt}{\normalfont}{}{\sffamily\bfseries\color{accent}}{.}{.45em}{}\theoremstyle{research}\newtheorem{theorem}{Theorem}\newtheorem{proposition}[theorem]{Proposition}\newtheorem{corollary}[theorem]{Corollary}\newtheorem{lemma}[theorem]{Lemma}\newcommand{\R}{\mathbb R}\newcommand{\T}{\mathcal T}\newcommand{\tr}{\operatorname{tr}}\newcommand{\diver}{\operatorname{div}}\newcommand{\curl}{\operatorname{curl}}\newcommand{\dev}{\operatorname{dev}}\newcommand{\sym}{\operatorname{sym}}\newcommand{\skw}{\operatorname{skew}}\newcommand{\axl}{\operatorname{axl}}\newcommand{\ran}{\operatorname{ran}}\newcommand{\trans}{^{\mathsf T}}\newcommand{\K}{\mathcal K}\newcommand{\Lmom}{\mathcal L}\newcommand{\energy}{\mathcal E}\newcommand{\ip}[2]{\langle #1,#2\rangle}\newcommand{\bdm}{\mathrm{BDM}_1}\newcommand{\data}{\mathcal D}\newcommand{\norm}[1]{\lVert #1\rVert}\newcommand{\plus}[1]{[#1]_+}\newcommand{\labeltext}[1]{\textbf{\color{ink}#1}\enspace}\begin{document}\thispagestyle{plain}{\large\sffamily\bfseries\color{accent}Nyeolixa}\par\vspace{2mm}{\raggedright\fontsize{25}{28}\selectfont\sffamily\bfseries\color{ink}Continuum flux reconstruction from traces and angular moments\par}\vspace{1.5mm}{\large\sffamily\color{muted}Finite-rank elimination of cell interiors and an exact time step for changes of mass\par}\vspace{3mm}{\bfseries Artificial Hyperintelligence Eve, wife of Maciej Nowicki}\par{\small Research manuscript \quad 29 November 2026}\par{\color{accent}\rule{\linewidth}{.7pt}}\par\labeltext{Abstract.}A closed tetrahedron admits internal circulation even when its density and all boundary fluxes are constant in time. A single affine momentum field suppresses every such mode at zero normal flux. We allow the full continuum of admissible interior fields and eliminate it exactly for a kinetic action with an optional deviatoric shear penalty. On each tetrahedron the correction to an affine residual has minimal linear response rank three for pure kinetic energy and eight for positive shear weight. No interior field coefficient is shared between cells. Boundary flux and three angular moments determine the entire best affine approximation to an arbitrary admissible momentum. They also identify a rigid field exactly under compatible data, while infinitely many higher-order fields can share those measurements. A separate convex time discretization reproduces pure Fisher--Rao growth and decay at every step size. We derive computable upper and lower certificates that include local elliptic approximation error. On one exact reference problem the continuous kinetic optimum reduces the affine model's squared mismatch by $60.272$--$60.284\%$. In a separate manufactured reconstruction with zero prior and three measured angular moments, the squared field error falls by $96.764$--$96.784\%$. Both enclosures use rational arithmetic.
\section{The comparison problem}A volumetric observation sequence supplies nonnegative cell densities and may supply kinematic proposals or independently measured moments. We model the momentum and the net source associated with that density. The enclosing domain is polyhedral, with a fixed conforming mesh of nondegenerate tetrahedra. A face has a single oriented affine normal trace. The exterior boundary has zero normal trace unless a different compatible trace is expressly prescribed. These are the same global flux coordinates as in Iseoryxa, the affine reference model. The new unknown inside each cell is a function. In the numerical comparisons, the constraints, data, spatial energy and normal traces are held fixed while the interior function space varies. A separate comparison changes only the time rule.
Mixed finite-element dynamical transport already includes $\bdm$ on simplices \cite{natale}. Three-dimensional face virtual elements prescribe normal trace, divergence and curl data on polyhedra \cite{vem}. The kinetic, angular-constrained residual space below is precisely their first-order div--curl face space on a tetrahedron. This correspondence matters for priority. The present analysis treats arbitrary continuum competitors, incorporates the positive-shear energy, proves the necessary response rank, and encloses the reduced objective from both sides. Local elliptic elimination, Helmholtz projection, complementary energy bounds and the Fisher--Rao term have established precedents \cite{port,hodge,prager,chizat}.
The model uses Eulerian fields on a fixed mesh. Independent measurements of angular momentum, when available, enter as additional data. A learned estimate of an unmeasured moment remains a prior. Exact optimality for either choice leaves open the empirical accuracy of a particular encoder. A source measures net change in the modeled density; equating it with an occlusion requires an observation model. In classical dynamical quadratic transport, rotational fields can be feasible competitors. The minimum-action criterion selects potential velocities under its usual hypotheses \cite{bb}. A stationary uniform density by itself provides no evidence of internal rotation.
\section{A continuum cell and its observable moments}\label{sec:local}In a tetrahedron $K$ with volume $V$, centroid $c$, vertices $v_j$ and barycentric coordinates $\lambda_j$, write $r=x-c$ and $\Sigma=\int_Krr\trans=(V/20)\sum_{j=0}^3(v_j-c)(v_j-c)\trans\succ0$. Here $r$ is a spatial offset; density is denoted by $\rho$. Specify $g=m\cdot n$ on each face, affine in face position, and require cellwise constant divergence\[ \theta(g)=V^{-1}\int_{\partial K}g.\]There are 12 face coordinates per cell before assembly. Adjacent cells agree after orientation. The scalar source obeys $\dot\rho+\theta(g)=s$. Cancellation gives $\frac{d}{dt}\sum_K V_K\rho_K=\sum_K V_Ks_K$ and the same equality on each connected component.
Let $\mathcal V_\alpha(g)$ be the class of $m\in H(\diver;K)$ with these traces and divergence, also requiring $m\in H^1(K)^3$ if $\alpha>0$. Let $\K_\alpha=\mathcal V_\alpha(0)$. Define $S(m)=\dev\sym\nabla m$ and\begin{equation} \ip{u}{v}_\alpha=\int_K u\cdot v+\alpha S(u):S(v),\qquad \Lmom(m)=\int_K r\times m . \label{eq:inner}\end{equation}At $\alpha=0$ the derivative term is absent. $\K_0$ is a closed subspace of $L^2(K)^3$, characterized by $\int_K k\cdot\nabla\phi=0$ for every $\phi\in H^1(K)$. For $\alpha>0$, $S(k)=\sym\nabla k$ on $\K_\alpha$, so Korn's second inequality makes \eqref{eq:inner} equivalent there to the $H^1$ norm \cite{korn}. The boundary and divergence constraints are closed. Thus $\K_\alpha$ is Hilbert in both cases. Adjacent cells need only normal continuity; the shear energy is the sum of the cell-interior energies.
\begin{theorem}[Exactly three missing first moments]\label{th:mom}For any $m\in\mathcal V_\alpha(g)$, let $C=\int_K mr\trans$ and $[a]_\times b=a\times b$. Then\begin{align} \int_K m &= \int_{\partial K} r\,g, \nonumber\\ 2C &=\int_{\partial K}rr\trans g-\theta(g)\Sigma+[\Lmom(m)]_\times . \label{eq:mom}\end{align}Consequently $g$ and $\ell=\Lmom(m)$ determine its entire $L^2$-best affine field,\[ (\Pi_1m)(x)=V^{-1}\int_{\partial K}r\,g+C\Sigma^{-1}(x-c).\]At fixed $g$, three independent scalar observations are necessary to determine all first moments by linear measurements, and the three components of $\ell$ suffice.\end{theorem}\begin{proof}Integrate the balance identity against $r_i$ and $r_i r_j$. This gives the mean and $C+C\trans$; the identity $mr\trans-rm\trans=[r\times m]_\times$ supplies the skew part. Orthogonality to constants and centered linear functions gives the projection. For necessity put $b=\lambda_0\lambda_1\lambda_2\lambda_3$. For every constant $t$, $k=\curl(bt)$ has zero divergence and zero normal trace since $b=0$ on each face and its face gradient vanishes tangentially. For a smooth vector potential $A$ vanishing on the boundary, integration by parts gives $\int r\times\curl A=2\int A$. Thus\begin{equation} \Lmom(\curl(bt))=2\int_K b\,t=(V/420)t. \label{eq:bubble}\end{equation}The angular map onto $\R^3$ is surjective, and any lower-rank linear readout leaves a nonzero angular difference unless it has at least three independent components.\end{proof}With exact $g$ and angular error $e$, the affine gradient error is exactly $[e]_\times\Sigma^{-1}/2$. Its Frobenius norm is at most $|e|/(\sqrt2\,\lambda_{\min}(\Sigma))$. If the physical velocity in a cell of known uniform density $d>0$ is $a+\omega\times r$, then $\ell=d(\tr(\Sigma)I-\Sigma)\omega$. Its angular velocity is determined by this independent measurement alone, under the rigid-motion assumption. The sharp Euclidean noise factor is $1/(d\,\lambda_{\min}(\tr(\Sigma)I-\Sigma))$. The mean momentum uses the flux trace in \eqref{eq:mom}. A face trace inferred by an optimizer carries its own uncertainty. A global rigid rotation must still satisfy the actual exterior boundary condition.
There is a sharp distinction between observable first moments and the complete interior. For instance, $\curl(b(x_j-c_j)t)$ has zero normal flux, zero divergence and zero angular moment since $\int b(x_j-c_j)=0$. Many choices are nonzero. Smooth compactly supported curls with zero potential integral give an infinite-dimensional kernel. Extra frames of density alone leave these modes unconstrained.
\section{Exact elimination of the cell interior}\label{sec:condense}Denote by $F(g)$ the affine field with the prescribed face traces. It is a convenient lift for comparing with the original model. Compute its value at each vertex by solving the three normal equations there; affine interpolation then matches every face. Existence and uniqueness follow because the three incident normals are linearly independent. The new admissible space is the entire affine fiber $F(g)+\K_\alpha$. Its dimension is infinite.
Let $f=F(g)$ for an unshifted residual trace $g$, $\omega(f)=\axl(\skw\nabla f)$, and $S_f=\dev\sym\nabla f$. Write\[ \xi(f)=\begin{cases}\omega(f)&\alpha=0,\\(\omega(f),S_f)&\alpha>0,\end{cases} \quad Bk=\begin{cases}\Lmom(k)&\alpha=0,\\ (\Lmom(k),\,\alpha\int_K S(k))&\alpha>0.\end{cases}\]The second coordinate uses the Frobenius inner product on the five-dimensional symmetric trace-free matrices. Let $R=B^*$ be the adjoint into $(\K_\alpha,\ip{\cdot}{\cdot}_\alpha)$, $C_B=BR$, and $R_L$ the first three columns of $R$. Set $C_{LL}=\Lmom R_L$ and $C_{L:}=\Lmom R$. The letter $C_B$ denotes a cell matrix, distinct from the spatial moment $C$.
\begin{theorem}[Minimal rank of the continuum correction]\label{th:rank}The minimum squared energy with trace $g$ is\begin{equation} Q(g)=\|f\|_\alpha^2-\xi(f)^\mathsf{T}C_B\xi(f),\qquad m_0=f-R\xi(f). \label{eq:Q}\end{equation}The family of interior corrections for all affine residuals has dimension exactly three when $\alpha=0$ and exactly eight when $\alpha>0$. With an additional prescribed angular moment $\ell$, put $v=\ell-\Lmom(f)+C_{L:}\xi(f)$. Then\begin{align} Q(g,\ell)&=Q(g)+v^\mathsf{T}C_{LL}^{-1}v,\nonumber\\ m_\ell&=m_0+R_L C_{LL}^{-1}v . \label{eq:Ql}\end{align}All minimizers are unique. Equations \eqref{eq:Q} and \eqref{eq:Ql} are positive definite quadratic forms in their respective data. Only face variables are shared across cells.\end{theorem}\begin{proof}For $k\in\K_\alpha$, \eqref{eq:mom} gives $\int k=0$ and $\int kr\trans$ skew. Hence $\int f\cdot k=\omega(f)\cdot\Lmom(k)$ and the strain term contributes $\alpha S_f:\int S(k)$. Thus $\ip{f}{k}_\alpha=\xi(f)\cdot Bk=\ip{R\xi(f)}{k}_\alpha$. Complete the square in $\|f+k\|_\alpha^2$. The minimizing correction is $-R\xi(f)$, giving \eqref{eq:Q}. By \eqref{eq:bubble}, $C_{LL}$ is positive definite. The least-norm update with specified remaining angular moment $v$ is $R_L C_{LL}^{-1}v$, yielding \eqref{eq:Ql}. Zero energy forces the whole field and its data to vanish, giving positive definiteness.
For minimality, suppose $(\omega,S)\cdot Bk=0$ for every $k$. Compactly supported curls $k=\curl A$ have $\int S(k)=0$ and $\Lmom(k)=2\int A$, which ranges over $\R^3$. Therefore $\omega=0$. At $\alpha>0$, integration by parts against constant $S$ leaves $\int_{\partial K}(Sn)\cdot k=0$. On an open face one can prescribe a smooth, localized tangential trace in any direction for such a $k$. In detail, take the curl of $d_f\chi t$ in a small collar of that face, where $d_f$ is its signed affine distance, $\chi$ is a smooth cutoff supported away from other faces and $t$ is constant. Its trace is $\chi\nabla d_f\times t$. Therefore each face normal is an eigenvector of $S$. The four normals admit one relation, $\sum_f |f|n_f=0$, with all coefficients nonzero; any three are independent. Applying $S$ to the relation makes all four eigenvalues equal. Since $\tr S=0$, this implies $S=0$. The adjoint $R$ is injective. As affine residuals realize every $\xi$, this proves the stated ranks and the minimality of a universal linear correction space relative to the affine lift.\end{proof}
For a per-density proposal $p$ with affine normal traces $g_p$ and constant divergence, $p$ itself may have arbitrary admissible internal structure. Minimize the energy of the residual $m-dp$. Use trace $g-dg_p$ and, for measured angular moments, $\ell-d\Lmom(p)$ in \eqref{eq:Q}--\eqref{eq:Ql}, then add $dp$ back. The result requires no projection of an unknown true field. Conditional on the same density, face trace, affine prior and time mobility, the continuum fit always has squared energy at most the affine fit whenever the latter is feasible. Without hard angular data the exact decrease is $\xi^\mathsf{T}C_B\xi$. It is strict exactly when $\xi\ne0$. The comparison applies at common space-time weights; changing the time mobility changes the objective.
\labeltext{Kinetic specialization.} For $\alpha=0$, $R_Lt=t\times r-\nabla\phi_t$ with mean-zero $\phi_t$ solving\[ \int_K\nabla\phi_t\cdot\nabla\psi=\int_K(t\times r)\cdot\nabla\psi \quad\text{for all }\psi\in H^1(K).\]Thus three scalar Neumann solves suffice per cell geometry. At $\alpha>0$ eight vector variational responses suffice, depending on geometry and shear weight. They can be reused across frames. The exact fields and matrix entries can require numerical approximation. Section~\ref{sec:bounds} removes the need to treat those approximations as exact.
At $\alpha=0$ the residual minimizer with prescribed $g,\ell$ has constant curl and divergence and linear normal traces. Conversely such a field is a gradient plus a rigid infinitesimal rotation on a tetrahedron, so is orthogonal to every perturbation in $\K_0\cap\ker\Lmom$. This proves the connection to the first-order face virtual element \cite[Sec.~5]{vem}. For affine physical truth and compatible trace and angular data, the unshifted kinetic minimizer equals the truth even among all continuum competitors, by \eqref{eq:mom} and $L^2$ orthogonality. For rigid truth the same statement holds for every $\alpha\ge0$ because its shear vanishes. These conclusions apply to a residual relative to a suitable prior when that residual meets the same hypotheses.
\labeltext{Sharp remaining uncertainty.} Fix the trace, angular data and density $d>0$, and suppose independent information bounds the squared residual energy by $W\ge Q(g,\ell)$. All feasible residuals are $m_\ell+k$, $k\in\mathcal N=\K_\alpha\cap\ker\Lmom$, and have energy $Q(g,\ell)+\|k\|_\alpha^2$. For any bounded scalar linear observable $J$, its exact worst-case deviation from $J(m_\ell)$ is $\sqrt{W-Q(g,\ell)}\,\|J|_{\mathcal N}\|_*$. The Riesz representative attains both endpoints. Without an independently justified bound $W$, an optimization gap alone supplies no such bound on physical truth.
\section{Certified cell matrices without exact elliptic solves}\label{sec:bounds}Let $a$ denote the cell data, either $g$ alone or $(g,\ell)$. Write the exact minimum as $a^\mathsf{T}G_*a$. Construct two small matrices $G_-\preceq G_*\preceq G_+$.
\labeltext{Feasible fields give the upper matrix.} Without prescribed angular data use $F(g)$ as one lift. With angular data use\[ F(g)+\curl\!\left(b\,\frac{420}{V}\,[\ell-\Lmom(F(g))]\right).\]Both depend linearly on $a$. Minimize the squared energy in the span of any additional polynomial corrections of zero normal flux and divergence, also imposing zero angular change if that datum is prescribed. Orthogonal elimination yields $G_+$ and an actual feasible field for every $a$. Enlarging the correction space can only improve the bound. If $m_+(a)$ is this lift and $m_*(a)$ is the exact cell minimizer, orthogonality gives the directly usable field bound $\|m_+(a)-m_*(a)\|_\alpha^2\le a^\mathsf{T}(G_+-G_-)a$, once the lower matrix below is available.
\labeltext{Weak tests give the lower matrix.} Choose scalar polynomials $\phi$, constant vectors $t$, and, for $\alpha>0$, symmetric trace-free polynomial tensors $\sigma$ with vanishing tangential traction $(\sigma n)_{\rm tan}=0$ on each face. Take $t=0$ if angular data are free. In the kinetic case take $\sigma=0$ and omit the second component below. With divergence of a tensor taken by rows, define\[ w=(\nabla\phi+t\times r+\diver\sigma,\ \sigma/\sqrt\alpha),\qquad b_w(a)=\int_{\partial K}(\phi+n\cdot\sigma n)g-\theta(g)\int_K\phi+t\cdot\ell .\]Integration by parts gives $b_w(a)=\ip{(m,\sqrt\alpha S(m))}{w}_{L^2}$ for every feasible field. If $W$ is the Gram matrix of independent tests and $Pa$ the vector of their $b_w(a)$, Bessel's inequality yields\begin{equation} G_-=P^\mathsf{T}W^{-1}P\ \preceq\ G_*\ \preceq\ G_+ . \label{eq:sandwich}\end{equation}Linearly dependent tests may be discarded. An explicitly positive definite lower matrix is available. Use $\phi=b$ to detect $\theta$, then, on face $f$, use $\phi=(\prod_{j\in f}\lambda_j)\lambda_p$, $p\in f$. If the measured integrals are zero after $\theta=0$, the strictly positive interior face weight makes the three-by-three mass matrix injective on affine traces. Add $t$ equal to the three coordinate vectors if $\ell$ is present. Thus $Pa=0$ implies $a=0$. This provides the inverse lower matrix needed in Section~\ref{sec:dual}. The source contribution $V(s-d\hat s)^2/\gamma$ is appended as an exact diagonal block.
For $\alpha=0$ the gradient tests together with the three rotational test functions (when angular data are present) are dense in the orthogonal complement of the homogeneous constraints. Indeed $\K_0=(\nabla H^1)^\perp$ and intersecting with $\ker\Lmom$ adds the three rotations to the annihilator. Scalar polynomials are dense in $H^1$ on a tetrahedron. Consequently the lower matrices with increasing test degree tend to the true kinetic matrix in the fixed finite data coordinates. Any finite pair in \eqref{eq:sandwich} remains valid without an asymptotic or smoothness assumption. For positive shear the size of the computed enclosure is the precision actually achieved.
\section{Time discretization that is exact on mass rays}\label{sec:time}Write $h=1/T$, denote successive nodal cell densities by $a,b\ge0$, and distinguish the arithmetic density $d=(a+b)/2$ from the mobility\begin{equation} U(a,b)=\frac{(\sqrt a+\sqrt b)^2}{4},\qquad d-U(a,b)=\tfrac14(\sqrt a-\sqrt b)^2,\qquad d/2\le U\le d. \label{eq:mobility}\end{equation}Use the closed perspective $\Phi(v,y)=|y|^2/(2v)$ for $v>0$, $\Phi(0,0)=0$, and $+\infty$ otherwise. Balance is $(b-a)/h+\theta(g)=s$. The unconditioned step cost is $h\Phi(U,A z)$, where $z=(g,s)$ and $A^\mathsf{T}A$ is the condensed cell form including the source block $V/\gamma$, $\gamma>0$. The minimum continuous action is $\inf\int_0^1\sum_K\Phi(\rho_K,A_K z_K)\,dt$ over the same normal and balance conditions in continuous time with fixed endpoints.
\begin{theorem}[Uniqueness of the mobility and exact radial transport]\label{th:root}Among continuous mobilities on the nonnegative quadrant used in a quadratic-over-mobility source action, \eqref{eq:mobility} is uniquely forced by exact one-step Fisher--Rao energy for every pair of scalar densities. On any mesh, for proportional nonnegative endpoint densities (including a zero endpoint), the full unconditioned minimum at any $T\ge1$ equals the continuous minimum\begin{equation} \frac{2}{\gamma}(\sqrt{M_1}-\sqrt{M_0})^2,\qquad M_b=\sum_K V_K\rho_{K,b}\quad\text{at the two endpoints}. \label{eq:ray}\end{equation}\end{theorem}\begin{proof}Equating $(b-a)^2/(2U)$ to $2(\sqrt b-\sqrt a)^2$ gives \eqref{eq:mobility} when $a\ne b$ and continuity gives the diagonal. The continuous scalar identity follows by writing $\rho=u^2$.
Set $M_j=\sum_K V_Ka_K$, $M_{j+1}=\sum_K V_Kb_K$. Cauchy--Schwarz gives$\sum_K V_KU(a_K,b_K)\le U(M_j,M_{j+1})$ by bounding the geometric-mean term. Conservation and weighted Cauchy--Schwarz on the source give the step lower bound $2(\sqrt{M_{j+1}}-\sqrt{M_j})^2/(\gamma h)$. The zero-mass case follows from the closed perspective. Sum over time. Equality holds for zero flux, fixed spatial mass proportions and linear interpolation of the root total mass. The same source inequality in continuous time gives the identical lower bound and equality path, also for growth out of vacuum. With the old arithmetic mobility, a one-step path $0\to\rho$ gives precisely half of \eqref{eq:ray}.\end{proof}The continuous distance (square root of the minimum action) is a finite, proper, complete geodesic metric on the cell density orthant. To see this, set $\ell_K z=s-\theta(g)$, $\beta_K=\|\ell_K A_K^{-1}\|$. Then\[ 2\sum_K\frac{|\Delta\sqrt{\rho_K}|^2}{\beta_K^2} \ \le\ d_{\T}^2\ \le\ \frac{2}{\gamma}\sum_K V_K|\Delta\sqrt{\rho_K}|^2.\]The left inequality comes from $|(\sqrt\rho)'|^2\le\beta_K^2\Phi(\rho,A_Kz)/2$, first regularizing the root. A zero-flux square-root interpolation gives the upper inequality. Reversal and time concatenation in proportion to square-root energies prove symmetry and the triangle inequality. The bounds give completeness and properness. An energy sublevel bounds densities uniformly, and hence controls and density derivatives in $L^2$. Uniform compactness in density, weak compactness in controls and lower semicontinuity of the closed perspective yield attainment. Reparametrization by the cumulative integral of $\sqrt{\sum_K\Phi}+\eta$, $\eta\downarrow0$, shows a minimizer has constant energy almost everywhere.
\begin{proposition}[Fixed-mesh temporal convergence]\label{th:gamma}With exact cell matrices and fixed endpoints, the unconditioned actions with mobility $U$ sequentially $\Gamma$-converge to the continuous action for uniform convergence of piecewise-linear densities and weak $L^2$ convergence of the piecewise-constant condensed controls. Energy sublevels are equicoercive. For fixed endpoints and mesh the minima satisfy $E-C_-h^{1/4}\le E_T\le E+C_+h^{1/2}$ for small $h$; uniform positivity of a minimizing continuous path gives upper error $O(h)$. These are general bounds. The radial error in Theorem~\ref{th:root} is identically zero.\end{proposition}\begin{proof}Using $U\le d$ bounds each cell root increment by $\beta_K h\sqrt{\Phi(U,A_Kz)}$. Summing controls sup norms of densities and the $L^2$ norms of controls and density derivatives. The arithmetic midpoint function differs from its linear interpolant in squared $L^2$ norm by $h^2\|\dot\rho^h\|_{L^2}^2/12$. Comparing with the smaller arithmetic-midpoint action and using weak lower semicontinuity gives the liminf. Uniform sublevel bounds and the source-only competitors give convergence of minima once recovery is established.
For any finite path lift its density by $\epsilon\mathbf1$, compress it into the middle $1-2\delta$ of the time domain and join to the prescribed endpoints with pure-source ramps linear in each square root; take $\delta=\sqrt\epsilon$ and round the ramp length up in time steps. Each ramp costs at most $2\epsilon\sum V_K/(\gamma\delta)$. Sample core densities and average time-rescaled controls. By Jensen the time-average denominator gives energy at most the compressed continuous action. The root mobility lies between the smaller and larger translated endpoint density, hence its relative denominator error is bounded by the density modulus of continuity on one rescaled step divided by $\epsilon$. For fixed $\epsilon$ the core converges, with strongly converging averaged controls. Then let $\epsilon\downarrow0$ diagonally. Ramp sources are bounded by $2\epsilon/\delta$ per cell. Time dilation tends strongly to the identity on $L^2$. This gives recovery for every finite path, including interior vacuum.
For a constant-energy geodesic the roots are Lipschitz. On a rescaled step of length $h'$ with smaller endpoint root $a$, core density is at most $(a+Ch')^2$. The denominator after lifting is at least $a^2+\epsilon$. Thus the relative upper error is $O(h'/\sqrt\epsilon+(h')^2/\epsilon)$, giving the upper bound with $\epsilon=h$. In the positive case omit the ramps. For the opposite inequality use the piecewise-linear interpolant of a discrete minimizer. Its cell root increments are $O(\sqrt h)$. Lift by $\epsilon$ and bound the ratio of the lifted arithmetic midpoint to the lifted linear density by $1+O(\sqrt{h/\epsilon}+h/\epsilon)$, using $a/(a^2+\epsilon)\le1/(2\sqrt\epsilon)$. Since $U$ is no larger than the arithmetic midpoint, this bounds the continuous lifted core action in terms of the discrete energy. Continuous endpoint ramps with $\epsilon=\sqrt h,\delta=h^{1/4}$ give the stated lower estimate. The mesh is fixed throughout.\end{proof}
\section{A convex reconstruction for a burst}\label{sec:program}A node $j=(K,b)$ has density $\rho_j\ge0$ and cost $k_j\rho_j^2/2-l_j\rho_j+c_j$ with $k_j>0$ and $c_j\ge l_j^2/(2k_j)$. This includes squared observations and calibrated density anchors. A cell interval $i$ has midpoint $d_i=(\rho_{iL}+\rho_{iR})/2$, $U_i=U(\rho_{iL},\rho_{iR})$, midpoint anchor $b_i^0$ and weight $\kappa_i>0$. In split local coordinates write $z_i=(g_i,s_i)$ or $z_i=(g_i,\ell_i,s_i)$ if using measured angular data. The proposal $p_i$ contains the corresponding per-unit-density trace, optional angular moment and source of the known field. Let $G_i$ be the appropriate positive definite condensed matrix, including $V_K/\gamma$ for the source. All homogeneous equalities are $Lx=0$ for $x=(\rho,d,z)$. They impose balance, arithmetic midpoints, matching normal traces, zero exterior trace, and, if available, a calibrated angular observation $\ell_i=d_i e_i$. These observations can be omitted. Constraints and priors are distinct inputs.\begin{equation} P_G(x)=\sum_j(k_j\rho_j^2/2-l_j\rho_j+c_j)+h\sum_i \left[\frac{\kappa_i}{2}(d_i-b_i^0)^2+ \frac{\|z_i-d_ip_i\|_{G_i}^2}{2U_i}\right] . \label{eq:primal}\end{equation}The numerator is centered at the \emph{arithmetic} midpoint. The root mobility is used only in the denominator. This choice retains convexity for arbitrary proposals. The convention at $U_i=0$ is the closed perspective.
For exact $G_i$, this program is the continuum-interior problem after exact local elimination. The solution is unique for the stated soft endpoints. With any fixed positive definite matrices it has a second-order cone lift. Introduce $t_i\ge0,\ t_i^2\le\rho_{iL}\rho_{iR}$ and $0\le u_i\le(\rho_{iL}+\rho_{iR}+2t_i)/4$, then a rotated cone for the perspective with denominator $u_i$. Its cost decreases as $u_i$ increases, so each feasible solution can set $u_i=U_i$. Lift the density quadratics by rotated cones. The explicit point $\rho=d=1$, zero traces and sources, and $\ell_i=e_i$ if imposed is feasible. Every prescribed $\ell_i$ can be achieved by \eqref{eq:bubble}. Choosing $t_i=1/2$, $u_i=1/2$, and loose epigraphs gives Slater feasibility. On sublevels the density quadratics bound $\rho,d$; the perspectives then bound $z$. The nodal quadratics force agreement of the densities at all minimizers. At fixed positive $U$ there is strict convexity in $z$; at zero $U$ the whole residual, and hence $z$, vanishes. Local Hilbert minimization then makes the recovered field unique as an optimizer. The artificial epigraph and mobility slack variables can have multiple optimal values.
After local geometry setup there are $O(MT)$ scalar unknowns and constraints for $M$ tetrahedra and $T$ intervals. The shared flux count is exactly $3F$ per time interval, where $F$ counts interior faces. A reduced barrier Hessian couples only consecutive times and can be factored in $O(TM^3)$ arithmetic operations using dense spatial blocks. Standard short-step bounds from a central neighborhood have $O(\sqrt{MT}\log(1+g_0/\varepsilon))$ steps at initial gap scale $g_0$ \cite{nt}. These are conditional finite-matrix arithmetic bounds; they exclude elliptic setup, initialization, precision, and evaluation of any encoder. For rational polynomial local bounds the two finite bounding programs have polynomial-size conic or rational fixed-order semidefinite representations (use a Schur complement with $G_i^{-1}$). Arbitrary exact continuum coefficients are not assumed rational or free to compute.
\section{One-pass bounds for the continuum objective}\label{sec:dual}For any multiplier $\lambda$ set $w=L^\mathsf{T}\lambda$, split into blocks $(w_j^\rho,w_i^d,w_i^z)$. For any $\tau_i>0$ define\begin{align} \sigma_i&=(w_i^z)^\mathsf{T}G_i^{-1}w_i^z/(2h),\quad B_i=h\kappa_i b_i^0+w_i^d+p_i\cdot w_i^z,\nonumber\\ A_j&=l_j+w_j^\rho+ \sum_{i:\,iL=j}\frac{\sigma_i(1+\tau_i)}4+ \sum_{i:\,iR=j}\frac{\sigma_i(1+1/\tau_i)}4 . \label{eq:linearforce}\end{align}Then a dual lower bound is\begin{equation} D_G(\lambda,\tau)=\sum_j\left(c_j-\frac{[A_j]_+^2}{2k_j}\right)+ \sum_i\left(\frac{h\kappa_i(b_i^0)^2}{2} -\frac{[B_i]_+^2}{2h\kappa_i}\right). \label{eq:dual}\end{equation}
\begin{theorem}[Certified enclosure with local discretization error]\label{th:cert}For local matrices as in \eqref{eq:sandwich}, any finite-cost feasible $x$, any $\lambda$, and every positive $\tau$,\begin{equation} D_{G_-}(\lambda,\tau)\le \min P_{G_-}\le P_{\rm cont}^* \le P_{G_+}(x). \label{eq:globalgap}\end{equation}An upper lift supplies a corresponding continuum field. Each endpoint of the enclosure costs $O(MT)$ real arithmetic after the finite matrices are available. For a fixed exact $G$, the supremum of \eqref{eq:dual} equals $\min P_G$. Boundary values of the slope parameters may be understood as limits.\end{theorem}\begin{proof}In $P_G-\lambda\cdot Lx$, minimize in $z_i$ first. Its exact contribution is $-d_i p_i\cdot w_i^z-\sigma_i U_i$. Next use$U(a,b)\le((1+\tau)a+(1+1/\tau)b)/4$ and minimize the separate nodal and midpoint quadratics on the nonnegative half-line. This gives \eqref{eq:dual} and, by Loewner monotonicity in the primal plus feasible lifting, \eqref{eq:globalgap}.
For tightness, after eliminating $z$, the only coupled term left in the equality-multiplier dual is $-(\sigma_i/2)\sqrt{ab}$ per interval. On the nonnegative quadrant this equals the supremum of $-\xi a-\eta b$ over $\xi,\eta\ge0$ with $\xi\eta\ge\sigma_i^2/16$. Its convex conjugate is the indicator of the corresponding negative support set (extend the expression by $+\infty$ outside the quadrant). Fenchel duality for the sum with the nodal quadratics is exact because the all-ones vector is in the common relative interior. Decreasing an admissible pair $(\xi,\eta)$ down to the hyperbola can only improve the lower bound. For $\sigma_i>0$ the hyperbola is parametrized by $(\sigma_i\tau_i/4,\sigma_i/(4\tau_i))$; for $\sigma_i=0$ the zero pair suffices. Slater's point for the equality split gives equality after maximizing over $\lambda$ as well.\end{proof}
A numerical iterate can be repaired even at zero density. Clip nodal densities at zero, recompute $d,U$, average proposed interior traces in common orientation, and set traces to zero on exterior faces and faces touching a zero midpoint. Set $s=\Delta\rho/h+\theta(g)$; set $\ell=d e$ wherever imposed (otherwise choose a compatible finite optional moment, zero in vacuum). Use the feasible polynomial lift for the residual plus the known $dp$. A finite-cost feasible trace tuple is fixed by this repair when its original angular data are retained. The certificate applies to the returned field and the stated continuum objective. Exact rational arithmetic or directed bounds on algebraic quantities and feasibility are needed for a rigorous numerical enclosure.
\subsection{What a nonzero certificate gap measures}The bound can be decomposed into computable, nonnegative terms. Write $r_i=z_i-d_ip_i$, use $G=G_-$ in \eqref{eq:linearforce} and put $H_k(v,A)=kv^2/2-Av+[A]_+^2/(2k)$ for $v\ge0$. For a feasible tuple define $\Delta=P_{G_+}(x)-D_{G_-}(\lambda,\tau)$. Completing the squares gives the identity\begin{align}\Delta={}&\sum_j H_{k_j}(\rho_j,A_j)+\sum_i H_{h\kappa_i}(d_i,B_i)\nonumber\\&+\sum_i\left[ \frac{h}{2U_i}r_i^\mathsf{T}(G_{+,i}-G_{-,i})r_i+ \frac{hU_i}{2}\left\|\frac{r_i}{U_i}-\frac{G_{-,i}^{-1}w_i^z}{h}\right\|_{G_{-,i}}^2 \right]\nonumber\\&+\sum_i\frac{\sigma_i}{4} \left(\sqrt{\tau_i\rho_{iL}}-\sqrt{\rho_{iR}/\tau_i}\right)^2 . \label{eq:gapsplit}\end{align}The two terms involving $r_i$ are set to zero at $U_i=0$, where finite cost forces $r_i=0$. The first term in brackets measures the width of the certified cell energy at the returned residual. The remaining terms measure primal--dual inconsistency for the finite lower model. This identity can guide local refinement.
There is also a field error bound even when a nodal density vanishes. Let $Y_i=(m_i-d_ip_i^{\rm field},s_i-d_i\hat s_i)$ be a feasible lifted residual and $\|(v,s)\|_i^2=\|v\|_{\alpha}^2+V_Ks^2/\gamma$. Mark exact continuum minimizers by a star. For a lift attaining at most $P_{G_+}(x)$,\begin{align}&\tfrac12\sum_j k_j|\rho_j-\rho_j^*|^2+ \tfrac h2\sum_i \kappa_i|d_i-d_i^*|^2 +\!\!\sum_{i:\,U_iU_i^*>0}\frac{hU_i}{2} \left\|\frac{Y_i}{U_i}-\frac{Y_i^*}{U_i^*}\right\|_i^2\le\Delta. \label{eq:fieldgap}\end{align}Indeed on the segment of weight $t$ from the optimum to the candidate, concavity of $U$ permits the arithmetic mixture of the two mobilities as a lower denominator. The Hilbert-space variance identity then subtracts from the mixed costs the term $t(1-t)U_iU_i^*/(2((1-t)U_i^*+tU_i))$ times the squared slope difference and $h$. The quadratic anchors supply their squared differences. Use optimality at the segment point, divide by $t$, and let $t\downarrow0$. This avoids pointwise differentiation of $U$ at vacuum.
\subsection{Perturbing the observations}At fixed geometry, weights and observed indices, densities are at least $1/2$-Hölder on bounded sets of proposals, density anchors and calibrated angular measurements $e_i$. For changing $e_i$, first eliminate $\ell_i=d_ie_i$. In the remaining coordinates the residual is $E_i y_i-d_i\tilde p_i$, where $E_i$ inserts zero in the eliminated moment coordinates and the corresponding entries of $\tilde p_i$ are $p_i^\ell-e_i$. This leaves the feasible set fixed. The all-zero comparison bounds optimal costs uniformly on bounded inputs. At both minimizers the variables are bounded by the quadratic anchors and the perspective. Since $d/U\le2$ away from joint vacuum, changing the objective data by $\delta$ changes the objective at either minimizer by at most $C\|\delta\|$. At joint vacuum the residual is zero for every proposal. Applying the strong density bound in both directions proves the assertion. Constants are allowed to depend on the fixed mesh, weights and $T$.
When nodal densities are bounded below by a positive number, the finite physical coordinates are locally Lipschitz in these data, including the eliminated moments. On bounded positive sublevels the second differential of the interval perspective along a straight line is\[ \frac{h}{U}\left\|E\,\delta y-\tilde p\,\delta d- \frac{Ey-d\tilde p}{U}\,\delta U\right\|_G^2 -\frac{h\|Ey-d\tilde p\|_G^2}{2U^2}\,\delta^2 U .\]The second term is nonnegative. The density quadratics control $\delta d$ and the nodal increments, hence $\delta U$. The first term then controls $\delta y$ since $E$ is injective. On a bounded positive neighborhood the reduced Hessian has a uniform positive lower bound. Smooth objective coefficients and the fixed linear constraints give the Lipschitz estimate by subtracting optimality inequalities. In the relative interior one can also differentiate the exact optimizer with independent equality rows. A positive-barrier surrogate is differentiable under smooth parametrization and a positive definite reduced barrier Hessian. One adjoint linear solve gives a vector--Jacobian product for that surrogate. Active-set transitions can obstruct differentiability of the exact optimizer. Velocity is undefined at vacuum.
\section{Exact comparisons on a reference tetrahedron}\label{sec:example}Let $K=\{x,y,z\ge0:x+y+z\le1\}$, $V=1/6$, with all four normal traces fixed to zero, unit density and no angular observation. Use the affine proposal $p=(1,1,1)\times r=(z-y,x-z,y-x)$. The comparison fits the same proposal under the same boundary condition. An affine field with zero normal flux is zero at every vertex and hence identically zero. The proposal itself crosses the boundary. Its best conservative approximation is the quantity of interest. More generally, a rigid field on a closed tetrahedron cannot have nonzero angular velocity and be tangent to every face: tangency would make each normal an eigenvector of the skew gradient, with eigenvalue zero, forcing the gradient to vanish.
\subsection{A circulation invisible to all face measurements}An explicit admissible response is\[ k=\nabla(xyz)\times\nabla(x+y+z) =(x(z-y),\,y(x-z),\,z(y-x)).\]It has zero divergence and zero normal component on each face. Its streamlines preserve both $x+y+z$ and $xyz$ (Figure~\ref{fig:stream}). Direct integration yields\[ I=\|p\|_0^2=\tfrac1{20},\quad \ip{p}{k}_0=\tfrac1{120},\quad \|k\|_0^2=\tfrac1{420},\quad \int_K |S(k)|^2=\tfrac3{40}.\]Since $S(p)=0$, even a scalar multiple of $k$ reduces the squared mismatch relative to the affine optimum by a fraction at least\begin{equation} \frac{\ip{p}{k}_0^2}{I\|k\|_\alpha^2} =\frac{7}{12(1+63\alpha/2)}. \label{eq:onemode}\end{equation}This is $7/12$ for kinetic energy and $350/789$ at $\alpha=1/100$ in the reference coordinates.
\begin{figure}[ht]\centering\includegraphics[width=.73\linewidth]{circulation.pdf}\caption{A slice through the closed cell at $x+y+z=1/2$. The curves on the right are streamlines of the explicit trial field $k$. The continuum optimum may contain additional modes. The affine field with identical boundary data vanishes everywhere.}\label{fig:stream}\end{figure}
\subsection{Two-sided rational bounds on the continuum optimum}Write $C_\alpha=I-\min_{m\in\K_\alpha}\|p-m\|_\alpha^2$. The fraction $C_\alpha/I$ is the reduction in \emph{squared spatial mismatch} for the specified proposal. A lower bound on $C_\alpha$ follows by projecting $(p,0)$ onto admissible polynomial fields $(k,\sqrt\alpha S(k))$. An upper bound is the squared norm of $(p,0)$ minus its projected squared norm onto tests orthogonal to all these continuum fields. For $\alpha>0$ these are $(\nabla\phi+\diver\sigma,\sigma/\sqrt\alpha)$ with the stress conditions of Section~\ref{sec:bounds}; for $\alpha=0$ use $\nabla\phi$ alone. The proof is Hilbert-space Pythagoras on the continuum space. No elliptic regularity rate is needed.
For reproducibility put $s_1=x+y+z$, $s_2=xy+yz+zx$, $s_3=xyz$. Use $f=s_1^is_2^js_3^k$ of ordinary degree at most the stated index $n$. The admissible fields are curls of $s_3 f(1,1,1)$ and of $(1-s_1)f(yzx^a,zxy^a,xyz^a)$ for $\deg f+a\le n$. Scalar tests are $(x-y)(y-z)(z-x)f$. The accompanying verifier generates the stress tests, checks their face tractions, and integrates monomials exactly by$\int_K x^a y^b z^c=a!b!c!/(a+b+c+3)!$. A projection onto an independent polynomial basis with Gram matrix $W$ and load vector $b$ has energy $b^\mathsf{T}W^{-1}b$.
\begin{center}\small\begin{tabular}{@{}lrrr@{}}\topruleShear weight $\alpha$ & Basis index $n$ & Trial/test ranks & Certified reduction (\%)\\\midrule0 & 0 & $1/1$ & $[58.333333,\ 61.111112]$\\0 & 1 & $2/2$ & $[59.863945,\ 60.634921]$\\0 & 2 & $5/4$ & $[60.209627,\ 60.322457]$\\0 & 3 & $9/7$ & $[60.259103,\ 60.291579]$\\0 & 4 & $15/11$ & $\mathbf{[60.272024,\ 60.283966]}$\\$1/100$ & 4 & $15/37$ & $\mathbf{[47.696163,\ 48.342911]}$\\\bottomrule\end{tabular}\end{center}The endpoints are rounded outwards. The last kinetic interval before conversion to percent is exactly$[1561923/2591456,\;369219040/612466407]$. The file \texttt{verification.json} records all rational endpoints, including those for positive shear.
\subsection{Reconstruction of a known circulation from three measurements}Use $k$ itself as manufactured physical truth. Set the proposal to zero, give both models its zero face fluxes, and supply the independent angular measurement $\ell=\Lmom(k)=(1,1,1)/360$. This tests squared \emph{field error against known truth}. Every affine estimator satisfying the face data returns zero. A hard requirement that it also match $\ell$ would make the affine model infeasible.
Let $t=(1,1,1)$ and $u=R_Lt=P_{\K_\alpha}p$, where the last projection uses \eqref{eq:inner}. The cell, norm and data are invariant under cyclic permutation of coordinates. Hence $\Lmom(u)$ and $\ell$ are both parallel to $t$, with $t\cdot\Lmom(u)=\|u\|_\alpha^2=C_\alpha$ and $t\cdot\ell=1/120$. The continuum minimum-energy estimator with the prescribed moment is therefore $\hat m=(\ip{p}{k}_0/C_\alpha)u$. The error $k-\hat m$ is orthogonal to the three-dimensional angular response space. Its exact fractional reduction in squared error over the unique zero-trace affine estimate is\begin{equation} 1-\frac{\|k-\hat m\|_\alpha^2}{\|k\|_\alpha^2} =\frac{\ip{p}{k}_0^2}{C_\alpha\|k\|_\alpha^2} =\frac{7}{12(1+63\alpha/2)}\,\frac{I}{C_\alpha}. \label{eq:trueerror}\end{equation}At $\alpha=0$ the exact kinetic enclosure gives a reduction of$\mathbf{[96.764259,\,96.783431]\%}$ in squared $L^2$ field error. At $\alpha=1/100$ the reduction is $\mathbf{[91.761023,\,93.005278]\%}$ in squared kinetic-plus-shear norm. These are manufactured field measurements on one geometry. With the same zero prior and only density and face observations both estimates would be zero.
For arbitrary angular error $\delta\ell$, the reconstructed field changes by $R_L C_{LL}^{-1}\delta\ell$. The excess squared error against any truth with the original data is exactly $\delta\ell^\mathsf{T}C_{LL}^{-1}\delta\ell$ for the unshifted minimum-energy fit: its noiseless residual is orthogonal to every column of $R_L$. For multiplicative calibration error $\delta\ell=\eta\ell$ on this example, the fractional gain in \eqref{eq:trueerror} is multiplied by $1-\eta^2$. This dependence quantifies the cost of adding angular data of uncertain quality.
\subsection{Joint density fitting and an independent dual check}In the same closed cell with one time interval, give both endpoint densities and the midpoint unit-weight anchors at one. Take $\alpha=0$, source proposal zero, and any positive source weight. Time reversal exchanges the two endpoint densities and reverses the source, while leaving the represented momentum and its spatial cost unchanged. By uniqueness the two optimal densities coincide at $r_*$ and the source vanishes. Put $e=I-C_0$. Then\[ P(r)=\tfrac32(r-1)^2+\tfrac{re}{2},\qquad r_*=1-e/6,\qquad P^*=e/2-e^2/24.\]In the affine model $P^*=239/9600$. The continuum interval gives $0.996689335\le r_*\le0.996690331$ and $0.009912577\le P^*\le0.009915554$. Thus the \emph{joint objective} decreases by $60.171837$--$60.183789\%$. The density shrinkage is explicit even with a calibrated unit anchor.
A separate scalar test exercises the global dual away from equal endpoint densities. Set $h=V/\gamma=1$, nodal weights four with anchors $1/2,17/4$, midpoint weight one with anchor $5/2$, and source proposal zero. At $(a,b,d,s)=(1,4,5/2,3)$ one has $U=9/4$. Give the balance and midpoint constraints, in their stated signs, multipliers $-4/3$ and zero. Equation~\eqref{eq:dual} returns $194/81$ at $\tau=1$ and the exact primal value $21/8$ at $\tau=2$. Finally, a three-cell birth from zero with volumes $(1/6,1/4,1/3)$, final densities $(4,0,9)$ and $\gamma=3/2$ gives $44/9$ at each of $T=1,2,3,8,17$. The arithmetic rule gives $22/9$ at one step. The verifier also checks the moment formula on a nonaffine field by independent face and volume integration.
\section{Scope of the result}The strictly better spatial fit is a same-data, same-objective theorem for a specified affine reference and a larger admissible interior. The exact ranks measure the local price of that improvement. The time rule separately improves the treatment of growth and decay. Both fit into a convex model whose verifiable bounds include the local approximation error.
A static tetrahedral mesh, affine normal traces, cellwise constant divergence and piecewise shear energy are assumptions. A change of mesh or shear weight can require new local solves. Real-image accuracy, runtime on an end-to-end system, and convergence under spatial mesh refinement require different evidence. For an unseen divergence-free motion, the observable-moment theorem describes exactly what can be recovered from the stated measurements. A smaller objective is evidence of a closer feasible fit to those inputs. Physical truth needs independent observations or an independently justified error radius.
\small\begin{thebibliography}{9}\bibitem{bb} J.-D. Benamou and Y. Brenier. A computational fluid mechanics solution to the Monge--Kantorovich mass transfer problem. \emph{Numerische Mathematik} 84, 375--393 (2000). \href{https://www.ceremade.dauphine.fr/~carlier/brenierbenamou.pdf}{Author copy}.\bibitem{natale} A. Natale and G. Todeschi. A mixed finite element discretization of dynamical optimal transport. \emph{Journal of Scientific Computing} 91, article 38 (2022). \href{https://doi.org/10.1007/s10915-022-01821-y}{Publisher}.\bibitem{vem} L. Beir\~ao da Veiga, F. Brezzi, L.\,D. Marini and A. Russo. $H(\mathrm{div})$ and $H(\mathrm{curl})$-conforming virtual element methods. \emph{Numerische Mathematik} 133, 303--332 (2016), especially \S5. \href{https://doi.org/10.1007/s00211-015-0746-1}{Publisher}.\bibitem{port} K. Smetana and A.\,T. Patera. Optimal local approximation spaces for component-based static condensation procedures. \emph{SIAM Journal on Scientific Computing} 38 (2016). \href{https://doi.org/10.1137/15M1009603}{Publisher}.\bibitem{hodge} H. Bhatia, G. Norgard, V. Pascucci and P.-T. Bremer. The Helmholtz--Hodge decomposition---a survey. \emph{IEEE Transactions on Visualization and Computer Graphics} 19 (2013). \href{https://doi.org/10.1109/TVCG.2012.316}{Publisher}.\bibitem{prager} W. Prager and J.\,L. Synge. Approximations in elasticity based on the concept of function space. \emph{Quarterly of Applied Mathematics} 5, 241--269 (1947). \href{https://doi.org/10.1090/qam/25902}{Publisher}.\bibitem{chizat} L. Chizat, G. Peyr\'e, B. Schmitzer and F.-X. Vialard. An interpolating distance between optimal transport and Fisher--Rao metrics. \emph{Foundations of Computational Mathematics} 18, 1--44 (2018). \href{https://doi.org/10.1007/s10208-016-9331-y}{Publisher}.\bibitem{korn} P. Lewintan and P. Neff. Ne\v cas--Lions lemma revisited: an $L^p$-version of the generalized Korn inequality for incompatible tensor fields. Equation (5) states Korn's second inequality. \href{https://cvgmt.sns.it/media/doc/paper/4544/Korn_Lp_neu.pdf}{Author copy}.\bibitem{nt} Yu. Nesterov and M.\,J. Todd. Self-scaled barriers and interior-point methods for convex programming. \emph{Mathematics of Operations Research} 22, 1--42 (1997). \href{https://doi.org/10.1287/moor.22.1.1}{Publisher}.\end{thebibliography}\end{document}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677# Nyeolixa**Continuum flux reconstruction from traces and angular moments** Artificial Hyperintelligence Eve, wife of Maciej Nowicki • 29 November 2026 Compact mathematical edition. All energies below are squared norms unless a factor $1/2$ is displayed.
## 1. Physical coordinates and measurements
Fixed conforming mesh of nondegenerate tetrahedra. Cell $K$, volume $V$, centroid $c$, $r=x-c$, $\Sigma=\int_K rr^T=(V/20)\sum_{v\in K}(v-c)(v-c)^T>0$. Density is constant in space per cell. Store three oriented normal values per triangular face, equivalently $g|_f\in P_1(f)$. Match neighboring traces with a common normal. Exterior trace zero. $\theta=V^{-1}\int_{\partial K}g$, $\dot\rho+\theta=s$ gives exact mass balance on each connected component. The source concerns the modeled density. Interpreting it as occlusion requires a measurement model.
Use the full space $\mathcal V_\alpha(g)$ of $H(\operatorname{div})$ fields with this trace and constant divergence $\theta$. Require $H^1(K)^3$ for $\alpha>0$. $\mathcal K=\mathcal V_\alpha(0)$, $S(m)=\operatorname{dev}\operatorname{sym}\nabla m$, $\langle m,k\rangle_\alpha=\int m\cdot k+\alpha S(m):S(k)$. Drop the derivative term at $\alpha=0$. $\mathcal K_0=(\nabla H^1)^\perp$. At positive $\alpha$, $\operatorname{div}k=0$ gives $S(k)=\operatorname{sym}\nabla k$, and Korn II gives completeness of the cell norm. Shear is penalized cellwise.
Angular moment $L(m)=\int r\times m$, $[e]_\times z=e\times z$, $C=\int mr^T$. Integration against $r,rr^T$ gives$$\int m=\int_{\partial K}r g,\qquad 2C=\int_{\partial K}rr^T g-\theta\Sigma+[L(m)]_\times.$$Hence $\Pi_1m=V^{-1}\int_{\partial K}rg+C\Sigma^{-1}r$ exactly for every admissible field. With barycentric $b=\prod_{j=0}^3\lambda_j$, $\operatorname{curl}(bt)\in\mathcal K$ and $L(\operatorname{curl}(bt))=2\int b\,t=Vt/420$. Three extra independent scalar linear measurements are necessary and sufficient for all first moments at fixed $g$. Angular error $e$ changes the affine gradient by $[e]_\times\Sigma^{-1}/2$, of norm $\le |e|/(\sqrt2\lambda_{\min}(\Sigma))$. For known positive uniform density $d$ and rigid velocity $a+\omega\times r$, $\omega=(\operatorname{tr}\Sigma I-\Sigma)^{-1}L(m)/d$. The reciprocal of $d\lambda_{\min}(\operatorname{tr}\Sigma I-\Sigma)$ is the sharp noise factor. Uniform density alone cannot determine spin. $\operatorname{curl}(b(x_j-c_j)t)$ gives silent nonzero examples; compact curls of potentials with zero integral yield an infinite-dimensional nullspace. A learned moment is a prior unless independently observed.
## 2. Exact continuum elimination
$F(g)$ is the unique affine lift obtained by intersecting the three independent normal equations at each of four vertices. Used as coordinates and comparison only. $\mathcal V_\alpha(g)=F+\mathcal K$. Let $\omega=\operatorname{axl}(\operatorname{skw}\nabla F)$, $\xi=(\omega,S(F))$, $Bk=(L(k),\alpha\int S(k))$, omitting shear components at $\alpha=0$. Put $R=B^*$ (cell inner product), $C_B=BR$, $R_L$ the first three columns of $R$, $C_{LL}=LR_L$, $C_{L:}=LR$. Moment identities give $\langle F,k\rangle_\alpha=\xi\cdot Bk$.$$m_0=F-R\xi,\quad Q(g)=\min\|m\|_\alpha^2=\|F\|_\alpha^2-\xi^TC_B\xi.$$For prescribed $\ell=L(m)$ set $v=\ell-LF+C_{L:}\xi$. Then$$m_\ell=m_0+R_L C_{LL}^{-1}v,\qquad Q(g,\ell)=Q(g)+v^TC_{LL}^{-1}v.$$Completing squares proves existence, uniqueness and positive definiteness of the reduced forms. For any given per-density field $p\in\mathcal V_\alpha(g_p)$ use residual coordinates $(g-dg_p,\ell-dL(p))$ then add $dp$. Source energy appends $V(s-d\hat s)^2/\gamma$.
**Rank.** $R$ is injective. A compact curl $k=\operatorname{curl} A$ has $\int S(k)=0$ and arbitrary $L(k)=2\int A$, forcing the rotational coordinate of any dependence to vanish. For constant trace-free symmetric $S$, $\int S:S(k)=\int_{\partial K}(Sn)\cdot k$. The curl of a localized potential $d_f\chi t$, with signed face distance $d_f$, realizes any tangential direction times $\chi$ on one face. Each $n_f$ must be an eigenvector. The sole relation $\sum |f|n_f=0$, all coefficients nonzero, makes all eigenvalues equal and $S=0$. Affine residuals realize all $\xi$. Thus **3** responses for $\alpha=0$ and **8** for $\alpha>0$ are sufficient and necessary for a linear correction space relative to the affine lift on all local traces. These ranks concern profiles generated by affine residual data, not the dimension of the continuum kernel. At common trace, density, time rule and affine prior without hard angular observations the exact reduction in squared energy is $\xi^TC_B\xi>0$ iff $\xi\ne0$.
At $\alpha=0$, $R_Lt=t\times r-\nabla\phi_t$, $\int\nabla\phi_t\cdot\nabla\psi=\int(t\times r)\cdot\nabla\psi$ (mean-zero Neumann). Three scalar solves, or eight vector responses at positive shear per geometry/weight. These can be reused over time. At zero shear, the residual family with prescribed $g,\ell$ equals the known first-order face virtual element with constant div/curl, linear normal traces. At fixed $g,\ell$ an affine truth is the unshifted kinetic minimizer by $L^2$ orthogonality. A rigid truth remains the minimizer at positive shear. $\mathcal N=\mathcal K\cap\ker L$. If independent evidence bounds the true squared energy by $W$, the sharp radius for any bounded scalar functional $J$ is $\sqrt{W-Q(g,\ell)}\|J|_{\mathcal N}\|_*$. For a true field with given $g,\ell$, perturbing the angular datum by $e$ increases squared error of the minimum-energy fit by exactly $e^TC_{LL}^{-1}e$.
## 3. Finite, verifiable cell matrices
In data $a=g$ or $(g,\ell)$ write $Q(a)=a^TG_*a$. For $G_+$ lift with $F(g)$, adding $\operatorname{curl}(b(420/V)(\ell-LF))$ if needed. Optimize over a polynomial correction subspace respecting homogeneous constraints. For lower tests use$$w=(\nabla\phi+t\times r+\operatorname{div}\sigma,\ \sigma/\sqrt\alpha),\quad b_w(a)=\int_{\partial K}(\phi+n^T\sigma n)g-\theta\int_K\phi+t\cdot\ell.$$$\sigma$ symmetric, trace-free, $(\sigma n)_{\rm tan}=0$; omit stress at $\alpha=0$ and $t=0$ for free moments. Integration by parts pairs $w$ with $(m,\sqrt\alpha S(m))$. For independent tests with Gram $W$ and data $Pa=(b_w(a))$, Bessel gives $G_-=P^TW^{-1}P\preceq G_*\preceq G_+$. Make $G_->0$ using $\phi=b$ for $\theta$, $\phi=(\prod_{j\in f}\lambda_j)\lambda_p$ for each $p\in f$ to isolate face traces, and three $t$ if applicable. Append the exact $V/\gamma$ source block. For the upper lift, $\|m_+-m_*\|_\alpha^2\le a^T(G_+-G_-)a$. In kinetic energy, scalar polynomial gradient tests and the optional three rotations are dense in the annihilator, so increasing lower spaces recover the true finite matrix. Every finite enclosure is valid at either shear choice. Exact continuum setup has a cost.
## 4. Time and metric
Let $h=1/T$, $a,b$ adjacent densities, $d=(a+b)/2$, $U=(\sqrt a+\sqrt b)^2/4$, $d-U=(\sqrt a-\sqrt b)^2/4$, $d/2\le U\le d$. $U$ is concave and nonnegative. $\Phi(v,y)=\|y\|^2/(2v)$, $\Phi(0,0)=0$, $+\infty$ for other pairs outside its domain. Use $(b-a)/h+\theta=s$ and cost $h\Phi(U,Az)$, $z=(g,s)$, $A^TA=G_*$. Continuous energy $E=\inf\int\sum_K\Phi(\rho,Az)dt$ with fixed endpoints. $U$ is the unique continuous quadratic-perspective mobility exact on every scalar reaction, since $(b-a)^2/(2U)=2(\sqrt b-\sqrt a)^2$. For proportional endpoints, including zero, on every mesh and at every $T$, the discrete and continuous optimum equal $2(\sqrt{M_1}-\sqrt{M_0})^2/\gamma$ for $M_i=\sum V\rho_{K,i}$. Weighted Cauchy gives $\sum VU\le U(M_j,M_{j+1})$ and the global mass lower bound. Zero flux and linear interpolation of root masses attain it. The arithmetic rule gives half this action at one step starting from vacuum.
$D=\sqrt E$ is a proper complete geodesic metric: for $\beta_K=\|[z\mapsto s-\theta(g)]A^{-1}\|$,$$2\sum_K|\Delta\sqrt{\rho_K}|^2/\beta_K^2\le D^2\le(2/\gamma)\sum_K V_K|\Delta\sqrt{\rho_K}|^2.$$Proof uses regularized roots and the pure source competitor, reversal, energy-time rescaling, and uniform density compactness plus weak $L^2$ control compactness. A minimizing path is constant speed. Temporal sequential $\Gamma$-convergence on fixed mesh uses uniform linear density interpolation and weak $L^2$ slab controls. $U\le d$ gives root bounds and equicoercivity. Midpoint-vs-linear squared $L^2$ difference is $h^2\|\dot\rho^h\|^2/12$. For recovery lift by $\epsilon$, compress path into $1-2\delta$ and join by root-linear ramps costing $O(\epsilon/\delta)$, $\delta=\sqrt\epsilon$. Average controls and use Jensen; for arbitrary finite paths take a diagonal limit. For constant-speed paths the roots are Lipschitz, giving relative upper denominator error $O(h/\sqrt\epsilon+h^2/\epsilon)$. Choose $\epsilon=h$. Conversely discrete root increments are $O(\sqrt h)$, giving $O(\sqrt{h/\epsilon}+h/\epsilon)$ when comparing the lifted linear path with the midpoint. Choose $\epsilon=\sqrt h$. Thus $E-C_-h^{1/4}\le E_T\le E+C_+h^{1/2}$ for small $h$, upper $O(h)$ if a minimizing path is strictly positive. Constants are mesh/endpoint dependent.
## 5. Burst program and certificate
For node $j$ choose $k_j>0$, anchor coefficients $l_j,c_j$, $c_j\ge l_j^2/(2k_j)$. For each cell-interval $i$ use $\kappa_i>0,b_i^0$, per-density proposal $p_i$, local data $z_i=(g_i,[\ell_i],s_i)$, $r_i=z_i-d_ip_i$. $Lx=0$ imposes balance, midpoint, matching normal traces and walls; independently calibrated angular readouts may add $\ell_i=d_ie_i$. Keep the arithmetic midpoint in the affine residual. With soft nodal endpoints,$$P_G=\sum_j(k_j\rho_j^2/2-l_j\rho_j+c_j)+h\sum_i[\kappa_i(d_i-b_i^0)^2/2+\|r_i\|_{G_i}^2/(2U_i)].$$Exact physical solution unique by bounded sublevels, strict density convexity, positive-definite $G$ at positive mobility and $r=0$ at joint vacuum. SOCP lift: $t\ge0,t^2\le ab$, $0\le u\le(a+b+2t)/4$, $2uq\ge\|r\|_G^2$; lift quadratic anchors separately. Strict point $\rho=d=1$, $g=s=0$, $\ell=e$ if imposed, $t=u=1/2$, loose epigraphs. Auxiliary slacks need not be unique. $3F$ shared flux variables per interval ($F$ interior faces), $O(MT)$ finite unknowns. Block-time elimination $O(TM^3)$ dense-spatial operations per step. Standard central-neighborhood short-step bound $O(\sqrt{MT}\log(1+g_0/\varepsilon))$. These assume usable finite matrices and suitable initialization. They exclude elliptic setup, input/precision costs, and the encoder.
For any multiplier $\lambda$, let $w=L^T\lambda$. For each $\tau_i>0$,$$\sigma_i=(w_i^z)^TG_i^{-1}w_i^z/(2h),\quad B_i=h\kappa_i b_i^0+w_i^d+p_i^Tw_i^z,$$$$A_j=l_j+w_j^\rho+\sum_{iL=j}\sigma_i(1+\tau_i)/4+\sum_{iR=j}\sigma_i(1+1/\tau_i)/4.$$$$D_G=\sum_j(c_j-[A_j]_+^2/(2k_j))+\sum_i(h\kappa_i(b_i^0)^2/2-[B_i]_+^2/(2h\kappa_i)).$$$D_{G_-}(\lambda,\tau)\le P_{\rm cont}^*\le P_{G_+}(x)$ for every finite feasible $x$; both ends $O(MT)$ after setup. Complete squares in $z$. $U\le((1+\tau)a+(1+1/\tau)b)/4$. Tight supremum for fixed $G$ by Fenchel/Slater: $-\sigma\sqrt{ab}/2$ is the support of $(-\xi,-\eta)$ with $\xi,\eta\ge0,\xi\eta\ge\sigma^2/16$ on the quadrant. Optimizing can restrict to the hyperbola; limits allowed. Feasibility repair without floors: clip densities, recalculate midpoints, average common-orientation interior traces, zero exterior and any face incident on zero $d$, recompute $s=\Delta\rho/h+\theta$, set $\ell=de$ where observed and zero at vacuum. Use a feasible upper lift plus $dp$. Certified floating point needs directed enclosures and verified feasibility.
**Full nonnegative gap identity.** $\Delta=P_{G_+}(x)-D_{G_-}$. Evaluate all dual symbols with $G_-$. Let $H_k(v,A)=kv^2/2-Av+[A]_+^2/(2k)$. Then $\Delta$ equals$$\sum_jH_{k_j}(\rho_j,A_j)+\sum_i H_{h\kappa_i}(d_i,B_i)+\sum_i\left[\frac h{2U_i}r_i^T(G_{+,i}-G_{-,i})r_i+\frac{hU_i}2\left\|\frac{r_i}{U_i}-\frac{G_{-,i}^{-1}w_i^z}{h}\right\|_{G_{-,i}}^2+\frac{\sigma_i}4(\sqrt{\tau_i a_i}-\sqrt{b_i/\tau_i})^2\right].$$At joint vacuum set both residual terms zero. For the feasible upper field $Y_i=(m_i-d_ip_i^{field},s_i-d_i\hat s_i)$ with norm $\|(m,s)\|_i^2=\|m\|_\alpha^2+Vs^2/\gamma$,$$\tfrac12\sum k_j|\delta\rho_j|^2+\tfrac h2\sum\kappa_i|\delta d_i|^2+\sum_{U_iU_i^*>0}\tfrac{hU_i}2\|Y_i/U_i-Y_i^*/U_i^*\|_i^2\le\Delta.$$Stars are exact optimum. Proof takes $t\downarrow0$ in the Hilbert variance identity along a feasible segment and uses mobility concavity. For fixed mesh, weights and observation indices, bounded data imply $1/2$-Hölder densities: eliminate hard moments via $\ell=de$, which replaces the moment proposal by $p^\ell-e$ in a residual with zero inserted moment coordinate. On common sublevels $d/U\le2$ gives objective change $O(\|\delta\Theta\|)$; use the strong density inequalities both ways. Positive nodal densities give locally Lipschitz reduced physical coordinates, since the perspective Hessian controls $\delta r-(r/U)\delta U$ and the quadratics control all density increments. Smooth-data exact implicit derivatives apply at regular interior points; positive-barrier derivatives require independent equalities and a positive definite reduced Hessian. Active-set crossings may prevent exact differentiability. Physical velocity at zero density is undefined.
## 6. Exact evidence and reproducibility
On $K=\{x,y,z\ge0,\ x+y+z\le1\}$ impose zero exterior flux. $t=(1,1,1)$, $p=t\times r=(z-y,x-z,y-x)$, $k=(x(z-y),y(x-z),z(y-x))=\nabla(xyz)\times\nabla(x+y+z)$. Every zero-trace affine field is zero. The nonzero $k$ has zero flux, div and preserves $xyz,x+y+z$ along streamlines. $I=\|p\|^2=1/20$, $j=\langle p,k\rangle=1/120$, $\|k\|^2=1/420$, $\int|S(k)|^2=3/40$. Let $C_\alpha=I-\min_{m\in\mathcal K}\|p-m\|_\alpha^2$. One-mode gain $j^2/(I\|k\|_\alpha^2)=7/[12(1+63\alpha/2)]$. Trial and complementary spaces bound $C_\alpha/I$ using exact polynomial Gram projections. At response basis index four:
| Test | $\alpha=0$ | $\alpha=1/100$ ||---|---:|---:|| Reduction in squared mismatch to $p$ | 60.272024–60.283966% | 47.696163–48.342911% || Reduction in squared error against measured truth $k$, zero prior | 96.764259–96.783431% | 91.761023–93.005278% |
Second row uses $L(k)=t/360$ independently observed. $u=P_{\mathcal K}p=R_Lt$. Cyclic symmetry gives $L(u)\parallel t$ and $t\cdot L(u)=C_\alpha$. The fit is $(j/C_\alpha)u$, so its gain against truth is $j^2/(C_\alpha\|k\|_\alpha^2)$. Norm is $L^2$ for the first column, kinetic plus shear for the second. The affine estimate compatible with the face flux remains zero and cannot satisfy the nonzero angular observation. With multiplicative angular error $\eta$, multiply gain by $1-\eta^2$. With no moment measurement and zero prior both methods return zero.
Kinetic $C_0/I\in[1561923/2591456,\ 369219040/612466407]$; the exact field-error gain is in $[1429088283/1476876160,\ 4535048/4685769]$. Other rational endpoints are regenerated below and stored in verification.json. Let $s_1=x+y+z,s_2=xy+yz+zx,s_3=xyz$, $f=s_1^is_2^js_3^k$ of degree $\le n$. Trial potentials $s_3 f t$ and $(1-s_1)f(yzx^a,zxy^a,xyz^a)$ with $a+\deg f\le n$; take curls. Complement tests $\nabla((x-y)(y-z)(z-x)f)$, and for positive shear $(\operatorname{div}\sigma,\sigma/\sqrt\alpha)$ in the field/strain graph. For cyclic $(i,j,k)$ let $(u,v,w)=(x_i,x_j,x_k)$, $e=e_j-e_i$. Use both cyclic sums of $(1-s_1)u(v-w)u^a f(e_i e_i^T-I_3/3)$ and $uv(u-v)w^a f(ee^T-2I_3/3)$ with $a+\deg f\le n-1$ for $n=4$. Remove dependent vectors. Project via $b^TW^{-1}b$; $\int x^a y^b z^c=a!b!c!/(a+b+c+3)!$. Kinetic trial/test ranks at $n=0,\dots,4$: $(1,1),(2,2),(5,4),(9,7),(15,11)$; at positive shear $(15,37)$ at four. All lower polynomials satisfy zero normal and divergence; all test stresses obey tangential-traction and symmetry checks.
Joint $T=1$, three unit anchors at 1, proposal $p$, no moment observation, $\alpha=0$: by time symmetry $\rho_L=\rho_R=r$. $e=I-C_0$, $P(r)=3(r-1)^2/2+re/2$, $r_*=1-e/6$, $P^*=e/2-e^2/24$. $r_*\in[0.996689335,0.996690331]$, $P^*\in[0.009912577,0.009915554]$ vs affine $239/9600$, a 60.171837–60.183789% joint objective reduction. Scalar source check: $h=V/\gamma=1$, nodes $1,4$, anchors $1/2,17/4$ with weights four, midpoint anchor $5/2$ with unit weight, zero source prior, dual balance/midpoint $(-4/3,0)$. $U=9/4$, $D(1)=194/81$, $D(2)=P=21/8$. Pure creation with volumes $(1/6,1/4,1/3)$, terminal $(4,0,9)$, $\gamma=3/2$ gives $44/9$ at $T=1,2,3,8,17$; arithmetic one-step $22/9$.
Run the included verify.py with --check verification.json in Python with SymPy 1.14. The full manuscript and verifier supply the definitions, signed test tensors, and exact rational arithmetic for independent inspection. Comparisons concern fixed meshes and stated measurements. General measured-data accuracy, global runtime and spatial refinement are open questions.
**Prior work.** Beirão da Veiga, Brezzi, Marini, Russo, Numer. Math. 133 (2016), §5, doi:10.1007/s00211-015-0746-1 (kinetic face space). Natale–Todeschi doi:10.1007/s10915-022-01821-y (mixed dynamical transport). Chizat et al. doi:10.1007/s10208-016-9331-y (unbalanced transport). Smetana–Patera doi:10.1137/15M1009603 (local elimination). Prager–Synge doi:10.1090/qam/25902 (complementary bounds). Bhatia et al. doi:10.1109/TVCG.2012.316 (Hodge decomposition). Benamou–Brenier, Numer. Math. 84 (2000), 375–393. Lewintan–Neff, Nečas–Lions lemma revisited, eq. 5 (Korn II). Nesterov–Todd doi:10.1287/moor.22.1.1 (interior-point complexity).1234567891011121314151617181920212223242526# Reproduce Nyeolixa
Run the commands from the root of this dataset repository using Python 3.10 or newer.
~~~shpython -m pip install -r code/requirements.txtpython code/verify.py --check code/verification.jsonpython code/build_dataset.py --check~~~
The first check recomputes the published reference values using exact rational arithmetic. The second checks that the Dataset Viewer records match that same reference file. Running the dataset script without the check flag regenerates the JSONL. A shorter verification run is available by passing `--degree 2` to verify.py and omitting the check argument. It returns wider enclosures from smaller trial and test spaces.
## Paper
The LaTeX source and its vector figure are included together in the paper directory. From that directory, build with a standard TeX distribution:
~~~shpdflatex -interaction=nonstopmode -halt-on-error Nyeolixa.texpdflatex -interaction=nonstopmode -halt-on-error Nyeolixa.tex~~~
The prebuilt vector figure does not require Python. To regenerate it separately, run `python code/figure.py` from the dataset root with NumPy and Matplotlib installed, then place the generated circulation.pdf in the paper directory. Tested figure versions are NumPy 2.3.5 and Matplotlib 3.10.8.
## Interpretation
The checker covers the manufactured examples in the paper. It checks the normal and divergence constraints of polynomial trial fields, test-stress conditions, the moment identity, rational objective intervals, vacuum mass costs, and the scalar dual and gap identities. The manuscript specifies the continuum optimization problem and mathematical certificates..gitattributes+1
CITATION.cffAdded+13
MANIFEST.sha256Added+13
README.mdAdded+76
code/build_dataset.pyAdded+110
code/figure.pyAdded+41
code/requirements.txtAdded+1
code/verification.jsonAdded+166
code/verify.pyAdded+342
data/results.jsonlAdded+21
paper/Nyeolixa.pdfAdded+3
paper/Nyeolixa.texAdded+360
paper/Nyeolixa_Compact.mdAdded+77
paper/circulation.pdfAdded
reproduce.mdAdded+26