Skip to content

Commit 1babe9c

Browse files
authored
added node balance and corrected typos
1 parent 06d9f6a commit 1babe9c

9 files changed

+117
-60
lines changed

arena.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<script src="js/ioprep.js"></script>
2626

2727
<div class="header">
28-
<span3>Cite as: <br></span3><div>Quines fight arena &copy; <a href="http://imar.ro/~mbuliga/index.html">&copy; Marius Buliga</a> (2019-2020), <br>https://mbuliga.github.io/quinegraphs/arena.html<span id="citeas"></span></div>
28+
<span3>Cite as: <br></span3><div>Quines fight arena &copy; <a href="http://imar.ro/~mbuliga/index.html">&copy; Marius Buliga</a> (2019-2021), <br>https://mbuliga.github.io/quinegraphs/arena.html<span id="citeas"></span></div>
2929
<span3>See also:</span3><br> <a href="https://chemlambda.github.io/index.html">All chemlambda projects</a>
3030
</div>
3131

@@ -88,7 +88,8 @@
8888
</div>
8989
<div class="col-4 menu" style="text-align: left;">
9090
<span>When you put several quines in the same arena, they will fight for the rewrites.<br><br> This modifies their evolution.<br><br> Pick your fighters from the menu (you may choose the same quine several times). <br><br> Click "fight" to fight.<br><br>Click "purge" to purge the arena.</span><br><br>
91-
<span5 id="comments" ></span5>
91+
<span5 id="comments" ></span5><br><br>
92+
<span3 id="errors"></span3>
9293
</div>
9394
</div>
9495

ic-vs-chem.html

+6-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<!-- Comparison of alife properties of directed combinators vs chemlambda
55
author: Marius Buliga
6-
last modified: 22.05.2020
6+
last modified: 14.03.2021
77
//
88
-->
99

@@ -23,6 +23,8 @@
2323

2424
<script src="js/d3.v5.9.4.min.js"></script>
2525
<script src="js/jquery.min.js"></script>
26+
<script src="js/parameters.js"></script>
27+
<script src="js/nodes.js"></script>
2628
<script src="js/pagelook-vs.js"></script>
2729
<script src="js/ioprep.js"></script>
2830

@@ -57,11 +59,12 @@
5759
<div class="col-6 menu" style="text-align: center;">
5860
<img src="img/DELTA-DELTA-arrow1.jpg" alt="IC: DELTA-DELTA rewrite" style="padding: 20px; margin-bottom: 18px; width:350px;border:0"><br><br>
5961
</div>
60-
62+
<!--
6163
<div class="row">
6264
<div class="col-6 menu" style="text-align: center;">
6365
<img src="img/DELTA-DELTA-arrow1.jpg" alt="IC: DELTA-DELTA rewrite" style="padding: 20px; margin-bottom: 18px; width:350px;border:0"><br><br>
6466
</div>
67+
-->
6568

6669
<div class="row">
6770
<div class="col-6 menu" style="text-align: center;">
@@ -333,8 +336,6 @@
333336

334337
<script src="js/iceMol.js"></script>
335338
<script src="js/iceComments.js"></script>
336-
<script src="js/parameters.js"></script>
337-
<script src="js/nodes.js"></script>
338339
<script src="js/chemistry.js"></script>
339340
<!-- <script src="js/reactions.js"></script> -->
340341
<script src="js/myD3Graph.js"></script>
@@ -353,6 +354,7 @@
353354
}
354355
whichButtons("icvschem");
355356
selectionICLambda();
357+
setBalanceOfNodes();
356358
</script>
357359

358360
</body>

ice.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<!-- based on a modification of the js version https://github.com/ishanpm/chemlambda-editor of my chemlambda v2, see the issue https://github.com/chorasimilarity/chemlambda-gui/issues/9
55
author: Marius
6-
last modified: 11.03.2020
6+
last modified: 16.03.2021
77
//
88
-->
99

@@ -25,7 +25,7 @@
2525
<script src="js/ioprep.js"></script>
2626

2727
<div class="header">
28-
<span3>Cite as: </span3><div>IC &amp; chemlambda quines. <a href="http://imar.ro/~mbuliga/index.html">&copy; Marius Buliga</a> (2019-2020), https://mbuliga.github.io/quinegraphs/ice.html<span id="citeas"></span></div>
28+
<span3>Cite as: </span3><div>IC &amp; chemlambda quines. <a href="http://imar.ro/~mbuliga/index.html">&copy; Marius Buliga</a> (2019-2021), https://mbuliga.github.io/quinegraphs/ice.html<span id="citeas"></span></div>
2929
<span3>See also:</span3><br> <a href="https://chemlambda.github.io/index.html">All chemlambda projects</a>
3030
</div>
3131

@@ -85,7 +85,8 @@
8585
</ul>
8686
</div>
8787
<div class="col-4 menu" style="text-align: left;">
88-
<span id="comments" ></span>
88+
<span id="comments" ></span><br><br>
89+
<span3 style="text-align: left;" id="errors"></span3>
8990
</div>
9091
</div>
9192

lambda.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<!-- based on a modification of the js version https://github.com/ishanpm/chemlambda-editor of my chemlambda v2, see the issue https://github.com/chorasimilarity/chemlambda-gui/issues/9
55
author: Marius
6-
last modified: 11.03.2019
6+
last modified: 16.03.2021
77
//
88
-->
99

@@ -25,7 +25,7 @@
2525
<script src="js/ioprep.js"></script>
2626

2727
<div class="header">
28-
<span3>Cite as: <br></span3><div>Lambda terms reduced with chemlambda. <a href="http://imar.ro/~mbuliga/index.html">&copy; Marius Buliga</a> (2019-2020), <br>https://mbuliga.github.io/quinegraphs/lambda.html<span id="citeas"></span></div>
28+
<span3>Cite as: <br></span3><div>Lambda terms reduced with chemlambda. <a href="http://imar.ro/~mbuliga/index.html">&copy; Marius Buliga</a> (2019-2021), <br>https://mbuliga.github.io/quinegraphs/lambda.html<span id="citeas"></span></div>
2929
<span3>See also:</span3><br> <a href="https://chemlambda.github.io/index.html">All chemlambda projects</a>
3030
</div>
3131

@@ -78,7 +78,8 @@
7878
</ul>
7979
</div>
8080
<div class="col-4 menu" style="text-align: left;">
81-
<span id="comments" ></span>
81+
<span id="comments" ></span><br><br>
82+
<span3 style="text-align: left;" id="errors"></span3>
8283
</div>
8384
</div>
8485

lambda2mol.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<script src="js/ioprep.js"></script>
2626

2727
<div class="header">
28-
<span3>Cite as: <br></span3><div>Lambda calculus to chemlambda. <a href="http://imar.ro/~mbuliga/index.html">&copy; Marius Buliga</a> (2019-2020), https://mbuliga.github.io/quinegraphs/lambda2mol.html<span id="citeas"></span></div>
28+
<span3>Cite as: <br></span3><div>Lambda calculus to chemlambda. <a href="http://imar.ro/~mbuliga/index.html">&copy; Marius Buliga</a> (2019-2021), https://mbuliga.github.io/quinegraphs/lambda2mol.html<span id="citeas"></span></div>
2929
<span3>See also:</span3><br> <a href="https://chemlambda.github.io/index.html">All chemlambda projects</a>
3030
</div>
3131

@@ -69,8 +69,7 @@
6969
</ul>
7070
</div>
7171
<div class="col-4 menu" style="text-align: left;">
72-
<span3 style="text-align: left;"> nodes &sim; </span3><span id="nodenumber"></span><br><br>
73-
<span3 id="errors"></span3>
72+
<span3 style="text-align: left;"> nodes &sim; </span3><span id="nodenumber"></span>
7473
</div>
7574
</div>
7675

@@ -102,7 +101,8 @@
102101
</ul>
103102
</div>
104103
<div class="col-4 menu" style="text-align: left;">
105-
<span id="comments" ></span>
104+
<span id="comments" ></span><br><br>
105+
<span3 style="text-align: left;" id="errors"></span3>
106106
</div>
107107
</div>
108108

