Skip to content

Commit d7cb85d

Browse files
test TruthMorphismOfImplies
needs Toposes v2021.11-10
1 parent a1e232a commit d7cb85d

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

PackageInfo.g

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SetPackageInfo( rec(
1010

1111
PackageName := "FinSetsForCAP",
1212
Subtitle := "The elementary topos of (skeletal) finite sets",
13-
Version := "2020.11-09",
13+
Version := "2020.11-10",
1414

1515
Date := Concatenation( "01/", ~.Version{[ 6, 7 ]}, "/", ~.Version{[ 1 .. 4 ]} ),
1616
License := "GPL-2.0-or-later",
@@ -100,7 +100,7 @@ Dependencies := rec(
100100
NeededOtherPackages := [
101101
[ "GAPDoc", ">= 1.5" ],
102102
[ "CAP", ">= 2021.05-02" ],
103-
[ "Toposes", ">= 2021.11-09" ],
103+
[ "Toposes", ">= 2021.11-10" ],
104104
],
105105
SuggestedOtherPackages := [ ],
106106
ExternalConditions := [ ],

examples/SubobjectClassifier.g

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
LoadPackage( "FinSetsForCAP" );
44

5+
# Below we see that the internal logic
6+
# of the category FinSets is classical logic,
7+
# i.e., the topos FinSets is Boolean.
8+
59
#! @Example
610
S := FinSet( [ 1, 2, 3, 4, 5 ] );
711
#! <An object in FinSets>
@@ -28,6 +32,12 @@ Display( TruthMorphismOfOr( FinSets ) );
2832
#! [ [ [ "false", "false" ], "false" ], [ [ "false", "true" ], "true" ],
2933
#! [ [ "true", "false" ], "true" ], [ [ "true", "true" ], "true" ] ],
3034
#! [ "true", "false" ] ]
35+
Display( TruthMorphismOfImplies( FinSets ) );
36+
#! [ [ [ "true", "true" ], [ "true", "false" ],
37+
#! [ "false", "true" ], [ "false", "false" ] ],
38+
#! [ [ [ "false", "false" ], "true" ], [ [ "false", "true" ], "true" ],
39+
#! [ [ "true", "false" ], "false" ], [ [ "true", "true" ], "true" ] ],
40+
#! [ "true", "false" ] ]
3141
m := MapOfFinSets( A, List( AsList( A ), x -> [ x, x ] ), S );
3242
#! <A morphism in FinSets>
3343
Display( ClassifyingMorphismOfSubobject( m ) );

0 commit comments

Comments
 (0)