Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong shapes generated or pretty-printed #31

Open
alok opened this issue Jan 25, 2024 · 0 comments
Open

Wrong shapes generated or pretty-printed #31

alok opened this issue Jan 25, 2024 · 0 comments

Comments

@alok
Copy link
Contributor

alok commented Jan 25, 2024

code

def vEasy : Float^[3,2] := ⊞ (i,j) => (i.1.toNat.toFloat + (j.1.toNat.toFloat))
#eval vEasy

Infoview:

Basic.lean:18:11
Expected type
⊢ Float ^ (Idx 3 × Idx 2)
Messages (1)
Basic.lean:18:0
⊞[0.000000, 1.000000, 1.000000, 2.000000, 2.000000, 3.000000]

I expected nested arrays like [[0, 1 ,1],[2,2,2]] but this seems to be flattened?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant