HOL icon indicating copy to clipboard operation
HOL copied to clipboard

cv translator: support num_map in datatypes

Open xrchz opened this issue 4 months ago • 2 comments

Although sptrees are supported in general by the cv translator, they are not supported in datatypes:

Theory fr
Ancestors
  cv_std sptree
Libs
  cv_typeLib cv_transLib

Datatype:
  foo = C1 | C2 (foo num_map)
End

val th = from_to_thm_for “:foo”

raises HOL_ERR {message = "simp_from_eq can't do: spt", origin_function = "failwith", origin_structure = "??", source_location = Loc_Unknown}

This issue is a feature request: add support for translating sptrees in datatypes.

xrchz avatar Aug 18 '25 20:08 xrchz

This will get done as part of the wider project to BNF-ify our datatype definition package. I'll add that issue and make this a sub-part (which should amount to making sure we can register sptrees as a BNF).

mn200 avatar Aug 20 '25 03:08 mn200

In fact, the existing #266 is that overarching issue.

mn200 avatar Aug 20 '25 03:08 mn200