Dice Question Streamline Icon: https://streamlinehq.com

Determining reconstructability of erased proof terms under proof irrelevance

Determine whether there exist Lean proof terms such that, after erasing all proof terms to a constant symbol during e-graph encoding to overapproximate proof irrelevance, the erased proof terms cannot be completely reconstructed during subsequent proof generation in Lean.

Information Square Streamline Icon: https://streamlinehq.com

Background

To align e-graph rewriting with Lean’s definitional equality, the authors overapproximate proof irrelevance by erasing all proof terms to a constant symbol during encoding. This simplifies equality saturation but necessitates reconstructing the erased proofs when producing Lean-checked certificates.

The authors express uncertainty about whether some erased proofs might be unrecoverable during reconstruction, which would impact the sound automation of proofs relying on proof irrelevance.

References

We are so far unsure if there are cases where erased proof terms cannot be completely reconstructed.

Bridging Syntax and Semantics of Lean Expressions in E-Graphs (2405.10188 - Rossel et al., 16 May 2024) in Section “Semantics of Equality,” paragraph “Erasure”