ouroboros.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@
7777
</ul>
7878
</div>
7979
<div class="col-4 menu" style="text-align: left;">
80-
<span id="comments" ></span>
80+
<span id="comments" ></span><br><br>
81+
<span3 style="text-align: left;" id="errors"></span3>
8182
</div>
8283
</div>
8384

puresee.html

+86-37
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<!-- Introduction to Pure See
55
author: Marius Buliga
6-
last modified: 06.06.2020
6+
last modified: 16.03.2021
77
//
88
-->
99

@@ -27,7 +27,7 @@
2727
<script src="js/ioprep.js"></script>
2828

2929
<div class="header">
30-
<span3>Cite as: <br></span3><div>Introduction to Pure See. <a href="http://imar.ro/~mbuliga/index.html">&copy; Marius Buliga</a> (2020), https://mbuliga.github.io/quinegraphs/puresee.html<span id="citeas"></span></div><br><br>
30+
<span3>Cite as: <br></span3><div>Introduction to Pure See. <a href="http://imar.ro/~mbuliga/index.html">&copy; Marius Buliga</a> (2020-2021), https://mbuliga.github.io/quinegraphs/puresee.html<span id="citeas"></span></div><br><br>
3131
<span3>Draft! Version 06.06.2020</span3><br><br>
3232
<span3>See also:</span3><br> <a href="https://chemlambda.github.io/index.html">All chemlambda projects</a><br><br><br><br>
3333
<span3>
@@ -40,9 +40,9 @@ <h3 id="Contents">Contents</h3>
4040
<h4><a href="#Scalars">Scalars</a></h4>
4141
<h4><a href="#VariablesAndTerms">Variables and terms</a></h4>
4242
<h4><a href="#Commands">Commands</a></h4>
43-
<h4><a href="#MultiplicationByScalarsOrigin">Multiplication by scalars. Origin</a></h4>
4443
<h4><a href="#ConversionBetweenCommandsAndAlgebraicForms">Conversion between commands, functional and algebraic forms</a></h4>
4544
<h4><a href="#ReductionOfTrigrams">Reduction of trigrams</a></h4>
45+
<h4><a href="#MultiplicationByScalarsOrigin">Multiplication by scalars. Origin</a></h4>
4646
<h4><a href="#ReductionByPassingToTheLimit">Reduction by passing to the limit</a></h4>
4747
<h4><a href="#EmergentRewrites">Emergent rewrites</a></h4>
4848

@@ -396,31 +396,7 @@ <h4>(<a href="#Contents">back to contents</a>)</h4>
396396

397397

398398

399-
<h3 id="MultiplicationByScalarsOrigin">Multiplication by scalars. Origin</h3>
400-
<h4>(<a href="#Contents">back to contents</a>)</h4>
401399

402-
<span3>
403-
Let k be a scalar and let C be a command. The multiplication of the command C by the scalar k is then:<br><br>
404-
</span3>
405-
<p style="padding: 20px; margin-bottom: 18px; width:350px;border:0">
406-
from[k] origin see[k] C as (k C);</p>
407-
<span3>
408-
Let k be a scalar and let T be a term. The multiplication of the term T by the scalar k is then:<br><br>
409-
</span3>
410-
<p style="padding: 20px; margin-bottom: 18px; width:350px;border:0">
411-
k T = from[k] origin see[k] C</p>
412-
<span3>
413-
The special word </span3>origin<span3> is a term. We know about </span3>origin<span3> that for any scalar k<br><br>
414-
</span3>
415-
<p style="padding: 20px; margin-bottom: 18px; width:350px;border:0">
416-
in origin as (k origin);</p>
417-
<span3>
418-
and that for any command C and any scalars k, l, such that k l is not 1,
419-
</span3>
420-
<p style="padding: 20px; margin-bottom: 18px; width:350px;border:0">
421-
in ((k l) C) as (k (l C));</p>
422-
<span3>
423-
</span3>
424400

425401

426402

