Skip to main content
QUICK REVIEW

[Paper Review] Sheaf Semantics of Termination-Insensitive Noninterference

Jonathan Sterling, Robert Harper|arXiv (Cornell University)|Jan 1, 2022
Security and Verification in ComputingComputer Science2 citations
TL;DR

This paper introduces a novel sheaf semantics for termination-insensitive noninterference using synthetic domain theory and topos-theoretic open/closed modalities. By modeling security levels as phase distinctions via Artin gluing, it constructs a non-relational, intrinsic semantics where types are sheaves and redaction corresponds to restricting sheaves to closed subspaces, automatically ensuring termination-insensitive noninterference without relational reasoning.

ABSTRACT

We propose a new sheaf semantics for secure information flow over a space of abstract behaviors, based on synthetic domain theory: security classes are open/closed partitions, types are sheaves, and redaction of sensitive information corresponds to restricting a sheaf to a closed subspace. Our security-aware computational model satisfies termination-insensitive noninterference automatically, and therefore constitutes an intrinsic alternative to state of the art extrinsic/relational models of noninterference. Our semantics is the latest application of Sterling and Harper’s recent re-interpretation of phase distinctions and noninterference in programming languages in terms of Artin gluing and topos-theoretic open/closed modalities. Prior applications include parametricity for ML modules, the proof of normalization for cubical type theory by Sterling and Angiuli, and the cost-aware logical framework of Niu et al. In this paper we employ the phase distinction perspective twice: first to reconstruct the syntax and semantics of secure information flow as a lattice of phase distinctions between "higher" and "lower" security, and second to verify the computational adequacy of our sheaf semantics with respect to a version of Abadi et al.’s dependency core calculus to which we have added a construct for declassifying termination channels.

Motivation & Objective

  • To develop an intrinsic, non-relational semantics for secure information flow that avoids the complexity of relational models.
  • To formalize termination-insensitive noninterference as a consequence of sheaf-theoretic structure rather than relational proof obligations.
  • To unify phase distinctions in programming languages with topos-theoretic constructions, particularly Artin gluing and open/closed modalities.
  • To verify computational adequacy of the semantics with respect to an extended dependency core calculus with termination-channel declassification.
  • To provide a categorical foundation for noninterference that naturally captures the intuition that sensitive data cannot leak through return values, even if through termination behavior.

Proposed method

  • Employ synthetic domain theory to interpret types as sheaves over a topos of abstract behaviors.
  • Use Artin gluing to construct a glued topos G that combines syntactic (T) and computational (C) phases via a disjoint open-closed partition.
  • Model security levels P as a poset, with open subtopos T (syntactic phase) and closed subtopos C (computational phase), using characteristic maps b = t ∨ c.
  • Define a T-algebra At in the syntactic phase to ensure full faithfulness, enabling correct interpretation of language constructs.
  • Ensure computational adequacy by verifying that the axioms of P-indexed synthetic domain theory hold in the computational phase.
  • Use base change and adjoint functors (j*, i*, [L]*) to relate syntactic and denotational semantics, with the key insight that Ac.⟨l⟩ ≤ b • At.⟨l⟩ ensures correct phase behavior.

Experimental results

Research questions

  • RQ1Can noninterference be characterized intrinsically via sheaf semantics without relying on relational models?
  • RQ2How can phase distinctions in programming languages be formalized using topos-theoretic tools like Artin gluing and open/closed modalities?
  • RQ3Can termination-insensitive noninterference be derived as a structural consequence of sheaf-theoretic semantics rather than a separate proof obligation?
  • RQ4What is the role of the Sierpiński topos and glued topoi in modeling heterogeneous logical relations between syntax and semantics?
  • RQ5How can the dependency core calculus be extended to support declassification of termination channels while preserving noninterference?

Key findings

  • The sheaf semantics automatically satisfies termination-insensitive noninterference due to the structure of the glued topos and the phase distinction between syntactic and computational components.
  • The construction establishes a formal correspondence between the syntactic type system and its denotational semantics via a Kripke logical relation internal to the glued topos G.
  • The key inequality Ac.⟨l⟩ ≤ b • At.⟨l⟩ holds, ensuring that the computational phase correctly interprets the security level structure and preserves the intended noninterference property.
  • The semantics is computationally adequate with respect to the extended dependency core calculus, as verified through the satisfaction of P-indexed synthetic domain theory axioms in the computational phase.
  • The model provides a categorical foundation for noninterference that generalizes prior work on parametricity and normalization proofs using similar topos-theoretic techniques.
  • Redaction of sensitive information is naturally modeled as restriction of a sheaf to a closed subspace, aligning with the intuition of information hiding in secure information flow.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.