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

Add semigroup-ish operation for printing sets (non UNI relations) #22

Open
sjcjoosten opened this issue Nov 7, 2016 · 1 comment
Open

Comments

@sjcjoosten
Copy link
Owner

Consider the following problem. Given (only) a relation subconcept, how can we print it using this syntax:

CLASSIFY conceptname IS subc_1 /\ subc_2 /\ subc_3 /\ ... /\ subc_n

(We may assume subConcept is transitive reflexive and antisymmetric, so subc_i = conceptname)

The intended solution uses a relation combine :: (String,String) * String that, for this case, is specified by the function \v w -> v <> " /\\ " <> w.
Given concat :: (String,String) -> String it should be possible to define combine.

In order to show that the show relation is a function (up to equivalent outputs), we would need that combine is an abelian semigroup (up to equivalent outputs), hence the title of this ticket.

@sjcjoosten
Copy link
Owner Author

Since there is a SEPBY right now, I'm removing the "ready" label: an arbitrary operation seems more involved

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

1 participant