VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

Vocabulary, Superintelligence And Beyond | Can AI Translate a Meaning, Edit It and Return It Without Destroying the Original? Semantic Lenses

Researcher comparing abstract before-and-after datasets while reviewing a data-cleaning change log

Translation becomes more difficult when a recipient edits the translated version and expects the edit to flow back into the original. A simplified view may omit information intentionally. If an AI tries to reconstruct the original from the edited view alone, it may destroy important details. Bidirectional transformation research addresses a closely related problem through mathematical structures called lenses: a way to obtain a view from a source and to update the source using a changed view together with the original.

This article extends the proposed Z-layer from transferring meaning to maintaining editable representations. We build a small semantic lens for a fictional research record, calculate two round-trip laws and show exactly why a plausible-looking translator can fail. The proposed goal is an inspectable contract for edits that preserve relevant source information. It is not a claim that an arbitrary natural-language translation has a unique inverse or that a valid data update creates authority to act.

  • A simplified representation can omit details without being a bad read-only summary.
  • An editable view needs an explicit rule for propagating changes back to its source.
  • GetPut tests whether an unchanged view leaves its source unchanged.
  • PutGet tests whether a supported edit becomes visible when the source is read again.
  • Some frameworks also consider a stronger successive-update law, PutPut.
  • A round-trip law does not prove that the natural-language interpretation is correct or that an edit is authorised.
  • Keep original records, transformations, version checks and real permissions separate.

Choose your reading route

Understand bidirectional editing · Calculate the lens laws · Build a revision-safe semantic interface

Contents

Understand bidirectional editing · Sections 1–4
Calculate the lens laws · Sections 5–8
Build a revision-safe semantic interface · Sections 9–12

1. A short summary is not an editable original

Imagine a fictional research archive. A detailed record identifies a report, its display title, its original author, its language and the scope of an internal review approval. A public-facing catalogue displays only the title. That omission is reasonable if the catalogue’s purpose is to help people locate reports.

Now a catalogue editor corrects a spelling error in the title. The archive should receive the title correction without losing the author’s identity or changing the review scope. A program that replaces the entire detailed record with the one-field catalogue entry would corrupt the original.

The problem is different from ordinary read-only summarisation. The reader now expects an edit to one representation to modify another representation in a predictable, bounded way. This is the classic view-update problem in data systems.

Contents · Next section

2. What the research means by a lens

Foster, Greenwald, Moore, Pierce and Schmitt’s Combinators for Bidirectional Tree Transformations (2007) develops a linguistic approach to updating structured views. Their framework uses transformations that can produce a simplified view and propagate an edited view back using the original source.

In a simple total-function formulation, let S be the source type and V the view type. A function get takes a source s and returns its view. A function put takes a source s and a proposed view v and returns a revised source. This article uses that argument order consistently; other formal presentations use a different order and include partiality.

The old source is essential when the simplified view has discarded information. Unlike an ordinary inverse function, put can consult the original details while changing only the permitted portion. The research supplies a mathematical discipline for such transformations, not a universal method of translating every possible sentence.

Contents · Previous section · Next section

3. Calculate a simple title lens

Let a fictional source be the triple (title, language, scope). A source is s = (Report A, English, internal review). The view is just the title, so get(s) = Report A. Define put(s, v) to replace the title with v while preserving the language and review scope.

OperationValue
Source s(Report A, English, internal review)
get(s)Report A
Edited view vReport Alpha
put(s, v)(Report Alpha, English, internal review)
get(put(s, v))Report Alpha
Original illustrative record and a title-only view.

Under the simplified domain where all valid titles are permitted view values and only the title is editable, this transformation is easy to reason about. The title edit has a precisely defined effect. It does not expand review permission, publish the report or change its original language.

A natural-language request to correct the title still needs to be interpreted and checked. The lens describes how an already specified edit propagates, not who is allowed to request it.

Contents · Previous section · Next section

4. GetPut: doing nothing should leave the source alone

One fundamental lens condition is GetPut: put(s, get(s)) = s. For our fictional title lens, reading the title and writing back that unchanged title leaves every field unchanged. The original title, language and scope are preserved.

Consider a defective put function that replaces the title but resets the scope to public release every time. Its get function might work perfectly. Reading and writing back Report A would nevertheless turn internal review into public release. This violates GetPut and could alter a consequential field despite the editor making no meaningful change.

The example illustrates why round-trip checks are valuable. A translator may produce a correct visible title while causing silent corruption behind the interface. The read-only test alone would never detect that defect.

Contents · Previous section · Next section

5. PutGet: supported edits must become visible

A second fundamental condition is PutGet: get(put(s, v)) = v, for the declared supported values and defined operations. In the toy model, putting Report Alpha into the source and reading it again returns Report Alpha. The edit becomes observable in the view.

Imagine instead that the put function ignores the user’s proposed title and retains the old one. GetPut could still hold because writing back an unchanged view does nothing. But PutGet fails for a genuinely changed title. Both laws are needed to distinguish these two kinds of failure.

Lens behaviourGetPutPutGet
Replace title; preserve other fieldsPassPass
Replace title; reset scopeFail for affected sourcesPass for the visible title
Ignore every proposed editPassFail for changed titles
Expected results for the stated fictional transformation rules.

For real systems with validation, the law must be stated over the permitted domain. Rejecting an invalid edit is not the same as successfully performing an update that fails to appear. Do not claim totality where the procedure can refuse an unsupported value.

Contents · Previous section · Next section

6. The stronger law for successive edits

