Ground Stratification for a Logic of Definitions with Induction
Guermond, Nadathur
The logic underlying the Abella proof assistant includes mechanisms for interpreting atomic predicates through fixed point definitions that can additionally be treated inductively or co-inductively. However, the original formulation of the logic includes a strict stratification condition on definitions that is too restrictive for some applications such as those that use a logical relations based approach to semantic equivalence. Tiu has shown how this restriction can be eased by utilizing a weaker notion referred to as ground stratification. Tiu's results were limited to a version of the logic that does not treat inductive definitions. We show here that they can be extended to cover such definitions. While our results are obtained by using techniques that have been previously deployed in related ways in this context, their use is sensitive to the particular way in which we generalize the logic. In particular, although ground stratification may be used with arbitrary fixed-point definitions, we show that weakening stratification to this form for inductive definitions leads to inconsistency. The particular generalization we describe accords well with the way logical relations are used in practice. Our results are also a intermediate step to building a more flexible form for definitions into the full logic underlying Abella, which additionally includes co-induction, generic quantification, and a mechanism referred to as nominal abstraction for analyzing occurrences of objects in terms that are governed by generic quantifiers.
academic
Ground Stratification for a Logic of Definitions with Induction
This paper investigates the stratification of definitions in the underlying logic of the Abella proof assistant. The Abella logic permits the interpretation of atomic predicates through fixed-point definitions and further supports inductive or coinductive reasoning. However, the strict stratification condition in the original logical formulation is overly restrictive for certain applications, such as semantic equivalence methods based on logical relations. Tiu has demonstrated that these restrictions can be relaxed through a weaker concept called "ground stratification," but his results are limited to a version of the logic that does not handle inductive definitions. This paper proves that these results can be extended to cover inductive definitions, while discovering that although ground stratification can be applied to arbitrary fixed-point definitions, weakening the stratification condition to inductive definitions leads to logical inconsistency.
Restrictiveness of Abella Logic: The logic G underlying the Abella proof assistant contains strict stratification conditions requiring that predicate constants cannot appear on the left side of top-level implication symbols in their defining formulas.
Practical Application Demands: The logical relations method is widely used in reasoning about programming language properties, with definitions typically indexed by types and assuming self-reference (albeit for structurally smaller types).
Insufficiency of Existing Solutions: Tiu's ground stratification approach applies only to logic versions that do not include inductive definitions.
Extension of Ground Stratification Theory: Extends Tiu's ground stratification results to logic containing inductive definitions.
Identification of Inductive Definition Constraints: Proves that weakening stratification conditions to ground stratification form leads to logical inconsistency for inductive definitions.
Proposal of Hybrid Stratification Strategy: Inductive predicates use strict stratification while fixed-point predicates use ground stratification.
Consistency Proof: Proves consistency of logic LDμ through reduction to the base logic version.
Demonstration of Practical Applications: Shows how to encode reducibility predicates in strong normalization proofs.
A definition D is ground stratified if and only if there exists a level assignment to ground atomic formulas such that for each clause H ^∆= B ∈ D and each X-ground substitution ρ:
lvl(Hρ) ≥ lvl(Bρ)
The level function is defined as follows:
lvl(⊥) := lvl(⊤) := 0
lvl(A∧B) := lvl(A∨B) := max(lvl(A), lvl(B))
lvl(A ⊃ B) := max(lvl(A)+1, lvl(B))
lvl(∀x:α.C) := lvl(∃x:α.C) := sup{lvl(Ct/x∅) | t ∈ ground(α)}
Introduce the concept of normalizable derivations.
Prove that reducibility implies normalizability.
Establish the reducibility lemma.
Key Unfolding Lemma:
Assume p x ^μ= B p x is an inductive definition in fixed-point form. For any derivation Ψ of ∆ ⊢ D p, where p does not appear in D and appears only positively in D p, there exists a derivation μ(Ψ,ΠS) of ∆ ⊢ D S.
Demonstrates how to encode reducibility predicates in Tait-style strong normalization proofs using ground stratification:
red unit T ^∆= sn T
red (arrow A B) T ^∆= ∀u:tm.(red A u ⊃ red B (app T u))
This definition cannot be strictly stratified (since red appears negatively in its body), but can be ground stratified because in the negatively occurring instance red A u, the type parameter A is a subterm of the head type parameter (arrow A B).
Supports encoding logical equivalence relations asserting that two functions behave identically on equivalent arguments, widely used in programming language semantics research.
The paper cites 17 relevant references covering core areas including logical definitions, inductive reasoning, and cut elimination, particularly McDowell & Miller's (2000) foundational work and Tiu's (2012) ground stratification theory.