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

Modularity features for structures necessary for nice diagrams & diagram operators #556

Open
2 tasks
ComFreek opened this issue Dec 11, 2020 · 0 comments
Open
2 tasks
Assignees

Comments

@ComFreek
Copy link
Member

ComFreek commented Dec 11, 2020

  • Allow extending structure domains

    theory Magma = ...
    theory Monoid = include ?Magma ...
    
    theory MagmaHom = {
      structure dom : ?Magma
      ...
    }
    theory MonoidHom = {
      include ?MagmaHom
      structure dom : ?Monoid
      ...
    }
    
  • Allow assigning the whole codomain to structure symbol in domain:

    theory Magma = ...
    view IdentityMagmaHom : ?MagmaHom -> ?Magma = {
      dom = this // invent syntax for this
    }
    
    • via API: construct mapping dom = OMIDENT(?Magma) (since dom is a morphism ?Monoid -> ?MonoidHom anyway)
    • via surface syntax: try dom = ?S
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants