FStar icon indicating copy to clipboard operation
FStar copied to clipboard

Sealed: mark seal/unseal as coercions

Open mtzguido opened this issue 1 year ago • 3 comments

Draft, should test across projects.

mtzguido avatar Sep 11 '24 16:09 mtzguido

I didn't know [@@coercion]! What is it doing?

TWal avatar Sep 11 '24 16:09 TWal

Hi Théophile, sorry, I now realize we didn't have any documentation on them. I started a doc/ref directory where I will place notes about this kind of features (which may not be polished enough for the book). Adding them here https://github.com/FStarLang/FStar/pull/3484, including a note about coercions.

This made me realize these coercions will probably not work so well either, since they are usually not between named types.

mtzguido avatar Sep 16 '24 17:09 mtzguido

Ah excellent, thank you!

TWal avatar Sep 17 '24 08:09 TWal