Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isDefEq causes maximum recursion depth has been reached #6621

Closed
Qiu233 opened this issue Jan 13, 2025 · 0 comments
Closed

isDefEq causes maximum recursion depth has been reached #6621

Qiu233 opened this issue Jan 13, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Qiu233
Copy link

Qiu233 commented Jan 13, 2025

Description

This bug extremely rarely arises when working with metaprogramming.
The following is the only case it's encountered.

Though mathlib is involved, I don't think it can ever fix a function from standard library, so I put the issue here.

Steps to Reproduce

import Mathlib

example := by
  let S := Finset.range 10000
  let P := ∏ a ∈ S, a
  have t : P = (∏ a ∈ S, a) := by rfl
  have : (?a : Finset ℕ) = ?b := by
    exact t

example := by
  let S := Finset.range 10000
  let P := ∏ a ∈ S, a
  have t : P = (∏ a ∈ S, a) := by rfl
  have : @Eq (Finset ℕ) ?a ?b := by
    exact t

Expected behavior: No error.

Actual behavior: Error maximum recursion depth has been reached throws on the exacts.

Versions

  • 4.9.0
  • 4.11.0-rc2
  • latest version test now going on
@Qiu233 Qiu233 added the bug Something isn't working label Jan 13, 2025
@Qiu233 Qiu233 closed this as completed Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant