Zulip Chat Archive

Stream: lean4

Topic: panic while testing ring tactic


Scott Morrison (Aug 17 2021 at 04:20):

I was thinking about benchmarking the new ring tactic, available now in mathlib4, but encountered a panic:

import Mathlib.Tactic.Ring

-- Causes `PANIC at Lean.Expr.getRevArg! Lean.Expr:508:22: invalid index`:
example (A B C D E F G H I J : ) : ((((((1 : ) ^ 2) + (((((((J ^ 1) + F) * (1 : )) ^ 0) * (1 : )) * (((B ^ 1) ^ 0) * (D + (C + (0 : ))))) * ((J * ((1 : ) + (((1 : ) + ((2 : ) + ((I * (H ^ 1)) * (1 : )))) ^ 0))) ^ 1))) + (((A * (((1 : ) ^ 1) ^ 0)) + ((A + (((1 : ) ^ 1) + (1 : ))) ^ 0)) + (((1 : ) ^ 1) + D))) ^ 2) ^ 2) = ((((((1 : ) ^ 2) + (((((((J ^ 1) + F) * (1 : )) ^ 0) * (1 : )) * (((B ^ 1) ^ 0) * (D + (C + (0 : ))))) * ((J * ((1 : ) + (((1 : ) + ((2 : ) + ((I * (H ^ 1)) * (1 : )))) ^ 0))) ^ 1))) + (((A * (((1 : ) ^ 1) ^ 0)) + ((A + (((1 : ) ^ 1) + (1 : ))) ^ 0)) + (((1 : ) ^ 1) + D))) ^ 2) ^ 2) := by ring

Notification Bot (Aug 18 2021 at 02:38):

This topic was moved by Scott Morrison to #mathlib4 > panic while testing ring tactic


Last updated: Dec 20 2023 at 11:08 UTC