Saved in:
Bibliographic Details
Main Authors: Fujiwara, Yusuke, Matsushita, Yusuke, Suenaga, Kohei, Igarashi, Atsushi
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2604.22361
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913059019161600
author Fujiwara, Yusuke
Matsushita, Yusuke
Suenaga, Kohei
Igarashi, Atsushi
author_facet Fujiwara, Yusuke
Matsushita, Yusuke
Suenaga, Kohei
Igarashi, Atsushi
contents Tanaka et al. proposed a type system for verifying functional correctness properties of programs that use arrays and pointer arithmetic. Their system extends ConSORT -- a type system combining fractional ownership and refinement types for imperative program verification -- with support for pointer arithmetic. Their idea was to extend fractional ownership so that it can depend on an array index. Their formulation, however, does not handle nested arrays, which are essential for representing practical data structures such as matrices. We extend Tanaka et al.'s type system to support nested arrays by generalizing the notion of ownership to be able to refer to the indices of the outer arrays and prove the soundness of the extended type system. We have implemented a verifier based on the proposed type system and demonstrated that it can verify the correctness of programs that manipulate nested arrays, which were beyond the reach of Tanaka et al.
format Preprint
id arxiv_https___arxiv_org_abs_2604_22361
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Ownership Refinement Types for Pointer Arithmetic and Nested Arrays
Fujiwara, Yusuke
Matsushita, Yusuke
Suenaga, Kohei
Igarashi, Atsushi
Programming Languages
Tanaka et al. proposed a type system for verifying functional correctness properties of programs that use arrays and pointer arithmetic. Their system extends ConSORT -- a type system combining fractional ownership and refinement types for imperative program verification -- with support for pointer arithmetic. Their idea was to extend fractional ownership so that it can depend on an array index. Their formulation, however, does not handle nested arrays, which are essential for representing practical data structures such as matrices. We extend Tanaka et al.'s type system to support nested arrays by generalizing the notion of ownership to be able to refer to the indices of the outer arrays and prove the soundness of the extended type system. We have implemented a verifier based on the proposed type system and demonstrated that it can verify the correctness of programs that manipulate nested arrays, which were beyond the reach of Tanaka et al.
title Ownership Refinement Types for Pointer Arithmetic and Nested Arrays
topic Programming Languages
url https://arxiv.org/abs/2604.22361