Equivalence of single-judgment and mutually inductive typing formulations
Establish the equivalence between (i) the single all-in-one typed definitional equality judgment Γ ⊢ e₁ ≡ e₂ : α used in Lean4Lean (with Γ ⊢ e : α defined as Γ ⊢ e ≡ e : α and Γ ⊢ e₁ ≡ e₂ defined as ∃α. Γ ⊢ e₁ ≡ e₂ : α) and (ii) the mutually inductive two-judgment formulation used in the Lean type theory formalization, consisting of Γ ⊢ e : α and Γ ⊢ e₁ ≡ e₂, where Γ ⊢ e₁ ≡ e₂ : α is defined as the conjunction Γ ⊢ e₁ ≡ e₂ ∧ Γ ⊢ e₁ : α ∧ Γ ⊢ e₂ : α.
Sponsor
References
We conjecture the two formulations to be equivalent, but this version seems to be easier to prove basic structural properties about (see Section 2.3). Moreover Lean does not have good support for mutual inductive predicates, so keeping it as a single inductive makes induction proofs easier.