Saved in:
Bibliographic Details
Main Authors: Matsuda, Kazutaka, Nguyen, Minh, Wang, Meng
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2601.04573
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918277844828160
author Matsuda, Kazutaka
Nguyen, Minh
Wang, Meng
author_facet Matsuda, Kazutaka
Nguyen, Minh
Wang, Meng
contents A bidirectional transformation is a pair of transformations satisfying certain well-behavedness properties: one maps source data into view data, and the other translates changes on the view back to the source. However, when multiple views share a source, an update on one view may affect the others, making it hard to maintain correspondence while preserving the user's update, especially when multiple views are changed at once. Ensuring these properties within a compositional framework is even more challenging. In this paper, we propose partial-state lenses, which allow source and view states to be partially specified to precisely represent the user's update intentions. These intentions are partially ordered, providing clear semantics for merging intentions of updates coming from multiple views and a refined notion of update preservation compatible with this merging. We formalize partial-state lenses, together with partial-specifiedness-aware well-behavedness that supports compositional reasoning and ensures update preservation. In addition, we demonstrate the utility of the proposed system through examples.
format Preprint
id arxiv_https___arxiv_org_abs_2601_04573
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Lenses for Partially-Specified States (Extended Version)
Matsuda, Kazutaka
Nguyen, Minh
Wang, Meng
Programming Languages
A bidirectional transformation is a pair of transformations satisfying certain well-behavedness properties: one maps source data into view data, and the other translates changes on the view back to the source. However, when multiple views share a source, an update on one view may affect the others, making it hard to maintain correspondence while preserving the user's update, especially when multiple views are changed at once. Ensuring these properties within a compositional framework is even more challenging. In this paper, we propose partial-state lenses, which allow source and view states to be partially specified to precisely represent the user's update intentions. These intentions are partially ordered, providing clear semantics for merging intentions of updates coming from multiple views and a refined notion of update preservation compatible with this merging. We formalize partial-state lenses, together with partial-specifiedness-aware well-behavedness that supports compositional reasoning and ensures update preservation. In addition, we demonstrate the utility of the proposed system through examples.
title Lenses for Partially-Specified States (Extended Version)
topic Programming Languages
url https://arxiv.org/abs/2601.04573