SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2506.13961 · 2025

Safe Domains of Attraction for Discrete-Time Nonlinear Systems: Characterization and Verifiable Neural Network Estimation

arXiv · PDF · Open in the Atlas

Code that ran

10 of 17 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; 10 failures of our instrument; 7 no recorded run), measured 2026-11-24; 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/2506.13961.json · badge: /api/ran/2506.13961.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
RuikunZhou/Safe_ROA_dt_LyZNet canonical (classifier label)
classifier basis: census
9 ran · 4 no recorded run
ruikunzhou/safe-roa-dt-system canonical (classifier label)
classifier basis: census
1 ran · 3 no recorded run
FunctionStatusWhere it lives
DTS_Zubov_loss Ran
ran; our contract draft was wrong, not the code
RuikunZhou/Safe_ROA_dt_LyZNet/src/lyznet/neural_learner.py
pointer only (licence: NONE) · get_code("95a1809f8dcc20dd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RuikunZhou/Safe_ROA_dt_LyZNet when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Zubov_loss Ran
ran; our contract draft was wrong, not the code
RuikunZhou/Safe_ROA_dt_LyZNet/src/lyznet/neural_learner.py
pointer only (licence: NONE) · get_code("5847ff7b9055b978")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RuikunZhou/Safe_ROA_dt_LyZNet when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

create_model_noh Ran
ran; our contract draft was wrong, not the code
ruikunzhou/safe-roa-dt-system/crown_verification/models.py
code served (permissive licence) · get_code("b3d704ded63021e3")
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, through the batch API) and returned LossNN. 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 torch
import torch.nn as nn

torch.manual_seed(0)

# Create stand-in module for dynamics
class DynamicsStandIn(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 4)
    
    def forward(self, x):
        return self.linear(x)

# Create stand-in Net for lyapunov_func
class Net(nn.Module):
    def __init__(self, input_dim, output_dim, hidden_dim):
        super().__init__()
        self.net = nn.Sequential(
            nn.Linear(input_dim, hidden_dim),
            nn.ReLU(),
            nn.Linear(hidden_dim, output_dim)
        )
    
    def forward(self, x):
        return self.net(x)

# Create stand-in quadratic_lyapunov_nn
class QuadraticLyapunovNN(nn.Module):
    def __init__(self, P):
        super().__init__()
        self.P = P
    
    def forward(self, x):
        return torch.matmul(torch.matmul(x.unsqueeze(-2), self.P), x.unsqueeze(-1))

# Create stand-in quad_norm
class QuadNorm(nn.Module):
    def __init__(self, dynamics, P, epsilon):
        super().__init__()
        self.dynamics = dynamics
        self.P = P
        self.epsilon = epsilon
    
    def forward(self, x):
        return torch.norm(torch.matmul(self.P, x.unsqueeze(-1)))

# Create stand-in loss function
class LossNN(nn.Module):
    def __init__(self, dynamics, lya, quadratic_lyapunov_nn, quad_norm):
        super().__init__()
        self.dynamics = dynamics
        self.lya = lya
        self.quadratic_lyapunov_nn = quadratic_lyapunov_nn
        self.quad_norm = quad_norm
    
    def forward(self, x):
        return self.lya(x).sum()

# Register eval-able functions in current scope
import sys
current_module = sys.modules[__name__]
current_module.build_graph_van = type('module', (), {
    'Net': Net,
    'loss_nn': LossNN,
    'quadratic_lyapunov_nn': QuadraticLyapunovNN,
    'quad_norm': QuadNorm
})()

# Setup arguments
dynamics = DynamicsStandIn()

