Formal Verification of Cyclic Lists

In previous articles, we defined bounded Lists and Integrals of BigInt from scratch, relying only on core type constructs and recursion, with no prior knowledge of Scala's collections required. From that, we proved and formally verified some properties related to them as size, append, concat, slice and sum. This article uses that as a foundation to define Cycles — unbounded List of Integers created from a bounded List, where the values of the Cycle are the values of the List in repetition using recursion. Then, we formally defined and verified key properties such as cycle equivalence between definitions, element access via modular indexing, and periodic invariance using the Stainless verification system. All properties are expressed and proved within a minimal framework using only elementary arithmetic, recursion, and pure Scala code. This work bridges mathematical foundations and executable verification, offering a self-contained, verifiable approach of modular arithmetic.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-09-21
DOI
https://doi.org/10.5281/zenodo.22865441
Primary Topic
Logic, programming, and type systems
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
article

Formal Verification of Cyclic Lists

Thiago Henrique Ramos da Mata
Zenodo (CERN European Organization for Nuclear Research)
Logic, programming, and type systems
article

Formal Verification of Cyclic Lists

Thiago Henrique Ramos da Mata
article en

Abstract

In previous articles, we defined bounded Lists and Integrals of BigInt from scratch, relying only on core type constructs and recursion, with no prior knowledge of Scala's collections required. From that, we proved and formally verified some properties related to them as size, append, concat, slice and sum. This article uses that as a foundation to define Cycles — unbounded List of Integers created from a bounded List, where the values of the Cycle are the values of the List in repetition using recursion. Then, we formally defined and verified key properties such as cycle equivalence between definitions, element access via modular indexing, and periodic invariance using the Stainless verification system. All properties are expressed and proved within a minimal framework using only elementary arithmetic, recursion, and pure Scala code. This work bridges mathematical foundations and executable verification, offering a self-contained, verifiable approach of modular arithmetic.

Zenodo (CERN European Organization for Nuclear Research)
Openalex Percentile: Top 8%
Logic, programming, and type systems
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.