79683371

Date: 2025-06-28 22:35:06
Score: 1
Natty:
Report link

This happens because the coercion is in an unexpected place: The h here is interpreted as h : ((i.val : Fin 3) / 3).val = i.val / 3, so you get ((6 : Fin 3) / 3).val = (0 / 3).val = 0. On newer versions of Mathlib, the coercion from Nat to Fin is disabled by default to avoid such unintuitive behavior (but you can enable it using open scoped Fin.NatCast).

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rob23oba