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

2023/6/30: SMCGlobal, SMCLocal and extract #110

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

snowmantw
Copy link

@snowmantw snowmantw commented Jun 29, 2023

Goal: define SMCGlobal, SMCLocal and SMCLang.

shows the difficulties to have monads in one monad? Because of the universe inconsistency issue
@snowmantw
Copy link
Author

Check StateMonad.acto (VarName -> MonadSMCLocals F P VarName).

In environment
F, P : UU0
VarName : eqType
The term "VarName -> MonadSMCLocals F P VarName" has type
 "Type@{max(Equality.type.u0,MonadSMCLocals.u0)}"
while it is expected to have type "Type@{monad_model.4448}"
(universe inconsistency: Cannot enforce MonadSMCLocals.u0 <=
monad_model.4448 because monad_model.4448 < isFunctor.axioms_.u0
<= MonadSMCLocal.axioms_.u3 <= MonadSMCLocal.type.u0 <= MonadSMCLocals.u0).

…nstances

But how to define the `extract` method for the local monad becomes a modeling problem.
See monad_model.v:2009.
@snowmantw snowmantw changed the title 2023/6/29: WIP: monad_model.v:2031 2023/6/30: SMCGlobal, SMCLocal and extract Jun 29, 2023
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.

1 participant