-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: Add testcase for 'with KerCat(%)' vs. 'Ker %'
- Loading branch information
1 parent
8991435
commit 5595ebf
Showing
5 changed files
with
60 additions
and
1 deletion.
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,12 @@ | ||
#include "foamlib" | ||
#pile | ||
#library A1 "args1a.ao" | ||
import from A1 | ||
|
||
ExprSpace: Category == with ExprSpace2P(Ker %) | ||
|
||
--ExprSpaceO: Category == with ExprSpace2P KerP | ||
|
||
|
||
--f(K1: KerCat %): Integer == never | ||
|
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,13 @@ | ||
#include "foamlib" | ||
#pile | ||
|
||
KerCat(S: with): Category == with | ||
KerCat1(S1: with): Category == with KerCat S1 | ||
|
||
Ker(T: with): KerCat1 T == add | ||
|
||
KerP: KerCat % with == Ker % add | ||
|
||
-- ExpressionSpace2(K : KernelCategory(%)) : Category == with | ||
ExprSpace2K(K: with KerCat(K)): Category == with | ||
ExprSpace2P(K: with KerCat(%)): Category == with |
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 @@ | ||
#include "foamlib" | ||
#pile | ||
#library A1 "args2a.ao" | ||
import from A1 | ||
|
||
ExprSpace: Category == with | ||
ExprSpace2(Ker %) | ||
Compble | ||
|
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,19 @@ | ||
#include "foamlib" | ||
#pile | ||
|
||
Compble: Category == with | ||
>: (%, %) -> Boolean | ||
OSet(A: with): Category == with | ||
contains?: (%, A) -> Boolean | ||
|
||
-- KernelCategory(S : Comparable) : Category == Join(OrderedSet, Patternable S) | ||
KerCat(S: Compble): Category == with | ||
OSet S | ||
|
||
Ker(S: Compble): KerCat S with Compble == add | ||
contains?(a: %, s: S): Boolean == never | ||
(>)(a: %, b: %): Boolean == never | ||
|
||
-- ExpressionSpace2(K : KernelCategory(%)) : Category == with Comparable | ||
KC ==> with Join(KerCat %, Compble) | ||
ExprSpace2(K: KC): Category == with Compble |