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

Cm/symbolictypes #71

Merged
merged 13 commits into from
Sep 11, 2024
Merged

Cm/symbolictypes #71

merged 13 commits into from
Sep 11, 2024

Conversation

quffaro
Copy link
Member

@quffaro quffaro commented Aug 30, 2024

No description provided.

@quffaro quffaro requested a review from jpfairbanks August 30, 2024 14:21
@jpfairbanks jpfairbanks changed the base branch from main to symbolicutilsinterop August 30, 2024 14:22
Copy link
Member

@jpfairbanks jpfairbanks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly bikeshedding things. With an inline comment about adding a method for promote_symtype to the registration macro

end
end

function SymbolicContext(d::decapodes.DecaExpr, __module__=@__MODULE__)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When you call this with 1 arguement, does this @__MODULE__ resolves to SymbolicUtilsInterop or to Main?

src/SymbolicUtilsInterop.jl Outdated Show resolved Hide resolved
src/deca/ThDEC.jl Outdated Show resolved Hide resolved
src/SymbolicUtilsInterop.jl Show resolved Hide resolved
src/deca/ThDEC.jl Outdated Show resolved Hide resolved
src/deca/ThDEC.jl Outdated Show resolved Hide resolved
src/symbolictheoryutils.jl Outdated Show resolved Hide resolved
src/symbolictheoryutils.jl Outdated Show resolved Hide resolved
src/symbolictheoryutils.jl Outdated Show resolved Hide resolved
src/symbolictheoryutils.jl Outdated Show resolved Hide resolved
Copy link
Member

@jpfairbanks jpfairbanks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just the docstring and the esc usage comment blocking this

src/SymbolicUtilsInterop.jl Show resolved Hide resolved
src/SymbolicUtilsInterop.jl Outdated Show resolved Hide resolved
src/symbolictheoryutils.jl Outdated Show resolved Hide resolved

```
@register foo(S1, S2, ...)::ThDEC begin
@operator foo(S1, S2, ...)::Theory begin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahh, I see that this return type is like a categories as contexts approach. We are using the abstract type that all of our symbolic quantities inhabit as the "category as context" to anchor the algebraic theory on. I like this as a hybrid between the Catlab/Gatlab approach to explicit theories as the starting point and the SymbolicUtils "a number is a thing you can do math on" approach that minimizes the role of the algebraic theory.

src/symbolictheoryutils.jl Outdated Show resolved Hide resolved
test/decasymbolic.jl Outdated Show resolved Hide resolved
src/symbolictheoryutils.jl Show resolved Hide resolved
test/decasymbolic.jl Show resolved Hide resolved
@quffaro quffaro merged commit f2ef1d0 into symbolicutilsinterop Sep 11, 2024
4 of 8 checks passed
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.

2 participants