Skip to main content
QUICK REVIEW

[Paper Review] $\mathsf{LLF}_{\cal P}$: a logical framework for modeling external evidence, side conditions, and proof irrelevance using monads

Furio Honsell, Luigi Liquori|arXiv (Cornell University)|Feb 23, 2017
Logic, programming, and type systemsComputer Science27 references6 citations
TL;DR

This paper introduces LLFP, a conservative extension of the Logical Framework (LF) that uses monadic, predicate-indexed type constructors—called 'locks'—to model external evidence, side conditions, and proof irrelevance. By leveraging monadic structure and a novel unlock destructor, LLFP simplifies equational reasoning and enables uniform, formally checked integration of oracles and non-apodictic evidence in type-theoretic proof systems.

ABSTRACT

We extend the constructive dependent type theory of the Logical Framework $\mathsf{LF}$ with monadic, dependent type constructors indexed with predicates over judgements, called Locks. These monads capture various possible proof attitudes in establishing the judgment of the object logic encoded by an $\mathsf{LF}$ type. Standard examples are factoring-out the verification of a constraint or delegating it to an external oracle, or supplying some non-apodictic epistemic evidence, or simply discarding the proof witness of a precondition deeming it irrelevant. This new framework, called Lax Logical Framework, $\mathsf{LLF}_{\cal P}$, is a conservative extension of $\mathsf{LF}$, and hence it is the appropriate metalanguage for dealing formally with side-conditions in rules or external evidence in logical systems. $\mathsf{LLF}_{\cal P}$ arises once the monadic nature of the lock type-constructor, ${\cal L}^{\cal P}_{M,σ}[\cdot]$, introduced by the authors in a series of papers, together with Marina Lenisa, is fully exploited. The nature of the lock monads permits to utilize the very Lock destructor, ${\cal U}^{\cal P}_{M,σ}[\cdot]$, in place of Moggi's monadic $let_T$, thus simplifying the equational theory. The rules for ${\cal U}^{\cal P}_{M,σ}[\cdot]$ permit also the removal of the monad once the constraint is satisfied. We derive the meta-theory of $\mathsf{LLF}_{\cal P}$ by a novel indirect method based on the encoding of $\mathsf{LLF}_{\cal P}$ in $\mathsf{LF}$. We discuss encodings in $\mathsf{LLF}_{\cal P}$ of call-by-value $λ$-calculi, Hoare's Logic, and Fitch-Prawitz Naive Set Theory.

Motivation & Objective

  • To provide a formal, type-theoretic framework for modeling external evidence and side conditions in logical systems.
  • To address the challenge of proof irrelevance and non-apodictic epistemic sources (e.g., diagrams, computations) within a constructive type-theoretic metalanguage.
  • To simplify equational reasoning in monadic type systems by replacing Moggi’s letT with a direct unlock destructor.
  • To establish a conservative extension of LF that supports modular, modularly extensible proof systems with oracles.
  • To enable formal verification of proofs involving heterogeneous reasoning cultures, including those relying on external tools or computational evidence.

Proposed method

  • Introduces a monadic type constructor LP_M,σ[·] indexed by predicates P over LF judgements, capturing the idea of deferring or delegating proof verification.
  • Employs a lock destructor UP_M,σ[·] to exit the monadic world once the constraint P(Γ ⊢Σ M : σ) is satisfied, replacing Moggi’s letT and simplifying equational theory.
  • Models the lock monad as a singleton-set construction, enabling a direct correspondence between the unlock operation and proof witness extraction.
  • Reduces the full LLFP system to LF via an encoding, transferring metatheoretic properties like confluence, strong normalization, and subject reduction from LF to LLFP.
  • Uses a novel indirect method to derive LLFP’s metatheory by encoding it in LF, avoiding direct proof from first principles.
  • Applies the framework to encode call-by-value λ-calculi, Hoare logic, and Fitch-Prawitz naive set theory, demonstrating expressivity and uniformity.

Experimental results

Research questions

  • RQ1How can external evidence and side conditions be uniformly modeled within a constructive type-theoretic metalanguage like LF?
  • RQ2Can monadic type constructors be used to simplify equational reasoning in proof systems involving oracles or non-apodictic evidence?
  • RQ3How can proof irrelevance—where only the existence of a proof witness matters—be formally captured in a type system?
  • RQ4What is the metatheoretic foundation of such an extended system, and how can it be established via conservative encoding?
  • RQ5Can the framework support diverse proof cultures, including computational evidence and diagrammatic reasoning, within a single formal system?

Key findings

  • LLFP is a conservative extension of LF, ensuring that all metatheoretic properties of LF—such as confluence, strong normalization, and subject reduction—are inherited by LLFP.
  • The use of a lock destructor UP_M,σ[·] instead of Moggi’s letT eliminates permutative reductions, significantly simplifying the equational theory.
  • The encoding of LLFP into LF allows transfer of metatheoretic properties from LF to LLFP, providing a novel and powerful proof technique.
  • The framework successfully encodes complex systems such as call-by-value λ-calculi, Hoare logic, and Fitch-Prawitz naive set theory, demonstrating its expressivity.
  • The predicate Fitch(Γ ⊢FPST ⟨x,y⟩ : T(A)×V(A)→T(B)) is well-behaved and ensures that only normalizable proofs with properly scoped free variables are accepted.
  • The paper suggests a path toward extending LLFP to support oracle calls that return witnesses, by binding variables in the lock and using unlock to instantiate them with oracle-provided evidence.

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.