-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TypeCtx, argcontext is ScopeList, idents vs getidents,
pushforward(...) allowing applying partially-defined theory morphisms more robust theorymap parsing. avoid ambiguity of parsing constants refactor gatmorphisms TypeCtx, argcontext is ScopeList, idents vs getidents, pushforward(...) allowing applying partially-defined theory morphisms more robust theorymap parsing. avoid ambiguity of parsing constants basic model migration functionality remove need to explicitly state type parameters in @Migrate bugfixes
- Loading branch information
Kris Brown
committed
Sep 27, 2023
1 parent
e81941b
commit 0075a98
Showing
21 changed files
with
346 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module DerivedModels | ||
export OpFinSetC, IntMonoid, IntPreorderCat | ||
|
||
using ....Models | ||
using ...StdTheoryMaps | ||
using ...StdModels | ||
|
||
# Given a model of a category C, we can derive a model of Cᵒᵖ. | ||
@migrate OpFinSetC = OpCat(FinSetC) | ||
|
||
# Interpret `e` as `0` and `⋅` as `+`. | ||
@migrate IntMonoid = NatPlusMonoid(IntNatPlus) | ||
|
||
# Interpret `id` as reflexivity and `compose` as transitivity. | ||
@migrate IntPreorderCat = PreorderCat(IntPreorder) | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module StdDerivedModels | ||
|
||
using Reexport | ||
|
||
include("DerivedModels.jl") # split into files when big enough | ||
|
||
@reexport using .DerivedModels | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.