-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create L_intersect.md * Create apart.md * Create participants.md * Create party.md * Create parts.md * Create together.md --------- Co-authored-by: N-J-Martin <146941515+N-J-Martin@users.noreply.github.com>
- Loading branch information
1 parent
da5e5f3
commit 9fb7fc4
Showing
6 changed files
with
56 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# apart | ||
|
||
test if a list of elements are not all contained in one part of the partition | ||
|
||
``` | ||
letting P be partition({1,2},{3},{4,5,6}) | ||
find a: bool such that a = apart({3,5},P) $true | ||
``` | ||
The result of these syntaxes is true, because elements 3 and 5 ({3,5}) are not all contained in one part of the partition ({1,2},{3},{4,5,6}) | ||
|
||
See it demonstrated [here](https://github.com/conjure-cp/conjure/blob/main/docs/Partition_operators.ipynb). |
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,11 @@ | ||
# participants | ||
|
||
union of all parts of a partition | ||
|
||
``` | ||
letting P be partition({1,2},{3},{4,5,6}) | ||
find b : set of int(1..6) such that b = participants(P) ${1,2,3,4,5,6} | ||
``` | ||
This result is getting all parts of the partition | ||
|
||
See it demonstrated [here](https://github.com/conjure-cp/conjure/blob/main/docs/Partition_operators.ipynb). |
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,11 @@ | ||
# parts | ||
|
||
partition to its set of parts | ||
|
||
``` | ||
letting P be partition({1,2},{3},{4,5,6}) | ||
find d : bool such that d = ({{1,2},{3},{4,5,6}} = parts(P)) $true | ||
``` | ||
This syntax is checking if {{1,2},{3},{4,5,6}} equals to partition P | ||
|
||
See it demonstrated [here](https://github.com/conjure-cp/conjure/blob/main/docs/Partition_operators.ipynb). |
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,11 @@ | ||
# party | ||
|
||
part of partition that contains specified element | ||
|
||
``` | ||
letting P be partition({1,2},{3},{4,5,6}) | ||
find c : set of int(1..6) such that c = party(4,P) ${4,5,6} | ||
``` | ||
This syntax is finding the part of the partition that contains 4. So the result is {4,5,6} because 4 is in the {4,5,6}. | ||
|
||
See it demonstrated [here](https://github.com/conjure-cp/conjure/blob/main/docs/Partition_operators.ipynb). |
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,11 @@ | ||
# together | ||
|
||
test if a list of elements are all in the same part of the partition | ||
|
||
``` | ||
letting P be partition({1,2},{3},{4,5,6}) | ||
find e : bool such that e = together({1,2},P) $true | ||
``` | ||
This syntax is checking if {1,2} is in the part of the partition P | ||
|
||
See it demonstrated [here](https://github.com/conjure-cp/conjure/blob/main/docs/Partition_operators.ipynb). |
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