You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If S is given by axiom S : Finset ℕ rather than in the context, the bug disappears.
If P is defined not using ∏, the bug disappears.
Steps to Reproduce
import Mathlib
lemmacard {a b : Finset α} : a = b → a.card = b.card := congrArg _
example := bylet S := Finset.range 10000let P : ℕ := ∏ a ∈ S, a
have t : P = (∏ a ∈ S, a) := by rfl
have := card t
Expected behavior: No error or should have been caught.
Actual behavior: Error on card t.
Versions
4.9.0
4.11.0-rc2
4.16.0-rc1
Context
Code like card t above is generated (by meta-programming) to test whether lemmas like card can be applied to some term so we get new facts.
What we want is to recover if test fails, but unfortunately it crashes our meta-program.
This bug occurs only once in millions of such tests. No other similar case found yet, so it might be not vital.
The text was updated successfully, but these errors were encountered:
Description
This bug only occurs when using big operator.
If
S
is given byaxiom S : Finset ℕ
rather than in the context, the bug disappears.If
P
is defined not using∏
, the bug disappears.Steps to Reproduce
Expected behavior: No error or should have been caught.
Actual behavior: Error on
card t
.Versions
Context
Code like
card t
above is generated (by meta-programming) to test whether lemmas likecard
can be applied to some term so we get new facts.What we want is to recover if test fails, but unfortunately it crashes our meta-program.
This bug occurs only once in millions of such tests. No other similar case found yet, so it might be not vital.
The text was updated successfully, but these errors were encountered: