-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* A join semi-lattice is a directed set. * Add definition of empty set. * Declare enumeration of countable sets. * Rename: Interval -> ConvexSet. * Adding ConnectedSpace. * Adding bounded (semi-)lattice. * Adding singleton set and union.
- Loading branch information
Showing
37 changed files
with
602 additions
and
122 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
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
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
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
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
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
16 changes: 16 additions & 0 deletions
16
dedekind-ontology/src/main/java/com/github/vincentk/dedekind/geometry/ConnectedSpace.java
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,16 @@ | ||
package com.github.vincentk.dedekind.geometry; | ||
|
||
/** | ||
* @param <E> typically something like the real numbers. | ||
* @param <M> | ||
* | ||
* @see https://en.wikipedia.org/wiki/Connected_space#Formal_definition | ||
*/ | ||
public interface ConnectedSpace< | ||
E extends TopologicalSpace.Me<E>, | ||
M extends ConnectedSpace<E, M> | ||
> | ||
extends | ||
TopologicalSpace<E, M> | ||
{ | ||
} |
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
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
22 changes: 19 additions & 3 deletions
22
dedekind-ontology/src/main/java/com/github/vincentk/dedekind/sets/Countable.java
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 |
---|---|---|
@@ -1,15 +1,31 @@ | ||
package com.github.vincentk.dedekind.sets; | ||
|
||
import com.github.vincentk.dedekind.families.Sequence; | ||
import com.github.vincentk.dedekind.sets.ordered.TotallyOrdered; | ||
import com.github.vincentk.dedekind.sets.unary.function.Lambda; | ||
|
||
/** | ||
* A countable set. Its elements can be enumerated. | ||
* A {@link Countable} set. Its elements can be enumerated. | ||
* | ||
* @param <C> cardinality | ||
* @param <T> implementation type | ||
*/ | ||
public interface Countable< | ||
E extends Set.Element<E>, | ||
E extends Element<E>, | ||
C extends Cardinality.Countable, | ||
T extends Countable<E, C, T> | ||
> | ||
extends Set<E, T> { | ||
extends | ||
Set<E, T> | ||
{ | ||
/** | ||
* | ||
* @param <N> natural numbers | ||
* @param enumeration | ||
* @return | ||
* | ||
* @see https://en.wikipedia.org/wiki/Enumeration#Set_theory | ||
*/ | ||
<N extends TotallyOrdered.Oe<N>> | ||
Sequence<E, C, N, ?, ?> enumerate(Lambda<N, E, ?> enumeration); | ||
} |
23 changes: 23 additions & 0 deletions
23
dedekind-ontology/src/main/java/com/github/vincentk/dedekind/sets/Element.java
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,23 @@ | ||
package com.github.vincentk.dedekind.sets; | ||
|
||
import com.github.vincentk.dedekind.sets.binary.relation.homogeneous.Identity; | ||
|
||
/** | ||
* An {@link Element} of a {@link Set}. | ||
* | ||
* @see https://en.wikipedia.org/wiki/Element_(mathematics) | ||
*/ | ||
public interface Element<E extends Element<E>> | ||
extends Identity<E> | ||
{ | ||
@SuppressWarnings("unchecked") | ||
@Override | ||
default boolean eq(E that) { | ||
return ((E) this).equals(that); | ||
} | ||
|
||
@SuppressWarnings("unchecked") | ||
default boolean isin(Set<E, ?> set) { | ||
return set.contains((E) this); | ||
} | ||
} |
Oops, something went wrong.