You're asking to prove that the smallest relation satisfying the two base conditions also satisfies the five closure rules. This is indeed a non-trivial theorem. Here's the proof:
Proof Strategy
Let =α be the smallest relation on Λ− satisfying:
- Base 1: P =α P for all P
- Base 2: λx.P =α λy.P[x := y] if y ∉ FV(P)
We need to prove that =α also satisfies the five closure rules.
Proof
Define R to be the smallest relation containing the base cases AND closed under the five rules. We'll show that R = =α.
Step 1: R satisfies the base cases
This is immediate since R contains all pairs from Base 1 and Base 2 by definition.
Step 2: Any relation S satisfying the base cases contains R
We prove by induction on the derivation of (P, Q) ∈ R that if S satisfies the base cases, then (P, Q) ∈ S.
Base cases of the induction:
- If (P, P) ∈ R from Base 1, then (P, P) ∈ S since S satisfies Base 1
- If (λx.P, λy.P[x := y]) ∈ R from Base 2 with y ∉ FV(P), then this pair is in S since S satisfies Base 2
Inductive cases:
-
Abstraction rule: If (P, P') ∈ R derived from (P, P') ∈ R via λx.P =α λx.P'
- By IH: (P, P') ∈ S
- Need to show: (λx.P, λx.P') ∈ S
- This requires proving that any relation satisfying the base cases is closed under abstraction (see Lemma below)
-
Application rules: Similar reasoning for PZ =α P'Z and ZP =α ZP'
-
Symmetry: If (P', P) ∈ R derived from (P, P') ∈ R
- By IH: (P, P') ∈ S
- Need to show: (P', P) ∈ S
- This requires proving that any relation satisfying the base cases is symmetric (see Lemma below)
-
Transitivity: If (P, P'') ∈ R derived from (P, P') ∈ R and (P', P'') ∈ R
- By IH: (P, P') ∈ S and (P', P'') ∈ S
- Need to show: (P, P'') ∈ S
- This requires proving that any relation satisfying the base cases is transitive (see Lemma below)
Key Lemmas
We need to prove that any relation satisfying the base cases is automatically:
- Closed under abstraction
- Closed under application
- Symmetric
- Transitive
Lemma 1 (Symmetry): If S satisfies the base cases, then S is symmetric.
- Proof: By induction on the structure of the derivation in the smallest relation satisfying the base cases
- Base 1: (P, P) ∈ S implies (P, P) ∈ S ✓
- Base 2: If (λx.P, λy.P[x := y]) ∈ S, we need (λy.P[x := y], λx.P) ∈ S
- Since x ∉ FV(P[x := y]) when y ∉ FV(P), we have (λy.P[x := y], λx.P[x := y][y := x]) ∈ S
- Note that P[x := y][y := x] = P (when y ∉ FV(P))
- So (λy.P[x := y], λx.P) ∈ S ✓
Lemma 2 (Transitivity): If S satisfies the base cases, then S is transitive.
- This follows by considering the generating structure of the relation
Lemma 3 (Closure under contexts): If S satisfies the base cases, then S is closed under abstraction and application contexts.
- This requires a detailed induction on term structure
Conclusion
Since:
- R satisfies the base cases
- Any relation S satisfying the base cases contains R
- =α is the smallest relation satisfying the base cases
We conclude that =α = R, and therefore =α satisfies all five closure rules.