Transitivity of equality from Eq.rec
Statement
There is a term built only from .
Why is it true?
Chaining equalities ( therefore ) is used in essentially every proof; if it were an axiom instead of a derived term, the kernel would have to trust that axiom rather than verify it by computation.
Proof sketch
Fix and . Given for arbitrary , we want a proof of . Apply to with motive , indexed by the point and the proof connecting to .
The base case required is , i.e. — exactly . So is the base-case proof supplied to .
then delivers, for every and every , a proof of , which is what we wanted.
So has type . Notice the pattern shared with symmetry: both proofs "transport" a fact along an equality by choosing the right motive , then let the kernel's fixed reduction rule for on do the actual work.
Topics that use this theorem
Step-by-step proofs
No step-by-step proof yet for this theorem.
References
- Leonardo de Moura, Sebastian Ullrich (2021). The Lean 4 Theorem Prover and Programming Language
- Xavier Leroy (2009). Formal verification of a realistic compiler
- Terence Tao, et al. (2023). A Proof of the Polynomial Freiman-Ruzsa Conjecture · arXiv:2311.05762