Formal Verification of Cycle Integral Properties from First Principles

In previous articles, we defined bounded Lists, Integrals of Lists, and unbounded Cycles of Integers 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. This article uses that as a foundation to define Integral of Cycles using two presentations: the canonical recursive `CycleIntegral` definition and a `ModCycleIntegral` closed-form definition. For both presentations, we formally verify the sum property (integral equals cumulative cycle sum) and the step property (difference between consecutive values equals the corresponding cycle element) using the Stainless verification system. We also prove that the recursive and modulo definitions are extensionally equivalent. 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 for reasoning about infinite periodic accumulations.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-09-21
DOI
https://doi.org/10.5281/zenodo.22868423
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 Cycle Integral Properties from First Principles

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

Formal Verification of Cycle Integral Properties from First Principles

Thiago Henrique Ramos da Mata
article en

Abstract

In previous articles, we defined bounded Lists, Integrals of Lists, and unbounded Cycles of Integers 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. This article uses that as a foundation to define Integral of Cycles using two presentations: the canonical recursive `CycleIntegral` definition and a `ModCycleIntegral` closed-form definition. For both presentations, we formally verify the sum property (integral equals cumulative cycle sum) and the step property (difference between consecutive values equals the corresponding cycle element) using the Stainless verification system. We also prove that the recursive and modulo definitions are extensionally equivalent. 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 for reasoning about infinite periodic accumulations.

Zenodo (CERN European Organization for Nuclear Research)
Openalex Percentile: Top 9%
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.

Formal Verification of Cycle Integral Properties from First Principles — Thiago Henrique Ramos da Mata · Zenodo (CERN European Organization for Nuclear Research) (2026) | TGRS Research Map | TGRS