Beyond Affine Loops: A Geometric Approach to Program Synthesis

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Bayarmagnai, Erdenebayar, Mohammadi, Fatemeh, Prébet, Rémi
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866916716080005120
author Bayarmagnai, Erdenebayar
Mohammadi, Fatemeh
Prébet, Rémi
author_facet Bayarmagnai, Erdenebayar
Mohammadi, Fatemeh
Prébet, Rémi
contents Ensuring software correctness remains a fundamental challenge in formal program verification. One promising approach relies on finding polynomial invariants for loops. Polynomial invariants are properties of a program loop that hold before and after each iteration. Generating polynomial invariants is a crucial task for loops, but it is an undecidable problem in the general case. Recently, an alternative approach to this problem has emerged, focusing on synthesizing loops from invariants. However, existing methods only synthesize affine loops without guard conditions from polynomial invariants. In this paper, we address a more general problem, allowing loops to have polynomial update maps with a given structure, inequations in the guard condition, and polynomial invariants of arbitrary form. In this paper, we use algebraic geometry tools to design and implement an algorithm that computes a finite set of polynomial equations whose solutions correspond to all loops satisfying the given polynomial invariants. In other words, we reduce the problem of synthesizing loops to finding solutions of polynomial systems within a specified subset of the complex numbers. The latter is handled in our software using an SMT solver.
format Preprint
id arxiv_https___arxiv_org_abs_2505_00620
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Beyond Affine Loops: A Geometric Approach to Program Synthesis
Bayarmagnai, Erdenebayar
Mohammadi, Fatemeh
Prébet, Rémi
Symbolic Computation
Algebraic Geometry
Ensuring software correctness remains a fundamental challenge in formal program verification. One promising approach relies on finding polynomial invariants for loops. Polynomial invariants are properties of a program loop that hold before and after each iteration. Generating polynomial invariants is a crucial task for loops, but it is an undecidable problem in the general case. Recently, an alternative approach to this problem has emerged, focusing on synthesizing loops from invariants. However, existing methods only synthesize affine loops without guard conditions from polynomial invariants. In this paper, we address a more general problem, allowing loops to have polynomial update maps with a given structure, inequations in the guard condition, and polynomial invariants of arbitrary form. In this paper, we use algebraic geometry tools to design and implement an algorithm that computes a finite set of polynomial equations whose solutions correspond to all loops satisfying the given polynomial invariants. In other words, we reduce the problem of synthesizing loops to finding solutions of polynomial systems within a specified subset of the complex numbers. The latter is handled in our software using an SMT solver.
title Beyond Affine Loops: A Geometric Approach to Program Synthesis
topic Symbolic Computation
Algebraic Geometry
url https://arxiv.org/abs/2505.00620