English

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

Logic in Computer Science 2019-03-14 v3

Abstract

We extend the constructive dependent type theory of the Logical Framework LF\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 LF\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, LLFP\mathsf{LLF}_{\cal P}, is a conservative extension of LF\mathsf{LF}, and hence it is the appropriate metalanguage for dealing formally with side-conditions in rules or external evidence in logical systems. LLFP\mathsf{LLF}_{\cal P} arises once the monadic nature of the lock type-constructor, LM,σP[]{\cal L}^{\cal P}_{M,\sigma}[\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, UM,σP[]{\cal U}^{\cal P}_{M,\sigma}[\cdot], in place of Moggi's monadic letTlet_T, thus simplifying the equational theory. The rules for UM,σP[]{\cal U}^{\cal P}_{M,\sigma}[\cdot] permit also the removal of the monad once the constraint is satisfied. We derive the meta-theory of LLFP\mathsf{LLF}_{\cal P} by a novel indirect method based on the encoding of LLFP\mathsf{LLF}_{\cal P} in LF\mathsf{LF}. We discuss encodings in LLFP\mathsf{LLF}_{\cal P} of call-by-value λ\lambda-calculi, Hoare's Logic, and Fitch-Prawitz Naive Set Theory.

Keywords

Cite

@article{arxiv.1702.07214,
  title  = {$\mathsf{LLF}_{\cal P}$: a logical framework for modeling external evidence, side conditions, and proof irrelevance using monads},
  author = {Furio Honsell and Luigi Liquori and Petar Maksimovic and Ivan Scagnetto},
  journal= {arXiv preprint arXiv:1702.07214},
  year   = {2019}
}

Comments

Accepted for publication in LMCS

R2 v1 2026-06-22T18:26:26.568Z