-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor cleanup
- Loading branch information
Showing
24 changed files
with
98 additions
and
281 deletions.
There are no files selected for viewing
Submodule buildSrc
updated
2 files
+1 −1 | src/main/kotlin/ai.acyclic.scala2-conventions.gradle.kts | |
+2 −0 | src/main/kotlin/ai.acyclic.scala3-conventions.gradle.kts |
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,43 @@ | ||
package shapesafe.core | ||
|
||
import ai.acyclic.prover.commons.tuple.{ProductTuples, Tuples} | ||
import shapesafe.core.debugging.{HasNotation, Notations} | ||
import ai.acyclic.prover.commons.tuple.ProductTuples.EYE | ||
|
||
trait SymbolicTuples[VB] extends Tuples { | ||
|
||
final type VBound = VB | ||
|
||
object Backbone extends ProductTuples[VB] | ||
|
||
trait Tuple extends Backbone.Tuple with HasNotation { | ||
|
||
// final type Cons[HH <: VB] = BoneNotation.this.><[this.type, VB] | ||
type _ConsExpr[PEEK <: HasNotation] | ||
} | ||
|
||
class Eye extends Backbone.Eye with Tuple { | ||
|
||
final override type _ConsExpr[T <: HasNotation] = T#Notation | ||
final override type Notation = EYE.T | ||
} | ||
override val Eye = new Eye | ||
|
||
class ><[ | ||
TAIL <: Tuple, | ||
HEAD <: VB | ||
]( | ||
tail: TAIL, | ||
head: HEAD | ||
) extends Backbone.><[TAIL, HEAD](tail, head) | ||
with Tuple { | ||
|
||
type PeekHead <: HasNotation | ||
|
||
final override type _ConsExpr[PEEK <: HasNotation] = Notations.><[this.Notation, PEEK#Notation] | ||
final override type Notation = TAIL#_ConsExpr[PeekHead] | ||
} | ||
|
||
final override def cons[TAIL <: Tuple, HEAD <: VBound](tail: TAIL, head: HEAD): TAIL >< HEAD = | ||
new ><(tail, head) | ||
} |
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
2 changes: 1 addition & 1 deletion
2
...la/shapesafe/core/debugging/CanPeek.scala → ...hapesafe/core/debugging/HasNotation.scala
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,6 +1,6 @@ | ||
package shapesafe.core.debugging | ||
|
||
trait CanPeek { | ||
trait HasNotation { | ||
|
||
type Notation | ||
// use TypeVizCT macro | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
package shapesafe | ||
|
||
import ai.acyclic.prover.commons.function.PreDef | ||
|
||
package object core { | ||
|
||
type XInt = Int with Singleton | ||
type XString = String with Singleton | ||
|
||
type AdHocPoly1 = PreDef.Poly | ||
} |
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,7 +1,8 @@ | ||
package shapesafe.core.shape | ||
|
||
import ai.acyclic.prover.commons.tuple.ProductTuples | ||
import shapesafe.core.SymbolicTuples | ||
import shapesafe.core.arity.ArityType | ||
import shapesafe.core.tuple.Bone | ||
|
||
// should it be "Arities"? | ||
object Dimensions extends Bone[ArityType] {} | ||
object Dimensions extends SymbolicTuples[ArityType] {} |
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
17 changes: 0 additions & 17 deletions
17
core/src/main/scala/shapesafe/core/shape/VerifiedShape.scala
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.