@@ -557,20 +533,20 @@ <h4>(<a href="#Contents">back to contents</a>)</h4>
557533
</span3>
558534
<table style="padding: 20px; margin-bottom: 18px; width:750px; border:0">
559535
<tr>
560-
<td> &alpha; (for[&epsilon;] a see[&epsilon;] b as[&epsilon;] e);
536+
<td> for[&epsilon;] a see[&epsilon;] b as[&epsilon;] e;
561537
</td>
562538
</tr>
563539
<tr>
564-
<td> &beta; (for[&mu;] e see[&mu;] c as[&mu;] d);
540+
<td> for[&mu;] e see[&mu;] c as[&mu;] d;
565541
</td>
566542
</tr>
567543
<tr>
568-
<td> &gamma; (for[&epsilon;] u see[&epsilon;] w as[&epsilon;] c);
544+
<td> for[&epsilon;] u see[&epsilon;] w as[&epsilon;] c;
569545
</td>
570546
</tr>
571547
</table>
572548
<span3>
573-
where &alpha;, &beta;, &gamma;, &mu;, &epsilon; are scalars.<br><br>
549+
where &mu;, &epsilon; are scalars.<br><br>
574550
The main rewrite (schema) of Pure See is (SHUFFLE), which replaces a trigram by another trigram:<br><br>
575551
</span3>
576552
<table style="padding: 20px; margin-bottom: 18px; width:750px; border:0">
@@ -588,35 +564,35 @@ <h4>(<a href="#Contents">back to contents</a>)</h4>
588564
<td>
589565
<table>
590566
<tr>
591-
<td> &alpha; (for[&epsilon;] a see[&epsilon;] b as[&epsilon;] e);
567+
<td> from[&epsilon;] a see[&epsilon;] b as[&epsilon;] e;
592568
</td>
593569
</tr>
594570
<tr><td></td></tr>
595571
<tr>
596-
<td> &beta; (for[&mu;] e see[&mu;] c as[&mu;] d);
572+
<td> from[&mu;] e see[&mu;] c as[&mu;] d;
597573
</td>
598574
</tr>
599575
<tr><td></td></tr>
600576
<tr>
601-
<td> &gamma; (for[&epsilon;] u see[&epsilon;] w as[&epsilon;] c);
577+
<td> from[&epsilon;] u see[&epsilon;] w as[&epsilon;] c;
602578
</td>
603579
</tr>
604580
</table>
605581
</td>
606582
<td>
607583
<table>
608584
<tr>
609-
<td> &alpha;' (for[&mu;] a see[&mu;] u as[&mu;] v);
585+
<td> from[&mu;] a see[&mu;] u as[&mu;] v;
610586
</td>
611587
</tr>
612588
<tr><td></td></tr>
613589
<tr>
614-
<td> &beta;' (for[&epsilon;] v see[&epsilon;] p as[&epsilon;] d);
590+
<td> from[&epsilon;] v see[&epsilon;] p as[&epsilon;] d;
615591
</td>
616592
</tr>
617593
<tr><td></td></tr>
618594
<tr>
619-
<td> &gamma;' (for[&epsilon;] b see[&epsilon;] w as[&epsilon;] p);
595+
<td> from[&mu;] b see[&mu;] w as[&mu;] p;
620596
</td>
621597
</tr>
622598
</table>
@@ -634,7 +610,80 @@ <h4>(<a href="#Contents">back to contents</a>)</h4>
634610
</div>
635611

636612

