Closed kris-brown closed 9 months ago
All modified lines are covered by tests :white_check_mark:
Comparison is base (
4a32bc1
) 96.85% compared to head (ee193e0
) 97.03%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Given a Theory Morphism T->U and a type Mᵤ (whose values are models of U), obtain a type Mₜ which has one parameter (of type Mᵤ) whose values are models of T.
E.g. given
NatIsMonoid: ThMonoid->ThNatPlus
andIntPlus <: Model{Tuple{Int}}
andIntPlus
implementsThNatPlus
:Yields:
Future work: There is some subtlety in how accessor functions should be handled. TODO: The new instance methods do not yet handle the
context
keyword argument. No models withwhere
type parameters have been tested yet.StdLib.DerivedModels has some examples.