Put explicit type annotation: `vec 0:real^2` and `vector[ ... ] : real^2`
etc.
For the moment there is no other solution.
I have a hack that modifies the parser so that HOL Light infers the right
`:N` for `vector [...]` by "counting" the number of elements in the list.
As soon as I have time to polish it I will post the code to the list.
M.
2018-01-19 23:34 GMT+01:00 Michael Beeson <profbee...@gmail.com>:
> vec(0) has type real^N with variable N.
> So ISPEC and ISPECL can't substitute it for a bound variable of type
> real^2.
> I need a 2-vector of zeroes instead.
>
> I tried vector[&0,&0], but that ALSO has type real^N.
> How can I create a zero vector of type real^2?
>
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> hol-info mailing list
> hol-info@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/hol-info
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
hol-info mailing list
hol-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hol-info