613+
<h3 id="MultiplicationByScalarsOrigin">Multiplication by scalars. Origin</h3>
614+
<h4>(<a href="#Contents">back to contents</a>)</h4>
615+
616+
<span3>
617+
The special word </span3>origin<span3> is a term. With respect to the </span3>origin<span3> we define the multiplication by the scalar &mu; of the term T:<br><br>
618+
</span3>
619+
<p style="padding: 20px; margin-bottom: 18px; width:350px;border:0">
620+
from[&mu;] origin see[&mu;] T as (&mu; T);</p>
621+
622+
<span3>
623+
The multiplication of a command<br><br>
624+
</span3>
625+
<p style="padding: 20px; margin-bottom: 18px; width:350px;border:0"> from[&epsilon;] u see[&epsilon;] w as[&epsilon;] c;</p>
626+
627+
<span3> by the scalar &mu; is defined as<br><br>
628+
</span3>
629+
<p style="padding: 20px; margin-bottom: 18px; width:350px;border:0">
630+
from[&epsilon;] (&mu; u) see[&epsilon;] (&mu; w) as[&epsilon;] (&mu; c);</p>
631+
632+
<span3>
633+
via a SHUFFLE schema<br><br>
634+
</span3>
635+
<table style="padding: 20px; margin-bottom: 18px; width:750px; border:0">
636+
<tr>
637+
<th style="text-align: left;">LHS pattern
638+
</th>
639+
<th style="text-align: left;">RHS pattern
640+
</th>
641+
</tr>
642+
643+
<tr><td></td><td></td></tr>
644+
<tr><td></td><td></td></tr>
637645

646+
<tr>
647+
<td>
648+
<table>
649+
<tr>
650+
<td> from[&epsilon;] origin see[&epsilon;] origin as[&epsilon;] origin;
651+
</td>
652+
</tr>
653+
<tr><td></td></tr>
654+
<tr>
655+
<td> from[&mu;] origin see[&mu;] c as[&mu;] (&mu; c);
656+
</td>
657+
</tr>
658+
<tr><td></td></tr>
659+
<tr>
660+
<td> from[&epsilon;] u see[&epsilon;] w as[&epsilon;] c;
661+
</td>
662+
</tr>
663+
</table>
664+
</td>
665+
<td>
666+
<table>
667+
<tr>
668+
<td> from[&mu;] origin see[&mu;] u as[&mu;] (&mu; u);
669+
</td>
670+
</tr>
671+
<tr><td></td></tr>
672+
<tr>
673+
<td> from[&epsilon;] (&mu; u) see[&epsilon;] (&mu; w) as[&epsilon;] (&mu; c);
674+
</td>
675+
</tr>
676+
<tr><td></td></tr>
677+
<tr>
678+
<td> from[&mu;] origin see[&mu;] w as[&mu;] (&mu; w);
679+
</td>
680+
</tr>
681+
</table>
682+
</td>
683+
</tr>
684+
</table>
685+
<span3>
686+
</span3>
638687

639688
<h3 id="ReductionByPassingToTheLimit">Reduction by passing to the limit</h3>
640689
<h4>(<a href="#Contents">back to contents</a>)</h4>

quinecheck.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<!-- based on a modification of the js version https://github.com/ishanpm/chemlambda-editor of my chemlambda v2, see the issue https://github.com/chorasimilarity/chemlambda-gui/issues/9
55
author: Marius
6-
last modified: 11.03.2020
6+
last modified: 16.03.2021
77
//
88
-->
99

@@ -25,7 +25,7 @@
2525
<script src="js/ioprep.js"></script>
2626

2727
<div class="header">
28-
<span3>Cite as: </span3><div>How to test a quine. <a href="http://imar.ro/~mbuliga/index.html">&copy; Marius Buliga</a> (2019-2020), https://mbuliga.github.io/quinegraphs/quinegraph.html<span id="citeas"></span></div>
28+
<span3>Cite as: </span3><div>How to test a quine. <a href="http://imar.ro/~mbuliga/index.html">&copy; Marius Buliga</a> (2019-2021), https://mbuliga.github.io/quinegraphs/quinegraph.html<span id="citeas"></span></div>
2929
<span3>See also:</span3><br> <a href="https://chemlambda.github.io/index.html">All chemlambda projects</a>
3030
</div>
3131

@@ -106,7 +106,8 @@
106106
</ul>
107107
</div>
108108
<div class="col-4 menu" style="text-align: left;">
109-
<span id="comments" ></span>
109+
<span id="comments" ></span><br><br>
110+
<span3 style="text-align: left;" id="errors"></span3>
110111
</div>
111112
</div>
112113

0 commit comments

Comments
 (0)