Unknown identifier ‘begin’ in Lean4
I’ve typed the following into Lean4 in VSCode:
Mathlib4 Calc versus Batteries Calc?
I was working through converting a proof to calc
style (see original here) and came across this strangeness:
Proof for Bytes => Nat Construction
I am interested in understanding how this lemma can be improved (which is part of a bigger proof, see below), as it still seems a bit “long winded” to me. Note I’m not using Mathlib and prefer to stick with Std4
(now Batteries?):