Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime checking for whether a model implements a theory, special distinguished models for each theory #189

Open
wants to merge 1 commit into
base: no_fail
Choose a base branch
from

Conversation

kris-brown
Copy link
Collaborator

@kris-brown kris-brown commented Jan 19, 2025

This PR changes how GATlab tracks whether a model implements a theory. It removes the static typechecking which was often too underpowered to handle things which were morally correct.

Before we had implements methods generated during @instance for each model type + scopetag. it would return some documentation if, e.g., FinSetC implements compose and otherwise a MethodError would be thrown as the method doesn't exist. In this new approach, an impl_type(::FinSetC, x::Ident) method gets generated which ....

(TBD more description to come later)

This removes the need for @import when defining an extension of a model.

This PR also adds special models (Dispatch, Initial, Terminal) which can be made sense of in any theory.

Don't emit for empty args

InitialDefault

Don't reexport StdLib

Don't reexport StdLib

Fix

Initial default

remove vestigal
remove typechecking vestigal code

delete commented code

docs
@kris-brown kris-brown linked an issue Jan 19, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

initial and terminal models of theories
1 participant