lean4 icon indicating copy to clipboard operation
lean4 copied to clipboard

chore: make NonScalar opaque

Open digama0 opened this issue 3 years ago • 0 comments

This makes the type a bit less error-prone, by not exposing the constructor or eliminator for the type (which is almost certainly an error given that elements of this type are generally constructed by unsafeCast and so the eliminator is essentially a lie).

It also defines NonScalar as PNonScalar.{0}, similar to other universe polymorphic types.

digama0 avatar Aug 28 '22 10:08 digama0