This is a quite substantial tactic. It also includes the infamour `NatCast` typeclass (which I've equipped with a module-doc). I wasn't at all sure where that should live, so it is currently randomly in `Lean/Elan/Tactic/NatCast.lean`: presumably if we're doing this it will go somewhere in `Init`. --------- Co-authored-by: Leonardo de Moura <leomoura@amazon.com>
22 lines
311 B
Text
22 lines
311 B
Text
a.x : Nat
|
|
b.x : Nat
|
|
c.x : Nat
|
|
b.y : Nat
|
|
c.y : Nat
|
|
c.z : Nat
|
|
A.x a : Nat
|
|
A.x (B.toA b) : Nat
|
|
A.x (B.toA (C.toB c)) : Nat
|
|
B.y b : Nat
|
|
B.y (C.toB c) : Nat
|
|
C.z c : Nat
|
|
x.val : Nat
|
|
y.val : Nat
|
|
z.val : Nat
|
|
d.x : Nat
|
|
c.x : Nat
|
|
x.val : Nat
|
|
y.val : Nat
|
|
(@Fin''.toFin0 5 z).val : Nat
|
|
(@D.toA 5 d).x : Nat
|
|
f.toFun 0 : Int
|