79285528

Date: 2024-12-16 17:24:24
Score: 0.5
Natty:
Report link

I'm not sure why you want this, since you explicitly defined x to have type Fin (4 + 2), so why would you want Lean to tell you differently?

One thing you could do is the following:

#simp type_of% x -- Fin 6

Here type_of% e is a special elaborator that gives you the type of term e, and the #simp command simplifies a particular expression (in the same way that the simp tactic would).

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Floris van Doorn