Skip to content

Instantly share code, notes, and snippets.

@maxkrieger
maxkrieger / input
Last active April 21, 2021 01:37
gpt-3
Here is the "set theory" language:
type Set
type Point
type Map
constructor Singleton : Point p -> Set
function Intersection : Set a * Set b -> Set
function Union : Set a * Set b -> Set
function Subtraction : Set a * Set b -> Set
@maxkrieger
maxkrieger / .dsl
Created April 20, 2021 16:02
exgraph-example: a trio from https://penrose.ink
type Graph
predicate not : Graph g1
predicate and : Graph g1 * Graph g2
predicate or : Graph g1 * Graph g2
predicate if : Graph g1 * Graph g2
@maxkrieger
maxkrieger / .dsl
Created April 14, 2021 21:15
nested.sub: a trio from https://penrose.ink
type Set
type Point
type Map
constructor Singleton : Point p -> Set
function Intersection : Set a * Set b -> Set
function Union : Set a * Set b -> Set
function Subtraction : Set a * Set b -> Set
function CartesianProduct : Set a * Set b -> Set
@maxkrieger
maxkrieger / .dsl
Created March 29, 2021 17:25
silly: a trio from https://penrose.ink
type Set
type Point
type Map
constructor Singleton : Point p -> Set
function Intersection : Set a * Set b -> Set
function Union : Set a * Set b -> Set
function Subtraction : Set a * Set b -> Set
function CartesianProduct : Set a * Set b -> Set
@maxkrieger
maxkrieger / .dsl
Created March 29, 2021 17:25
Synapse Act 4: a trio from https://penrose.ink
type Set
type Point
type Map
constructor Singleton : Point p -> Set
function Intersection : Set a * Set b -> Set
function Union : Set a * Set b -> Set
function Subtraction : Set a * Set b -> Set
function CartesianProduct : Set a * Set b -> Set
@maxkrieger
maxkrieger / .dsl
Created March 25, 2021 20:44
Neuro Max: a trio from https://penrose.ink
type Synapse
type Channel
type Vesicle
type Glutamate
type Calcium
type NMDAR
type AMPAR
predicate InsideVesicle : Glutamate g * Vesicle v
@maxkrieger
maxkrieger / .dsl
Created March 25, 2021 14:38
Synapse Act 5: a trio from https://penrose.ink
type Synapse
type Channel
type Vesicle
type Glutamate
type Calcium
type NMDAR
type AMPAR
predicate InsideVesicle : Glutamate g * Vesicle v
@maxkrieger
maxkrieger / .dsl
Created March 25, 2021 14:38
Synapse Act 4: a trio from https://penrose.ink
type Synapse
type Channel
type Vesicle
type Glutamate
type Calcium
type NMDAR
type AMPAR
predicate InsideVesicle : Glutamate g * Vesicle v
@maxkrieger
maxkrieger / .dsl
Created March 25, 2021 14:37
Synapse Act 3: a trio from https://penrose.ink
type Synapse
type Channel
type Vesicle
type Glutamate
type Calcium
type NMDAR
type AMPAR
predicate InsideVesicle : Glutamate g * Vesicle v
@maxkrieger
maxkrieger / .dsl
Last active March 25, 2021 14:36
Synapse Act 3: a trio from https://penrose.ink
type Synapse
type Channel
type Vesicle
type Glutamate
type Calcium
type NMDAR
type AMPAR
predicate InsideVesicle : Glutamate g * Vesicle v