Commutative Monads, Diagrams and Knots

被引:0
作者
Piponi, Dan [1 ]
机构
[1] Ind Light & Mag, San Francisco, CA USA
来源
ICFP'09: PROCEEDINGS OF THE 2009 ACM SIGPLAN INTERNATIONAL CONFERENCE ON FUNCTIONAL PROGRAMMING | 2009年
关键词
diagrams; functional; monads; linear algebra; knot theory; Haskell;
D O I
暂无
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
There is certain diverse class of diagram that is found in a variety of branches of mathematics and which all share this property: there is a common scheme for translating all of these diagrams into useful functional code. These diagrams include Bayesian networks, quantum computer circuits [1], trace diagrams for multilinear algebra [3], Feynman diagrams and even knot diagrams [2]. I will show how a common thread lying behind these diagrams is the presence of a commutative monad and I will show how we can use this fact to translate these diagrams directly into Haskell code making use of do-notation for monads. I will also show a number of examples of such translated code at work and use it to solve problems ranging from Bayesian inference to the topological problem of untangling tangled strings. Along the way I hope to give a little insight into the subjects mentioned above and illustrate how a functional programming language can be a valuable tool in mathematical research and experimentation.
引用
收藏
页码:231 / 231
页数:1
相关论文
共 3 条
  • [1] BOB C, KINDERGARTEN QUANTUM
  • [2] Kauffman L. H., 2001, Knots and Physics
  • [3] MORSE S, TRACE DIAGRAMS MATRI