lean4-htt/tests/lean/run/grind_hcongr.lean
Leonardo de Moura 1d47360099
fix: transparency setting when computing congruence lemmas in grind (#7760)
This PR ensures `grind` is using the default transparency setting when
computing auxiliary congruence lemmas.
2025-03-31 20:52:36 +00:00

13 lines
520 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 grind.warning false
def Matrix (m : Type) (n : Type) (α : Type) : Type :=
m → n → α
-- Remark: the following test used to fail because `grind` was not using
-- the default reducibility setting when computing the congruence theorem for `M`.
example (o : Type) (m' n' : o → Type) (α : Type)
(M : (i : o) → Matrix (m' i) (n' i) α)
(ii : o) (ix : n' ii) (ji : o) (jx : m' ji)
(j : ii = ji) :
M ji jx (cast (congrArg n' j) ix) = M ii (cast (congrArg m' j.symm) jx) ix := by
grind