lean4-htt/tests/lean/doubleReset.lean
Leonardo de Moura 27c79cb614
fix: double reset bug at ResetReuse (#4028)
We conjecture this is the cause for the segfaults when compiling Mathlib
with #4006
2024-04-29 23:26:07 +00:00

4 lines
226 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

set_option trace.compiler.ir.reset_reuse true in
def applyProjectionRules (projs : Array ((α × β) × γ)) (newName : γ) :
Array ((α × β) × γ) :=
projs.map fun proj => { proj with 2 := newName, 1.2 := proj.1.2 }