← Latest papers
💻 computer science

Reflexive graph lenses in univalent foundations

This paper introduces reflexive graph lenses as a new intermediate abstraction that simplifies the characterization of identity types for complex structures within univalent foundations, demonstrating their utility through case studies and establishing an equivalence between reflexive graph fibrations and univalent reflexive graph lenses.

Original authors: Jonathan Sterling

Published 2026-07-01
📖 5 min read🧠 Deep dive

Original authors: Jonathan Sterling

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to build a massive, complex Lego castle. In the world of mathematics and computer science, this castle is made of "types" (the shapes of the blocks) and "identities" (the rules that tell you when two blocks are effectively the same).

For a long time, mathematicians had a generic, one-size-fits-all rule for saying "these two things are equal." It worked, but it was like trying to describe the difference between a red brick and a blue brick by just saying, "They are both bricks." It was true, but it didn't capture the specific, colorful details that made each structure unique.

This paper, written by Jonathan Sterling, introduces a new set of tools called Reflexive Graph Lenses to help describe these specific details much more easily. Here is the breakdown using everyday analogies:

1. The Problem: The "Generic" Equality

In standard math logic, every object has a built-in "identity type." Think of this as a generic stamp that says, "I am the same as myself."

  • The Issue: If you want to prove that two complex structures (like a specific type of graph or a list of data) are the same, you usually have to prove it from scratch every time, using very heavy, complicated machinery. It's like trying to prove two houses are identical by measuring every single atom in the walls, rather than just looking at the blueprint.

2. The Old Solution: "Reflexive Graphs"

Mathematicians previously developed a way to organize these proofs using Reflexive Graphs.

  • The Analogy: Imagine a map of a city.
    • Vertices (Points): These are the objects (the houses).
    • Edges (Lines): These are the connections or "paths" between them.
    • Reflexivity: Every house has a tiny loop connecting it to itself (it's always equal to itself).
  • The Goal: If you can describe the "paths" between houses correctly, you can prove the houses are the same. This is called a Path Object. It's a way of saying, "If you can walk from House A to House B and back without getting lost, they are effectively the same."

3. The New Tool: "Lenses"

The paper argues that while "Path Objects" are great, building them for complex structures is still too hard. You have to manually define how to move from one part of the structure to another.

Enter Reflexive Graph Lenses.

  • The Analogy: Think of a Lens like a camera lens or a pair of glasses.
    • When you look at a complex structure through a "lens," it automatically handles the movement for you.
    • Pushforward (The "Forward" Lens): If you have a piece of data in one part of the structure and you move to a new location, the lens automatically "pushes" that data along with you, adjusting it so it still makes sense.
    • Pullback (The "Backward" Lens): If you are at a new location and want to know what the data looked like back at the start, the lens "pulls" the information back for you.
  • The Magic: The paper shows that if you have these "lenses" (rules for pushing and pulling data), you don't need to manually build the complex "Path Object" from scratch. The lens automatically generates the correct path object for you. It simplifies the math by turning a hard construction problem into a simple algebraic rule.

4. The "Unbiased" Lens

Sometimes, the structure is so weird that you can't just push forward or pull back; you need to do both at the same time or in a mixed way.

  • The Analogy: Imagine a translator who speaks two languages. Sometimes they translate from English to French, sometimes French to English, and sometimes they have to switch back and forth mid-sentence.
  • The paper introduces an "Unbiased Dependent Lens" that acts like this translator. It handles complex, mixed-direction movements, allowing mathematicians to describe even the trickiest structures (like the structure of "reflexive graphs" themselves) without getting bogged down in tedious proofs.

5. The Big Result: Fibrations and Lenses are Twins

The paper concludes with a surprising discovery: Lenses and Fibrations are the same thing.

  • The Analogy: Imagine you have a stack of transparent sheets (a "fibration"). You can slide a marker from one sheet to the next.
  • The paper proves that the mathematical rules for "sliding a marker" (Fibrations) are exactly the same as the rules for "using a lens to push/pull data" (Lenses).
  • Why it matters: This means mathematicians can choose whichever tool they prefer. If they like the "lens" metaphor, they can use it to prove things about "fibrations," and vice versa. It unifies two different ways of thinking about the same mathematical reality.

Summary

Jonathan Sterling's paper is essentially a user manual for a new kind of mathematical toolkit.

  1. Old way: Build complex equality proofs by hand, brick by brick.
  2. New way: Use Lenses. These are pre-made tools that automatically handle the "movement" of data between different parts of a structure.
  3. Result: It makes proving that complex mathematical structures are "equal" much faster, cleaner, and less prone to error. It's like upgrading from hand-drawing a map to using a GPS that automatically calculates the route for you.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →