Open Seasawher opened 5 months ago
But this also holds which I'm trying to warn about
#guard 2 * (3 : Fin 4) = 2
as here *
is done on Fin 4
This does not hold
#guard (2 : Nat) * (3 : Fin 4) = 2
as here *
is done on Nat
.
This stuff is really confusing and will be a big footgun. Not sure what to do about it. Any tip on how to make this more clear?
Simply writing the code examples without omitting them will avoid confusion for readers of this book.
... without omitting then ...
Without omitting what? I'm not sure what are you trying to say. Can you phrase it differently?
Should I include the example 2 * (3 : Fin 4) = 2
?
Sorry. My point was that it is the omission of code examples that makes it difficult to understand.
Should I include the example
2 * (3 : Fin 4) = 2
?
Yes. Concrete code example is required.
at https://lecopivo.github.io/scientific-computing-lean/working-with-arrays/tensor-operations.html#pooling-and-difficulties-with-dependent-types
But actually this holds: