dds/README.org

87 lines
4.1 KiB
Org Mode
Raw Permalink Normal View History

* dds: A Home-made Toolkit for Discrete Dynamical Systems in Racket
2020-03-03 14:44:55 +01:00
This is a toolkit for playing with various discrete dynamical systems
in [[https://racket-lang.org/][Racket]]. A discrete dynamical system is a system which evolves from
a discrete state to some other discrete states (many or one). The
systems are discrete in the sense that we can identify successive
states with no other states in between. Equivalently, the phase state
of the system is discrete (and is often called the state graph).
These constraints imply the possibility of associating discrete,
possibly branching timelines to any evolution of the system.
*DISCLAIMER:* I develop this toolkit as a support for my research on
discrete dynamical systems. The primary objective for this framework
is to fit my approach to these systems. Essentially, this framework
should fit to the "shape of my mind", which is not necessarily the
same as yours.
Currently, the toolkit includes the following files:
- [[file:generic.rkt][generic.rkt]]: The generic interface for a discrete dynamical
system, with functions for constructing state graphs.
2022-03-05 12:34:15 +01:00
- [[file:utils.rkt][utils.rkt]]: Misc utilities.
- [[file:functions.rkt][functions.rkt]]: Definitions for working with functions: tabulating,
constructing from tables, generating random functions, etc.
2020-03-03 14:44:55 +01:00
- [[file:networks.rkt][networks.rkt]]: Implements network-based models, which generalise
Boolean networks, threshold Boolean automata networks, multivalued
networks, etc.
- [[file:rs.rkt][rs.rkt]]: Implements reaction systems, a variant of set rewriting.
The toolkit is designed with Emacs [[https://orgmode.org/][Org-mode]] interoperability in mind.
The file [[file:example/example.org][example/example.org]] explains the features available for
interaction with Org-mode.
2020-11-12 16:40:24 +01:00
** Roadmap
Here is my current roadmap for this toolkit, in order. The first
element is what I am currently working on. The degree of certainty
that I work on the subsequent items decreases with their position
in the list.
2023-08-08 16:49:22 +02:00
*** TODO Fix =ob-racket= to work with Typed Racket
Currently, the =ob-racket= backend for running Racket code blocks in
Org-mode assumes the code is written in =#lang racket=, which breaks
the output for tables for example. This makes the typed version of
=dds= essentially useless with tables.
*** TODO Fix [[file:example/example.org][example.org]]
I changed quite a number of things while converting =dds= to Typed
Racket, which should break a lot of things in [[file:example/example.org][example.org]].
2022-03-05 13:14:53 +01:00
*** TODO Think about splitting the library into lib and doc
2023-08-24 23:39:07 +02:00
*** TODO Implement string rewriting
2023-08-08 16:49:22 +02:00
*** TODO Implement [[https://en.wikipedia.org/wiki/P_system][P systems]]
2023-08-24 23:39:07 +02:00
*** TODO Consider splitting =dds/utils= into a separate package
2021-05-20 10:45:59 +02:00
*** TODO Implement a shorter syntax for defining Boolean functions
Right now, this is how one defines the Boolean function:
#+BEGIN_SRC racket :results output silent
(define (update-go st)
(auto-hash-ref/:
st
(or (and (not :Go) :new-x) (and :Go :old-x))))
#+END_SRC
It would be nice and probably not too difficult to implement
a macro allowing for a syntax like the following one:
#+BEGIN_SRC racket :results output silent
(define-pbf my-pbf (or (and (not :Go) :new-x) (and :Go :old-x)))
#+END_SRC
*** TODO Submit =update-graph= to =stchang=
*** TODO Implement =monotone?=
=monotone?= would verify whether a given Boolean function is
monotone according to the definition in the book /Boolean
Functions: Theory, Algorithms, and Applications/ by Crama
and Hammer.
2022-08-23 23:37:16 +02:00
*** TODO Consider optimizing the algorithms in =networks= and =dynamics=
2020-11-12 16:40:24 +01:00
*** TODO Implement the BN \to RS conversion
*** TODO Implement the minimisation of TBF/SBF
*** TODO Contribute to Racket
- Make sequence-filter allow multivalued sequences, provided the
arity of the predicate is consistent with the arity of
the sequence.
- Add a sequence->hash function that accepts a multivalued
sequence of keys and values (exactly like what in-hash produces)
and copies them into a hash table.
*** TODO Test network inference with [[https://docs.racket-lang.org/racklog/index.html][Racklog]]