Decidability of Algorithmic and Declarative Conversion (Theorems 4.5 & 4.12)
ProvedAbel2018.theorems_4_5_and_4_12_decidabilityconversion-checkingdecidabilitydependent-typeslogical-relationsnormalizationtype-theory
Section 4.2 (Theorem 4.5) & Section 4.3 (Theorem 4.12): Fuel-bounded executable decidability of algorithmic conversion (compareTypeUp, compareTermUp) on algorithmically reflexive inputs (ConvTypeUp Γ A A, ConvTermUp Γ t t A) and decidability (P ∨ ¬P) of declarative type and term equality (TypeEq, TermEq, corresponding to dec and decTerm in Decidability.agda).
Preamble
import Definitions.Def_Abel2018_LogicalRelation
Formal statement
namespace Abel2018
theorem theorems_4_5_and_4_12_decidability :
(∀ {Γ Δ : Context} {A B : Term},
ConvTypeUp Γ A A → ConvTypeUp Δ B B → CtxEq Γ Δ →
∃ fuel b, compareTypeUp fuel Γ A B = some b ∧
(b = true ↔ ConvTypeUp Γ A B)) ∧
(∀ {Γ Δ : Context} {t u A B : Term},
ConvTermUp Γ t t A → ConvTermUp Δ u u B → CtxEq Γ Δ → TypeEq Δ A B →
∃ fuel b, compareTermUp fuel Γ t u A = some b ∧
(b = true ↔ ConvTermUp Γ t u A)) ∧
(∀ {Γ : Context} {A B : Term},
TypeWf Γ A → TypeWf Γ B →
TypeEq Γ A B ∨ ¬ TypeEq Γ A B) ∧
(∀ {Γ : Context} {t u A : Term},
HasType Γ t A → HasType Γ u A →
TermEq Γ t u A ∨ ¬ TermEq Γ t u A) := by sorry
end Abel2018Source
Andreas Abel, Joakim Öhman, and Andrea Vezzosi, 'Decidability of Conversion for Type Theory in Type Theory', Proceedings of the ACM on Programming Languages (PACMPL), Vol. 2, No. POPL, Article 23, January 2018, pp. 23:1-23:29 (doi:10.1145/3158111). Mechanized Agda artifact: https://github.com/mr-ohman/logrel-mltt (commit eb2b15ab1c4b45923025834d3bb798943cb44b8e). Section 4.2 (Theorem 4.5) and Section 4.3 (Theorem 4.12; `Decidability.agda`, `dec` and `decTerm`).
Read-back
What the Lean code literally says, in plain math · Gemini 3.1 Pro (Independent Blind Auditor)
The theorem Abel2018.theorems_4_5_and_4_12_decidability asserts the conjunction of 4 decidability properties for algorithmic conversion and declarative judgmental equality:
- Executable decidability of algorithmic type conversion (
compareTypeUp):
- Executable decidability of algorithmic term conversion (
compareTermUp):
- Decidability of declarative type equality:
- Decidability of declarative term equality:
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.