Community RSS Feed https://community.wolfram.com RSS Feed for Wolfram Community showing any discussions in tag Computer Science sorted by active Primes at Elementary Cellular Automata Rule 110 https://community.wolfram.com/groups/-/m/t/2421312 &amp;[Wolfram Notebook] : https://www.wolframcloud.com/obj/6760b5a9-ca96-470c-8b68-5ac3092c23e5 Daniel Carvalho 2021-12-09T03:42:22Z More dissent about the NFT "movement" https://community.wolfram.com/groups/-/m/t/2418777 ![autoglyph remix] The purpose of this memo is to take generative code, transliterate, and run it from first principles in mathematica. This is all done in good fun, so we will also throw in extra symmetry analysis for free. At least one of the NFT projects on opensea, namely [Larva Lab&#039;s Autoglyphys], shows exemplary rigor with asset data on chain. The Autoglyphs are valuable [works of art] comparable with hand-drawn designs from geometric tattoo artists, and the original authors are [also doing interesting things with robotic printing]. Thus we have a motive to recreate the autoglyphs locally, and to study their properties. Examining [the contract] closely enough, we find a few simple functions that do most of the work, and one confusing but critical line: uint a = uint(uint160(keccak256(abi.encodePacked(idToSeed[id])))); Don&#039;t ask me for all the details. I calculated (with an old compiler), for special example [AG#308], the hidden value: a308 = 804491777491045640850919148972519969740151830770; Mod[a308, 83] Out[]=14 Since $14&lt;20$, indeed we are working in scheme $1$ with lexicon $\{X,/,\backslash \}$. We need a little bit of code, which essentially computes a multiplication table with variable symmetry and bad truncation of 256-bit integers (which seems to add entropy and structure): ONE = 4294967296; SIZE = 64; HALFSIZE = 32; y[ind_, aVal_] := With[{y0 = 2*(ind - HALFSIZE) + 1}, Switch[Mod[aVal, 3], 0, y0, 1, -y0, 2, Abs[y0]]*aVal] x[ind_, aVal_] := With[{x0 = 2*(ind - HALFSIZE) + 1}, Switch[Mod[aVal, 2], 0, x0*aVal, 1, Abs[x0]*aVal]] v[x_, y_, mod_] := With[{v0 = Mod[Floor[ If[# &gt; 2^255 - 1, Mod[(# - 2^256)/ONE + 1, 2^256], #/ONE] &amp;@Mod[x*y, 2^256]], mod]}, If[v0 &lt; 5, v0, 0]] AutoGlyphM[aVal_] := With[{mod = Mod[aVal, 11] + 5}, Outer[v[x[#2, a308], y[#1, a308], mod] &amp;, Range[0, SIZE - 1], Range[0, SIZE - 1], 1]] TakeAutoGlyphType1[ind_] := ReplaceAll[Characters[StringSplit[Import[ &#034;https://www.larvalabs.com/autoglyphs/rawglyph?index=&#034; &lt;&gt; ToString[ind]], &#034; &#034;]], {&#034;.&#034; -&gt; 0, &#034;X&#034; -&gt; 1, &#034;/&#034; -&gt; 2, &#034;\\&#034; -&gt; 3}] This code seems to work for example $308$ because the difference between data and compute is an null array interspersed with $4$ values, but in this spec. $4$ is an extra null symbol. dat1 = AutoGlyphM[a308]; dat2 = TakeAutoGlyphType1; ArrayPlot /@ {dat1, dat2} ArrayPlot[dat1 - dat2] ![compare] ![diff] So instead of wasting the $4$ data, we will map it to an extra $O$ symbol. Then we can affix a seal for the new moon of December, when a cubist $\emptyset$ and a mutation of the OX glyph could both be taken from the proofs of $\large{+}$ my?T¿Ry $\large{+}\large{+} 4\rightarrow O$. Also, I made two different view functions, one vector, one array. t0 = 1/8; HashFill[or_] := Polygon[or + # &amp; /@ Tuples[{1/2, -1/2}, 2][[{1, 2, 4, 3}]]]; EmptyFill[or_] := {}; DashLine[or_] := Polygon[{or - {1/2, t0}, or - {1/2, -t0}, or + {1/2, t0}, or + {1/2, -t0}}]; PipeLine[or_] := Polygon[{or - {t0, 1/2}, or - {-t0, 1/2}, or + {t0, 1/2}, or + {-t0, 1/2}}]; BSlash[or_] := Polygon[{or + {-1/2, 1/2} + {0, -t0 Sqrt}, or + {-1/2, 1/2}, or + {-1/2, 1/2} + {t0 Sqrt, 0}, or + {1/2, -1/2} + {0, t0 Sqrt}, or + {1/2, -1/2}, or + {1/2, -1/2} + {-t0 Sqrt, 0}}]; FSlash[or_] := Polygon[{or + {-1/2, -1/2} + {0, t0 Sqrt}, or + {-1/2, -1/2}, or + {-1/2, -1/2} + {t0 Sqrt, 0}, or + {1/2, 1/2} + {0, -t0 Sqrt}, or + {1/2, 1/2}, or + {1/2, 1/2} + {-t0 Sqrt, 0}}]; CrossLines[or_] := {FSlash[or], BSlash[or]}; PlusLines[or_] := {DashLine[or], PipeLine[or]}; Circ[or_] := {Black, Disk[or, 1/2], White, Disk[or, 1/2 - 2 t0]}; MHashFill = Table[1, {i, 1, 3}, {j, 1, 3}]; MEmptyFill = Mod[MHashFill + 1, 2]; MDashLine = Table[#, {i, 1, 3}] &amp; /@ {0, 1, 0}; MPipeLine = Transpose[MDashLine]; MBSlash = IdentityMatrix; MFSlash = Reverse[MBSlash]; MCirc = MapThread[Mod[#1 + #2, 2] &amp;, {MDashLine, MPipeLine}, 2]; MPlus = ReplacePart[MCirc, {2, 2} -&gt; 1]; MCross = ReplacePart[ MapThread[Mod[#1 + #2, 2] &amp;, {MFSlash, MBSlash}, 2], {2, 2} -&gt; 1]; Hexagram[or_, code_] := Map[or + # &amp;, Position[ReplacePart[Table[If[OddQ[i], If[MemberQ[Complement[Range, {2, 14}], j], 1, 0], If[MemberQ[{1, 15}, j], 1, 0]], {i, 15}, {j, 15}], Join[{{1, 2} -&gt; 1, {1, 14} -&gt; 1, {15, 2} -&gt; 1, {15, 14} -&gt; 1}, Flatten[ Outer[{1 + 2 #1, #2} -&gt; 0 &amp;, Position[code, 0][[All, 1]], {7, 8, 9}]] ]], 1]] Once again, the view code is messy, and takes more space than compute, but recall that view code doesn&#039;t need to be on chain. Nevertheless, such code is valuable since it makes data easier to understand and appreciate Show[Graphics[ MapIndexed[ Apply[#1 /. {0 -&gt; EmptyFill, 1 -&gt; CrossLines, 2 -&gt; FSlash, 3 -&gt; BSlash, 4 -&gt; Circ }, {Reverse[#2] {1, -1}}] &amp;, dat1, {2}], ImageSize -&gt; 64*8], Graphics[{Darker@Red, EdgeForm[Darker@Red], HashFill[Reverse@# {1, -1}] &amp; /@ Hexagram[{3, 3}, {0, 0, 1, 0, 1, 0}]}], ImageSize -&gt; 192*4] ![vector small] Image[ReplacePart[ Mod[Plus[ ArrayFlatten[ dat1 /. {0 -&gt; MEmptyFill, 1 -&gt; MCross, 2 -&gt; MFSlash, 3 -&gt; MBSlash, 4 -&gt; MCirc }], 1], 2], # -&gt; 2 &amp; /@ Hexagram[{20, 21}, {0, 0, 1, 0, 1, 0}]] /. {0 -&gt; {0, 0, 0}, 1 -&gt; {1, 1, 1}, 2 -&gt; {0.8, 0, 0}}, ImageSize -&gt; 192*4] ![array small] Now we can see quite obviously transpose symmetry, and note that it probably follows from the truth value And[Mod[a308, 3] == 0, Mod[a308, 2] == 0] Out[]=True We are not too enthusiastic about proving this conjecture, but would rather strengthen it through more data analysis. What are the secret code values for the other $511$ glyphs? Do modulus values of these codes predict symmetry type? We will return shortly with more answers. : https://community.wolfram.com//c/portal/getImageAttachment?filename=VectorAG308Dots.png&amp;userId=234448 : https://community.wolfram.com/groups/-/m/t/2407317 : https://twitter.com/GeoffreyHuntley : http://opensea.io : https://www.larvalabs.com/autoglyphs : https://www.artnome.com/news/2019/4/08/autoglyphs-generative-art-born-on-the-blockchain : https://twitter.com/larvalabs/status/1463650510863544322 : https://etherscan.io/address/0xd4e4078ca3495de5b1d4db434bebc5a986197782#code : http://remix.ethereum.com : https://www.larvalabs.com/autoglyphs/glyph?index=308 : https://community.wolfram.com//c/portal/getImageAttachment?filename=compare.png&amp;userId=234448 : https://community.wolfram.com//c/portal/getImageAttachment?filename=diff.png&amp;userId=234448 : https://community.wolfram.com//c/portal/getImageAttachment?filename=VectorAG308small.png&amp;userId=234448 : https://community.wolfram.com//c/portal/getImageAttachment?filename=ArrayAG308small.png&amp;userId=234448 Brad Klee 2021-12-05T00:18:14Z