SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2402.05585 · 2024

Neural functional a posteriori error estimates

arXiv · PDF · Open in the Atlas

Code that ran

4 of 4 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 0 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2402.05585.json · badge: /api/ran/2402.05585.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
VLSF/UQNO canonical (classifier label)
classifier basis: classifier_2025
4 ran · 0 no recorded run
FunctionStatusWhere it lives
get_dataset Ran
ran; our contract draft was wrong, not the code
VLSF/UQNO/datasets/PiNN_datasets/Anisotropic_diffusion.py
code served (permissive licence) · get_code("fdb0ab19e82b1306")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import jax
from jax import random
import jax.numpy as jnp

# Set seed for reproducibility
key = random.PRNGKey(0)

ARGS = {
    "key": key,
    "N_samples": 2,
    "eps": 1.0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
jax, scipy, sympy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_sample Ran
ran; our contract draft was wrong, not the code
VLSF/UQNO/datasets/PiNN_datasets/Anisotropic_diffusion.py
code served (permissive licence) · get_code("d71f64e6c531e7a8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import jax
import jax.numpy as jnp
from jax import random

# Set seed for reproducibility
key = random.PRNGKey(0)

# Create small coordinate arrays
# coords_train: shape (N_train, 2) - training coordinates
N_train = 8
coords_train = jnp.array([
    [0.1, 0.2],
    [0.3, 0.4],
    [0.5, 0.5],
    [0.6, 0.7],
    [0.2, 0.8],
    [0.9, 0.1],
    [0.4, 0.6],
    [0.7, 0.3],
], dtype=jnp.float32)

# weights_: not used in the function body, but required as parameter
weights_ = jnp.ones((N_train,), dtype=jnp.float32)

# coords_legendre: shape (N_legendre, 2) - Legendre quadrature coordinates
N_legendre = 6
coords_legendre = jnp.array([
    [0.15, 0.25],
    [0.35, 0.45],
    [0.55, 0.65],
    [0.65, 0.75],
    [0.25, 0.85],
    [0.95, 0.15],
], dtype=jnp.float32)

# coords_eval: shape (N_eval, 2) - evaluation coordinates
N_eval = 4
coords_eval = jnp.array([
    [0.2, 0.3],
    [0.5, 0.6],
    [0.7, 0.8],
    [0.4, 0.5],
], dtype=jnp.float32)

# eps parameter
eps = 1.0

ARGS = {
    'key': key,
    'coords_train': coords_train,
    'weights_': weights_,
    'coords_legendre': coords_legendre,
    'coords_eval': coords_eval,
    'eps': eps,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
jax, sympy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
np_random_sin Ran
ran; our contract draft was wrong, not the code
VLSF/UQNO/scripts/DeepONet_astral_2D.py
code served (permissive licence) · get_code("0ea44bb6b30f1dae")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Add. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import sympy as sp
import numpy as np
import itertools

def np_random_sin(x, amplitudes, k=2):
    N_terms = amplitudes.shape[0]
    frequencies = sorted([*itertools.product(range(1, N_terms + 1), repeat=2)], key=lambda x: sum(x))[:N_terms]
    a = 0
    for n, (i, j) in enumerate(frequencies):
        a += amplitudes[n] * (sp.sin(sp.pi * i * x[0]) + sp.sin(sp.pi * j * x[1])) / (1 + (sp.pi * i) ** 2 + (sp.pi * j) ** 2) ** k
    return a

# Create small test data
x = [sp.Symbol('x0'), sp.Symbol('x1')]
amplitudes = np.array([1.0, 0.5, 0.25, 0.1])

ARGS = {
    'x': x,
    'amplitudes': amplitudes,
    'k': 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, sympy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Add — a Add output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Add output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
np_random_sin Ran
ran; our contract draft was wrong, not the code
VLSF/UQNO/datasets/PiNN_datasets/Anisotropic_diffusion.py
code served (permissive licence) · get_code("e1a5662398f9030a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Add. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import sympy as sp
import numpy as np
import itertools

# Analyze the function:
# - x: appears to be indexed as x[0] and x[1], so it's a sequence/array-like with at least 2 elements
# - amplitudes: has .shape[0] attribute, so it's a numpy array or similar
# - k: numeric parameter (default 2)
# - eps: numeric parameter (default 1.0)

# The function uses sympy symbols, so x should contain sympy symbols or be compatible
# Looking at the usage: sp.sin(sp.pi * i * x[0]), x[0] and x[1] are multiplied with sympy expressions
# This suggests x should be a list/tuple of sympy symbols

x = [sp.Symbol('x0'), sp.Symbol('x1')]

# amplitudes needs .shape[0] to work, so use numpy array
# N_terms will be determined by amplitudes.shape[0]
# Let's use a small array with 3 terms
amplitudes = np.array([1.0, 0.5, 0.3])

k = 2
eps = 1.0

ARGS = {
    'x': x,
    'amplitudes': amplitudes,
    'k': k,
    'eps': eps
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, sympy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Add — a Add output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Add output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 3 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
np_random_sin 1 other paper
1 later
2406.02645 (2024-06)
Astral: training physics-informed neural networks with error majorants

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

We propose a new loss function for supervised and physics-informed training of neural networks and operators that incorporates a posteriori error estimate. More specifically, during the training stage, the neural network learns additional physical fields that lead to rigorous error majorants after a computationally cheap postprocessing stage. Theoretical results are based upon the theory of functional a posteriori error estimates, which allows for the systematic construction of such loss functions for a diverse class of practically relevant partial differential equations. From the numerical side, we demonstrate on a series of elliptic problems that for a variety of architectures and approaches (physics-informed neural networks, physics-informed neural operators, neural operators, and classical architectures in the regression and physics-informed settings), we can reach better or comparable accuracy and in addition to that cheaply recover high-quality upper bounds on the error after training.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2402.05585")
get_code_for_paper("2402.05585")
have("2402.05585")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2402.05585.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2402.05585.svg)](https://syntology.ai/paper/2402.05585)

Connect an agent — have() is free.