ARGS = {
    'dynamics': dynamics,
    'path': None,
    'lyapunov_func': 'build_graph_van.Net',
    'loss_func': 'build_graph_van.loss_nn',
    'quadratic_lyapunov': 'build_graph_van.quadratic_lyapunov_nn',
    'quad_norm': 'build_graph_van.quad_norm'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type LossNN — a LossNN output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a LossNN 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
evaluate_dynamics Ran
ran; our contract draft was wrong, not the code
RuikunZhou/Safe_ROA_dt_LyZNet/src/lyznet/neural_learner.py
pointer only (licence: NONE) · get_code("4b615697cc90e391")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RuikunZhou/Safe_ROA_dt_LyZNet when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

evaluate_elm Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
RuikunZhou/Safe_ROA_dt_LyZNet/src/lyznet/elm_verifier.py
pointer only (licence: NONE) · get_code("8e8369a3691e213c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RuikunZhou/Safe_ROA_dt_LyZNet when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

evaluate_elm_lie_derivative Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
RuikunZhou/Safe_ROA_dt_LyZNet/src/lyznet/elm_verifier.py
pointer only (licence: NONE) · get_code("526b303111330ee9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RuikunZhou/Safe_ROA_dt_LyZNet when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

generate_random_samples Ran
ran; our contract draft was wrong, not the code
RuikunZhou/Safe_ROA_dt_LyZNet/src/lyznet/optimization.py
pointer only (licence: NONE) · get_code("4f8eb238d5b795d5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RuikunZhou/Safe_ROA_dt_LyZNet when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_closed_loop_f_numpy Ran
ran; our contract draft was wrong, not the code
RuikunZhou/Safe_ROA_dt_LyZNet/src/lyznet/neural_pi.py
pointer only (licence: NONE) · get_code("d3a9c67b47a4e9ad")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RuikunZhou/Safe_ROA_dt_LyZNet when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sample_points Ran
ran; our contract draft was wrong, not the code
RuikunZhou/Safe_ROA_dt_LyZNet/src/lyznet/elm_verifier.py
pointer only (licence: NONE) · get_code("dff0baa9ceac16a7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RuikunZhou/Safe_ROA_dt_LyZNet when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

stage_cost_numpy Ran
ran; our contract draft was wrong, not the code
RuikunZhou/Safe_ROA_dt_LyZNet/src/lyznet/neural_pi.py
pointer only (licence: NONE) · get_code("94c73a7485b9b7c5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RuikunZhou/Safe_ROA_dt_LyZNet when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

create_model Not yet run
unverified (harvested, no recorded run)
ruikunzhou/safe-roa-dt-system/crown_verification/models.py
code served (permissive licence) · get_code("c2b77e74033c3fd4")
How it ran

no invocation recorded.

create_model Not yet run
unverified (harvested, no recorded run)
ruikunzhou/safe-roa-dt-system/neural_lyapunov_training/models.py
code served (permissive licence) · get_code("3accf0ea3543ff2d")
How it ran

no invocation recorded.

create_output_feedback_model Not yet run
unverified (harvested, no recorded run)
ruikunzhou/safe-roa-dt-system/neural_lyapunov_training/models.py
code served (permissive licence) · get_code("a66cf3b543675690")
How it ran

no invocation recorded.

evaluate_vector_field Not yet run
unverified (harvested, no recorded run)
RuikunZhou/Safe_ROA_dt_LyZNet/src/lyznet/plot.py
pointer only (licence: NONE) · get_code("3abddaba755d7179")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RuikunZhou/Safe_ROA_dt_LyZNet when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

generate_CM_data Not yet run
unverified (harvested, no recorded run)
RuikunZhou/Safe_ROA_dt_LyZNet/src/lyznet/generate_data.py
pointer only (licence: NONE) · get_code("58cb0f86f7a7a2b6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RuikunZhou/Safe_ROA_dt_LyZNet when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

generate_data Not yet run
unverified (harvested, no recorded run)
RuikunZhou/Safe_ROA_dt_LyZNet/src/lyznet/generate_data.py
pointer only (licence: NONE) · get_code("e66ffc24945aaea7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RuikunZhou/Safe_ROA_dt_LyZNet when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

generate_dts_data Not yet run
unverified (harvested, no recorded run)
RuikunZhou/Safe_ROA_dt_LyZNet/src/lyznet/generate_data.py
pointer only (licence: NONE) · get_code("11a4d6f30ece8ed8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RuikunZhou/Safe_ROA_dt_LyZNet when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 17 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.

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-24.

Repositories linked to this paper

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

Abstract

Analysis of nonlinear autonomous systems typically involves estimating domains of attraction, which have been a topic of extensive research interest for decades. Despite that, accurately estimating domains of attraction for nonlinear systems remains a challenging task, where existing methods are conservative or limited to low-dimensional systems. The estimation becomes even more challenging when accounting for state constraints. In this work, we propose a framework to accurately estimate safe (state-constrained) domains of attraction for discrete-time autonomous nonlinear systems. In establishing this framework, we first derive a new Zubov equation, whose solution corresponds to the exact safe domain of attraction. The solution to the aforementioned Zubov equation is shown to be unique and continuous over the whole state space. We then present a physics-informed approach to approximating the solution of the Zubov equation using neural networks. To obtain certifiable estimates of the domain of attraction from the neural network approximate solutions, we propose a verification framework that can be implemented using standard verification tools (e.g., $α,\!β$-CROWN and dReal). To illustrate its effectiveness, we demonstrate our approach through numerical examples concerning nonlinear systems with state constraints.

For agents

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

get_harvested_code_for_paper("2506.13961")
get_code_for_paper("2506.13961")
have("2506.13961")

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

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

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

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

Connect an agent — have() is free.