Some lens frameworks also consider PutPut: put(put(s, v1), v2) = put(s, v2). In the title-only example, changing Report A to Report Alpha and then to Report Beta produces the same source fields as directly changing it to Report Beta. The first title choice is overwritten by the last one.

The law is stronger than the two basic round-trip laws. Some useful transformations intentionally retain history or perform intermediate updates whose effects matter. If the source contains an audit log recording every edit, the two paths can produce different histories even when their final title matches. The intended notion of equality must therefore be explicit.

The cited lens research distinguishes stronger well-behavedness conditions. A semantic ledger should not impose the strongest law indiscriminately: decide whether the comparison concerns the current business state, the full historical record or some other specified view.

Contents · Previous section · Next section

7. A translation view can contain less information than the source

The title lens works because the omitted details survive in the original source. The view alone does not identify which source record produced it. Two reports could both be displayed as Report A while having different language or review scope. There is no unique reconstruction from the displayed text alone.

The previous semantic compression article explains why losing a distinction can make a representation insufficient for a later question. Lenses extend that concern to editing: use a stable source identity and an appropriate update rule so that a small change does not destroy the context that was intentionally omitted.

A proposed universal language may therefore use compact views of richer source records. Such a view need not contain the entire source in every message, provided the receiving system has the legitimate access and documented mechanism needed for the particular update.

Contents · Previous section · Next section

8. When a proposed edit is semantically ambiguous

Suppose the catalogue editor changes the title to “Approved report”. Is this only a title change, or does it assert that a competent reviewer authorised publication? The lens can correctly change the text while the newly displayed title invites an unsupported interpretation.

A mathematical update contract cannot decide that question by itself. The application needs a distinction between display labels and factual or institutional status. For consequential terms, a validation rule or appropriate reviewer may need to assess whether the edit is misleading.

The speech-act article examines when an utterance can change an institutional status. Here the complementary principle is that changing a view string is not automatically a successful institutional declaration. The update mechanism and the authority model must remain separate.

Contents · Previous section · Next section

9. A proposed semantic lens contract

FieldPurpose
Source ID and versionSelects the record that is actually being edited
View definitionSpecifies the exposed information
GetDefines how the view is computed
PutDefines supported changes and preserved fields
Law testsSpecifies GetPut, PutGet and any stronger conditions
InvariantsProtects required distinctions and constraints
AuthorisationDetermines who may perform an actual update
HistoryRecords accepted changes and unresolved conflicts
Proposed engineering contract, not a published universal semantic standard.

The Z-layer could store an identifier for each documented transformation. A local language, a simplified user-facing view and a machine-readable record could each have different supported views. Their edits would be routed through the corresponding contract rather than automatically overwriting the underlying definition.

The contract also needs an explicit failure result. If a requested change cannot be mapped into the source without violating constraints, report that the edit requires clarification or a new transformation. Do not invent a plausible update and claim it was uniquely determined.

Contents · Previous section · Next section

10. Concurrent edits require a separate temporal policy

Imagine two agents read the same original version. One changes the title and another legitimately changes the review scope. If the first agent later writes a new record using its stale copy of the original, it might overwrite the second agent’s scope change. A lens law evaluated against a particular input source does not automatically prevent lost updates in concurrent systems.

Use version checks and a documented conflict policy appropriate to the actual application. A source version identifier can help detect that the record changed after it was read. Where edits affect separate permitted fields, an appropriately designed merge may preserve both, but that behaviour must be justified by the data model and rules.

ZTime records the version observed, the time an edit was proposed, the source version on which it was applied and the verified outcome. The related two-clock ZTime article distinguishes the effective time of a fact from its recorded time. Neither concept substitutes for actual concurrency control.

Contents · Previous section · Next section

11. A four-week reversible-editing trial

Week one: build fictional source records with a title, language, review status and version. Define a title-only view and a put operation. Calculate expected outputs for valid edits. Week two: run GetPut and PutGet checks over the finite test domain, including repeated titles, blank or disallowed inputs and the explicitly stated invalid-edit behaviour.

Week three: introduce two defective transformations—one silently changes a hidden field, and one ignores a supported edit. Confirm that the tests distinguish them. Then introduce a transformation that preserves the view but violates a domain-specific invariant. Require a separate invariant check.

Week four: simulate simultaneous edits from two agents and exercise stale-version rejection and the correction pathway. Verify that the application records actual outcomes and never treats an editable title as a grant of publication authority. This is a proposed controlled test, not a completed deployment or an empirical claim of universal semantic fidelity.

Contents · Previous section · Next section

12. The frontier: preserve meaning while allowing real change

Is a lens the same as a lossless translator? No. It can support a simplified view while preserving omitted information through an appropriate source-aware update rule.

Do round-trip tests prove semantic equivalence? They prove or test specified relationships between operations on the chosen representations. Interpretation, factual accuracy and authority still need independent evidence.

Can a future AI use lenses for every human communication? That is an open research ambition. The method is strongest when the source, view, supported edits and invariants are clearly defined.

A durable meaning infrastructure should not merely pass messages from one language to another. It should also allow people and agents to correct the representation without silently damaging its original context. Bidirectional transformations offer a precise engineering starting point: preserve what was not changed, make the intended edit visible, and disclose the cases in which no justified update is available.

Contents · Previous section · Sources

Primary sources and further reading

The mathematical examples and proposed Z-layer designs are original illustrations, not findings from a deployed superintelligent system. The cited research establishes the specified foundations and does not validate every proposed application.

Research and editorial review: 26 November 2026.