","rsbLexemeList":[],"rsbNumLines":2,"rsbLine":6,"rsbText":"'Escape time algorithm\n\n"},"Inert",[]],"tag":"Create"}],[6,{"contents":[{"rsbBlockId":6,"rsbHtml":"
defupdate(c:Complex,z:Complex)->Complex=c+(z*z)\n
","rsbLexemeList":[6,7,9,10,11,13,14,15,16,18,19,20,21,22,23,24,27,28,29,31,32],"rsbNumLines":1,"rsbLine":8,"rsbText":"def update(c:Complex, z:Complex) -> Complex = c + (z * z)\n"},"Complete",[{"contents":[[6,5],[7,7],[9,8],[10,10],[11,12],[13,13],[14,8],[15,15],[16,17],[18,18],[19,8],[20,5],[21,21],[22,5],[23,23],[24,24],[27,26],[28,28],[29,29],[31,31],[32,26]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[6,32],"tnHighlights":[[5,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[5,{"contents":{"tnSpan":[6,32],"tnHighlights":[[6,"HighlightLeaf"],[20,"HighlightLeaf"],[22,"HighlightLeaf"],[7,"HighlightGroup"],[8,"HighlightGroup"],[21,"HighlightGroup"],[25,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[6,{"contents":{"tnSpan":[6,6],"tnHighlights":[[6,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[7,{"contents":{"tnSpan":[7,7],"tnHighlights":[[7,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[8,{"contents":{"tnSpan":[9,19],"tnHighlights":[[9,"HighlightLeaf"],[14,"HighlightLeaf"],[19,"HighlightLeaf"],[12,"HighlightGroup"],[17,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[9,{"contents":{"tnSpan":[9,9],"tnHighlights":[[9,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[10,{"contents":{"tnSpan":[10,10],"tnHighlights":[[10,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[11,{"contents":{"tnSpan":[11,11],"tnHighlights":[[11,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[12,{"contents":{"tnSpan":[10,13],"tnHighlights":[[11,"HighlightLeaf"],[10,"HighlightGroup"],[13,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[13,{"contents":{"tnSpan":[13,13],"tnHighlights":[[13,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[14,{"contents":{"tnSpan":[14,14],"tnHighlights":[[14,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[15,{"contents":{"tnSpan":[15,15],"tnHighlights":[[15,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[16,{"contents":{"tnSpan":[16,16],"tnHighlights":[[16,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[17,{"contents":{"tnSpan":[15,18],"tnHighlights":[[16,"HighlightLeaf"],[15,"HighlightGroup"],[18,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[18,{"contents":{"tnSpan":[18,18],"tnHighlights":[[18,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[19,{"contents":{"tnSpan":[19,19],"tnHighlights":[[19,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[20,{"contents":{"tnSpan":[20,20],"tnHighlights":[[20,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[21,{"contents":{"tnSpan":[21,21],"tnHighlights":[[21,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[22,{"contents":{"tnSpan":[22,22],"tnHighlights":[[22,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[23,{"contents":{"tnSpan":[23,23],"tnHighlights":[[23,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[24,{"contents":{"tnSpan":[24,24],"tnHighlights":[[24,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[25,{"contents":{"tnSpan":[23,32],"tnHighlights":[[23,"HighlightGroup"],[24,"HighlightGroup"],[26,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[26,{"contents":{"tnSpan":[27,32],"tnHighlights":[[27,"HighlightLeaf"],[32,"HighlightLeaf"],[30,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[27,{"contents":{"tnSpan":[27,27],"tnHighlights":[[27,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[28,{"contents":{"tnSpan":[28,28],"tnHighlights":[[28,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[29,{"contents":{"tnSpan":[29,29],"tnHighlights":[[29,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[30,{"contents":{"tnSpan":[28,31],"tnHighlights":[[28,"HighlightGroup"],[29,"HighlightGroup"],[31,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[31,{"contents":{"tnSpan":[31,31],"tnHighlights":[[31,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[32,{"contents":{"tnSpan":[32,32],"tnHighlights":[[32,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[7,{"contents":{"tnuHighlights":[[7,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[10,{"contents":{"tnuHighlights":[[10,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[13,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in complex:\nstruct Complex =\n re: Float\n im: Float\n"]},"tag":"Update"}],[15,{"contents":{"tnuHighlights":[[15,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[18,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in complex:\nstruct Complex =\n re: Float\n im: Float\n"]},"tag":"Update"}],[21,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in complex:\nstruct Complex =\n re: Float\n im: Float\n"]},"tag":"Update"}],[23,{"contents":{"tnuHighlights":[[10,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[10,{"contents":{"tnuHighlights":[[23,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[24,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Add(a|Data)\n (+) : (a, a) -> a\n zero : a\n"]},"tag":"Update"}],[28,{"contents":{"tnuHighlights":[[15,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[15,{"contents":{"tnuHighlights":[[28,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[29,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Mul(a|Data)\n (*) : (a, a) -> a\n one : a\n"]},"tag":"Update"}],[31,{"contents":{"tnuHighlights":[[15,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[15,{"contents":{"tnuHighlights":[[31,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[5,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((c:Complex,z:Complex) -> Complex)"]},"tag":"Update"}],[10,{"contents":{"tnuHighlights":[],"tnuText":["Type: Complex"]},"tag":"Update"}],[13,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[15,{"contents":{"tnuHighlights":[],"tnuText":["Type: Complex"]},"tag":"Update"}],[18,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[21,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[23,{"contents":{"tnuHighlights":[],"tnuText":["Type: Complex"]},"tag":"Update"}],[24,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}[v#0:(Add a)](v#1:a,v#2:a) -> a)"]},"tag":"Update"}],[25,{"contents":{"tnuHighlights":[],"tnuText":["Type: Complex"]},"tag":"Update"}],[26,{"contents":{"tnuHighlights":[],"tnuText":["Type: Complex"]},"tag":"Update"}],[28,{"contents":{"tnuHighlights":[],"tnuText":["Type: Complex"]},"tag":"Update"}],[29,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}[v#0:(Mul a)](v#1:a,v#2:a) -> a)"]},"tag":"Update"}],[31,{"contents":{"tnuHighlights":[],"tnuText":["Type: Complex"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["TypePass",null],"tag":"RenderedPassResult"},{"contents":["SimpPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["OptPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"}]],"tag":"Create"}],[7,{"contents":[{"rsbBlockId":7,"rsbHtml":"
","rsbLexemeList":[38,39,41,42,43,45,46,47,48,49,50,52,53,55],"rsbNumLines":1,"rsbLine":11,"rsbText":"def inBounds(z:Complex) -> Bool = complex_abs z < tol\n"},"Complete",[{"contents":[[38,37],[39,39],[41,40],[42,42],[43,44],[45,45],[46,40],[47,37],[48,48],[49,37],[50,50],[52,52],[53,53],[55,55]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[38,55],"tnHighlights":[[37,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[37,{"contents":{"tnSpan":[38,55],"tnHighlights":[[38,"HighlightLeaf"],[47,"HighlightLeaf"],[49,"HighlightLeaf"],[39,"HighlightGroup"],[40,"HighlightGroup"],[48,"HighlightGroup"],[54,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[38,{"contents":{"tnSpan":[38,38],"tnHighlights":[[38,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[39,{"contents":{"tnSpan":[39,39],"tnHighlights":[[39,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[40,{"contents":{"tnSpan":[41,46],"tnHighlights":[[41,"HighlightLeaf"],[46,"HighlightLeaf"],[44,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[41,{"contents":{"tnSpan":[41,41],"tnHighlights":[[41,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[42,{"contents":{"tnSpan":[42,42],"tnHighlights":[[42,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[43,{"contents":{"tnSpan":[43,43],"tnHighlights":[[43,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[44,{"contents":{"tnSpan":[42,45],"tnHighlights":[[43,"HighlightLeaf"],[42,"HighlightGroup"],[45,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[45,{"contents":{"tnSpan":[45,45],"tnHighlights":[[45,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[46,{"contents":{"tnSpan":[46,46],"tnHighlights":[[46,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[47,{"contents":{"tnSpan":[47,47],"tnHighlights":[[47,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[48,{"contents":{"tnSpan":[48,48],"tnHighlights":[[48,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[49,{"contents":{"tnSpan":[49,49],"tnHighlights":[[49,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[50,{"contents":{"tnSpan":[50,50],"tnHighlights":[[50,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[51,{"contents":{"tnSpan":[50,52],"tnHighlights":[[50,"HighlightGroup"],[52,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[52,{"contents":{"tnSpan":[52,52],"tnHighlights":[[52,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[53,{"contents":{"tnSpan":[53,53],"tnHighlights":[[53,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[54,{"contents":{"tnSpan":[50,55],"tnHighlights":[[51,"HighlightGroup"],[53,"HighlightGroup"],[55,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[55,{"contents":{"tnSpan":[55,55],"tnHighlights":[[55,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[39,{"contents":{"tnuHighlights":[[39,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[42,{"contents":{"tnuHighlights":[[42,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[45,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in complex:\nstruct Complex =\n re: Float\n im: Float\n"]},"tag":"Update"}],[48,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nenum Bool =\n False\n True\n"]},"tag":"Update"}],[50,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in complex:\ndef complex_abs(x:Complex) -> Float = x.re * x.re + x.im * x.im\n"]},"tag":"Update"}],[52,{"contents":{"tnuHighlights":[[42,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[42,{"contents":{"tnuHighlights":[[52,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[53,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Ord(a|Eq)\n (>) : (a, a) -> Bool\n (<) : (a, a) -> Bool\n"]},"tag":"Update"}],[55,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in main:\ntol = 2.0\n"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[37,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((z:Complex) -> Bool)"]},"tag":"Update"}],[42,{"contents":{"tnuHighlights":[],"tnuText":["Type: Complex"]},"tag":"Update"}],[45,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[48,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[50,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((x:Complex) -> Float32)"]},"tag":"Update"}],[51,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}],[52,{"contents":{"tnuHighlights":[],"tnuText":["Type: Complex"]},"tag":"Update"}],[53,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}[v#0:(Ord a)](v#1:a,v#2:a) -> Bool)"]},"tag":"Update"}],[54,{"contents":{"tnuHighlights":[],"tnuText":["Type: Bool"]},"tag":"Update"}],[55,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["TypePass",null],"tag":"RenderedPassResult"},{"contents":["SimpPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["OptPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"}]],"tag":"Create"}],[10,{"contents":[{"rsbBlockId":10,"rsbHtml":"
","rsbLexemeList":[57,58,60,61,62,64,65,66,67,68,71,72,74,77,78,79,80,81,82,85,86,87,90,91,93,94,95,96,100,101,102,103,104,105,106,108,109,110,112,114,117,118,119,121,124,125,127,128,129,130,131],"rsbNumLines":5,"rsbLine":13,"rsbText":"def escapeTime(c:Complex) -> Float =\n fst $ fold (0.0, zero) $ \\i:(Fin 1000) s.\n (n, z) = s\n z' = update c z\n (n + b_to_f (inBounds z'), z')\n"},"CompleteWithErrors",[{"contents":[[57,56],[58,58],[60,59],[61,61],[62,63],[64,64],[65,59],[66,56],[67,67],[68,56],[71,71],[72,73],[74,74],[77,76],[78,78],[79,76],[80,80],[81,76],[82,83],[85,84],[86,86],[87,88],[90,89],[91,91],[93,93],[94,89],[95,95],[96,84],[100,99],[101,101],[102,99],[103,103],[104,99],[105,98],[106,106],[108,108],[109,107],[110,110],[112,112],[114,114],[117,116],[118,118],[119,119],[121,121],[124,123],[125,125],[127,127],[128,123],[129,116],[130,130],[131,116]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[57,131],"tnHighlights":[[56,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[56,{"contents":{"tnSpan":[57,131],"tnHighlights":[[57,"HighlightLeaf"],[66,"HighlightLeaf"],[68,"HighlightLeaf"],[58,"HighlightGroup"],[59,"HighlightGroup"],[67,"HighlightGroup"],[69,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[57,{"contents":{"tnSpan":[57,57],"tnHighlights":[[57,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[58,{"contents":{"tnSpan":[58,58],"tnHighlights":[[58,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[59,{"contents":{"tnSpan":[60,65],"tnHighlights":[[60,"HighlightLeaf"],[65,"HighlightLeaf"],[63,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[60,{"contents":{"tnSpan":[60,60],"tnHighlights":[[60,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[61,{"contents":{"tnSpan":[61,61],"tnHighlights":[[61,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[62,{"contents":{"tnSpan":[62,62],"tnHighlights":[[62,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[63,{"contents":{"tnSpan":[61,64],"tnHighlights":[[62,"HighlightLeaf"],[61,"HighlightGroup"],[64,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[64,{"contents":{"tnSpan":[64,64],"tnHighlights":[[64,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[65,{"contents":{"tnSpan":[65,65],"tnHighlights":[[65,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[66,{"contents":{"tnSpan":[66,66],"tnHighlights":[[66,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[67,{"contents":{"tnSpan":[67,67],"tnHighlights":[[67,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[68,{"contents":{"tnSpan":[68,68],"tnHighlights":[[68,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[69,{"contents":{"tnSpan":[71,131],"tnHighlights":[[70,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[70,{"contents":{"tnSpan":[71,131],"tnHighlights":[[73,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[71,{"contents":{"tnSpan":[71,71],"tnHighlights":[[71,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[72,{"contents":{"tnSpan":[72,72],"tnHighlights":[[72,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[73,{"contents":{"tnSpan":[71,131],"tnHighlights":[[72,"HighlightLeaf"],[71,"HighlightGroup"],[83,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[74,{"contents":{"tnSpan":[74,74],"tnHighlights":[[74,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[75,{"contents":{"tnSpan":[74,81],"tnHighlights":[[74,"HighlightGroup"],[76,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[76,{"contents":{"tnSpan":[77,81],"tnHighlights":[[77,"HighlightLeaf"],[79,"HighlightLeaf"],[81,"HighlightLeaf"],[78,"HighlightGroup"],[80,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[77,{"contents":{"tnSpan":[77,77],"tnHighlights":[[77,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[78,{"contents":{"tnSpan":[78,78],"tnHighlights":[[78,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[79,{"contents":{"tnSpan":[79,79],"tnHighlights":[[79,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[80,{"contents":{"tnSpan":[80,80],"tnHighlights":[[80,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[81,{"contents":{"tnSpan":[81,81],"tnHighlights":[[81,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[82,{"contents":{"tnSpan":[82,82],"tnHighlights":[[82,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[83,{"contents":{"tnSpan":[74,131],"tnHighlights":[[82,"HighlightLeaf"],[75,"HighlightGroup"],[84,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[84,{"contents":{"tnSpan":[85,131],"tnHighlights":[[85,"HighlightLeaf"],[96,"HighlightLeaf"],[88,"HighlightGroup"],[95,"HighlightGroup"],[97,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[85,{"contents":{"tnSpan":[85,85],"tnHighlights":[[85,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[86,{"contents":{"tnSpan":[86,86],"tnHighlights":[[86,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[87,{"contents":{"tnSpan":[87,87],"tnHighlights":[[87,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[88,{"contents":{"tnSpan":[86,94],"tnHighlights":[[87,"HighlightLeaf"],[86,"HighlightGroup"],[89,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[89,{"contents":{"tnSpan":[90,94],"tnHighlights":[[90,"HighlightLeaf"],[94,"HighlightLeaf"],[92,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[90,{"contents":{"tnSpan":[90,90],"tnHighlights":[[90,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[91,{"contents":{"tnSpan":[91,91],"tnHighlights":[[91,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[92,{"contents":{"tnSpan":[91,93],"tnHighlights":[[91,"HighlightGroup"],[93,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[93,{"contents":{"tnSpan":[93,93],"tnHighlights":[[93,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[94,{"contents":{"tnSpan":[94,94],"tnHighlights":[[94,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[95,{"contents":{"tnSpan":[95,95],"tnHighlights":[[95,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[96,{"contents":{"tnSpan":[96,96],"tnHighlights":[[96,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[97,{"contents":{"tnSpan":[100,131],"tnHighlights":[[98,"HighlightGroup"],[107,"HighlightGroup"],[115,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[98,{"contents":{"tnSpan":[100,106],"tnHighlights":[[105,"HighlightLeaf"],[99,"HighlightGroup"],[106,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[99,{"contents":{"tnSpan":[100,104],"tnHighlights":[[100,"HighlightLeaf"],[102,"HighlightLeaf"],[104,"HighlightLeaf"],[101,"HighlightGroup"],[103,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[100,{"contents":{"tnSpan":[100,100],"tnHighlights":[[100,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[101,{"contents":{"tnSpan":[101,101],"tnHighlights":[[101,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[102,{"contents":{"tnSpan":[102,102],"tnHighlights":[[102,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[103,{"contents":{"tnSpan":[103,103],"tnHighlights":[[103,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[104,{"contents":{"tnSpan":[104,104],"tnHighlights":[[104,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[105,{"contents":{"tnSpan":[105,105],"tnHighlights":[[105,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[106,{"contents":{"tnSpan":[106,106],"tnHighlights":[[106,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[107,{"contents":{"tnSpan":[108,114],"tnHighlights":[[109,"HighlightLeaf"],[108,"HighlightGroup"],[113,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[108,{"contents":{"tnSpan":[108,108],"tnHighlights":[[108,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[109,{"contents":{"tnSpan":[109,109],"tnHighlights":[[109,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[110,{"contents":{"tnSpan":[110,110],"tnHighlights":[[110,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[111,{"contents":{"tnSpan":[110,112],"tnHighlights":[[110,"HighlightGroup"],[112,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[112,{"contents":{"tnSpan":[112,112],"tnHighlights":[[112,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[113,{"contents":{"tnSpan":[110,114],"tnHighlights":[[111,"HighlightGroup"],[114,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[114,{"contents":{"tnSpan":[114,114],"tnHighlights":[[114,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[115,{"contents":{"tnSpan":[117,131],"tnHighlights":[[116,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[116,{"contents":{"tnSpan":[117,131],"tnHighlights":[[117,"HighlightLeaf"],[129,"HighlightLeaf"],[131,"HighlightLeaf"],[120,"HighlightGroup"],[130,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[117,{"contents":{"tnSpan":[117,117],"tnHighlights":[[117,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[118,{"contents":{"tnSpan":[118,118],"tnHighlights":[[118,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[119,{"contents":{"tnSpan":[119,119],"tnHighlights":[[119,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[120,{"contents":{"tnSpan":[118,128],"tnHighlights":[[118,"HighlightGroup"],[119,"HighlightGroup"],[122,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[121,{"contents":{"tnSpan":[121,121],"tnHighlights":[[121,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[122,{"contents":{"tnSpan":[121,128],"tnHighlights":[[121,"HighlightGroup"],[123,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[123,{"contents":{"tnSpan":[124,128],"tnHighlights":[[124,"HighlightLeaf"],[128,"HighlightLeaf"],[126,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[124,{"contents":{"tnSpan":[124,124],"tnHighlights":[[124,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[125,{"contents":{"tnSpan":[125,125],"tnHighlights":[[125,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[126,{"contents":{"tnSpan":[125,127],"tnHighlights":[[125,"HighlightGroup"],[127,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[127,{"contents":{"tnSpan":[127,127],"tnHighlights":[[127,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[128,{"contents":{"tnSpan":[128,128],"tnHighlights":[[128,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[129,{"contents":{"tnSpan":[129,129],"tnHighlights":[[129,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[130,{"contents":{"tnSpan":[130,130],"tnHighlights":[[130,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[131,{"contents":{"tnSpan":[131,131],"tnHighlights":[[131,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[58,{"contents":{"tnuHighlights":[[58,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[61,{"contents":{"tnuHighlights":[[61,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[64,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in complex:\nstruct Complex =\n re: Float\n im: Float\n"]},"tag":"Update"}],[67,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nFloat = Float32\n"]},"tag":"Update"}],[71,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef fst(pair:(a, b)) -> a given (a:Type, b:Type) = pair.0\n"]},"tag":"Update"}],[74,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef fold(init:c, xs:n=>a, body:(n, a, c)-> c) -> c given (a:Type, n|Ix, c|Data) =\n snd $ scan(init, xs) \\i x carry. ((), body(i, x, carry))\n"]},"tag":"Update"}],[80,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Add(a|Data)\n (+) : (a, a) -> a\n zero : a\n"]},"tag":"Update"}],[86,{"contents":{"tnuHighlights":[[86,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[91,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef Fin(n:Nat) -> Type = %Fin(n)\n"]},"tag":"Update"}],[95,{"contents":{"tnuHighlights":[[95,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[101,{"contents":{"tnuHighlights":[[101,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[103,{"contents":{"tnuHighlights":[[103,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[106,{"contents":{"tnuHighlights":[[95,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[95,{"contents":{"tnuHighlights":[[106,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[108,{"contents":{"tnuHighlights":[[108,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[110,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in main:\ndef update(c:Complex, z:Complex) -> Complex = c + (z * z)\n"]},"tag":"Update"}],[112,{"contents":{"tnuHighlights":[[61,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[61,{"contents":{"tnuHighlights":[[112,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[114,{"contents":{"tnuHighlights":[[103,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[103,{"contents":{"tnuHighlights":[[114,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[118,{"contents":{"tnuHighlights":[[101,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[101,{"contents":{"tnuHighlights":[[118,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[119,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Add(a|Data)\n (+) : (a, a) -> a\n zero : a\n"]},"tag":"Update"}],[121,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef b_to_f(x:Bool) -> Float = i_to_f(b_to_i x)\n"]},"tag":"Update"}],[125,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in main:\ndef inBounds(z:Complex) -> Bool = complex_abs z < tol\n"]},"tag":"Update"}],[127,{"contents":{"tnuHighlights":[[108,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[108,{"contents":{"tnuHighlights":[[127,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[130,{"contents":{"tnuHighlights":[[108,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[108,{"contents":{"tnuHighlights":[[130,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[61,{"contents":{"tnuHighlights":[],"tnuText":["Type: Complex"]},"tag":"Update"}],[64,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[67,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[71,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}{b:Type}(pair:(a, b)) -> a)"]},"tag":"Update"}],[73,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}],[74,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}{n:Type}[v#0:(Ix n)]{c:Type}[v#1:(Data c)](init:c,xs:(n\n => a),body:((v#2:n,v#3:a,v#4:c) -> c)) -> c)"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":[83,"Type error: wrong number of positional arguments provided. Expected 3 but got 2"],"tag":"RenderedError"}]],"tag":"Create"}],[12,{"contents":[{"rsbBlockId":12,"rsbHtml":"
","rsbLexemeList":[],"rsbNumLines":2,"rsbLine":19,"rsbText":"'Evaluate on a grid and plot the results\n\n"},"Inert",[]],"tag":"Create"}],[14,{"contents":[{"rsbBlockId":14,"rsbHtml":"
xs=linspace(Fin300)(-2.0)1.0\n
","rsbLexemeList":[133,134,135,138,139,141,142,145,146,148,149,151],"rsbNumLines":1,"rsbLine":21,"rsbText":"xs = linspace (Fin 300) (-2.0) 1.0\n"},"Complete",[{"contents":[[133,133],[134,132],[135,135],[138,137],[139,139],[141,141],[142,137],[145,144],[146,146],[148,148],[149,144],[151,151]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[133,151],"tnHighlights":[[132,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[132,{"contents":{"tnSpan":[133,151],"tnHighlights":[[134,"HighlightLeaf"],[133,"HighlightGroup"],[150,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[133,{"contents":{"tnSpan":[133,133],"tnHighlights":[[133,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[134,{"contents":{"tnSpan":[134,134],"tnHighlights":[[134,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[135,{"contents":{"tnSpan":[135,135],"tnHighlights":[[135,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[136,{"contents":{"tnSpan":[135,142],"tnHighlights":[[135,"HighlightGroup"],[137,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[137,{"contents":{"tnSpan":[138,142],"tnHighlights":[[138,"HighlightLeaf"],[142,"HighlightLeaf"],[140,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[138,{"contents":{"tnSpan":[138,138],"tnHighlights":[[138,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[139,{"contents":{"tnSpan":[139,139],"tnHighlights":[[139,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[140,{"contents":{"tnSpan":[139,141],"tnHighlights":[[139,"HighlightGroup"],[141,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[141,{"contents":{"tnSpan":[141,141],"tnHighlights":[[141,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[142,{"contents":{"tnSpan":[142,142],"tnHighlights":[[142,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[143,{"contents":{"tnSpan":[135,149],"tnHighlights":[[136,"HighlightGroup"],[144,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[144,{"contents":{"tnSpan":[145,149],"tnHighlights":[[145,"HighlightLeaf"],[149,"HighlightLeaf"],[147,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[145,{"contents":{"tnSpan":[145,145],"tnHighlights":[[145,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[146,{"contents":{"tnSpan":[146,146],"tnHighlights":[[146,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[147,{"contents":{"tnSpan":[146,148],"tnHighlights":[[146,"HighlightGroup"],[148,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[148,{"contents":{"tnSpan":[148,148],"tnHighlights":[[148,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[149,{"contents":{"tnSpan":[149,149],"tnHighlights":[[149,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[150,{"contents":{"tnSpan":[135,151],"tnHighlights":[[143,"HighlightGroup"],[151,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[151,{"contents":{"tnSpan":[151,151],"tnHighlights":[[151,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[133,{"contents":{"tnuHighlights":[[133,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[135,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef linspace(n|Ix, low:Float, high:Float) -> n=>Float =\n dx = (high - low) / n_to_f (size n)\n for i:n. low + n_to_f (ordinal i) * dx\n"]},"tag":"Update"}],[139,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef Fin(n:Nat) -> Type = %Fin(n)\n"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[135,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((n:Type)[v#0:(Ix n)](low:Float32,high:Float32) -> (n => Float32))"]},"tag":"Update"}],[137,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[139,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((n:Nat) -> Type)"]},"tag":"Update"}],[141,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}],[144,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}],[150,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((Fin 300) => Float32)"]},"tag":"Update"}],[151,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["TypePass",null],"tag":"RenderedPassResult"},{"contents":["SimpPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["OptPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"}]],"tag":"Create"}],[15,{"contents":[{"rsbBlockId":15,"rsbHtml":"
ys=linspace(Fin200)(-1.0)1.0\n
","rsbLexemeList":[153,154,155,158,159,161,162,165,166,168,169,171],"rsbNumLines":1,"rsbLine":22,"rsbText":"ys = linspace (Fin 200) (-1.0) 1.0\n"},"Complete",[{"contents":[[153,153],[154,152],[155,155],[158,157],[159,159],[161,161],[162,157],[165,164],[166,166],[168,168],[169,164],[171,171]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[153,171],"tnHighlights":[[152,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[152,{"contents":{"tnSpan":[153,171],"tnHighlights":[[154,"HighlightLeaf"],[153,"HighlightGroup"],[170,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[153,{"contents":{"tnSpan":[153,153],"tnHighlights":[[153,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[154,{"contents":{"tnSpan":[154,154],"tnHighlights":[[154,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[155,{"contents":{"tnSpan":[155,155],"tnHighlights":[[155,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[156,{"contents":{"tnSpan":[155,162],"tnHighlights":[[155,"HighlightGroup"],[157,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[157,{"contents":{"tnSpan":[158,162],"tnHighlights":[[158,"HighlightLeaf"],[162,"HighlightLeaf"],[160,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[158,{"contents":{"tnSpan":[158,158],"tnHighlights":[[158,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[159,{"contents":{"tnSpan":[159,159],"tnHighlights":[[159,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[160,{"contents":{"tnSpan":[159,161],"tnHighlights":[[159,"HighlightGroup"],[161,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[161,{"contents":{"tnSpan":[161,161],"tnHighlights":[[161,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[162,{"contents":{"tnSpan":[162,162],"tnHighlights":[[162,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[163,{"contents":{"tnSpan":[155,169],"tnHighlights":[[156,"HighlightGroup"],[164,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[164,{"contents":{"tnSpan":[165,169],"tnHighlights":[[165,"HighlightLeaf"],[169,"HighlightLeaf"],[167,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[165,{"contents":{"tnSpan":[165,165],"tnHighlights":[[165,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[166,{"contents":{"tnSpan":[166,166],"tnHighlights":[[166,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[167,{"contents":{"tnSpan":[166,168],"tnHighlights":[[166,"HighlightGroup"],[168,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[168,{"contents":{"tnSpan":[168,168],"tnHighlights":[[168,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[169,{"contents":{"tnSpan":[169,169],"tnHighlights":[[169,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[170,{"contents":{"tnSpan":[155,171],"tnHighlights":[[163,"HighlightGroup"],[171,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[171,{"contents":{"tnSpan":[171,171],"tnHighlights":[[171,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[153,{"contents":{"tnuHighlights":[[153,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[155,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef linspace(n|Ix, low:Float, high:Float) -> n=>Float =\n dx = (high - low) / n_to_f (size n)\n for i:n. low + n_to_f (ordinal i) * dx\n"]},"tag":"Update"}],[159,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef Fin(n:Nat) -> Type = %Fin(n)\n"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[155,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((n:Type)[v#0:(Ix n)](low:Float32,high:Float32) -> (n => Float32))"]},"tag":"Update"}],[157,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[159,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((n:Nat) -> Type)"]},"tag":"Update"}],[161,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}],[164,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}],[170,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((Fin 200) => Float32)"]},"tag":"Update"}],[171,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["TypePass",null],"tag":"RenderedPassResult"},{"contents":["SimpPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["OptPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"}]],"tag":"Create"}],[16,{"contents":[{"rsbBlockId":16,"rsbHtml":"
","rsbLexemeList":[173,174,176,177,178,179,180,183,184,186,189,190,191,193,196,197,198,199],"rsbNumLines":1,"rsbLine":24,"rsbText":"escapeGrid = for j i. escapeTime (Complex xs[i] ys[j])\n"},"CompleteWithErrors",[{"contents":[[173,173],[174,172],[176,175],[177,177],[178,178],[179,175],[180,180],[183,182],[184,184],[186,186],[189,188],[190,190],[191,188],[193,193],[196,195],[197,197],[198,195],[199,182]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[173,199],"tnHighlights":[[172,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[172,{"contents":{"tnSpan":[173,199],"tnHighlights":[[174,"HighlightLeaf"],[173,"HighlightGroup"],[175,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[173,{"contents":{"tnSpan":[173,173],"tnHighlights":[[173,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[174,{"contents":{"tnSpan":[174,174],"tnHighlights":[[174,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[175,{"contents":{"tnSpan":[176,199],"tnHighlights":[[176,"HighlightLeaf"],[179,"HighlightLeaf"],[177,"HighlightGroup"],[178,"HighlightGroup"],[181,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[176,{"contents":{"tnSpan":[176,176],"tnHighlights":[[176,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[177,{"contents":{"tnSpan":[177,177],"tnHighlights":[[177,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[178,{"contents":{"tnSpan":[178,178],"tnHighlights":[[178,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[179,{"contents":{"tnSpan":[179,179],"tnHighlights":[[179,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[180,{"contents":{"tnSpan":[180,180],"tnHighlights":[[180,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[181,{"contents":{"tnSpan":[180,199],"tnHighlights":[[180,"HighlightGroup"],[182,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[182,{"contents":{"tnSpan":[183,199],"tnHighlights":[[183,"HighlightLeaf"],[199,"HighlightLeaf"],[192,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[183,{"contents":{"tnSpan":[183,183],"tnHighlights":[[183,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[184,{"contents":{"tnSpan":[184,184],"tnHighlights":[[184,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[185,{"contents":{"tnSpan":[184,191],"tnHighlights":[[184,"HighlightGroup"],[187,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[186,{"contents":{"tnSpan":[186,186],"tnHighlights":[[186,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[187,{"contents":{"tnSpan":[186,191],"tnHighlights":[[186,"HighlightGroup"],[188,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[188,{"contents":{"tnSpan":[189,191],"tnHighlights":[[189,"HighlightLeaf"],[191,"HighlightLeaf"],[190,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[189,{"contents":{"tnSpan":[189,189],"tnHighlights":[[189,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[190,{"contents":{"tnSpan":[190,190],"tnHighlights":[[190,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[191,{"contents":{"tnSpan":[191,191],"tnHighlights":[[191,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[192,{"contents":{"tnSpan":[184,198],"tnHighlights":[[185,"HighlightGroup"],[194,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[193,{"contents":{"tnSpan":[193,193],"tnHighlights":[[193,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[194,{"contents":{"tnSpan":[193,198],"tnHighlights":[[193,"HighlightGroup"],[195,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[195,{"contents":{"tnSpan":[196,198],"tnHighlights":[[196,"HighlightLeaf"],[198,"HighlightLeaf"],[197,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[196,{"contents":{"tnSpan":[196,196],"tnHighlights":[[196,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[197,{"contents":{"tnSpan":[197,197],"tnHighlights":[[197,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[198,{"contents":{"tnSpan":[198,198],"tnHighlights":[[198,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[199,{"contents":{"tnSpan":[199,199],"tnHighlights":[[199,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[177,{"contents":{"tnuHighlights":[[177,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[178,{"contents":{"tnuHighlights":[[178,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":[180,"Name error: error in (earlier) definition of variable: escapeTime"],"tag":"RenderedError"}]],"tag":"Create"}],[18,{"contents":[{"rsbBlockId":18,"rsbHtml":"
","rsbLexemeList":[200,201,204,205,207,208],"rsbNumLines":1,"rsbLine":26,"rsbText":":html matshow (-escapeGrid)\n"},"CompleteWithErrors",[{"contents":[[201,201],[204,203],[205,205],[207,207],[208,203]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[201,208],"tnHighlights":[[202,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[201,{"contents":{"tnSpan":[201,201],"tnHighlights":[[201,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[202,{"contents":{"tnSpan":[201,208],"tnHighlights":[[201,"HighlightGroup"],[203,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[203,{"contents":{"tnSpan":[204,208],"tnHighlights":[[204,"HighlightLeaf"],[208,"HighlightLeaf"],[206,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[204,{"contents":{"tnSpan":[204,204],"tnHighlights":[[204,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[205,{"contents":{"tnSpan":[205,205],"tnHighlights":[[205,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[206,{"contents":{"tnSpan":[205,207],"tnHighlights":[[205,"HighlightGroup"],[207,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[207,{"contents":{"tnSpan":[207,207],"tnHighlights":[[207,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[208,{"contents":{"tnSpan":[208,208],"tnHighlights":[[208,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[201,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in plot:\ndef matshow(img:n=>m=>Float) -> Html given (n|Ix, m|Ix) =\n low = minimum $ flatten2D(img)\n high = maximum $ flatten2D(img)\n range = high - low\n img_to_html $ make_png for i:n j:m.\n x = if range == 0.0\n then float_to_8bit $ 0.5\n else float_to_8bit $ (img[i,j] - low) / range\n [x, x, x]\n"]},"tag":"Update"}],[205,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef neg( v:a) -> a given (a|VSpace) = (-1.0) .* v\n"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":[207,"Name error: error in (earlier) definition of variable: escapeGrid"],"tag":"RenderedError"}]],"tag":"Create"}]]}
\ No newline at end of file
+{"orderedNodesUpdate":{"numDropped":0,"newTail":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]},"nodeMapUpdate":[[0,{"contents":[{"rsbBlockId":0,"rsbHtml":"
","rsbLexemeList":[],"rsbNumLines":1,"rsbLine":6,"rsbText":"# Escape time algorithm\n"},"Inert",[]],"tag":"Create"}],[6,{"contents":[{"rsbBlockId":6,"rsbHtml":"
","rsbLexemeList":[6,7,9,10,11,13,14,15,16,18,19,20,21,22,23,24,27,28,29,31,32],"rsbNumLines":1,"rsbLine":8,"rsbText":"def update(c:Complex, z:Complex) -> Complex = c + (z * z)\n"},"Complete",[{"contents":[[6,5],[7,7],[9,8],[10,10],[11,12],[13,13],[14,8],[15,15],[16,17],[18,18],[19,8],[20,5],[21,21],[22,5],[23,23],[24,24],[27,26],[28,28],[29,29],[31,31],[32,26]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[6,32],"tnHighlights":[[5,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[5,{"contents":{"tnSpan":[6,32],"tnHighlights":[[6,"HighlightLeaf"],[20,"HighlightLeaf"],[22,"HighlightLeaf"],[7,"HighlightGroup"],[8,"HighlightGroup"],[21,"HighlightGroup"],[25,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[6,{"contents":{"tnSpan":[6,6],"tnHighlights":[[6,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[7,{"contents":{"tnSpan":[7,7],"tnHighlights":[[7,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[8,{"contents":{"tnSpan":[9,19],"tnHighlights":[[9,"HighlightLeaf"],[14,"HighlightLeaf"],[19,"HighlightLeaf"],[12,"HighlightGroup"],[17,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[9,{"contents":{"tnSpan":[9,9],"tnHighlights":[[9,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[10,{"contents":{"tnSpan":[10,10],"tnHighlights":[[10,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[11,{"contents":{"tnSpan":[11,11],"tnHighlights":[[11,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[12,{"contents":{"tnSpan":[10,13],"tnHighlights":[[11,"HighlightLeaf"],[10,"HighlightGroup"],[13,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[13,{"contents":{"tnSpan":[13,13],"tnHighlights":[[13,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[14,{"contents":{"tnSpan":[14,14],"tnHighlights":[[14,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[15,{"contents":{"tnSpan":[15,15],"tnHighlights":[[15,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[16,{"contents":{"tnSpan":[16,16],"tnHighlights":[[16,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[17,{"contents":{"tnSpan":[15,18],"tnHighlights":[[16,"HighlightLeaf"],[15,"HighlightGroup"],[18,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[18,{"contents":{"tnSpan":[18,18],"tnHighlights":[[18,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[19,{"contents":{"tnSpan":[19,19],"tnHighlights":[[19,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[20,{"contents":{"tnSpan":[20,20],"tnHighlights":[[20,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[21,{"contents":{"tnSpan":[21,21],"tnHighlights":[[21,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[22,{"contents":{"tnSpan":[22,22],"tnHighlights":[[22,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[23,{"contents":{"tnSpan":[23,23],"tnHighlights":[[23,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[24,{"contents":{"tnSpan":[24,24],"tnHighlights":[[24,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[25,{"contents":{"tnSpan":[23,32],"tnHighlights":[[23,"HighlightGroup"],[24,"HighlightGroup"],[26,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[26,{"contents":{"tnSpan":[27,32],"tnHighlights":[[27,"HighlightLeaf"],[32,"HighlightLeaf"],[30,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[27,{"contents":{"tnSpan":[27,27],"tnHighlights":[[27,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[28,{"contents":{"tnSpan":[28,28],"tnHighlights":[[28,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[29,{"contents":{"tnSpan":[29,29],"tnHighlights":[[29,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[30,{"contents":{"tnSpan":[28,31],"tnHighlights":[[28,"HighlightGroup"],[29,"HighlightGroup"],[31,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[31,{"contents":{"tnSpan":[31,31],"tnHighlights":[[31,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[32,{"contents":{"tnSpan":[32,32],"tnHighlights":[[32,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[7,{"contents":{"tnuHighlights":[[7,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[10,{"contents":{"tnuHighlights":[[10,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[13,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in complex:\nstruct Complex =\n re: Float\n im: Float\n"]},"tag":"Update"}],[15,{"contents":{"tnuHighlights":[[15,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[18,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in complex:\nstruct Complex =\n re: Float\n im: Float\n"]},"tag":"Update"}],[21,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in complex:\nstruct Complex =\n re: Float\n im: Float\n"]},"tag":"Update"}],[23,{"contents":{"tnuHighlights":[[10,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[10,{"contents":{"tnuHighlights":[[23,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[24,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Add(a|Data)\n (+) : (a, a) -> a\n zero : a\n"]},"tag":"Update"}],[28,{"contents":{"tnuHighlights":[[15,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[15,{"contents":{"tnuHighlights":[[28,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[29,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Mul(a|Data)\n (*) : (a, a) -> a\n one : a\n"]},"tag":"Update"}],[31,{"contents":{"tnuHighlights":[[15,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[15,{"contents":{"tnuHighlights":[[31,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[5,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((c:Complex,z:Complex) -> Complex)"]},"tag":"Update"}],[10,{"contents":{"tnuHighlights":[],"tnuText":["Type: Complex"]},"tag":"Update"}],[13,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[15,{"contents":{"tnuHighlights":[],"tnuText":["Type: Complex"]},"tag":"Update"}],[18,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[21,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[23,{"contents":{"tnuHighlights":[],"tnuText":["Type: Complex"]},"tag":"Update"}],[24,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}[v#0:(Add a)](v#1:a,v#2:a) -> a)"]},"tag":"Update"}],[25,{"contents":{"tnuHighlights":[],"tnuText":["Type: Complex"]},"tag":"Update"}],[26,{"contents":{"tnuHighlights":[],"tnuText":["Type: Complex"]},"tag":"Update"}],[28,{"contents":{"tnuHighlights":[],"tnuText":["Type: Complex"]},"tag":"Update"}],[29,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}[v#0:(Mul a)](v#1:a,v#2:a) -> a)"]},"tag":"Update"}],[31,{"contents":{"tnuHighlights":[],"tnuText":["Type: Complex"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["TypePass",null],"tag":"RenderedPassResult"},{"contents":["SimpPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["OptPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"}]],"tag":"Create"}],[8,{"contents":[{"rsbBlockId":8,"rsbHtml":"
","rsbLexemeList":[38,39,41,42,43,45,46,47,48,49,50,53,54,55,56,58],"rsbNumLines":1,"rsbLine":11,"rsbText":"def inBounds(z:Complex) -> Bool = complex_abs(z) < tol\n"},"Complete",[{"contents":[[38,37],[39,39],[41,40],[42,42],[43,44],[45,45],[46,40],[47,37],[48,48],[49,37],[50,50],[53,52],[54,54],[55,52],[56,56],[58,58]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[38,58],"tnHighlights":[[37,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[37,{"contents":{"tnSpan":[38,58],"tnHighlights":[[38,"HighlightLeaf"],[47,"HighlightLeaf"],[49,"HighlightLeaf"],[39,"HighlightGroup"],[40,"HighlightGroup"],[48,"HighlightGroup"],[57,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[38,{"contents":{"tnSpan":[38,38],"tnHighlights":[[38,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[39,{"contents":{"tnSpan":[39,39],"tnHighlights":[[39,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[40,{"contents":{"tnSpan":[41,46],"tnHighlights":[[41,"HighlightLeaf"],[46,"HighlightLeaf"],[44,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[41,{"contents":{"tnSpan":[41,41],"tnHighlights":[[41,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[42,{"contents":{"tnSpan":[42,42],"tnHighlights":[[42,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[43,{"contents":{"tnSpan":[43,43],"tnHighlights":[[43,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[44,{"contents":{"tnSpan":[42,45],"tnHighlights":[[43,"HighlightLeaf"],[42,"HighlightGroup"],[45,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[45,{"contents":{"tnSpan":[45,45],"tnHighlights":[[45,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[46,{"contents":{"tnSpan":[46,46],"tnHighlights":[[46,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[47,{"contents":{"tnSpan":[47,47],"tnHighlights":[[47,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[48,{"contents":{"tnSpan":[48,48],"tnHighlights":[[48,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[49,{"contents":{"tnSpan":[49,49],"tnHighlights":[[49,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[50,{"contents":{"tnSpan":[50,50],"tnHighlights":[[50,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[51,{"contents":{"tnSpan":[50,55],"tnHighlights":[[50,"HighlightGroup"],[52,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[52,{"contents":{"tnSpan":[53,55],"tnHighlights":[[53,"HighlightLeaf"],[55,"HighlightLeaf"],[54,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[53,{"contents":{"tnSpan":[53,53],"tnHighlights":[[53,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[54,{"contents":{"tnSpan":[54,54],"tnHighlights":[[54,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[55,{"contents":{"tnSpan":[55,55],"tnHighlights":[[55,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[56,{"contents":{"tnSpan":[56,56],"tnHighlights":[[56,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[57,{"contents":{"tnSpan":[50,58],"tnHighlights":[[51,"HighlightGroup"],[56,"HighlightGroup"],[58,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[58,{"contents":{"tnSpan":[58,58],"tnHighlights":[[58,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[39,{"contents":{"tnuHighlights":[[39,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[42,{"contents":{"tnuHighlights":[[42,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[45,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in complex:\nstruct Complex =\n re: Float\n im: Float\n"]},"tag":"Update"}],[48,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nenum Bool =\n False\n True\n"]},"tag":"Update"}],[50,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in complex:\ndef complex_abs(x:Complex) -> Float = x.re * x.re + x.im * x.im\n"]},"tag":"Update"}],[54,{"contents":{"tnuHighlights":[[42,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[42,{"contents":{"tnuHighlights":[[54,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[56,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Ord(a|Eq)\n (>) : (a, a) -> Bool\n (<) : (a, a) -> Bool\n"]},"tag":"Update"}],[58,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in main:\ntol = 2.0\n"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[37,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((z:Complex) -> Bool)"]},"tag":"Update"}],[42,{"contents":{"tnuHighlights":[],"tnuText":["Type: Complex"]},"tag":"Update"}],[45,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[48,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[50,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((x:Complex) -> Float32)"]},"tag":"Update"}],[51,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}],[54,{"contents":{"tnuHighlights":[],"tnuText":["Type: Complex"]},"tag":"Update"}],[56,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}[v#0:(Ord a)](v#1:a,v#2:a) -> Bool)"]},"tag":"Update"}],[57,{"contents":{"tnuHighlights":[],"tnuText":["Type: Bool"]},"tag":"Update"}],[58,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["TypePass",null],"tag":"RenderedPassResult"},{"contents":["SimpPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["OptPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"}]],"tag":"Create"}],[11,{"contents":[{"rsbBlockId":11,"rsbHtml":"
","rsbLexemeList":[60,61,63,64,65,67,68,69,70,71,74,75,76,79,80,81,83,84,86,89,90,91,92,93,96,97,98,102,103,106,107,110,111,112,113,114,115,116,117,120,121,122,123,124,127,128,130,133,134,135,136,139,140,141,142,144],"rsbNumLines":8,"rsbLine":13,"rsbText":"def escapeTime(c:Complex) -> Nat =\n z <- with_state(zero :: Complex)\n bounded_iter(1000, 1000) \\i.\n case inBounds(get(z)) of\n False -> Done(i)\n True ->\n z := update(c, get(z))\n Continue\n"},"Complete",[{"contents":[[60,59],[61,61],[63,62],[64,64],[65,66],[67,67],[68,62],[69,59],[70,70],[71,59],[74,74],[75,73],[76,76],[79,78],[80,80],[81,82],[83,83],[84,78],[86,86],[89,88],[90,90],[91,88],[92,92],[93,88],[96,95],[97,97],[98,95],[102,101],[103,103],[106,105],[107,107],[110,109],[111,111],[112,109],[113,105],[114,101],[115,115],[116,101],[117,117],[120,119],[121,121],[122,119],[123,123],[124,101],[127,127],[128,128],[130,130],[133,132],[134,134],[135,132],[136,136],[139,138],[140,140],[141,138],[142,132],[144,144]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[60,144],"tnHighlights":[[59,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[59,{"contents":{"tnSpan":[60,144],"tnHighlights":[[60,"HighlightLeaf"],[69,"HighlightLeaf"],[71,"HighlightLeaf"],[61,"HighlightGroup"],[62,"HighlightGroup"],[70,"HighlightGroup"],[72,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[60,{"contents":{"tnSpan":[60,60],"tnHighlights":[[60,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[61,{"contents":{"tnSpan":[61,61],"tnHighlights":[[61,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[62,{"contents":{"tnSpan":[63,68],"tnHighlights":[[63,"HighlightLeaf"],[68,"HighlightLeaf"],[66,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[63,{"contents":{"tnSpan":[63,63],"tnHighlights":[[63,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[64,{"contents":{"tnSpan":[64,64],"tnHighlights":[[64,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[65,{"contents":{"tnSpan":[65,65],"tnHighlights":[[65,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[66,{"contents":{"tnSpan":[64,67],"tnHighlights":[[65,"HighlightLeaf"],[64,"HighlightGroup"],[67,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[67,{"contents":{"tnSpan":[67,67],"tnHighlights":[[67,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[68,{"contents":{"tnSpan":[68,68],"tnHighlights":[[68,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[69,{"contents":{"tnSpan":[69,69],"tnHighlights":[[69,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[70,{"contents":{"tnSpan":[70,70],"tnHighlights":[[70,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[71,{"contents":{"tnSpan":[71,71],"tnHighlights":[[71,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[72,{"contents":{"tnSpan":[74,144],"tnHighlights":[[73,"HighlightGroup"],[85,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[73,{"contents":{"tnSpan":[74,84],"tnHighlights":[[75,"HighlightLeaf"],[74,"HighlightGroup"],[77,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[74,{"contents":{"tnSpan":[74,74],"tnHighlights":[[74,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[75,{"contents":{"tnSpan":[75,75],"tnHighlights":[[75,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[76,{"contents":{"tnSpan":[76,76],"tnHighlights":[[76,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[77,{"contents":{"tnSpan":[76,84],"tnHighlights":[[76,"HighlightGroup"],[78,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[78,{"contents":{"tnSpan":[79,84],"tnHighlights":[[79,"HighlightLeaf"],[84,"HighlightLeaf"],[82,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[79,{"contents":{"tnSpan":[79,79],"tnHighlights":[[79,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[80,{"contents":{"tnSpan":[80,80],"tnHighlights":[[80,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[81,{"contents":{"tnSpan":[81,81],"tnHighlights":[[81,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[82,{"contents":{"tnSpan":[80,83],"tnHighlights":[[81,"HighlightLeaf"],[80,"HighlightGroup"],[83,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[83,{"contents":{"tnSpan":[83,83],"tnHighlights":[[83,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[84,{"contents":{"tnSpan":[84,84],"tnHighlights":[[84,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[85,{"contents":{"tnSpan":[86,144],"tnHighlights":[[94,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[86,{"contents":{"tnSpan":[86,86],"tnHighlights":[[86,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[87,{"contents":{"tnSpan":[86,93],"tnHighlights":[[86,"HighlightGroup"],[88,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[88,{"contents":{"tnSpan":[89,93],"tnHighlights":[[89,"HighlightLeaf"],[91,"HighlightLeaf"],[93,"HighlightLeaf"],[90,"HighlightGroup"],[92,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[89,{"contents":{"tnSpan":[89,89],"tnHighlights":[[89,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[90,{"contents":{"tnSpan":[90,90],"tnHighlights":[[90,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[91,{"contents":{"tnSpan":[91,91],"tnHighlights":[[91,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[92,{"contents":{"tnSpan":[92,92],"tnHighlights":[[92,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[93,{"contents":{"tnSpan":[93,93],"tnHighlights":[[93,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[94,{"contents":{"tnSpan":[86,144],"tnHighlights":[[87,"HighlightGroup"],[95,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[95,{"contents":{"tnSpan":[96,144],"tnHighlights":[[96,"HighlightLeaf"],[98,"HighlightLeaf"],[97,"HighlightGroup"],[99,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[96,{"contents":{"tnSpan":[96,96],"tnHighlights":[[96,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[97,{"contents":{"tnSpan":[97,97],"tnHighlights":[[97,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[98,{"contents":{"tnSpan":[98,98],"tnHighlights":[[98,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[99,{"contents":{"tnSpan":[102,144],"tnHighlights":[[100,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[100,{"contents":{"tnSpan":[102,144],"tnHighlights":[[101,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[101,{"contents":{"tnSpan":[102,144],"tnHighlights":[[102,"HighlightLeaf"],[114,"HighlightLeaf"],[116,"HighlightLeaf"],[124,"HighlightLeaf"],[104,"HighlightGroup"],[115,"HighlightGroup"],[118,"HighlightGroup"],[123,"HighlightGroup"],[125,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[102,{"contents":{"tnSpan":[102,102],"tnHighlights":[[102,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[103,{"contents":{"tnSpan":[103,103],"tnHighlights":[[103,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[104,{"contents":{"tnSpan":[103,113],"tnHighlights":[[103,"HighlightGroup"],[105,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[105,{"contents":{"tnSpan":[106,113],"tnHighlights":[[106,"HighlightLeaf"],[113,"HighlightLeaf"],[108,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[106,{"contents":{"tnSpan":[106,106],"tnHighlights":[[106,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[107,{"contents":{"tnSpan":[107,107],"tnHighlights":[[107,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[108,{"contents":{"tnSpan":[107,112],"tnHighlights":[[107,"HighlightGroup"],[109,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[109,{"contents":{"tnSpan":[110,112],"tnHighlights":[[110,"HighlightLeaf"],[112,"HighlightLeaf"],[111,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[110,{"contents":{"tnSpan":[110,110],"tnHighlights":[[110,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[111,{"contents":{"tnSpan":[111,111],"tnHighlights":[[111,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[112,{"contents":{"tnSpan":[112,112],"tnHighlights":[[112,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[113,{"contents":{"tnSpan":[113,113],"tnHighlights":[[113,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[114,{"contents":{"tnSpan":[114,114],"tnHighlights":[[114,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[115,{"contents":{"tnSpan":[115,115],"tnHighlights":[[115,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[116,{"contents":{"tnSpan":[116,116],"tnHighlights":[[116,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[117,{"contents":{"tnSpan":[117,117],"tnHighlights":[[117,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[118,{"contents":{"tnSpan":[117,122],"tnHighlights":[[117,"HighlightGroup"],[119,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[119,{"contents":{"tnSpan":[120,122],"tnHighlights":[[120,"HighlightLeaf"],[122,"HighlightLeaf"],[121,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[120,{"contents":{"tnSpan":[120,120],"tnHighlights":[[120,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[121,{"contents":{"tnSpan":[121,121],"tnHighlights":[[121,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[122,{"contents":{"tnSpan":[122,122],"tnHighlights":[[122,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[123,{"contents":{"tnSpan":[123,123],"tnHighlights":[[123,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[124,{"contents":{"tnSpan":[124,124],"tnHighlights":[[124,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[125,{"contents":{"tnSpan":[127,144],"tnHighlights":[[126,"HighlightGroup"],[143,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[126,{"contents":{"tnSpan":[127,142],"tnHighlights":[[129,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[127,{"contents":{"tnSpan":[127,127],"tnHighlights":[[127,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[128,{"contents":{"tnSpan":[128,128],"tnHighlights":[[128,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[129,{"contents":{"tnSpan":[127,142],"tnHighlights":[[127,"HighlightGroup"],[128,"HighlightGroup"],[131,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[130,{"contents":{"tnSpan":[130,130],"tnHighlights":[[130,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[131,{"contents":{"tnSpan":[130,142],"tnHighlights":[[130,"HighlightGroup"],[132,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[132,{"contents":{"tnSpan":[133,142],"tnHighlights":[[133,"HighlightLeaf"],[135,"HighlightLeaf"],[142,"HighlightLeaf"],[134,"HighlightGroup"],[137,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[133,{"contents":{"tnSpan":[133,133],"tnHighlights":[[133,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[134,{"contents":{"tnSpan":[134,134],"tnHighlights":[[134,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[135,{"contents":{"tnSpan":[135,135],"tnHighlights":[[135,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[136,{"contents":{"tnSpan":[136,136],"tnHighlights":[[136,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[137,{"contents":{"tnSpan":[136,141],"tnHighlights":[[136,"HighlightGroup"],[138,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[138,{"contents":{"tnSpan":[139,141],"tnHighlights":[[139,"HighlightLeaf"],[141,"HighlightLeaf"],[140,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[139,{"contents":{"tnSpan":[139,139],"tnHighlights":[[139,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[140,{"contents":{"tnSpan":[140,140],"tnHighlights":[[140,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[141,{"contents":{"tnSpan":[141,141],"tnHighlights":[[141,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[142,{"contents":{"tnSpan":[142,142],"tnHighlights":[[142,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[143,{"contents":{"tnSpan":[144,144],"tnHighlights":[[144,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[144,{"contents":{"tnSpan":[144,144],"tnHighlights":[[144,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[61,{"contents":{"tnuHighlights":[[61,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[64,{"contents":{"tnuHighlights":[[64,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[67,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in complex:\nstruct Complex =\n re: Float\n im: Float\n"]},"tag":"Update"}],[70,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nNat = %Nat()\n"]},"tag":"Update"}],[74,{"contents":{"tnuHighlights":[[74,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[76,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef with_state(\n init:s,\n action: (given (h:Heap), Ref h s) -> {State h |eff} a\n ) -> {|eff} a given (a:Type, s|Data, eff:Effects) =\n fst $ run_state(init, action)\n"]},"tag":"Update"}],[80,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Add(a|Data)\n (+) : (a, a) -> a\n zero : a\n"]},"tag":"Update"}],[83,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in complex:\nstruct Complex =\n re: Float\n im: Float\n"]},"tag":"Update"}],[86,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef bounded_iter(\n maxIters:Nat,\n fallback:a,\n body:(Nat) -> {|eff} IterResult a\n ) -> {|eff} a given (a|Data, eff:Effects) = iter \\i.\n if i >= maxIters\n then Done fallback\n else body i\n"]},"tag":"Update"}],[97,{"contents":{"tnuHighlights":[[97,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[103,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in main:\ndef inBounds(z:Complex) -> Bool = complex_abs(z) < tol\n"]},"tag":"Update"}],[107,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef get(ref:Ref h s) -> {State h} s given (h:Heap, s|Data) = %get(ref)\n"]},"tag":"Update"}],[111,{"contents":{"tnuHighlights":[[74,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[74,{"contents":{"tnuHighlights":[[111,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[115,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nenum Bool =\n False\n True\n"]},"tag":"Update"}],[117,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nenum IterResult(a|Data) =\n Continue\n Done(a)\n"]},"tag":"Update"}],[121,{"contents":{"tnuHighlights":[[97,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[97,{"contents":{"tnuHighlights":[[121,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[123,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nenum Bool =\n False\n True\n"]},"tag":"Update"}],[127,{"contents":{"tnuHighlights":[[74,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[74,{"contents":{"tnuHighlights":[[127,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[128,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef (:=)(ref:Ref h s, x:s) -> {State h} () given (h:Heap, s|Data) = %put(ref, x)\n"]},"tag":"Update"}],[130,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in main:\ndef update(c:Complex, z:Complex) -> Complex = c + (z * z)\n"]},"tag":"Update"}],[134,{"contents":{"tnuHighlights":[[64,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[64,{"contents":{"tnuHighlights":[[134,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[136,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef get(ref:Ref h s) -> {State h} s given (h:Heap, s|Data) = %get(ref)\n"]},"tag":"Update"}],[140,{"contents":{"tnuHighlights":[[74,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[74,{"contents":{"tnuHighlights":[[140,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[144,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nenum IterResult(a|Data) =\n Continue\n Done(a)\n"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[59,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((c:Complex) -> Nat)"]},"tag":"Update"}],[64,{"contents":{"tnuHighlights":[],"tnuText":["Type: Complex"]},"tag":"Update"}],[67,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[70,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[73,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}],[74,{"contents":{"tnuHighlights":[],"tnuText":["Type: (Ref h Complex)"]},"tag":"Update"}],[76,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}{s:Type}[v#0:(Data s)]{eff:EffKind}(init:s,action:({h:Heap}(v#1:(Ref\n h s)) -> {State h|eff} a)) -> {|eff} a)"]},"tag":"Update"}],[80,{"contents":{"tnuHighlights":[],"tnuText":["Type: Complex"]},"tag":"Update"}],[82,{"contents":{"tnuHighlights":[],"tnuText":["Type: Complex"]},"tag":"Update"}],[83,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[86,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}[v#0:(Data a)]{eff:EffKind}(maxIter:Nat,fallbac:a,body:((v#1:Nat) -> {|eff} (IterResult\n a))) -> {|eff} a)"]},"tag":"Update"}],[90,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}],[92,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}],[94,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}],[97,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}],[101,{"contents":{"tnuHighlights":[],"tnuText":["Type: (IterResult Nat)"]},"tag":"Update"}],[103,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((z:Complex) -> Bool)"]},"tag":"Update"}],[104,{"contents":{"tnuHighlights":[],"tnuText":["Type: Bool"]},"tag":"Update"}],[107,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({h:Heap}{s:Type}[v#0:(Data s)](ref:(Ref h s)) -> {State h} s)"]},"tag":"Update"}],[108,{"contents":{"tnuHighlights":[],"tnuText":["Type: Complex"]},"tag":"Update"}],[111,{"contents":{"tnuHighlights":[],"tnuText":["Type: (Ref h Complex)"]},"tag":"Update"}],[117,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}[v#6:(Data a)](v#7:a) -> (IterResult a))"]},"tag":"Update"}],[118,{"contents":{"tnuHighlights":[],"tnuText":["Type: (IterResult Nat)"]},"tag":"Update"}],[121,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}],[127,{"contents":{"tnuHighlights":[],"tnuText":["Type: (Ref h Complex)"]},"tag":"Update"}],[128,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({h:Heap}{s:Type}[v#0:(Data s)](ref:(Ref h s),x:s) -> {State h} ())"]},"tag":"Update"}],[129,{"contents":{"tnuHighlights":[],"tnuText":["Type: ()"]},"tag":"Update"}],[130,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((c:Complex,z:Complex) -> Complex)"]},"tag":"Update"}],[131,{"contents":{"tnuHighlights":[],"tnuText":["Type: Complex"]},"tag":"Update"}],[134,{"contents":{"tnuHighlights":[],"tnuText":["Type: Complex"]},"tag":"Update"}],[136,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({h:Heap}{s:Type}[v#0:(Data s)](ref:(Ref h s)) -> {State h} s)"]},"tag":"Update"}],[137,{"contents":{"tnuHighlights":[],"tnuText":["Type: Complex"]},"tag":"Update"}],[140,{"contents":{"tnuHighlights":[],"tnuText":["Type: (Ref h Complex)"]},"tag":"Update"}],[144,{"contents":{"tnuHighlights":[],"tnuText":["Type: (IterResult Nat)"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["TypePass",null],"tag":"RenderedPassResult"},{"contents":["SimpPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["OptPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"}]],"tag":"Create"}],[13,{"contents":[{"rsbBlockId":13,"rsbHtml":"
","rsbLexemeList":[],"rsbNumLines":1,"rsbLine":22,"rsbText":"# Evaluate on a grid and plot the results\n"},"Inert",[]],"tag":"Create"}],[15,{"contents":[{"rsbBlockId":15,"rsbHtml":"
","rsbLexemeList":[219,220,223,224,226,227],"rsbNumLines":1,"rsbLine":29,"rsbText":":html matshow(-escapeGrid)\n"},"Complete",[{"contents":[[220,220],[223,222],[224,224],[226,226],[227,222]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[220,227],"tnHighlights":[[221,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[220,{"contents":{"tnSpan":[220,220],"tnHighlights":[[220,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[221,{"contents":{"tnSpan":[220,227],"tnHighlights":[[220,"HighlightGroup"],[222,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[222,{"contents":{"tnSpan":[223,227],"tnHighlights":[[223,"HighlightLeaf"],[227,"HighlightLeaf"],[225,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[223,{"contents":{"tnSpan":[223,223],"tnHighlights":[[223,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[224,{"contents":{"tnSpan":[224,224],"tnHighlights":[[224,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[225,{"contents":{"tnSpan":[224,226],"tnHighlights":[[224,"HighlightGroup"],[226,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[226,{"contents":{"tnSpan":[226,226],"tnHighlights":[[226,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[227,{"contents":{"tnSpan":[227,227],"tnHighlights":[[227,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[220,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in plot:\ndef matshow(img:n=>m=>Float) -> Html given (n|Ix, m|Ix) =\n low = minimum $ flatten2D(img)\n high = maximum $ flatten2D(img)\n range = high - low\n img_to_html $ make_png for i:n j:m.\n x = if range == 0.0\n then float_to_8bit $ 0.5\n else float_to_8bit $ (img[i,j] - low) / range\n [x, x, x]\n"]},"tag":"Update"}],[221,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nString : Type = List Char\n"]},"tag":"Update"}],[224,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef neg( v:a) -> a given (a|VSpace) = (-1.0) .* v\n"]},"tag":"Update"}],[226,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in main:\nescapeGrid = each(ys) \\y. each xs \\x. n_to_f(escapeTime(Complex(x, y)))\n"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[220,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({n:Type}[v#0:(Ix n)]{m:Type}[v#1:(Ix m)](img:(n => m => Float32)) -> (List\n Word8))"]},"tag":"Update"}],[221,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[224,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}[v#0:(VSpace a)](v:a) -> a)"]},"tag":"Update"}],[225,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((Fin 200) => (Fin 300) => Float32)"]},"tag":"Update"}],[226,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((Fin 200) => (Fin 300) => Float32)"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["TypePass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["SimpPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["OptPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"},{"contents":"","tag":"RenderedHtmlOut"}]],"tag":"Create"}]]}
\ No newline at end of file
diff --git a/examples/mcmc.json b/examples/mcmc.json
index 0d2492a81..b04b01c42 100644
--- a/examples/mcmc.json
+++ b/examples/mcmc.json
@@ -1 +1 @@
-{"orderedNodesUpdate":{"numDropped":0,"newTail":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46]},"nodeMapUpdate":[[0,{"contents":[{"rsbBlockId":0,"rsbHtml":"
","rsbLexemeList":[],"rsbNumLines":2,"rsbLine":1,"rsbText":"'# Markov Chain Monte Carlo\n\n"},"Inert",[]],"tag":"Create"}],[2,{"contents":[{"rsbBlockId":2,"rsbHtml":"
General MCMC utilities
\n
","rsbLexemeList":[],"rsbNumLines":2,"rsbLine":3,"rsbText":"'## General MCMC utilities\n\n"},"Inert",[]],"tag":"Create"}],[3,{"contents":[{"rsbBlockId":3,"rsbHtml":"
","rsbLexemeList":[4,5,7,8,9],"rsbNumLines":1,"rsbLine":7,"rsbText":"LogProb : Type = Float\n"},"Complete",[{"contents":[[4,4],[5,6],[7,7],[8,3],[9,9]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[4,9],"tnHighlights":[[3,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[3,{"contents":{"tnSpan":[4,9],"tnHighlights":[[8,"HighlightLeaf"],[6,"HighlightGroup"],[9,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[4,{"contents":{"tnSpan":[4,4],"tnHighlights":[[4,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[5,{"contents":{"tnSpan":[5,5],"tnHighlights":[[5,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[6,{"contents":{"tnSpan":[4,7],"tnHighlights":[[5,"HighlightLeaf"],[4,"HighlightGroup"],[7,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[7,{"contents":{"tnSpan":[7,7],"tnHighlights":[[7,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[8,{"contents":{"tnSpan":[8,8],"tnHighlights":[[8,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[9,{"contents":{"tnSpan":[9,9],"tnHighlights":[[9,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[4,{"contents":{"tnuHighlights":[[4,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[7,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nType = %TyKind()\n"]},"tag":"Update"}],[9,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nFloat = Float32\n"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[7,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[9,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["TypePass",null],"tag":"RenderedPassResult"},{"contents":["SimpPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["OptPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"}]],"tag":"Create"}],[6,{"contents":[{"rsbBlockId":6,"rsbHtml":"
","rsbLexemeList":[11,12,14,15,16,19,20,21,22,24,25,26,27,30,31,32,33,34,35,37,38,39,40,42,43,44,45,47,48,49,50,52,53,55,56,58,59,60,62,63,64,68,69,70,71,72,73,74,76,78,81,82,84,85,88,89,90,94,95,96,99,100,102,103,104,107,108,109,112,113,115,117,118,121,122,124,125,127,128,130,132],"rsbNumLines":12,"rsbLine":9,"rsbText":"def runChain(\n initialize: (Key) -> a,\n step: (Key, a) -> a,\n numSamples: Nat,\n k:Key\n ) -> Fin numSamples => a given (a|Data) =\n [k1, k2] = split_key k\n with_state (initialize k1) \\s.\n for i:(Fin numSamples).\n x = step (ixkey k2 i) (get s)\n s := x\n x\n"},"CompleteWithErrors",[{"contents":[[11,10],[12,12],[14,13],[15,15],[16,17],[19,18],[20,20],[21,18],[22,23],[24,24],[25,13],[26,26],[27,28],[30,29],[31,31],[32,29],[33,33],[34,29],[35,36],[37,37],[38,13],[39,39],[40,41],[42,42],[43,13],[44,44],[45,46],[47,47],[48,13],[49,10],[50,50],[52,52],[53,54],[55,55],[56,10],[58,57],[59,59],[60,61],[62,62],[63,57],[64,10],[68,67],[69,69],[70,67],[71,71],[72,67],[73,66],[74,74],[76,76],[78,78],[81,80],[82,82],[84,84],[85,80],[88,87],[89,89],[90,87],[94,93],[95,95],[96,97],[99,98],[100,100],[102,102],[103,98],[104,93],[107,107],[108,106],[109,109],[112,111],[113,113],[115,115],[117,117],[118,111],[121,120],[122,122],[124,124],[125,120],[127,127],[128,128],[130,130],[132,132]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[11,132],"tnHighlights":[[10,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[10,{"contents":{"tnSpan":[11,132],"tnHighlights":[[11,"HighlightLeaf"],[49,"HighlightLeaf"],[56,"HighlightLeaf"],[64,"HighlightLeaf"],[12,"HighlightGroup"],[13,"HighlightGroup"],[54,"HighlightGroup"],[57,"HighlightGroup"],[65,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[11,{"contents":{"tnSpan":[11,11],"tnHighlights":[[11,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[12,{"contents":{"tnSpan":[12,12],"tnHighlights":[[12,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[13,{"contents":{"tnSpan":[14,48],"tnHighlights":[[14,"HighlightLeaf"],[25,"HighlightLeaf"],[38,"HighlightLeaf"],[43,"HighlightLeaf"],[48,"HighlightLeaf"],[17,"HighlightGroup"],[28,"HighlightGroup"],[41,"HighlightGroup"],[46,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[14,{"contents":{"tnSpan":[14,14],"tnHighlights":[[14,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[15,{"contents":{"tnSpan":[15,15],"tnHighlights":[[15,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[16,{"contents":{"tnSpan":[16,16],"tnHighlights":[[16,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[17,{"contents":{"tnSpan":[15,24],"tnHighlights":[[16,"HighlightLeaf"],[15,"HighlightGroup"],[23,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[18,{"contents":{"tnSpan":[19,21],"tnHighlights":[[19,"HighlightLeaf"],[21,"HighlightLeaf"],[20,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[19,{"contents":{"tnSpan":[19,19],"tnHighlights":[[19,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[20,{"contents":{"tnSpan":[20,20],"tnHighlights":[[20,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[21,{"contents":{"tnSpan":[21,21],"tnHighlights":[[21,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[22,{"contents":{"tnSpan":[22,22],"tnHighlights":[[22,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[23,{"contents":{"tnSpan":[19,24],"tnHighlights":[[22,"HighlightLeaf"],[18,"HighlightGroup"],[24,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[24,{"contents":{"tnSpan":[24,24],"tnHighlights":[[24,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[25,{"contents":{"tnSpan":[25,25],"tnHighlights":[[25,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[26,{"contents":{"tnSpan":[26,26],"tnHighlights":[[26,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[27,{"contents":{"tnSpan":[27,27],"tnHighlights":[[27,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[28,{"contents":{"tnSpan":[26,37],"tnHighlights":[[27,"HighlightLeaf"],[26,"HighlightGroup"],[36,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[29,{"contents":{"tnSpan":[30,34],"tnHighlights":[[30,"HighlightLeaf"],[32,"HighlightLeaf"],[34,"HighlightLeaf"],[31,"HighlightGroup"],[33,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[30,{"contents":{"tnSpan":[30,30],"tnHighlights":[[30,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[31,{"contents":{"tnSpan":[31,31],"tnHighlights":[[31,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[32,{"contents":{"tnSpan":[32,32],"tnHighlights":[[32,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[33,{"contents":{"tnSpan":[33,33],"tnHighlights":[[33,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[34,{"contents":{"tnSpan":[34,34],"tnHighlights":[[34,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[35,{"contents":{"tnSpan":[35,35],"tnHighlights":[[35,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[36,{"contents":{"tnSpan":[30,37],"tnHighlights":[[35,"HighlightLeaf"],[29,"HighlightGroup"],[37,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[37,{"contents":{"tnSpan":[37,37],"tnHighlights":[[37,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[38,{"contents":{"tnSpan":[38,38],"tnHighlights":[[38,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[39,{"contents":{"tnSpan":[39,39],"tnHighlights":[[39,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[40,{"contents":{"tnSpan":[40,40],"tnHighlights":[[40,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[41,{"contents":{"tnSpan":[39,42],"tnHighlights":[[40,"HighlightLeaf"],[39,"HighlightGroup"],[42,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[42,{"contents":{"tnSpan":[42,42],"tnHighlights":[[42,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[43,{"contents":{"tnSpan":[43,43],"tnHighlights":[[43,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[44,{"contents":{"tnSpan":[44,44],"tnHighlights":[[44,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[45,{"contents":{"tnSpan":[45,45],"tnHighlights":[[45,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[46,{"contents":{"tnSpan":[44,47],"tnHighlights":[[45,"HighlightLeaf"],[44,"HighlightGroup"],[47,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[47,{"contents":{"tnSpan":[47,47],"tnHighlights":[[47,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[48,{"contents":{"tnSpan":[48,48],"tnHighlights":[[48,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[49,{"contents":{"tnSpan":[49,49],"tnHighlights":[[49,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[50,{"contents":{"tnSpan":[50,50],"tnHighlights":[[50,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[51,{"contents":{"tnSpan":[50,52],"tnHighlights":[[50,"HighlightGroup"],[52,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[52,{"contents":{"tnSpan":[52,52],"tnHighlights":[[52,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[53,{"contents":{"tnSpan":[53,53],"tnHighlights":[[53,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[54,{"contents":{"tnSpan":[50,55],"tnHighlights":[[53,"HighlightLeaf"],[51,"HighlightGroup"],[55,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[55,{"contents":{"tnSpan":[55,55],"tnHighlights":[[55,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[56,{"contents":{"tnSpan":[56,56],"tnHighlights":[[56,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[57,{"contents":{"tnSpan":[58,63],"tnHighlights":[[58,"HighlightLeaf"],[63,"HighlightLeaf"],[61,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[58,{"contents":{"tnSpan":[58,58],"tnHighlights":[[58,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[59,{"contents":{"tnSpan":[59,59],"tnHighlights":[[59,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[60,{"contents":{"tnSpan":[60,60],"tnHighlights":[[60,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[61,{"contents":{"tnSpan":[59,62],"tnHighlights":[[60,"HighlightLeaf"],[59,"HighlightGroup"],[62,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[62,{"contents":{"tnSpan":[62,62],"tnHighlights":[[62,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[63,{"contents":{"tnSpan":[63,63],"tnHighlights":[[63,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[64,{"contents":{"tnSpan":[64,64],"tnHighlights":[[64,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[65,{"contents":{"tnSpan":[68,132],"tnHighlights":[[66,"HighlightGroup"],[77,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[66,{"contents":{"tnSpan":[68,76],"tnHighlights":[[73,"HighlightLeaf"],[67,"HighlightGroup"],[75,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[67,{"contents":{"tnSpan":[68,72],"tnHighlights":[[68,"HighlightLeaf"],[70,"HighlightLeaf"],[72,"HighlightLeaf"],[69,"HighlightGroup"],[71,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[68,{"contents":{"tnSpan":[68,68],"tnHighlights":[[68,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[69,{"contents":{"tnSpan":[69,69],"tnHighlights":[[69,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[70,{"contents":{"tnSpan":[70,70],"tnHighlights":[[70,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[71,{"contents":{"tnSpan":[71,71],"tnHighlights":[[71,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[72,{"contents":{"tnSpan":[72,72],"tnHighlights":[[72,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[73,{"contents":{"tnSpan":[73,73],"tnHighlights":[[73,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[74,{"contents":{"tnSpan":[74,74],"tnHighlights":[[74,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[75,{"contents":{"tnSpan":[74,76],"tnHighlights":[[74,"HighlightGroup"],[76,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[76,{"contents":{"tnSpan":[76,76],"tnHighlights":[[76,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[77,{"contents":{"tnSpan":[78,132],"tnHighlights":[[86,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[78,{"contents":{"tnSpan":[78,78],"tnHighlights":[[78,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[79,{"contents":{"tnSpan":[78,85],"tnHighlights":[[78,"HighlightGroup"],[80,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[80,{"contents":{"tnSpan":[81,85],"tnHighlights":[[81,"HighlightLeaf"],[85,"HighlightLeaf"],[83,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[81,{"contents":{"tnSpan":[81,81],"tnHighlights":[[81,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[82,{"contents":{"tnSpan":[82,82],"tnHighlights":[[82,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[83,{"contents":{"tnSpan":[82,84],"tnHighlights":[[82,"HighlightGroup"],[84,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[84,{"contents":{"tnSpan":[84,84],"tnHighlights":[[84,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[85,{"contents":{"tnSpan":[85,85],"tnHighlights":[[85,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[86,{"contents":{"tnSpan":[78,132],"tnHighlights":[[79,"HighlightGroup"],[87,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[87,{"contents":{"tnSpan":[88,132],"tnHighlights":[[88,"HighlightLeaf"],[90,"HighlightLeaf"],[89,"HighlightGroup"],[91,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[88,{"contents":{"tnSpan":[88,88],"tnHighlights":[[88,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[89,{"contents":{"tnSpan":[89,89],"tnHighlights":[[89,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[90,{"contents":{"tnSpan":[90,90],"tnHighlights":[[90,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[91,{"contents":{"tnSpan":[94,132],"tnHighlights":[[92,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[92,{"contents":{"tnSpan":[94,132],"tnHighlights":[[93,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[93,{"contents":{"tnSpan":[94,132],"tnHighlights":[[94,"HighlightLeaf"],[104,"HighlightLeaf"],[97,"HighlightGroup"],[105,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[94,{"contents":{"tnSpan":[94,94],"tnHighlights":[[94,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[95,{"contents":{"tnSpan":[95,95],"tnHighlights":[[95,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[96,{"contents":{"tnSpan":[96,96],"tnHighlights":[[96,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[97,{"contents":{"tnSpan":[95,103],"tnHighlights":[[96,"HighlightLeaf"],[95,"HighlightGroup"],[98,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[98,{"contents":{"tnSpan":[99,103],"tnHighlights":[[99,"HighlightLeaf"],[103,"HighlightLeaf"],[101,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[99,{"contents":{"tnSpan":[99,99],"tnHighlights":[[99,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[100,{"contents":{"tnSpan":[100,100],"tnHighlights":[[100,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[101,{"contents":{"tnSpan":[100,102],"tnHighlights":[[100,"HighlightGroup"],[102,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[102,{"contents":{"tnSpan":[102,102],"tnHighlights":[[102,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[103,{"contents":{"tnSpan":[103,103],"tnHighlights":[[103,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[104,{"contents":{"tnSpan":[104,104],"tnHighlights":[[104,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[105,{"contents":{"tnSpan":[107,132],"tnHighlights":[[106,"HighlightGroup"],[126,"HighlightGroup"],[131,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[106,{"contents":{"tnSpan":[107,125],"tnHighlights":[[108,"HighlightLeaf"],[107,"HighlightGroup"],[119,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[107,{"contents":{"tnSpan":[107,107],"tnHighlights":[[107,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[108,{"contents":{"tnSpan":[108,108],"tnHighlights":[[108,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[109,{"contents":{"tnSpan":[109,109],"tnHighlights":[[109,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[110,{"contents":{"tnSpan":[109,118],"tnHighlights":[[109,"HighlightGroup"],[111,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[111,{"contents":{"tnSpan":[112,118],"tnHighlights":[[112,"HighlightLeaf"],[118,"HighlightLeaf"],[116,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[112,{"contents":{"tnSpan":[112,112],"tnHighlights":[[112,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[113,{"contents":{"tnSpan":[113,113],"tnHighlights":[[113,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[114,{"contents":{"tnSpan":[113,115],"tnHighlights":[[113,"HighlightGroup"],[115,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[115,{"contents":{"tnSpan":[115,115],"tnHighlights":[[115,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[116,{"contents":{"tnSpan":[113,117],"tnHighlights":[[114,"HighlightGroup"],[117,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[117,{"contents":{"tnSpan":[117,117],"tnHighlights":[[117,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[118,{"contents":{"tnSpan":[118,118],"tnHighlights":[[118,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[119,{"contents":{"tnSpan":[109,125],"tnHighlights":[[110,"HighlightGroup"],[120,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[120,{"contents":{"tnSpan":[121,125],"tnHighlights":[[121,"HighlightLeaf"],[125,"HighlightLeaf"],[123,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[121,{"contents":{"tnSpan":[121,121],"tnHighlights":[[121,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[122,{"contents":{"tnSpan":[122,122],"tnHighlights":[[122,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[123,{"contents":{"tnSpan":[122,124],"tnHighlights":[[122,"HighlightGroup"],[124,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[124,{"contents":{"tnSpan":[124,124],"tnHighlights":[[124,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[125,{"contents":{"tnSpan":[125,125],"tnHighlights":[[125,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[126,{"contents":{"tnSpan":[127,130],"tnHighlights":[[129,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[127,{"contents":{"tnSpan":[127,127],"tnHighlights":[[127,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[128,{"contents":{"tnSpan":[128,128],"tnHighlights":[[128,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[129,{"contents":{"tnSpan":[127,130],"tnHighlights":[[127,"HighlightGroup"],[128,"HighlightGroup"],[130,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[130,{"contents":{"tnSpan":[130,130],"tnHighlights":[[130,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[131,{"contents":{"tnSpan":[132,132],"tnHighlights":[[132,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[132,{"contents":{"tnSpan":[132,132],"tnHighlights":[[132,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[12,{"contents":{"tnuHighlights":[[12,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[15,{"contents":{"tnuHighlights":[[15,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[20,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nKey = Word64\n"]},"tag":"Update"}],[24,{"contents":{"tnuHighlights":[[59,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[59,{"contents":{"tnuHighlights":[[24,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[26,{"contents":{"tnuHighlights":[[26,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[31,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nKey = Word64\n"]},"tag":"Update"}],[33,{"contents":{"tnuHighlights":[[59,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[59,{"contents":{"tnuHighlights":[[33,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[37,{"contents":{"tnuHighlights":[[59,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[59,{"contents":{"tnuHighlights":[[37,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[39,{"contents":{"tnuHighlights":[[39,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[42,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nNat = %Nat()\n"]},"tag":"Update"}],[44,{"contents":{"tnuHighlights":[[44,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[47,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nKey = Word64\n"]},"tag":"Update"}],[50,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef Fin(n:Nat) -> Type = %Fin(n)\n"]},"tag":"Update"}],[52,{"contents":{"tnuHighlights":[[39,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[39,{"contents":{"tnuHighlights":[[52,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[55,{"contents":{"tnuHighlights":[[59,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[59,{"contents":{"tnuHighlights":[[55,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[59,{"contents":{"tnuHighlights":[[59,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[59,{"contents":{"tnuHighlights":[[59,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[62,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Data(a:Type)\n do_not_implement_this_interface_for_the_compiler_relies_on_the_invariant_it_protects : (a) -> a\n"]},"tag":"Update"}],[69,{"contents":{"tnuHighlights":[[69,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[71,{"contents":{"tnuHighlights":[[71,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[74,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef split_key(k:Key) -> Fin n => Key given (n:Nat) = for i. ixkey(k, i)\n"]},"tag":"Update"}],[76,{"contents":{"tnuHighlights":[[44,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[44,{"contents":{"tnuHighlights":[[76,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[78,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef with_state(\n init:s,\n action: (given (h:Heap), Ref h s) -> {State h |eff} a\n ) -> {|eff} a given (a:Type, s|Data, eff:Effects) =\n fst $ run_state(init, action)\n"]},"tag":"Update"}],[82,{"contents":{"tnuHighlights":[[15,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[15,{"contents":{"tnuHighlights":[[82,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[84,{"contents":{"tnuHighlights":[[69,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[69,{"contents":{"tnuHighlights":[[84,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[89,{"contents":{"tnuHighlights":[[89,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[95,{"contents":{"tnuHighlights":[[95,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[100,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef Fin(n:Nat) -> Type = %Fin(n)\n"]},"tag":"Update"}],[102,{"contents":{"tnuHighlights":[[39,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[39,{"contents":{"tnuHighlights":[[102,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[107,{"contents":{"tnuHighlights":[[107,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[109,{"contents":{"tnuHighlights":[[26,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[26,{"contents":{"tnuHighlights":[[109,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[113,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef ixkey(k:Key, i:n) -> Key given (n|Ix) = hash(k, ordinal i)\n"]},"tag":"Update"}],[115,{"contents":{"tnuHighlights":[[71,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[71,{"contents":{"tnuHighlights":[[115,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[117,{"contents":{"tnuHighlights":[[95,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[95,{"contents":{"tnuHighlights":[[117,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[122,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef get(ref:Ref h s) -> {State h} s given (h:Heap, s|Data) = %get(ref)\n"]},"tag":"Update"}],[124,{"contents":{"tnuHighlights":[[89,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[89,{"contents":{"tnuHighlights":[[124,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[127,{"contents":{"tnuHighlights":[[89,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[89,{"contents":{"tnuHighlights":[[127,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[128,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef (:=)(ref:Ref h s, x:s) -> {State h} () given (h:Heap, s|Data) = %put(ref, x)\n"]},"tag":"Update"}],[130,{"contents":{"tnuHighlights":[[107,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[107,{"contents":{"tnuHighlights":[[130,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[132,{"contents":{"tnuHighlights":[[107,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[107,{"contents":{"tnuHighlights":[[132,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[15,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((v#1:Word64) -> a)"]},"tag":"Update"}],[20,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[23,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[24,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[26,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((v#1:Word64,v#2:a) -> a)"]},"tag":"Update"}],[31,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[33,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[36,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[37,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[39,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}],[42,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[44,{"contents":{"tnuHighlights":[],"tnuText":["Type: Word64"]},"tag":"Update"}],[47,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[50,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((n:Nat) -> Type)"]},"tag":"Update"}],[51,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[52,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}],[54,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[55,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[59,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[62,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[74,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({n:Nat}(k:Word64) -> ((Fin n) => Word64))"]},"tag":"Update"}],[76,{"contents":{"tnuHighlights":[],"tnuText":["Type: Word64"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":[75,"Type error: couldn't infer implicit argument `n` of split_key"],"tag":"RenderedError"}]],"tag":"Create"}],[8,{"contents":[{"rsbBlockId":8,"rsbHtml":"
","rsbLexemeList":[206,207,209,210,211,213,214,216,217,219,220,221,223,224,225,227,228,229,230,232,233,235,236,237,239,240,241,243,244,245,246,248,249,250,253,254,256,257,259,260,262,264,265,266,267,270,271,272,273,276,277,278,279,280,281,282,284,287,288,290,291,293,294,296,297,299,300,302,303,305,307,308,309,310,311,314,315,316,320,321,324,325,326,327,328,329,331,334,335,336,337,338,341,342,345,346,347,348,349,350,352,355,356,357,358,359,360,363,364,367,368,370,371,372,374,375,378,379,380,381,382],"rsbNumLines":6,"rsbLine":31,"rsbText":"def meanAndCovariance(xs:n=>d=>Float) -> (d=>Float, d=>d=>Float) given (n|Ix, d|Ix) =\n xsMean : d=>Float = (for i. sum for j. xs[j,i]) / n_to_f (size n)\n xsCov : d=>d=>Float = (for i i'. sum for j.\n (xs[j,i'] - xsMean[i']) *\n (xs[j,i ] - xsMean[i ]) ) / (n_to_f (size n) - 1)\n (xsMean, xsCov)\n"},"CompleteWithErrors",[{"contents":[[206,205],[207,207],[209,208],[210,210],[211,212],[213,213],[214,215],[216,216],[217,218],[219,219],[220,208],[221,205],[223,222],[224,224],[225,226],[227,227],[228,222],[229,229],[230,231],[232,232],[233,234],[235,235],[236,222],[237,205],[239,238],[240,240],[241,242],[243,243],[244,238],[245,245],[246,247],[248,248],[249,238],[250,205],[253,253],[254,255],[256,256],[257,258],[259,259],[260,252],[262,261],[264,263],[265,265],[266,263],[267,267],[270,269],[271,271],[272,269],[273,273],[276,275],[277,277],[278,275],[279,279],[280,275],[281,261],[282,282],[284,284],[287,286],[288,288],[290,290],[291,286],[293,293],[294,295],[296,296],[297,298],[299,299],[300,301],[302,302],[303,292],[305,304],[307,306],[308,308],[309,309],[310,306],[311,311],[314,313],[315,315],[316,313],[320,319],[321,321],[324,323],[325,325],[326,323],[327,327],[328,323],[329,329],[331,331],[334,333],[335,335],[336,333],[337,319],[338,338],[341,340],[342,342],[345,344],[346,346],[347,344],[348,348],[349,344],[350,350],[352,352],[355,354],[356,356],[357,354],[358,340],[359,304],[360,360],[363,362],[364,364],[367,366],[368,368],[370,370],[371,366],[372,372],[374,374],[375,362],[378,377],[379,379],[380,377],[381,381],[382,377]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[206,382],"tnHighlights":[[205,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[205,{"contents":{"tnSpan":[206,382],"tnHighlights":[[206,"HighlightLeaf"],[221,"HighlightLeaf"],[237,"HighlightLeaf"],[250,"HighlightLeaf"],[207,"HighlightGroup"],[208,"HighlightGroup"],[222,"HighlightGroup"],[238,"HighlightGroup"],[251,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[206,{"contents":{"tnSpan":[206,206],"tnHighlights":[[206,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[207,{"contents":{"tnSpan":[207,207],"tnHighlights":[[207,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[208,{"contents":{"tnSpan":[209,220],"tnHighlights":[[209,"HighlightLeaf"],[220,"HighlightLeaf"],[212,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[209,{"contents":{"tnSpan":[209,209],"tnHighlights":[[209,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[210,{"contents":{"tnSpan":[210,210],"tnHighlights":[[210,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[211,{"contents":{"tnSpan":[211,211],"tnHighlights":[[211,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[212,{"contents":{"tnSpan":[210,219],"tnHighlights":[[211,"HighlightLeaf"],[210,"HighlightGroup"],[215,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[213,{"contents":{"tnSpan":[213,213],"tnHighlights":[[213,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[214,{"contents":{"tnSpan":[214,214],"tnHighlights":[[214,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[215,{"contents":{"tnSpan":[213,219],"tnHighlights":[[214,"HighlightLeaf"],[213,"HighlightGroup"],[218,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[216,{"contents":{"tnSpan":[216,216],"tnHighlights":[[216,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[217,{"contents":{"tnSpan":[217,217],"tnHighlights":[[217,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[218,{"contents":{"tnSpan":[216,219],"tnHighlights":[[217,"HighlightLeaf"],[216,"HighlightGroup"],[219,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[219,{"contents":{"tnSpan":[219,219],"tnHighlights":[[219,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[220,{"contents":{"tnSpan":[220,220],"tnHighlights":[[220,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[221,{"contents":{"tnSpan":[221,221],"tnHighlights":[[221,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[222,{"contents":{"tnSpan":[223,236],"tnHighlights":[[223,"HighlightLeaf"],[228,"HighlightLeaf"],[236,"HighlightLeaf"],[226,"HighlightGroup"],[231,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[223,{"contents":{"tnSpan":[223,223],"tnHighlights":[[223,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[224,{"contents":{"tnSpan":[224,224],"tnHighlights":[[224,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[225,{"contents":{"tnSpan":[225,225],"tnHighlights":[[225,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[226,{"contents":{"tnSpan":[224,227],"tnHighlights":[[225,"HighlightLeaf"],[224,"HighlightGroup"],[227,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[227,{"contents":{"tnSpan":[227,227],"tnHighlights":[[227,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[228,{"contents":{"tnSpan":[228,228],"tnHighlights":[[228,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[229,{"contents":{"tnSpan":[229,229],"tnHighlights":[[229,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[230,{"contents":{"tnSpan":[230,230],"tnHighlights":[[230,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[231,{"contents":{"tnSpan":[229,235],"tnHighlights":[[230,"HighlightLeaf"],[229,"HighlightGroup"],[234,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[232,{"contents":{"tnSpan":[232,232],"tnHighlights":[[232,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[233,{"contents":{"tnSpan":[233,233],"tnHighlights":[[233,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[234,{"contents":{"tnSpan":[232,235],"tnHighlights":[[233,"HighlightLeaf"],[232,"HighlightGroup"],[235,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[235,{"contents":{"tnSpan":[235,235],"tnHighlights":[[235,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[236,{"contents":{"tnSpan":[236,236],"tnHighlights":[[236,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[237,{"contents":{"tnSpan":[237,237],"tnHighlights":[[237,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[238,{"contents":{"tnSpan":[239,249],"tnHighlights":[[239,"HighlightLeaf"],[244,"HighlightLeaf"],[249,"HighlightLeaf"],[242,"HighlightGroup"],[247,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[239,{"contents":{"tnSpan":[239,239],"tnHighlights":[[239,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[240,{"contents":{"tnSpan":[240,240],"tnHighlights":[[240,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[241,{"contents":{"tnSpan":[241,241],"tnHighlights":[[241,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[242,{"contents":{"tnSpan":[240,243],"tnHighlights":[[241,"HighlightLeaf"],[240,"HighlightGroup"],[243,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[243,{"contents":{"tnSpan":[243,243],"tnHighlights":[[243,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[244,{"contents":{"tnSpan":[244,244],"tnHighlights":[[244,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[245,{"contents":{"tnSpan":[245,245],"tnHighlights":[[245,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[246,{"contents":{"tnSpan":[246,246],"tnHighlights":[[246,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[247,{"contents":{"tnSpan":[245,248],"tnHighlights":[[246,"HighlightLeaf"],[245,"HighlightGroup"],[248,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[248,{"contents":{"tnSpan":[248,248],"tnHighlights":[[248,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[249,{"contents":{"tnSpan":[249,249],"tnHighlights":[[249,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[250,{"contents":{"tnSpan":[250,250],"tnHighlights":[[250,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[251,{"contents":{"tnSpan":[253,382],"tnHighlights":[[252,"HighlightGroup"],[292,"HighlightGroup"],[376,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[252,{"contents":{"tnSpan":[253,291],"tnHighlights":[[260,"HighlightLeaf"],[255,"HighlightGroup"],[283,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[253,{"contents":{"tnSpan":[253,253],"tnHighlights":[[253,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[254,{"contents":{"tnSpan":[254,254],"tnHighlights":[[254,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[255,{"contents":{"tnSpan":[253,259],"tnHighlights":[[254,"HighlightLeaf"],[253,"HighlightGroup"],[258,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[256,{"contents":{"tnSpan":[256,256],"tnHighlights":[[256,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[257,{"contents":{"tnSpan":[257,257],"tnHighlights":[[257,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[258,{"contents":{"tnSpan":[256,259],"tnHighlights":[[257,"HighlightLeaf"],[256,"HighlightGroup"],[259,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[259,{"contents":{"tnSpan":[259,259],"tnHighlights":[[259,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[260,{"contents":{"tnSpan":[260,260],"tnHighlights":[[260,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[261,{"contents":{"tnSpan":[262,281],"tnHighlights":[[262,"HighlightLeaf"],[281,"HighlightLeaf"],[263,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[262,{"contents":{"tnSpan":[262,262],"tnHighlights":[[262,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[263,{"contents":{"tnSpan":[264,280],"tnHighlights":[[264,"HighlightLeaf"],[266,"HighlightLeaf"],[265,"HighlightGroup"],[268,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[264,{"contents":{"tnSpan":[264,264],"tnHighlights":[[264,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[265,{"contents":{"tnSpan":[265,265],"tnHighlights":[[265,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[266,{"contents":{"tnSpan":[266,266],"tnHighlights":[[266,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[267,{"contents":{"tnSpan":[267,267],"tnHighlights":[[267,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[268,{"contents":{"tnSpan":[267,280],"tnHighlights":[[267,"HighlightGroup"],[269,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[269,{"contents":{"tnSpan":[270,280],"tnHighlights":[[270,"HighlightLeaf"],[272,"HighlightLeaf"],[271,"HighlightGroup"],[274,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[270,{"contents":{"tnSpan":[270,270],"tnHighlights":[[270,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[271,{"contents":{"tnSpan":[271,271],"tnHighlights":[[271,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[272,{"contents":{"tnSpan":[272,272],"tnHighlights":[[272,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[273,{"contents":{"tnSpan":[273,273],"tnHighlights":[[273,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[274,{"contents":{"tnSpan":[273,280],"tnHighlights":[[273,"HighlightGroup"],[275,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[275,{"contents":{"tnSpan":[276,280],"tnHighlights":[[276,"HighlightLeaf"],[278,"HighlightLeaf"],[280,"HighlightLeaf"],[277,"HighlightGroup"],[279,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[276,{"contents":{"tnSpan":[276,276],"tnHighlights":[[276,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[277,{"contents":{"tnSpan":[277,277],"tnHighlights":[[277,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[278,{"contents":{"tnSpan":[278,278],"tnHighlights":[[278,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[279,{"contents":{"tnSpan":[279,279],"tnHighlights":[[279,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[280,{"contents":{"tnSpan":[280,280],"tnHighlights":[[280,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[281,{"contents":{"tnSpan":[281,281],"tnHighlights":[[281,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[282,{"contents":{"tnSpan":[282,282],"tnHighlights":[[282,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[283,{"contents":{"tnSpan":[262,291],"tnHighlights":[[261,"HighlightGroup"],[282,"HighlightGroup"],[285,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[284,{"contents":{"tnSpan":[284,284],"tnHighlights":[[284,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[285,{"contents":{"tnSpan":[284,291],"tnHighlights":[[284,"HighlightGroup"],[286,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[286,{"contents":{"tnSpan":[287,291],"tnHighlights":[[287,"HighlightLeaf"],[291,"HighlightLeaf"],[289,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[287,{"contents":{"tnSpan":[287,287],"tnHighlights":[[287,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[288,{"contents":{"tnSpan":[288,288],"tnHighlights":[[288,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[289,{"contents":{"tnSpan":[288,290],"tnHighlights":[[288,"HighlightGroup"],[290,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[290,{"contents":{"tnSpan":[290,290],"tnHighlights":[[290,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[291,{"contents":{"tnSpan":[291,291],"tnHighlights":[[291,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[292,{"contents":{"tnSpan":[293,375],"tnHighlights":[[303,"HighlightLeaf"],[295,"HighlightGroup"],[361,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[293,{"contents":{"tnSpan":[293,293],"tnHighlights":[[293,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[294,{"contents":{"tnSpan":[294,294],"tnHighlights":[[294,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[295,{"contents":{"tnSpan":[293,302],"tnHighlights":[[294,"HighlightLeaf"],[293,"HighlightGroup"],[298,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[296,{"contents":{"tnSpan":[296,296],"tnHighlights":[[296,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[297,{"contents":{"tnSpan":[297,297],"tnHighlights":[[297,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[298,{"contents":{"tnSpan":[296,302],"tnHighlights":[[297,"HighlightLeaf"],[296,"HighlightGroup"],[301,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[299,{"contents":{"tnSpan":[299,299],"tnHighlights":[[299,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[300,{"contents":{"tnSpan":[300,300],"tnHighlights":[[300,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[301,{"contents":{"tnSpan":[299,302],"tnHighlights":[[300,"HighlightLeaf"],[299,"HighlightGroup"],[302,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[302,{"contents":{"tnSpan":[302,302],"tnHighlights":[[302,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[303,{"contents":{"tnSpan":[303,303],"tnHighlights":[[303,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[304,{"contents":{"tnSpan":[305,359],"tnHighlights":[[305,"HighlightLeaf"],[359,"HighlightLeaf"],[306,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[305,{"contents":{"tnSpan":[305,305],"tnHighlights":[[305,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[306,{"contents":{"tnSpan":[307,358],"tnHighlights":[[307,"HighlightLeaf"],[310,"HighlightLeaf"],[308,"HighlightGroup"],[309,"HighlightGroup"],[312,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[307,{"contents":{"tnSpan":[307,307],"tnHighlights":[[307,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[308,{"contents":{"tnSpan":[308,308],"tnHighlights":[[308,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[309,{"contents":{"tnSpan":[309,309],"tnHighlights":[[309,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[310,{"contents":{"tnSpan":[310,310],"tnHighlights":[[310,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[311,{"contents":{"tnSpan":[311,311],"tnHighlights":[[311,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[312,{"contents":{"tnSpan":[311,358],"tnHighlights":[[311,"HighlightGroup"],[313,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[313,{"contents":{"tnSpan":[314,358],"tnHighlights":[[314,"HighlightLeaf"],[316,"HighlightLeaf"],[315,"HighlightGroup"],[317,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[314,{"contents":{"tnSpan":[314,314],"tnHighlights":[[314,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[315,{"contents":{"tnSpan":[315,315],"tnHighlights":[[315,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[316,{"contents":{"tnSpan":[316,316],"tnHighlights":[[316,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[317,{"contents":{"tnSpan":[320,358],"tnHighlights":[[318,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[318,{"contents":{"tnSpan":[320,358],"tnHighlights":[[339,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[319,{"contents":{"tnSpan":[320,337],"tnHighlights":[[320,"HighlightLeaf"],[337,"HighlightLeaf"],[330,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[320,{"contents":{"tnSpan":[320,320],"tnHighlights":[[320,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[321,{"contents":{"tnSpan":[321,321],"tnHighlights":[[321,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[322,{"contents":{"tnSpan":[321,328],"tnHighlights":[[321,"HighlightGroup"],[323,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[323,{"contents":{"tnSpan":[324,328],"tnHighlights":[[324,"HighlightLeaf"],[326,"HighlightLeaf"],[328,"HighlightLeaf"],[325,"HighlightGroup"],[327,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[324,{"contents":{"tnSpan":[324,324],"tnHighlights":[[324,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[325,{"contents":{"tnSpan":[325,325],"tnHighlights":[[325,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[326,{"contents":{"tnSpan":[326,326],"tnHighlights":[[326,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[327,{"contents":{"tnSpan":[327,327],"tnHighlights":[[327,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[328,{"contents":{"tnSpan":[328,328],"tnHighlights":[[328,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[329,{"contents":{"tnSpan":[329,329],"tnHighlights":[[329,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[330,{"contents":{"tnSpan":[321,336],"tnHighlights":[[322,"HighlightGroup"],[329,"HighlightGroup"],[332,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[331,{"contents":{"tnSpan":[331,331],"tnHighlights":[[331,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[332,{"contents":{"tnSpan":[331,336],"tnHighlights":[[331,"HighlightGroup"],[333,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[333,{"contents":{"tnSpan":[334,336],"tnHighlights":[[334,"HighlightLeaf"],[336,"HighlightLeaf"],[335,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[334,{"contents":{"tnSpan":[334,334],"tnHighlights":[[334,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[335,{"contents":{"tnSpan":[335,335],"tnHighlights":[[335,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[336,{"contents":{"tnSpan":[336,336],"tnHighlights":[[336,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[337,{"contents":{"tnSpan":[337,337],"tnHighlights":[[337,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[338,{"contents":{"tnSpan":[338,338],"tnHighlights":[[338,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[339,{"contents":{"tnSpan":[320,358],"tnHighlights":[[319,"HighlightGroup"],[338,"HighlightGroup"],[340,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[340,{"contents":{"tnSpan":[341,358],"tnHighlights":[[341,"HighlightLeaf"],[358,"HighlightLeaf"],[351,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[341,{"contents":{"tnSpan":[341,341],"tnHighlights":[[341,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[342,{"contents":{"tnSpan":[342,342],"tnHighlights":[[342,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[343,{"contents":{"tnSpan":[342,349],"tnHighlights":[[342,"HighlightGroup"],[344,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[344,{"contents":{"tnSpan":[345,349],"tnHighlights":[[345,"HighlightLeaf"],[347,"HighlightLeaf"],[349,"HighlightLeaf"],[346,"HighlightGroup"],[348,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[345,{"contents":{"tnSpan":[345,345],"tnHighlights":[[345,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[346,{"contents":{"tnSpan":[346,346],"tnHighlights":[[346,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[347,{"contents":{"tnSpan":[347,347],"tnHighlights":[[347,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[348,{"contents":{"tnSpan":[348,348],"tnHighlights":[[348,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[349,{"contents":{"tnSpan":[349,349],"tnHighlights":[[349,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[350,{"contents":{"tnSpan":[350,350],"tnHighlights":[[350,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[351,{"contents":{"tnSpan":[342,357],"tnHighlights":[[343,"HighlightGroup"],[350,"HighlightGroup"],[353,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[352,{"contents":{"tnSpan":[352,352],"tnHighlights":[[352,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[353,{"contents":{"tnSpan":[352,357],"tnHighlights":[[352,"HighlightGroup"],[354,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[354,{"contents":{"tnSpan":[355,357],"tnHighlights":[[355,"HighlightLeaf"],[357,"HighlightLeaf"],[356,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[355,{"contents":{"tnSpan":[355,355],"tnHighlights":[[355,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[356,{"contents":{"tnSpan":[356,356],"tnHighlights":[[356,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[357,{"contents":{"tnSpan":[357,357],"tnHighlights":[[357,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[358,{"contents":{"tnSpan":[358,358],"tnHighlights":[[358,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[359,{"contents":{"tnSpan":[359,359],"tnHighlights":[[359,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[360,{"contents":{"tnSpan":[360,360],"tnHighlights":[[360,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[361,{"contents":{"tnSpan":[305,375],"tnHighlights":[[304,"HighlightGroup"],[360,"HighlightGroup"],[362,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[362,{"contents":{"tnSpan":[363,375],"tnHighlights":[[363,"HighlightLeaf"],[375,"HighlightLeaf"],[373,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[363,{"contents":{"tnSpan":[363,363],"tnHighlights":[[363,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[364,{"contents":{"tnSpan":[364,364],"tnHighlights":[[364,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[365,{"contents":{"tnSpan":[364,371],"tnHighlights":[[364,"HighlightGroup"],[366,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[366,{"contents":{"tnSpan":[367,371],"tnHighlights":[[367,"HighlightLeaf"],[371,"HighlightLeaf"],[369,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[367,{"contents":{"tnSpan":[367,367],"tnHighlights":[[367,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[368,{"contents":{"tnSpan":[368,368],"tnHighlights":[[368,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[369,{"contents":{"tnSpan":[368,370],"tnHighlights":[[368,"HighlightGroup"],[370,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[370,{"contents":{"tnSpan":[370,370],"tnHighlights":[[370,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[371,{"contents":{"tnSpan":[371,371],"tnHighlights":[[371,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[372,{"contents":{"tnSpan":[372,372],"tnHighlights":[[372,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[373,{"contents":{"tnSpan":[364,374],"tnHighlights":[[365,"HighlightGroup"],[372,"HighlightGroup"],[374,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[374,{"contents":{"tnSpan":[374,374],"tnHighlights":[[374,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[375,{"contents":{"tnSpan":[375,375],"tnHighlights":[[375,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[376,{"contents":{"tnSpan":[378,382],"tnHighlights":[[377,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[377,{"contents":{"tnSpan":[378,382],"tnHighlights":[[378,"HighlightLeaf"],[380,"HighlightLeaf"],[382,"HighlightLeaf"],[379,"HighlightGroup"],[381,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[378,{"contents":{"tnSpan":[378,378],"tnHighlights":[[378,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[379,{"contents":{"tnSpan":[379,379],"tnHighlights":[[379,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[380,{"contents":{"tnSpan":[380,380],"tnHighlights":[[380,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[381,{"contents":{"tnSpan":[381,381],"tnHighlights":[[381,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[382,{"contents":{"tnSpan":[382,382],"tnHighlights":[[382,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[207,{"contents":{"tnuHighlights":[[207,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[210,{"contents":{"tnuHighlights":[[210,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[213,{"contents":{"tnuHighlights":[[240,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[240,{"contents":{"tnuHighlights":[[213,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[216,{"contents":{"tnuHighlights":[[245,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[245,{"contents":{"tnuHighlights":[[216,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[219,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nFloat = Float32\n"]},"tag":"Update"}],[224,{"contents":{"tnuHighlights":[[245,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[245,{"contents":{"tnuHighlights":[[224,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[227,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nFloat = Float32\n"]},"tag":"Update"}],[229,{"contents":{"tnuHighlights":[[245,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[245,{"contents":{"tnuHighlights":[[229,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[232,{"contents":{"tnuHighlights":[[245,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[245,{"contents":{"tnuHighlights":[[232,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[235,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nFloat = Float32\n"]},"tag":"Update"}],[240,{"contents":{"tnuHighlights":[[240,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[240,{"contents":{"tnuHighlights":[[240,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[243,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Ix(n|Data)\n size' : () -> Nat\n ordinal : (n) -> Nat\n unsafe_from_ordinal : (Nat) -> n\n"]},"tag":"Update"}],[245,{"contents":{"tnuHighlights":[[245,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[245,{"contents":{"tnuHighlights":[[245,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[248,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Ix(n|Data)\n size' : () -> Nat\n ordinal : (n) -> Nat\n unsafe_from_ordinal : (Nat) -> n\n"]},"tag":"Update"}],[253,{"contents":{"tnuHighlights":[[253,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[256,{"contents":{"tnuHighlights":[[245,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[245,{"contents":{"tnuHighlights":[[256,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[259,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nFloat = Float32\n"]},"tag":"Update"}],[265,{"contents":{"tnuHighlights":[[265,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[267,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef sum(xs:n=>v) -> v given (n|Ix, v|Add) = reduce(xs, zero, (+))\n"]},"tag":"Update"}],[271,{"contents":{"tnuHighlights":[[271,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[273,{"contents":{"tnuHighlights":[[210,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[210,{"contents":{"tnuHighlights":[[273,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[277,{"contents":{"tnuHighlights":[[271,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[271,{"contents":{"tnuHighlights":[[277,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[279,{"contents":{"tnuHighlights":[[265,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[265,{"contents":{"tnuHighlights":[[279,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[282,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef (/)( v:a, s:Float) -> a given (a|VSpace) = divide(1.0, s) .* v\n"]},"tag":"Update"}],[284,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef n_to_f(x: Nat) -> Float = nat_to_rep x | internal_cast\n"]},"tag":"Update"}],[288,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef size(n:Type|Ix) -> Nat = size'(n=n)\n"]},"tag":"Update"}],[290,{"contents":{"tnuHighlights":[[240,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[240,{"contents":{"tnuHighlights":[[290,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[293,{"contents":{"tnuHighlights":[[293,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[296,{"contents":{"tnuHighlights":[[245,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[245,{"contents":{"tnuHighlights":[[296,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[299,{"contents":{"tnuHighlights":[[245,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[245,{"contents":{"tnuHighlights":[[299,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[302,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nFloat = Float32\n"]},"tag":"Update"}],[308,{"contents":{"tnuHighlights":[[308,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[309,{"contents":{"tnuHighlights":[[309,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[311,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef sum(xs:n=>v) -> v given (n|Ix, v|Add) = reduce(xs, zero, (+))\n"]},"tag":"Update"}],[315,{"contents":{"tnuHighlights":[[315,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[321,{"contents":{"tnuHighlights":[[210,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[210,{"contents":{"tnuHighlights":[[321,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[325,{"contents":{"tnuHighlights":[[315,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[315,{"contents":{"tnuHighlights":[[325,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[327,{"contents":{"tnuHighlights":[[309,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[309,{"contents":{"tnuHighlights":[[327,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[329,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Sub(a|Add)\n (-) : (a, a) -> a\n"]},"tag":"Update"}],[331,{"contents":{"tnuHighlights":[[253,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[253,{"contents":{"tnuHighlights":[[331,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[335,{"contents":{"tnuHighlights":[[309,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[309,{"contents":{"tnuHighlights":[[335,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[338,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Mul(a|Data)\n (*) : (a, a) -> a\n one : a\n"]},"tag":"Update"}],[342,{"contents":{"tnuHighlights":[[210,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[210,{"contents":{"tnuHighlights":[[342,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[346,{"contents":{"tnuHighlights":[[315,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[315,{"contents":{"tnuHighlights":[[346,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[348,{"contents":{"tnuHighlights":[[308,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[308,{"contents":{"tnuHighlights":[[348,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[350,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Sub(a|Add)\n (-) : (a, a) -> a\n"]},"tag":"Update"}],[352,{"contents":{"tnuHighlights":[[253,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[253,{"contents":{"tnuHighlights":[[352,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[356,{"contents":{"tnuHighlights":[[308,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[308,{"contents":{"tnuHighlights":[[356,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[360,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef (/)( v:a, s:Float) -> a given (a|VSpace) = divide(1.0, s) .* v\n"]},"tag":"Update"}],[364,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef n_to_f(x: Nat) -> Float = nat_to_rep x | internal_cast\n"]},"tag":"Update"}],[368,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef size(n:Type|Ix) -> Nat = size'(n=n)\n"]},"tag":"Update"}],[370,{"contents":{"tnuHighlights":[[240,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[240,{"contents":{"tnuHighlights":[[370,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[372,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Sub(a|Add)\n (-) : (a, a) -> a\n"]},"tag":"Update"}],[379,{"contents":{"tnuHighlights":[[253,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[253,{"contents":{"tnuHighlights":[[379,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[381,{"contents":{"tnuHighlights":[[293,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[293,{"contents":{"tnuHighlights":[[381,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[210,{"contents":{"tnuHighlights":[],"tnuText":["Type: (n => d => Float32)"]},"tag":"Update"}],[213,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[215,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[216,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[218,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[219,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[222,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[224,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[226,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[227,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[229,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[231,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[232,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[234,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[235,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[240,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[243,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[245,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[248,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[256,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[258,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[259,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[261,{"contents":{"tnuHighlights":[],"tnuText":["Type: (d => Float32)"]},"tag":"Update"}],[265,{"contents":{"tnuHighlights":[],"tnuText":["Type: d"]},"tag":"Update"}],[267,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({n:Type}[v#0:(Ix n)]{v:Type}[v#1:(Add v)](xs:(n => v)) -> v)"]},"tag":"Update"}],[268,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}],[282,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}[v#0:(VSpace a)](v:a,s:Float32) -> a)"]},"tag":"Update"}],[283,{"contents":{"tnuHighlights":[],"tnuText":["Type: (d => Float32)"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":[271,"Type error: type annotation or constraint required"],"tag":"RenderedError"}]],"tag":"Create"}],[12,{"contents":[{"rsbBlockId":12,"rsbHtml":"
","rsbLexemeList":[384,385,387,388,389],"rsbNumLines":1,"rsbLine":40,"rsbText":"MHParams : Type = Float # step size\n"},"Complete",[{"contents":[[384,384],[385,386],[387,387],[388,383],[389,389]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[384,389],"tnHighlights":[[383,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[383,{"contents":{"tnSpan":[384,389],"tnHighlights":[[388,"HighlightLeaf"],[386,"HighlightGroup"],[389,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[384,{"contents":{"tnSpan":[384,384],"tnHighlights":[[384,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[385,{"contents":{"tnSpan":[385,385],"tnHighlights":[[385,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[386,{"contents":{"tnSpan":[384,387],"tnHighlights":[[385,"HighlightLeaf"],[384,"HighlightGroup"],[387,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[387,{"contents":{"tnSpan":[387,387],"tnHighlights":[[387,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[388,{"contents":{"tnSpan":[388,388],"tnHighlights":[[388,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[389,{"contents":{"tnSpan":[389,389],"tnHighlights":[[389,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[384,{"contents":{"tnuHighlights":[[384,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[387,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nType = %TyKind()\n"]},"tag":"Update"}],[389,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nFloat = Float32\n"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[387,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[389,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["TypePass",null],"tag":"RenderedPassResult"},{"contents":["SimpPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["OptPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"}]],"tag":"Create"}],[15,{"contents":[{"rsbBlockId":15,"rsbHtml":"
","rsbLexemeList":[391,392,394,395,396,398,399,400,401,404,405,406,408,409,410,412,413,414,415,417,418,419,420,422,423,425,426,427,428,429,431,432,434,435,436,438,439,440,444,445,446,447,448,449,450,452,454,455,456,457,459,460,462,464,466,468,470,472,474],"rsbNumLines":9,"rsbLine":42,"rsbText":"def mhStep(\n stepSize: MHParams,\n logProb: (d=>Float) -> LogProb,\n k:Key,\n x:d=>Float\n ) -> d=>Float given (d|Ix) =\n [k1, k2] = split_key k\n proposal = x + stepSize .* randn_vec k1\n propose logProb x proposal k2\n"},"CompleteWithErrors",[{"contents":[[391,390],[392,392],[394,393],[395,395],[396,397],[398,398],[399,393],[400,400],[401,402],[404,403],[405,405],[406,407],[408,408],[409,403],[410,411],[412,412],[413,393],[414,414],[415,416],[417,417],[418,393],[419,419],[420,421],[422,422],[423,424],[425,425],[426,393],[427,390],[428,428],[429,430],[431,431],[432,390],[434,433],[435,435],[436,437],[438,438],[439,433],[440,390],[444,443],[445,445],[446,443],[447,447],[448,443],[449,442],[450,450],[452,452],[454,454],[455,453],[456,456],[457,457],[459,459],[460,460],[462,462],[464,464],[466,466],[468,468],[470,470],[472,472],[474,474]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[391,474],"tnHighlights":[[390,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[390,{"contents":{"tnSpan":[391,474],"tnHighlights":[[391,"HighlightLeaf"],[427,"HighlightLeaf"],[432,"HighlightLeaf"],[440,"HighlightLeaf"],[392,"HighlightGroup"],[393,"HighlightGroup"],[430,"HighlightGroup"],[433,"HighlightGroup"],[441,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[391,{"contents":{"tnSpan":[391,391],"tnHighlights":[[391,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[392,{"contents":{"tnSpan":[392,392],"tnHighlights":[[392,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[393,{"contents":{"tnSpan":[394,426],"tnHighlights":[[394,"HighlightLeaf"],[399,"HighlightLeaf"],[413,"HighlightLeaf"],[418,"HighlightLeaf"],[426,"HighlightLeaf"],[397,"HighlightGroup"],[402,"HighlightGroup"],[416,"HighlightGroup"],[421,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[394,{"contents":{"tnSpan":[394,394],"tnHighlights":[[394,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[395,{"contents":{"tnSpan":[395,395],"tnHighlights":[[395,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[396,{"contents":{"tnSpan":[396,396],"tnHighlights":[[396,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[397,{"contents":{"tnSpan":[395,398],"tnHighlights":[[396,"HighlightLeaf"],[395,"HighlightGroup"],[398,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[398,{"contents":{"tnSpan":[398,398],"tnHighlights":[[398,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[399,{"contents":{"tnSpan":[399,399],"tnHighlights":[[399,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[400,{"contents":{"tnSpan":[400,400],"tnHighlights":[[400,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[401,{"contents":{"tnSpan":[401,401],"tnHighlights":[[401,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[402,{"contents":{"tnSpan":[400,412],"tnHighlights":[[401,"HighlightLeaf"],[400,"HighlightGroup"],[411,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[403,{"contents":{"tnSpan":[404,409],"tnHighlights":[[404,"HighlightLeaf"],[409,"HighlightLeaf"],[407,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[404,{"contents":{"tnSpan":[404,404],"tnHighlights":[[404,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[405,{"contents":{"tnSpan":[405,405],"tnHighlights":[[405,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[406,{"contents":{"tnSpan":[406,406],"tnHighlights":[[406,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[407,{"contents":{"tnSpan":[405,408],"tnHighlights":[[406,"HighlightLeaf"],[405,"HighlightGroup"],[408,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[408,{"contents":{"tnSpan":[408,408],"tnHighlights":[[408,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[409,{"contents":{"tnSpan":[409,409],"tnHighlights":[[409,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[410,{"contents":{"tnSpan":[410,410],"tnHighlights":[[410,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[411,{"contents":{"tnSpan":[404,412],"tnHighlights":[[410,"HighlightLeaf"],[403,"HighlightGroup"],[412,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[412,{"contents":{"tnSpan":[412,412],"tnHighlights":[[412,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[413,{"contents":{"tnSpan":[413,413],"tnHighlights":[[413,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[414,{"contents":{"tnSpan":[414,414],"tnHighlights":[[414,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[415,{"contents":{"tnSpan":[415,415],"tnHighlights":[[415,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[416,{"contents":{"tnSpan":[414,417],"tnHighlights":[[415,"HighlightLeaf"],[414,"HighlightGroup"],[417,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[417,{"contents":{"tnSpan":[417,417],"tnHighlights":[[417,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[418,{"contents":{"tnSpan":[418,418],"tnHighlights":[[418,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[419,{"contents":{"tnSpan":[419,419],"tnHighlights":[[419,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[420,{"contents":{"tnSpan":[420,420],"tnHighlights":[[420,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[421,{"contents":{"tnSpan":[419,425],"tnHighlights":[[420,"HighlightLeaf"],[419,"HighlightGroup"],[424,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[422,{"contents":{"tnSpan":[422,422],"tnHighlights":[[422,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[423,{"contents":{"tnSpan":[423,423],"tnHighlights":[[423,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[424,{"contents":{"tnSpan":[422,425],"tnHighlights":[[423,"HighlightLeaf"],[422,"HighlightGroup"],[425,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[425,{"contents":{"tnSpan":[425,425],"tnHighlights":[[425,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[426,{"contents":{"tnSpan":[426,426],"tnHighlights":[[426,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[427,{"contents":{"tnSpan":[427,427],"tnHighlights":[[427,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[428,{"contents":{"tnSpan":[428,428],"tnHighlights":[[428,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[429,{"contents":{"tnSpan":[429,429],"tnHighlights":[[429,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[430,{"contents":{"tnSpan":[428,431],"tnHighlights":[[429,"HighlightLeaf"],[428,"HighlightGroup"],[431,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[431,{"contents":{"tnSpan":[431,431],"tnHighlights":[[431,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[432,{"contents":{"tnSpan":[432,432],"tnHighlights":[[432,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[433,{"contents":{"tnSpan":[434,439],"tnHighlights":[[434,"HighlightLeaf"],[439,"HighlightLeaf"],[437,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[434,{"contents":{"tnSpan":[434,434],"tnHighlights":[[434,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[435,{"contents":{"tnSpan":[435,435],"tnHighlights":[[435,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[436,{"contents":{"tnSpan":[436,436],"tnHighlights":[[436,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[437,{"contents":{"tnSpan":[435,438],"tnHighlights":[[436,"HighlightLeaf"],[435,"HighlightGroup"],[438,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[438,{"contents":{"tnSpan":[438,438],"tnHighlights":[[438,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[439,{"contents":{"tnSpan":[439,439],"tnHighlights":[[439,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[440,{"contents":{"tnSpan":[440,440],"tnHighlights":[[440,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[441,{"contents":{"tnSpan":[444,474],"tnHighlights":[[442,"HighlightGroup"],[453,"HighlightGroup"],[465,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[442,{"contents":{"tnSpan":[444,452],"tnHighlights":[[449,"HighlightLeaf"],[443,"HighlightGroup"],[451,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[443,{"contents":{"tnSpan":[444,448],"tnHighlights":[[444,"HighlightLeaf"],[446,"HighlightLeaf"],[448,"HighlightLeaf"],[445,"HighlightGroup"],[447,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[444,{"contents":{"tnSpan":[444,444],"tnHighlights":[[444,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[445,{"contents":{"tnSpan":[445,445],"tnHighlights":[[445,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[446,{"contents":{"tnSpan":[446,446],"tnHighlights":[[446,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[447,{"contents":{"tnSpan":[447,447],"tnHighlights":[[447,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[448,{"contents":{"tnSpan":[448,448],"tnHighlights":[[448,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[449,{"contents":{"tnSpan":[449,449],"tnHighlights":[[449,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[450,{"contents":{"tnSpan":[450,450],"tnHighlights":[[450,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[451,{"contents":{"tnSpan":[450,452],"tnHighlights":[[450,"HighlightGroup"],[452,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[452,{"contents":{"tnSpan":[452,452],"tnHighlights":[[452,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[453,{"contents":{"tnSpan":[454,464],"tnHighlights":[[455,"HighlightLeaf"],[454,"HighlightGroup"],[458,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[454,{"contents":{"tnSpan":[454,454],"tnHighlights":[[454,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[455,{"contents":{"tnSpan":[455,455],"tnHighlights":[[455,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[456,{"contents":{"tnSpan":[456,456],"tnHighlights":[[456,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[457,{"contents":{"tnSpan":[457,457],"tnHighlights":[[457,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[458,{"contents":{"tnSpan":[456,464],"tnHighlights":[[456,"HighlightGroup"],[457,"HighlightGroup"],[461,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[459,{"contents":{"tnSpan":[459,459],"tnHighlights":[[459,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[460,{"contents":{"tnSpan":[460,460],"tnHighlights":[[460,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[461,{"contents":{"tnSpan":[459,464],"tnHighlights":[[459,"HighlightGroup"],[460,"HighlightGroup"],[463,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[462,{"contents":{"tnSpan":[462,462],"tnHighlights":[[462,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[463,{"contents":{"tnSpan":[462,464],"tnHighlights":[[462,"HighlightGroup"],[464,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[464,{"contents":{"tnSpan":[464,464],"tnHighlights":[[464,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[465,{"contents":{"tnSpan":[466,474],"tnHighlights":[[473,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[466,{"contents":{"tnSpan":[466,466],"tnHighlights":[[466,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[467,{"contents":{"tnSpan":[466,468],"tnHighlights":[[466,"HighlightGroup"],[468,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[468,{"contents":{"tnSpan":[468,468],"tnHighlights":[[468,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[469,{"contents":{"tnSpan":[466,470],"tnHighlights":[[467,"HighlightGroup"],[470,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[470,{"contents":{"tnSpan":[470,470],"tnHighlights":[[470,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[471,{"contents":{"tnSpan":[466,472],"tnHighlights":[[469,"HighlightGroup"],[472,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[472,{"contents":{"tnSpan":[472,472],"tnHighlights":[[472,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[473,{"contents":{"tnSpan":[466,474],"tnHighlights":[[471,"HighlightGroup"],[474,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[474,{"contents":{"tnSpan":[474,474],"tnHighlights":[[474,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[395,{"contents":{"tnuHighlights":[[395,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[398,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in main:\nMHParams : Type = Float # step size\n"]},"tag":"Update"}],[400,{"contents":{"tnuHighlights":[[400,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[405,{"contents":{"tnuHighlights":[[435,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[435,{"contents":{"tnuHighlights":[[405,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[408,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nFloat = Float32\n"]},"tag":"Update"}],[412,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in main:\nLogProb : Type = Float\n"]},"tag":"Update"}],[414,{"contents":{"tnuHighlights":[[414,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[417,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nKey = Word64\n"]},"tag":"Update"}],[419,{"contents":{"tnuHighlights":[[419,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[422,{"contents":{"tnuHighlights":[[435,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[435,{"contents":{"tnuHighlights":[[422,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[425,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nFloat = Float32\n"]},"tag":"Update"}],[428,{"contents":{"tnuHighlights":[[435,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[435,{"contents":{"tnuHighlights":[[428,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[431,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nFloat = Float32\n"]},"tag":"Update"}],[435,{"contents":{"tnuHighlights":[[435,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[435,{"contents":{"tnuHighlights":[[435,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[438,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Ix(n|Data)\n size' : () -> Nat\n ordinal : (n) -> Nat\n unsafe_from_ordinal : (Nat) -> n\n"]},"tag":"Update"}],[445,{"contents":{"tnuHighlights":[[445,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[447,{"contents":{"tnuHighlights":[[447,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[450,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef split_key(k:Key) -> Fin n => Key given (n:Nat) = for i. ixkey(k, i)\n"]},"tag":"Update"}],[452,{"contents":{"tnuHighlights":[[414,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[414,{"contents":{"tnuHighlights":[[452,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[454,{"contents":{"tnuHighlights":[[454,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[456,{"contents":{"tnuHighlights":[[419,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[419,{"contents":{"tnuHighlights":[[456,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[457,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Add(a|Data)\n (+) : (a, a) -> a\n zero : a\n"]},"tag":"Update"}],[459,{"contents":{"tnuHighlights":[[395,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[395,{"contents":{"tnuHighlights":[[459,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[460,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface VSpace(a|Add|Sub)\n (.*) : (Float, a) -> a\n"]},"tag":"Update"}],[462,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef randn_vec(k:Key) -> n=>Float given (n|Ix) =\n for i. randn (ixkey(k, i))\n"]},"tag":"Update"}],[464,{"contents":{"tnuHighlights":[[445,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[445,{"contents":{"tnuHighlights":[[464,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":[466,"Name error: error in (earlier) definition of variable: propose"],"tag":"RenderedError"}]],"tag":"Create"}],[17,{"contents":[{"rsbBlockId":17,"rsbHtml":"
","rsbLexemeList":[476,477,478,479,480,481,482,483,484],"rsbNumLines":3,"rsbLine":54,"rsbText":"struct HMCParams =\n nsteps : Nat\n dt : Float\n"},"Complete",[{"contents":[[476,475],[477,477],[478,475],[479,479],[480,475],[481,481],[482,482],[483,475],[484,484]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[476,484],"tnHighlights":[[475,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[475,{"contents":{"tnSpan":[476,484],"tnHighlights":[[476,"HighlightLeaf"],[478,"HighlightLeaf"],[480,"HighlightLeaf"],[483,"HighlightLeaf"],[477,"HighlightGroup"],[479,"HighlightGroup"],[481,"HighlightGroup"],[482,"HighlightGroup"],[484,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[476,{"contents":{"tnSpan":[476,476],"tnHighlights":[[476,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[477,{"contents":{"tnSpan":[477,477],"tnHighlights":[[477,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[478,{"contents":{"tnSpan":[478,478],"tnHighlights":[[478,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[479,{"contents":{"tnSpan":[479,479],"tnHighlights":[[479,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[480,{"contents":{"tnSpan":[480,480],"tnHighlights":[[480,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[481,{"contents":{"tnSpan":[481,481],"tnHighlights":[[481,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[482,{"contents":{"tnSpan":[482,482],"tnHighlights":[[482,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[483,{"contents":{"tnSpan":[483,483],"tnHighlights":[[483,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[484,{"contents":{"tnSpan":[484,484],"tnHighlights":[[484,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[477,{"contents":{"tnuHighlights":[[477,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[481,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nNat = %Nat()\n"]},"tag":"Update"}],[484,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nFloat = Float32\n"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[481,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[484,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["TypePass",null],"tag":"RenderedPassResult"}]],"tag":"Create"}],[20,{"contents":[{"rsbBlockId":20,"rsbHtml":"
","rsbLexemeList":[686,687,689,690,691,693,694,695,696,699,700,701,703,704,705,707,708,709,710,712,713,714,715,717,718,720,721,722,723,724,726,727,729,730,731,733,734,735,738,739,741,742,743,745,748,749,750,752,753,754,755,756,757,760,762,764,765,766,768,769,771,773,775,776,778,780,781,784,785,786,787,788,789,790,792,794,795,796,798,800,801,802,804,806,808,811,812,813,814,815,817,818,819,821,823,826,827,828,829,830,832,834,836,838,839],"rsbNumLines":13,"rsbLine":75,"rsbText":"def hmcStep(\n params: HMCParams,\n logProb: (d=>Float) -> LogProb,\n k: Key,\n x: d=>Float\n ) -> d=>Float given (d|Ix) =\n def hamiltonian(s:HMCState (d=>Float)) -> Float =\n logProb s.x - 0.5 * vdot s.p s.p\n [k1, k2] = split_key k\n p = randn_vec k1\n proposal = leapfrogIntegrate params logProb HMCState(x, p)\n final = propose hamiltonian HMCState(x, p) proposal k2\n final.x\n"},"CompleteWithErrors",[{"contents":[[686,685],[687,687],[689,688],[690,690],[691,692],[693,693],[694,688],[695,695],[696,697],[699,698],[700,700],[701,702],[703,703],[704,698],[705,706],[707,707],[708,688],[709,709],[710,711],[712,712],[713,688],[714,714],[715,716],[717,717],[718,719],[720,720],[721,688],[722,685],[723,723],[724,725],[726,726],[727,685],[729,728],[730,730],[731,732],[733,733],[734,728],[735,685],[738,737],[739,739],[741,740],[742,742],[743,744],[745,745],[748,747],[749,749],[750,751],[752,752],[753,747],[754,740],[755,737],[756,756],[757,737],[760,760],[762,762],[764,763],[765,765],[766,766],[768,768],[769,769],[771,771],[773,773],[775,774],[776,776],[778,778],[780,779],[781,781],[784,783],[785,785],[786,783],[787,787],[788,783],[789,782],[790,790],[792,792],[794,794],[795,793],[796,796],[798,798],[800,800],[801,799],[802,802],[804,804],[806,806],[808,808],[811,810],[812,812],[813,810],[814,814],[815,810],[817,817],[818,816],[819,819],[821,821],[823,823],[826,825],[827,827],[828,825],[829,829],[830,825],[832,832],[834,834],[836,836],[838,837],[839,839]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[686,839],"tnHighlights":[[685,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[685,{"contents":{"tnSpan":[686,839],"tnHighlights":[[686,"HighlightLeaf"],[722,"HighlightLeaf"],[727,"HighlightLeaf"],[735,"HighlightLeaf"],[687,"HighlightGroup"],[688,"HighlightGroup"],[725,"HighlightGroup"],[728,"HighlightGroup"],[736,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[686,{"contents":{"tnSpan":[686,686],"tnHighlights":[[686,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[687,{"contents":{"tnSpan":[687,687],"tnHighlights":[[687,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[688,{"contents":{"tnSpan":[689,721],"tnHighlights":[[689,"HighlightLeaf"],[694,"HighlightLeaf"],[708,"HighlightLeaf"],[713,"HighlightLeaf"],[721,"HighlightLeaf"],[692,"HighlightGroup"],[697,"HighlightGroup"],[711,"HighlightGroup"],[716,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[689,{"contents":{"tnSpan":[689,689],"tnHighlights":[[689,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[690,{"contents":{"tnSpan":[690,690],"tnHighlights":[[690,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[691,{"contents":{"tnSpan":[691,691],"tnHighlights":[[691,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[692,{"contents":{"tnSpan":[690,693],"tnHighlights":[[691,"HighlightLeaf"],[690,"HighlightGroup"],[693,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[693,{"contents":{"tnSpan":[693,693],"tnHighlights":[[693,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[694,{"contents":{"tnSpan":[694,694],"tnHighlights":[[694,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[695,{"contents":{"tnSpan":[695,695],"tnHighlights":[[695,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[696,{"contents":{"tnSpan":[696,696],"tnHighlights":[[696,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[697,{"contents":{"tnSpan":[695,707],"tnHighlights":[[696,"HighlightLeaf"],[695,"HighlightGroup"],[706,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[698,{"contents":{"tnSpan":[699,704],"tnHighlights":[[699,"HighlightLeaf"],[704,"HighlightLeaf"],[702,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[699,{"contents":{"tnSpan":[699,699],"tnHighlights":[[699,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[700,{"contents":{"tnSpan":[700,700],"tnHighlights":[[700,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[701,{"contents":{"tnSpan":[701,701],"tnHighlights":[[701,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[702,{"contents":{"tnSpan":[700,703],"tnHighlights":[[701,"HighlightLeaf"],[700,"HighlightGroup"],[703,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[703,{"contents":{"tnSpan":[703,703],"tnHighlights":[[703,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[704,{"contents":{"tnSpan":[704,704],"tnHighlights":[[704,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[705,{"contents":{"tnSpan":[705,705],"tnHighlights":[[705,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[706,{"contents":{"tnSpan":[699,707],"tnHighlights":[[705,"HighlightLeaf"],[698,"HighlightGroup"],[707,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[707,{"contents":{"tnSpan":[707,707],"tnHighlights":[[707,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[708,{"contents":{"tnSpan":[708,708],"tnHighlights":[[708,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[709,{"contents":{"tnSpan":[709,709],"tnHighlights":[[709,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[710,{"contents":{"tnSpan":[710,710],"tnHighlights":[[710,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[711,{"contents":{"tnSpan":[709,712],"tnHighlights":[[710,"HighlightLeaf"],[709,"HighlightGroup"],[712,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[712,{"contents":{"tnSpan":[712,712],"tnHighlights":[[712,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[713,{"contents":{"tnSpan":[713,713],"tnHighlights":[[713,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[714,{"contents":{"tnSpan":[714,714],"tnHighlights":[[714,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[715,{"contents":{"tnSpan":[715,715],"tnHighlights":[[715,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[716,{"contents":{"tnSpan":[714,720],"tnHighlights":[[715,"HighlightLeaf"],[714,"HighlightGroup"],[719,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[717,{"contents":{"tnSpan":[717,717],"tnHighlights":[[717,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[718,{"contents":{"tnSpan":[718,718],"tnHighlights":[[718,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[719,{"contents":{"tnSpan":[717,720],"tnHighlights":[[718,"HighlightLeaf"],[717,"HighlightGroup"],[720,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[720,{"contents":{"tnSpan":[720,720],"tnHighlights":[[720,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[721,{"contents":{"tnSpan":[721,721],"tnHighlights":[[721,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[722,{"contents":{"tnSpan":[722,722],"tnHighlights":[[722,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[723,{"contents":{"tnSpan":[723,723],"tnHighlights":[[723,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[724,{"contents":{"tnSpan":[724,724],"tnHighlights":[[724,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[725,{"contents":{"tnSpan":[723,726],"tnHighlights":[[724,"HighlightLeaf"],[723,"HighlightGroup"],[726,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[726,{"contents":{"tnSpan":[726,726],"tnHighlights":[[726,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[727,{"contents":{"tnSpan":[727,727],"tnHighlights":[[727,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[728,{"contents":{"tnSpan":[729,734],"tnHighlights":[[729,"HighlightLeaf"],[734,"HighlightLeaf"],[732,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[729,{"contents":{"tnSpan":[729,729],"tnHighlights":[[729,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[730,{"contents":{"tnSpan":[730,730],"tnHighlights":[[730,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[731,{"contents":{"tnSpan":[731,731],"tnHighlights":[[731,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[732,{"contents":{"tnSpan":[730,733],"tnHighlights":[[731,"HighlightLeaf"],[730,"HighlightGroup"],[733,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[733,{"contents":{"tnSpan":[733,733],"tnHighlights":[[733,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[734,{"contents":{"tnSpan":[734,734],"tnHighlights":[[734,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[735,{"contents":{"tnSpan":[735,735],"tnHighlights":[[735,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[736,{"contents":{"tnSpan":[738,839],"tnHighlights":[[737,"HighlightGroup"],[782,"HighlightGroup"],[793,"HighlightGroup"],[799,"HighlightGroup"],[816,"HighlightGroup"],[835,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[737,{"contents":{"tnSpan":[738,781],"tnHighlights":[[738,"HighlightLeaf"],[755,"HighlightLeaf"],[757,"HighlightLeaf"],[739,"HighlightGroup"],[740,"HighlightGroup"],[756,"HighlightGroup"],[758,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[738,{"contents":{"tnSpan":[738,738],"tnHighlights":[[738,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[739,{"contents":{"tnSpan":[739,739],"tnHighlights":[[739,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[740,{"contents":{"tnSpan":[741,754],"tnHighlights":[[741,"HighlightLeaf"],[754,"HighlightLeaf"],[744,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[741,{"contents":{"tnSpan":[741,741],"tnHighlights":[[741,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[742,{"contents":{"tnSpan":[742,742],"tnHighlights":[[742,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[743,{"contents":{"tnSpan":[743,743],"tnHighlights":[[743,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[744,{"contents":{"tnSpan":[742,753],"tnHighlights":[[743,"HighlightLeaf"],[742,"HighlightGroup"],[746,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[745,{"contents":{"tnSpan":[745,745],"tnHighlights":[[745,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[746,{"contents":{"tnSpan":[745,753],"tnHighlights":[[745,"HighlightGroup"],[747,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[747,{"contents":{"tnSpan":[748,753],"tnHighlights":[[748,"HighlightLeaf"],[753,"HighlightLeaf"],[751,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[748,{"contents":{"tnSpan":[748,748],"tnHighlights":[[748,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[749,{"contents":{"tnSpan":[749,749],"tnHighlights":[[749,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[750,{"contents":{"tnSpan":[750,750],"tnHighlights":[[750,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[751,{"contents":{"tnSpan":[749,752],"tnHighlights":[[750,"HighlightLeaf"],[749,"HighlightGroup"],[752,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[752,{"contents":{"tnSpan":[752,752],"tnHighlights":[[752,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[753,{"contents":{"tnSpan":[753,753],"tnHighlights":[[753,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[754,{"contents":{"tnSpan":[754,754],"tnHighlights":[[754,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[755,{"contents":{"tnSpan":[755,755],"tnHighlights":[[755,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[756,{"contents":{"tnSpan":[756,756],"tnHighlights":[[756,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[757,{"contents":{"tnSpan":[757,757],"tnHighlights":[[757,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[758,{"contents":{"tnSpan":[760,781],"tnHighlights":[[759,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[759,{"contents":{"tnSpan":[760,781],"tnHighlights":[[767,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[760,{"contents":{"tnSpan":[760,760],"tnHighlights":[[760,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[761,{"contents":{"tnSpan":[760,765],"tnHighlights":[[760,"HighlightGroup"],[763,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[762,{"contents":{"tnSpan":[762,762],"tnHighlights":[[762,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[763,{"contents":{"tnSpan":[762,765],"tnHighlights":[[764,"HighlightLeaf"],[762,"HighlightGroup"],[765,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[764,{"contents":{"tnSpan":[764,764],"tnHighlights":[[764,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[765,{"contents":{"tnSpan":[765,765],"tnHighlights":[[765,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[766,{"contents":{"tnSpan":[766,766],"tnHighlights":[[766,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[767,{"contents":{"tnSpan":[760,781],"tnHighlights":[[761,"HighlightGroup"],[766,"HighlightGroup"],[770,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[768,{"contents":{"tnSpan":[768,768],"tnHighlights":[[768,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[769,{"contents":{"tnSpan":[769,769],"tnHighlights":[[769,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[770,{"contents":{"tnSpan":[768,781],"tnHighlights":[[768,"HighlightGroup"],[769,"HighlightGroup"],[777,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[771,{"contents":{"tnSpan":[771,771],"tnHighlights":[[771,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[772,{"contents":{"tnSpan":[771,776],"tnHighlights":[[771,"HighlightGroup"],[774,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[773,{"contents":{"tnSpan":[773,773],"tnHighlights":[[773,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[774,{"contents":{"tnSpan":[773,776],"tnHighlights":[[775,"HighlightLeaf"],[773,"HighlightGroup"],[776,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[775,{"contents":{"tnSpan":[775,775],"tnHighlights":[[775,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[776,{"contents":{"tnSpan":[776,776],"tnHighlights":[[776,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[777,{"contents":{"tnSpan":[771,781],"tnHighlights":[[772,"HighlightGroup"],[779,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[778,{"contents":{"tnSpan":[778,778],"tnHighlights":[[778,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[779,{"contents":{"tnSpan":[778,781],"tnHighlights":[[780,"HighlightLeaf"],[778,"HighlightGroup"],[781,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[780,{"contents":{"tnSpan":[780,780],"tnHighlights":[[780,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[781,{"contents":{"tnSpan":[781,781],"tnHighlights":[[781,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[782,{"contents":{"tnSpan":[784,792],"tnHighlights":[[789,"HighlightLeaf"],[783,"HighlightGroup"],[791,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[783,{"contents":{"tnSpan":[784,788],"tnHighlights":[[784,"HighlightLeaf"],[786,"HighlightLeaf"],[788,"HighlightLeaf"],[785,"HighlightGroup"],[787,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[784,{"contents":{"tnSpan":[784,784],"tnHighlights":[[784,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[785,{"contents":{"tnSpan":[785,785],"tnHighlights":[[785,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[786,{"contents":{"tnSpan":[786,786],"tnHighlights":[[786,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[787,{"contents":{"tnSpan":[787,787],"tnHighlights":[[787,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[788,{"contents":{"tnSpan":[788,788],"tnHighlights":[[788,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[789,{"contents":{"tnSpan":[789,789],"tnHighlights":[[789,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[790,{"contents":{"tnSpan":[790,790],"tnHighlights":[[790,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[791,{"contents":{"tnSpan":[790,792],"tnHighlights":[[790,"HighlightGroup"],[792,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[792,{"contents":{"tnSpan":[792,792],"tnHighlights":[[792,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[793,{"contents":{"tnSpan":[794,798],"tnHighlights":[[795,"HighlightLeaf"],[794,"HighlightGroup"],[797,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[794,{"contents":{"tnSpan":[794,794],"tnHighlights":[[794,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[795,{"contents":{"tnSpan":[795,795],"tnHighlights":[[795,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[796,{"contents":{"tnSpan":[796,796],"tnHighlights":[[796,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[797,{"contents":{"tnSpan":[796,798],"tnHighlights":[[796,"HighlightGroup"],[798,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[798,{"contents":{"tnSpan":[798,798],"tnHighlights":[[798,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[799,{"contents":{"tnSpan":[800,815],"tnHighlights":[[801,"HighlightLeaf"],[800,"HighlightGroup"],[807,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[800,{"contents":{"tnSpan":[800,800],"tnHighlights":[[800,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[801,{"contents":{"tnSpan":[801,801],"tnHighlights":[[801,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[802,{"contents":{"tnSpan":[802,802],"tnHighlights":[[802,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[803,{"contents":{"tnSpan":[802,804],"tnHighlights":[[802,"HighlightGroup"],[804,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[804,{"contents":{"tnSpan":[804,804],"tnHighlights":[[804,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[805,{"contents":{"tnSpan":[802,806],"tnHighlights":[[803,"HighlightGroup"],[806,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[806,{"contents":{"tnSpan":[806,806],"tnHighlights":[[806,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[807,{"contents":{"tnSpan":[802,815],"tnHighlights":[[805,"HighlightGroup"],[809,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[808,{"contents":{"tnSpan":[808,808],"tnHighlights":[[808,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[809,{"contents":{"tnSpan":[808,815],"tnHighlights":[[808,"HighlightGroup"],[810,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[810,{"contents":{"tnSpan":[811,815],"tnHighlights":[[811,"HighlightLeaf"],[813,"HighlightLeaf"],[815,"HighlightLeaf"],[812,"HighlightGroup"],[814,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[811,{"contents":{"tnSpan":[811,811],"tnHighlights":[[811,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[812,{"contents":{"tnSpan":[812,812],"tnHighlights":[[812,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[813,{"contents":{"tnSpan":[813,813],"tnHighlights":[[813,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[814,{"contents":{"tnSpan":[814,814],"tnHighlights":[[814,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[815,{"contents":{"tnSpan":[815,815],"tnHighlights":[[815,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[816,{"contents":{"tnSpan":[817,834],"tnHighlights":[[818,"HighlightLeaf"],[817,"HighlightGroup"],[833,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[817,{"contents":{"tnSpan":[817,817],"tnHighlights":[[817,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[818,{"contents":{"tnSpan":[818,818],"tnHighlights":[[818,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[819,{"contents":{"tnSpan":[819,819],"tnHighlights":[[819,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[820,{"contents":{"tnSpan":[819,821],"tnHighlights":[[819,"HighlightGroup"],[821,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[821,{"contents":{"tnSpan":[821,821],"tnHighlights":[[821,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[822,{"contents":{"tnSpan":[819,830],"tnHighlights":[[820,"HighlightGroup"],[824,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[823,{"contents":{"tnSpan":[823,823],"tnHighlights":[[823,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[824,{"contents":{"tnSpan":[823,830],"tnHighlights":[[823,"HighlightGroup"],[825,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[825,{"contents":{"tnSpan":[826,830],"tnHighlights":[[826,"HighlightLeaf"],[828,"HighlightLeaf"],[830,"HighlightLeaf"],[827,"HighlightGroup"],[829,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[826,{"contents":{"tnSpan":[826,826],"tnHighlights":[[826,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[827,{"contents":{"tnSpan":[827,827],"tnHighlights":[[827,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[828,{"contents":{"tnSpan":[828,828],"tnHighlights":[[828,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[829,{"contents":{"tnSpan":[829,829],"tnHighlights":[[829,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[830,{"contents":{"tnSpan":[830,830],"tnHighlights":[[830,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[831,{"contents":{"tnSpan":[819,832],"tnHighlights":[[822,"HighlightGroup"],[832,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[832,{"contents":{"tnSpan":[832,832],"tnHighlights":[[832,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[833,{"contents":{"tnSpan":[819,834],"tnHighlights":[[831,"HighlightGroup"],[834,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[834,{"contents":{"tnSpan":[834,834],"tnHighlights":[[834,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[835,{"contents":{"tnSpan":[836,839],"tnHighlights":[[837,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[836,{"contents":{"tnSpan":[836,836],"tnHighlights":[[836,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[837,{"contents":{"tnSpan":[836,839],"tnHighlights":[[838,"HighlightLeaf"],[836,"HighlightGroup"],[839,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[838,{"contents":{"tnSpan":[838,838],"tnHighlights":[[838,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[839,{"contents":{"tnSpan":[839,839],"tnHighlights":[[839,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[690,{"contents":{"tnuHighlights":[[690,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[693,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in main:\nstruct HMCParams =\n nsteps : Nat\n dt : Float\n"]},"tag":"Update"}],[695,{"contents":{"tnuHighlights":[[695,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[700,{"contents":{"tnuHighlights":[[730,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[730,{"contents":{"tnuHighlights":[[700,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[703,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nFloat = Float32\n"]},"tag":"Update"}],[707,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in main:\nLogProb : Type = Float\n"]},"tag":"Update"}],[709,{"contents":{"tnuHighlights":[[709,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[712,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nKey = Word64\n"]},"tag":"Update"}],[714,{"contents":{"tnuHighlights":[[714,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[717,{"contents":{"tnuHighlights":[[730,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[730,{"contents":{"tnuHighlights":[[717,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[720,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nFloat = Float32\n"]},"tag":"Update"}],[723,{"contents":{"tnuHighlights":[[730,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[730,{"contents":{"tnuHighlights":[[723,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[726,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nFloat = Float32\n"]},"tag":"Update"}],[730,{"contents":{"tnuHighlights":[[730,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[730,{"contents":{"tnuHighlights":[[730,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[733,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Ix(n|Data)\n size' : () -> Nat\n ordinal : (n) -> Nat\n unsafe_from_ordinal : (Nat) -> n\n"]},"tag":"Update"}],[739,{"contents":{"tnuHighlights":[[739,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[742,{"contents":{"tnuHighlights":[[742,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[745,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in main:\nstruct HMCState(a|VSpace) =\n x: a\n p: a\n"]},"tag":"Update"}],[749,{"contents":{"tnuHighlights":[[730,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[730,{"contents":{"tnuHighlights":[[749,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[752,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nFloat = Float32\n"]},"tag":"Update"}],[756,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nFloat = Float32\n"]},"tag":"Update"}],[760,{"contents":{"tnuHighlights":[[695,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[695,{"contents":{"tnuHighlights":[[760,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[762,{"contents":{"tnuHighlights":[[742,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[742,{"contents":{"tnuHighlights":[[762,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[766,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Sub(a|Add)\n (-) : (a, a) -> a\n"]},"tag":"Update"}],[769,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Mul(a|Data)\n (*) : (a, a) -> a\n one : a\n"]},"tag":"Update"}],[771,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef vdot(x:n=>Float, y:n=>Float) -> Float given (n|Ix) = fsum for i:n. x[i] * y[i]\n"]},"tag":"Update"}],[773,{"contents":{"tnuHighlights":[[742,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[742,{"contents":{"tnuHighlights":[[773,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[778,{"contents":{"tnuHighlights":[[742,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[742,{"contents":{"tnuHighlights":[[778,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[785,{"contents":{"tnuHighlights":[[785,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[787,{"contents":{"tnuHighlights":[[787,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[790,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef split_key(k:Key) -> Fin n => Key given (n:Nat) = for i. ixkey(k, i)\n"]},"tag":"Update"}],[792,{"contents":{"tnuHighlights":[[709,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[709,{"contents":{"tnuHighlights":[[792,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[794,{"contents":{"tnuHighlights":[[794,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[796,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef randn_vec(k:Key) -> n=>Float given (n|Ix) =\n for i. randn (ixkey(k, i))\n"]},"tag":"Update"}],[798,{"contents":{"tnuHighlights":[[785,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[785,{"contents":{"tnuHighlights":[[798,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[800,{"contents":{"tnuHighlights":[[800,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[802,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in main:\ndef leapfrogIntegrate(\n params: HMCParams,\n logProb: (a) -> LogProb,\n init: HMCState a\n ) -> HMCState a given (a|VSpace) =\n x = init.x + (0.5 * params.dt) .* init.p\n final = apply_n params.nsteps HMCState(x, init.p) \\old.\n pNew = old.p + params.dt .* grad logProb old.x\n xNew = old.x + params.dt .* pNew\n HMCState(xNew, pNew)\n p = final.p + (0.5 * params.dt) .* grad logProb final.x\n HMCState(final.x, p)\n"]},"tag":"Update"}],[804,{"contents":{"tnuHighlights":[[690,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[690,{"contents":{"tnuHighlights":[[804,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[806,{"contents":{"tnuHighlights":[[695,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[695,{"contents":{"tnuHighlights":[[806,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[808,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in main:\nstruct HMCState(a|VSpace) =\n x: a\n p: a\n"]},"tag":"Update"}],[812,{"contents":{"tnuHighlights":[[714,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[714,{"contents":{"tnuHighlights":[[812,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[814,{"contents":{"tnuHighlights":[[794,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[794,{"contents":{"tnuHighlights":[[814,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":[819,"Name error: error in (earlier) definition of variable: propose"],"tag":"RenderedError"}]],"tag":"Create"}],[26,{"contents":[{"rsbBlockId":26,"rsbHtml":"
","rsbLexemeList":[],"rsbNumLines":2,"rsbLine":89,"rsbText":"'## Test it out\n\n"},"Inert",[]],"tag":"Create"}],[28,{"contents":[{"rsbBlockId":28,"rsbHtml":"
Generate samples from a multivariate normal distribution N([1.5, 2.5], [[1., 0.], [0., 0.05]]).
\n
","rsbLexemeList":[],"rsbNumLines":2,"rsbLine":91,"rsbText":"'Generate samples from a multivariate normal distribution N([1.5, 2.5], [[1., 0.], [0., 0.05]]).\n\n"},"Inert",[]],"tag":"Create"}],[29,{"contents":[{"rsbBlockId":29,"rsbHtml":"
","rsbLexemeList":[904,905,907,908,912,913,916,917,918,919,920,921],"rsbNumLines":4,"rsbLine":97,"rsbText":"numSamples : Nat =\n if dex_test_mode()\n then 1000\n else 10000\n"},"Complete",[{"contents":[[904,904],[905,906],[907,907],[908,903],[912,911],[913,913],[916,915],[917,915],[918,911],[919,919],[920,911],[921,921]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[904,921],"tnHighlights":[[903,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[903,{"contents":{"tnSpan":[904,921],"tnHighlights":[[908,"HighlightLeaf"],[906,"HighlightGroup"],[909,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[904,{"contents":{"tnSpan":[904,904],"tnHighlights":[[904,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[905,{"contents":{"tnSpan":[905,905],"tnHighlights":[[905,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[906,{"contents":{"tnSpan":[904,907],"tnHighlights":[[905,"HighlightLeaf"],[904,"HighlightGroup"],[907,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[907,{"contents":{"tnSpan":[907,907],"tnHighlights":[[907,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[908,{"contents":{"tnSpan":[908,908],"tnHighlights":[[908,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[909,{"contents":{"tnSpan":[912,921],"tnHighlights":[[910,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[910,{"contents":{"tnSpan":[912,921],"tnHighlights":[[911,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[911,{"contents":{"tnSpan":[912,921],"tnHighlights":[[912,"HighlightLeaf"],[918,"HighlightLeaf"],[920,"HighlightLeaf"],[914,"HighlightGroup"],[919,"HighlightGroup"],[921,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[912,{"contents":{"tnSpan":[912,912],"tnHighlights":[[912,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[913,{"contents":{"tnSpan":[913,913],"tnHighlights":[[913,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[914,{"contents":{"tnSpan":[913,917],"tnHighlights":[[913,"HighlightGroup"],[915,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[915,{"contents":{"tnSpan":[916,917],"tnHighlights":[[916,"HighlightLeaf"],[917,"HighlightLeaf"]],"tnText":""},"tag":"Create"}],[916,{"contents":{"tnSpan":[916,916],"tnHighlights":[[916,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[917,{"contents":{"tnSpan":[917,917],"tnHighlights":[[917,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[918,{"contents":{"tnSpan":[918,918],"tnHighlights":[[918,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[919,{"contents":{"tnSpan":[919,919],"tnHighlights":[[919,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[920,{"contents":{"tnSpan":[920,920],"tnHighlights":[[920,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[921,{"contents":{"tnSpan":[921,921],"tnHighlights":[[921,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[904,{"contents":{"tnuHighlights":[[904,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[907,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nNat = %Nat()\n"]},"tag":"Update"}],[911,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nenum Bool =\n False\n True\n"]},"tag":"Update"}],[913,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef dex_test_mode() -> Bool = unsafe_io \\. check_env \"DEX_TEST_MODE\"\n"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[907,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[911,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}],[913,{"contents":{"tnuHighlights":[],"tnuText":["Type: (() -> Bool)"]},"tag":"Update"}],[914,{"contents":{"tnuHighlights":[],"tnuText":["Type: Bool"]},"tag":"Update"}],[919,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}],[921,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["TypePass",null],"tag":"RenderedPassResult"},{"contents":["SimpPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["OptPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"}]],"tag":"Create"}],[32,{"contents":[{"rsbBlockId":32,"rsbHtml":"
k0=new_key1\n
","rsbLexemeList":[923,924,925,927],"rsbNumLines":1,"rsbLine":101,"rsbText":"k0 = new_key 1\n"},"Complete",[{"contents":[[923,923],[924,922],[925,925],[927,927]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[923,927],"tnHighlights":[[922,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[922,{"contents":{"tnSpan":[923,927],"tnHighlights":[[924,"HighlightLeaf"],[923,"HighlightGroup"],[926,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[923,{"contents":{"tnSpan":[923,923],"tnHighlights":[[923,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[924,{"contents":{"tnSpan":[924,924],"tnHighlights":[[924,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[925,{"contents":{"tnSpan":[925,925],"tnHighlights":[[925,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[926,{"contents":{"tnSpan":[925,927],"tnHighlights":[[925,"HighlightGroup"],[927,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[927,{"contents":{"tnSpan":[927,927],"tnHighlights":[[927,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[923,{"contents":{"tnuHighlights":[[923,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[925,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef new_key(x:Nat) -> Key = hash(0, x)\n"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[925,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((x:Nat) -> Word64)"]},"tag":"Update"}],[926,{"contents":{"tnuHighlights":[],"tnuText":["Type: Word64"]},"tag":"Update"}],[927,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["TypePass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"},{"contents":["SimpPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["OptPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"}]],"tag":"Create"}],[33,{"contents":[{"rsbBlockId":33,"rsbHtml":"
","rsbLexemeList":[960,961,963],"rsbNumLines":1,"rsbLine":106,"rsbText":":p meanAndCovariance mhSamples\n"},"CompleteWithErrors",[{"contents":[[961,961],[963,963]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[961,963],"tnHighlights":[[962,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[961,{"contents":{"tnSpan":[961,961],"tnHighlights":[[961,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[962,{"contents":{"tnSpan":[961,963],"tnHighlights":[[961,"HighlightGroup"],[963,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[963,{"contents":{"tnSpan":[963,963],"tnHighlights":[[963,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[962,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef show_any(x:a) -> String given (a:Type) = unsafe_coerce(to=String, %showAny(x))\n"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":[961,"Name error: error in (earlier) definition of variable: meanAndCovariance"],"tag":"RenderedError"}]],"tag":"Create"}],[38,{"contents":[{"rsbBlockId":38,"rsbHtml":"
","rsbLexemeList":[964,965,966,968,969,971,974,975,977,979,980,982,985,986,988,989],"rsbNumLines":2,"rsbLine":109,"rsbText":":html show_plot $ y_plot $\n slice (map head mhSamples) 0 (Fin 1000)\n"},"CompleteWithErrors",[{"contents":[[965,965],[966,967],[968,968],[969,970],[971,971],[974,973],[975,975],[977,977],[979,979],[980,973],[982,982],[985,984],[986,986],[988,988],[989,984]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[965,989],"tnHighlights":[[967,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[965,{"contents":{"tnSpan":[965,965],"tnHighlights":[[965,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[966,{"contents":{"tnSpan":[966,966],"tnHighlights":[[966,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[967,{"contents":{"tnSpan":[965,989],"tnHighlights":[[966,"HighlightLeaf"],[965,"HighlightGroup"],[970,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[968,{"contents":{"tnSpan":[968,968],"tnHighlights":[[968,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[969,{"contents":{"tnSpan":[969,969],"tnHighlights":[[969,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[970,{"contents":{"tnSpan":[968,989],"tnHighlights":[[969,"HighlightLeaf"],[968,"HighlightGroup"],[983,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[971,{"contents":{"tnSpan":[971,971],"tnHighlights":[[971,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[972,{"contents":{"tnSpan":[971,980],"tnHighlights":[[971,"HighlightGroup"],[973,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[973,{"contents":{"tnSpan":[974,980],"tnHighlights":[[974,"HighlightLeaf"],[980,"HighlightLeaf"],[978,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[974,{"contents":{"tnSpan":[974,974],"tnHighlights":[[974,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[975,{"contents":{"tnSpan":[975,975],"tnHighlights":[[975,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[976,{"contents":{"tnSpan":[975,977],"tnHighlights":[[975,"HighlightGroup"],[977,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[977,{"contents":{"tnSpan":[977,977],"tnHighlights":[[977,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[978,{"contents":{"tnSpan":[975,979],"tnHighlights":[[976,"HighlightGroup"],[979,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[979,{"contents":{"tnSpan":[979,979],"tnHighlights":[[979,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[980,{"contents":{"tnSpan":[980,980],"tnHighlights":[[980,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[981,{"contents":{"tnSpan":[971,982],"tnHighlights":[[972,"HighlightGroup"],[982,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[982,{"contents":{"tnSpan":[982,982],"tnHighlights":[[982,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[983,{"contents":{"tnSpan":[971,989],"tnHighlights":[[981,"HighlightGroup"],[984,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[984,{"contents":{"tnSpan":[985,989],"tnHighlights":[[985,"HighlightLeaf"],[989,"HighlightLeaf"],[987,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[985,{"contents":{"tnSpan":[985,985],"tnHighlights":[[985,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[986,{"contents":{"tnSpan":[986,986],"tnHighlights":[[986,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[987,{"contents":{"tnSpan":[986,988],"tnHighlights":[[986,"HighlightGroup"],[988,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[988,{"contents":{"tnSpan":[988,988],"tnHighlights":[[988,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[989,{"contents":{"tnSpan":[989,989],"tnHighlights":[[989,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[965,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in plot:\ndef show_plot(plot:Plot n a b c) -> String given (a:Type, b:Type, c:Type, n|Ix) =\n render_svg (plot_to_diagram plot) (Point 0.0 0.0, Point 1.0 1.0)\n"]},"tag":"Update"}],[968,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in plot:\ndef y_plot(ys:n=>Float) -> Plot n Float Float () given (n|Ix) =\n xs = for i:n. n_to_f $ ordinal i\n xy_plot xs ys\n"]},"tag":"Update"}],[971,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef slice(xs:n=>a, start:Nat, m|Ix) -> m=>a given (n|Ix, a:Type) =\n for i. xs[from_ordinal (ordinal i + start)]\n"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":[975,"Name error: variable not in scope: map"],"tag":"RenderedError"}]],"tag":"Create"}],[40,{"contents":[{"rsbBlockId":40,"rsbHtml":"
","rsbLexemeList":[1029,1030,1032],"rsbNumLines":1,"rsbLine":116,"rsbText":":p meanAndCovariance hmcSamples\n"},"CompleteWithErrors",[{"contents":[[1030,1030],[1032,1032]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[1030,1032],"tnHighlights":[[1031,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1030,{"contents":{"tnSpan":[1030,1030],"tnHighlights":[[1030,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1031,{"contents":{"tnSpan":[1030,1032],"tnHighlights":[[1030,"HighlightGroup"],[1032,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1032,{"contents":{"tnSpan":[1032,1032],"tnHighlights":[[1032,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[1031,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef show_any(x:a) -> String given (a:Type) = unsafe_coerce(to=String, %showAny(x))\n"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":[1030,"Name error: error in (earlier) definition of variable: meanAndCovariance"],"tag":"RenderedError"}]],"tag":"Create"}],[45,{"contents":[{"rsbBlockId":45,"rsbHtml":"
","rsbLexemeList":[1033,1034,1035,1037,1038,1040,1043,1044,1046,1048,1049,1051,1054,1055,1057,1058],"rsbNumLines":2,"rsbLine":119,"rsbText":":html show_plot $ y_plot $\n slice (map head hmcSamples) 0 (Fin 1000)\n"},"CompleteWithErrors",[{"contents":[[1034,1034],[1035,1036],[1037,1037],[1038,1039],[1040,1040],[1043,1042],[1044,1044],[1046,1046],[1048,1048],[1049,1042],[1051,1051],[1054,1053],[1055,1055],[1057,1057],[1058,1053]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[1034,1058],"tnHighlights":[[1036,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1034,{"contents":{"tnSpan":[1034,1034],"tnHighlights":[[1034,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1035,{"contents":{"tnSpan":[1035,1035],"tnHighlights":[[1035,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1036,{"contents":{"tnSpan":[1034,1058],"tnHighlights":[[1035,"HighlightLeaf"],[1034,"HighlightGroup"],[1039,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1037,{"contents":{"tnSpan":[1037,1037],"tnHighlights":[[1037,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1038,{"contents":{"tnSpan":[1038,1038],"tnHighlights":[[1038,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1039,{"contents":{"tnSpan":[1037,1058],"tnHighlights":[[1038,"HighlightLeaf"],[1037,"HighlightGroup"],[1052,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1040,{"contents":{"tnSpan":[1040,1040],"tnHighlights":[[1040,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1041,{"contents":{"tnSpan":[1040,1049],"tnHighlights":[[1040,"HighlightGroup"],[1042,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1042,{"contents":{"tnSpan":[1043,1049],"tnHighlights":[[1043,"HighlightLeaf"],[1049,"HighlightLeaf"],[1047,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1043,{"contents":{"tnSpan":[1043,1043],"tnHighlights":[[1043,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1044,{"contents":{"tnSpan":[1044,1044],"tnHighlights":[[1044,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1045,{"contents":{"tnSpan":[1044,1046],"tnHighlights":[[1044,"HighlightGroup"],[1046,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1046,{"contents":{"tnSpan":[1046,1046],"tnHighlights":[[1046,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1047,{"contents":{"tnSpan":[1044,1048],"tnHighlights":[[1045,"HighlightGroup"],[1048,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1048,{"contents":{"tnSpan":[1048,1048],"tnHighlights":[[1048,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1049,{"contents":{"tnSpan":[1049,1049],"tnHighlights":[[1049,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1050,{"contents":{"tnSpan":[1040,1051],"tnHighlights":[[1041,"HighlightGroup"],[1051,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1051,{"contents":{"tnSpan":[1051,1051],"tnHighlights":[[1051,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1052,{"contents":{"tnSpan":[1040,1058],"tnHighlights":[[1050,"HighlightGroup"],[1053,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1053,{"contents":{"tnSpan":[1054,1058],"tnHighlights":[[1054,"HighlightLeaf"],[1058,"HighlightLeaf"],[1056,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1054,{"contents":{"tnSpan":[1054,1054],"tnHighlights":[[1054,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1055,{"contents":{"tnSpan":[1055,1055],"tnHighlights":[[1055,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1056,{"contents":{"tnSpan":[1055,1057],"tnHighlights":[[1055,"HighlightGroup"],[1057,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1057,{"contents":{"tnSpan":[1057,1057],"tnHighlights":[[1057,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1058,{"contents":{"tnSpan":[1058,1058],"tnHighlights":[[1058,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[1034,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in plot:\ndef show_plot(plot:Plot n a b c) -> String given (a:Type, b:Type, c:Type, n|Ix) =\n render_svg (plot_to_diagram plot) (Point 0.0 0.0, Point 1.0 1.0)\n"]},"tag":"Update"}],[1037,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in plot:\ndef y_plot(ys:n=>Float) -> Plot n Float Float () given (n|Ix) =\n xs = for i:n. n_to_f $ ordinal i\n xy_plot xs ys\n"]},"tag":"Update"}],[1040,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef slice(xs:n=>a, start:Nat, m|Ix) -> m=>a given (n|Ix, a:Type) =\n for i. xs[from_ordinal (ordinal i + start)]\n"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":[1044,"Name error: variable not in scope: map"],"tag":"RenderedError"}]],"tag":"Create"}]]}
\ No newline at end of file
+{"orderedNodesUpdate":{"numDropped":0,"newTail":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47]},"nodeMapUpdate":[[0,{"contents":[{"rsbBlockId":0,"rsbHtml":"
","rsbLexemeList":[],"rsbNumLines":2,"rsbLine":1,"rsbText":"'# Markov Chain Monte Carlo\n\n"},"Inert",[]],"tag":"Create"}],[2,{"contents":[{"rsbBlockId":2,"rsbHtml":"
General MCMC utilities
\n
","rsbLexemeList":[],"rsbNumLines":2,"rsbLine":3,"rsbText":"'## General MCMC utilities\n\n"},"Inert",[]],"tag":"Create"}],[3,{"contents":[{"rsbBlockId":3,"rsbHtml":"
","rsbLexemeList":[4,5,7,8,9],"rsbNumLines":1,"rsbLine":7,"rsbText":"LogProb : Type = Float\n"},"Complete",[{"contents":[[4,4],[5,6],[7,7],[8,3],[9,9]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[4,9],"tnHighlights":[[3,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[3,{"contents":{"tnSpan":[4,9],"tnHighlights":[[8,"HighlightLeaf"],[6,"HighlightGroup"],[9,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[4,{"contents":{"tnSpan":[4,4],"tnHighlights":[[4,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[5,{"contents":{"tnSpan":[5,5],"tnHighlights":[[5,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[6,{"contents":{"tnSpan":[4,7],"tnHighlights":[[5,"HighlightLeaf"],[4,"HighlightGroup"],[7,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[7,{"contents":{"tnSpan":[7,7],"tnHighlights":[[7,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[8,{"contents":{"tnSpan":[8,8],"tnHighlights":[[8,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[9,{"contents":{"tnSpan":[9,9],"tnHighlights":[[9,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[4,{"contents":{"tnuHighlights":[[4,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[7,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nType = %TyKind()\n"]},"tag":"Update"}],[9,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nFloat = Float32\n"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[7,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[9,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["TypePass",null],"tag":"RenderedPassResult"},{"contents":["SimpPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["OptPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"}]],"tag":"Create"}],[6,{"contents":[{"rsbBlockId":6,"rsbHtml":"
","rsbLexemeList":[410,411,413,414,415],"rsbNumLines":1,"rsbLine":40,"rsbText":"MHParams : Type = Float # step size\n"},"Complete",[{"contents":[[410,410],[411,412],[413,413],[414,409],[415,415]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[410,415],"tnHighlights":[[409,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[409,{"contents":{"tnSpan":[410,415],"tnHighlights":[[414,"HighlightLeaf"],[412,"HighlightGroup"],[415,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[410,{"contents":{"tnSpan":[410,410],"tnHighlights":[[410,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[411,{"contents":{"tnSpan":[411,411],"tnHighlights":[[411,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[412,{"contents":{"tnSpan":[410,413],"tnHighlights":[[411,"HighlightLeaf"],[410,"HighlightGroup"],[413,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[413,{"contents":{"tnSpan":[413,413],"tnHighlights":[[413,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[414,{"contents":{"tnSpan":[414,414],"tnHighlights":[[414,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[415,{"contents":{"tnSpan":[415,415],"tnHighlights":[[415,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[410,{"contents":{"tnuHighlights":[[410,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[413,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nType = %TyKind()\n"]},"tag":"Update"}],[415,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nFloat = Float32\n"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[413,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[415,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["TypePass",null],"tag":"RenderedPassResult"},{"contents":["SimpPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["OptPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"}]],"tag":"Create"}],[15,{"contents":[{"rsbBlockId":15,"rsbHtml":"
","rsbLexemeList":[510,511,512,513,514,515,516,517,518],"rsbNumLines":3,"rsbLine":54,"rsbText":"struct HMCParams =\n nsteps : Nat\n dt : Float\n"},"Complete",[{"contents":[[510,509],[511,511],[512,509],[513,513],[514,509],[515,515],[516,516],[517,509],[518,518]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[510,518],"tnHighlights":[[509,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[509,{"contents":{"tnSpan":[510,518],"tnHighlights":[[510,"HighlightLeaf"],[512,"HighlightLeaf"],[514,"HighlightLeaf"],[517,"HighlightLeaf"],[511,"HighlightGroup"],[513,"HighlightGroup"],[515,"HighlightGroup"],[516,"HighlightGroup"],[518,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[510,{"contents":{"tnSpan":[510,510],"tnHighlights":[[510,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[511,{"contents":{"tnSpan":[511,511],"tnHighlights":[[511,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[512,{"contents":{"tnSpan":[512,512],"tnHighlights":[[512,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[513,{"contents":{"tnSpan":[513,513],"tnHighlights":[[513,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[514,{"contents":{"tnSpan":[514,514],"tnHighlights":[[514,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[515,{"contents":{"tnSpan":[515,515],"tnHighlights":[[515,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[516,{"contents":{"tnSpan":[516,516],"tnHighlights":[[516,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[517,{"contents":{"tnSpan":[517,517],"tnHighlights":[[517,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[518,{"contents":{"tnSpan":[518,518],"tnHighlights":[[518,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[511,{"contents":{"tnuHighlights":[[511,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[515,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nNat = %Nat()\n"]},"tag":"Update"}],[518,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nFloat = Float32\n"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[515,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[518,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["TypePass",null],"tag":"RenderedPassResult"}]],"tag":"Create"}],[20,{"contents":[{"rsbBlockId":20,"rsbHtml":"
","rsbLexemeList":[],"rsbNumLines":2,"rsbLine":89,"rsbText":"'## Test it out\n\n"},"Inert",[]],"tag":"Create"}],[28,{"contents":[{"rsbBlockId":28,"rsbHtml":"
Generate samples from a multivariate normal distribution N([1.5, 2.5], [[1., 0.], [0., 0.05]]).
\n
","rsbLexemeList":[],"rsbNumLines":2,"rsbLine":91,"rsbText":"'Generate samples from a multivariate normal distribution N([1.5, 2.5], [[1., 0.], [0., 0.05]]).\n\n"},"Inert",[]],"tag":"Create"}],[29,{"contents":[{"rsbBlockId":29,"rsbHtml":"
","rsbLexemeList":[952,953,955,956,957,959,960,961,962,964,965,967,968,971,974,975,976],"rsbNumLines":2,"rsbLine":96,"rsbText":"def myInitializer(k:Key) -> Fin 2 => Float =\n randn_vec(k)\n"},"Complete",[{"contents":[[952,951],[953,953],[955,954],[956,956],[957,958],[959,959],[960,954],[961,951],[962,962],[964,964],[965,966],[967,967],[968,951],[971,971],[974,973],[975,975],[976,973]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[952,976],"tnHighlights":[[951,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[951,{"contents":{"tnSpan":[952,976],"tnHighlights":[[952,"HighlightLeaf"],[961,"HighlightLeaf"],[968,"HighlightLeaf"],[953,"HighlightGroup"],[954,"HighlightGroup"],[966,"HighlightGroup"],[969,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[952,{"contents":{"tnSpan":[952,952],"tnHighlights":[[952,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[953,{"contents":{"tnSpan":[953,953],"tnHighlights":[[953,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[954,{"contents":{"tnSpan":[955,960],"tnHighlights":[[955,"HighlightLeaf"],[960,"HighlightLeaf"],[958,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[955,{"contents":{"tnSpan":[955,955],"tnHighlights":[[955,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[956,{"contents":{"tnSpan":[956,956],"tnHighlights":[[956,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[957,{"contents":{"tnSpan":[957,957],"tnHighlights":[[957,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[958,{"contents":{"tnSpan":[956,959],"tnHighlights":[[957,"HighlightLeaf"],[956,"HighlightGroup"],[959,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[959,{"contents":{"tnSpan":[959,959],"tnHighlights":[[959,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[960,{"contents":{"tnSpan":[960,960],"tnHighlights":[[960,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[961,{"contents":{"tnSpan":[961,961],"tnHighlights":[[961,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[962,{"contents":{"tnSpan":[962,962],"tnHighlights":[[962,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[963,{"contents":{"tnSpan":[962,964],"tnHighlights":[[962,"HighlightGroup"],[964,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[964,{"contents":{"tnSpan":[964,964],"tnHighlights":[[964,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[965,{"contents":{"tnSpan":[965,965],"tnHighlights":[[965,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[966,{"contents":{"tnSpan":[962,967],"tnHighlights":[[965,"HighlightLeaf"],[963,"HighlightGroup"],[967,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[967,{"contents":{"tnSpan":[967,967],"tnHighlights":[[967,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[968,{"contents":{"tnSpan":[968,968],"tnHighlights":[[968,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[969,{"contents":{"tnSpan":[971,976],"tnHighlights":[[970,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[970,{"contents":{"tnSpan":[971,976],"tnHighlights":[[972,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[971,{"contents":{"tnSpan":[971,971],"tnHighlights":[[971,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[972,{"contents":{"tnSpan":[971,976],"tnHighlights":[[971,"HighlightGroup"],[973,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[973,{"contents":{"tnSpan":[974,976],"tnHighlights":[[974,"HighlightLeaf"],[976,"HighlightLeaf"],[975,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[974,{"contents":{"tnSpan":[974,974],"tnHighlights":[[974,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[975,{"contents":{"tnSpan":[975,975],"tnHighlights":[[975,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[976,{"contents":{"tnSpan":[976,976],"tnHighlights":[[976,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[953,{"contents":{"tnuHighlights":[[953,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[956,{"contents":{"tnuHighlights":[[956,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[959,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nKey = Word64\n"]},"tag":"Update"}],[962,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef Fin(n:Nat) -> Type = %Fin(n)\n"]},"tag":"Update"}],[967,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nFloat = Float32\n"]},"tag":"Update"}],[971,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef randn_vec(k:Key) -> n=>Float given (n|Ix) =\n for i. randn (ixkey(k, i))\n"]},"tag":"Update"}],[975,{"contents":{"tnuHighlights":[[956,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[956,{"contents":{"tnuHighlights":[[975,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[951,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((k:Word64) -> ((Fin 2) => Float32))"]},"tag":"Update"}],[956,{"contents":{"tnuHighlights":[],"tnuText":["Type: Word64"]},"tag":"Update"}],[959,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[962,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((n:Nat) -> Type)"]},"tag":"Update"}],[963,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[964,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}],[966,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[967,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[971,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({n:Type}[v#0:(Ix n)](k:Word64) -> (n => Float32))"]},"tag":"Update"}],[972,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((Fin 2) => Float32)"]},"tag":"Update"}],[975,{"contents":{"tnuHighlights":[],"tnuText":["Type: Word64"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["TypePass",null],"tag":"RenderedPassResult"},{"contents":["SimpPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["OptPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"}]],"tag":"Create"}],[31,{"contents":[{"rsbBlockId":31,"rsbHtml":"
","rsbLexemeList":[978,979,981,982,986,987,990,991,992,993,994,995],"rsbNumLines":4,"rsbLine":99,"rsbText":"numSamples : Nat =\n if dex_test_mode()\n then 1000\n else 10000\n"},"Complete",[{"contents":[[978,978],[979,980],[981,981],[982,977],[986,985],[987,987],[990,989],[991,989],[992,985],[993,993],[994,985],[995,995]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[978,995],"tnHighlights":[[977,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[977,{"contents":{"tnSpan":[978,995],"tnHighlights":[[982,"HighlightLeaf"],[980,"HighlightGroup"],[983,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[978,{"contents":{"tnSpan":[978,978],"tnHighlights":[[978,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[979,{"contents":{"tnSpan":[979,979],"tnHighlights":[[979,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[980,{"contents":{"tnSpan":[978,981],"tnHighlights":[[979,"HighlightLeaf"],[978,"HighlightGroup"],[981,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[981,{"contents":{"tnSpan":[981,981],"tnHighlights":[[981,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[982,{"contents":{"tnSpan":[982,982],"tnHighlights":[[982,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[983,{"contents":{"tnSpan":[986,995],"tnHighlights":[[984,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[984,{"contents":{"tnSpan":[986,995],"tnHighlights":[[985,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[985,{"contents":{"tnSpan":[986,995],"tnHighlights":[[986,"HighlightLeaf"],[992,"HighlightLeaf"],[994,"HighlightLeaf"],[988,"HighlightGroup"],[993,"HighlightGroup"],[995,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[986,{"contents":{"tnSpan":[986,986],"tnHighlights":[[986,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[987,{"contents":{"tnSpan":[987,987],"tnHighlights":[[987,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[988,{"contents":{"tnSpan":[987,991],"tnHighlights":[[987,"HighlightGroup"],[989,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[989,{"contents":{"tnSpan":[990,991],"tnHighlights":[[990,"HighlightLeaf"],[991,"HighlightLeaf"]],"tnText":""},"tag":"Create"}],[990,{"contents":{"tnSpan":[990,990],"tnHighlights":[[990,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[991,{"contents":{"tnSpan":[991,991],"tnHighlights":[[991,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[992,{"contents":{"tnSpan":[992,992],"tnHighlights":[[992,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[993,{"contents":{"tnSpan":[993,993],"tnHighlights":[[993,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[994,{"contents":{"tnSpan":[994,994],"tnHighlights":[[994,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[995,{"contents":{"tnSpan":[995,995],"tnHighlights":[[995,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[978,{"contents":{"tnuHighlights":[[978,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[981,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nNat = %Nat()\n"]},"tag":"Update"}],[985,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nenum Bool =\n False\n True\n"]},"tag":"Update"}],[987,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef dex_test_mode() -> Bool = unsafe_io \\. check_env \"DEX_TEST_MODE\"\n"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[981,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[985,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}],[987,{"contents":{"tnuHighlights":[],"tnuText":["Type: (() -> Bool)"]},"tag":"Update"}],[988,{"contents":{"tnuHighlights":[],"tnuText":["Type: Bool"]},"tag":"Update"}],[993,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}],[995,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["TypePass",null],"tag":"RenderedPassResult"},{"contents":["SimpPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["OptPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"}]],"tag":"Create"}],[33,{"contents":[{"rsbBlockId":33,"rsbHtml":"
k0=new_key1\n
","rsbLexemeList":[997,998,999,1001],"rsbNumLines":1,"rsbLine":103,"rsbText":"k0 = new_key 1\n"},"Complete",[{"contents":[[997,997],[998,996],[999,999],[1001,1001]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[997,1001],"tnHighlights":[[996,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[996,{"contents":{"tnSpan":[997,1001],"tnHighlights":[[998,"HighlightLeaf"],[997,"HighlightGroup"],[1000,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[997,{"contents":{"tnSpan":[997,997],"tnHighlights":[[997,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[998,{"contents":{"tnSpan":[998,998],"tnHighlights":[[998,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[999,{"contents":{"tnSpan":[999,999],"tnHighlights":[[999,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1000,{"contents":{"tnSpan":[999,1001],"tnHighlights":[[999,"HighlightGroup"],[1001,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1001,{"contents":{"tnSpan":[1001,1001],"tnHighlights":[[1001,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[997,{"contents":{"tnuHighlights":[[997,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[999,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef new_key(x:Nat) -> Key = hash(0, x)\n"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[999,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((x:Nat) -> Word64)"]},"tag":"Update"}],[1000,{"contents":{"tnuHighlights":[],"tnuText":["Type: Word64"]},"tag":"Update"}],[1001,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["TypePass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"},{"contents":["SimpPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["OptPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"}]],"tag":"Create"}],[34,{"contents":[{"rsbBlockId":34,"rsbHtml":"
","rsbLexemeList":[1038,1039,1040,1042,1043,1045,1048,1049,1051,1053,1054,1056,1059,1060,1062,1063],"rsbNumLines":2,"rsbLine":111,"rsbText":":html show_plot $ y_plot $\n slice (each mhSamples head) 0 (Fin 1000)\n"},"Complete",[{"contents":[[1039,1039],[1040,1041],[1042,1042],[1043,1044],[1045,1045],[1048,1047],[1049,1049],[1051,1051],[1053,1053],[1054,1047],[1056,1056],[1059,1058],[1060,1060],[1062,1062],[1063,1058]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[1039,1063],"tnHighlights":[[1041,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1039,{"contents":{"tnSpan":[1039,1039],"tnHighlights":[[1039,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1040,{"contents":{"tnSpan":[1040,1040],"tnHighlights":[[1040,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1041,{"contents":{"tnSpan":[1039,1063],"tnHighlights":[[1040,"HighlightLeaf"],[1039,"HighlightGroup"],[1044,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1042,{"contents":{"tnSpan":[1042,1042],"tnHighlights":[[1042,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1043,{"contents":{"tnSpan":[1043,1043],"tnHighlights":[[1043,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1044,{"contents":{"tnSpan":[1042,1063],"tnHighlights":[[1043,"HighlightLeaf"],[1042,"HighlightGroup"],[1057,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1045,{"contents":{"tnSpan":[1045,1045],"tnHighlights":[[1045,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1046,{"contents":{"tnSpan":[1045,1054],"tnHighlights":[[1045,"HighlightGroup"],[1047,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1047,{"contents":{"tnSpan":[1048,1054],"tnHighlights":[[1048,"HighlightLeaf"],[1054,"HighlightLeaf"],[1052,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1048,{"contents":{"tnSpan":[1048,1048],"tnHighlights":[[1048,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1049,{"contents":{"tnSpan":[1049,1049],"tnHighlights":[[1049,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1050,{"contents":{"tnSpan":[1049,1051],"tnHighlights":[[1049,"HighlightGroup"],[1051,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1051,{"contents":{"tnSpan":[1051,1051],"tnHighlights":[[1051,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1052,{"contents":{"tnSpan":[1049,1053],"tnHighlights":[[1050,"HighlightGroup"],[1053,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1053,{"contents":{"tnSpan":[1053,1053],"tnHighlights":[[1053,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1054,{"contents":{"tnSpan":[1054,1054],"tnHighlights":[[1054,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1055,{"contents":{"tnSpan":[1045,1056],"tnHighlights":[[1046,"HighlightGroup"],[1056,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1056,{"contents":{"tnSpan":[1056,1056],"tnHighlights":[[1056,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1057,{"contents":{"tnSpan":[1045,1063],"tnHighlights":[[1055,"HighlightGroup"],[1058,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1058,{"contents":{"tnSpan":[1059,1063],"tnHighlights":[[1059,"HighlightLeaf"],[1063,"HighlightLeaf"],[1061,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1059,{"contents":{"tnSpan":[1059,1059],"tnHighlights":[[1059,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1060,{"contents":{"tnSpan":[1060,1060],"tnHighlights":[[1060,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1061,{"contents":{"tnSpan":[1060,1062],"tnHighlights":[[1060,"HighlightGroup"],[1062,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1062,{"contents":{"tnSpan":[1062,1062],"tnHighlights":[[1062,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1063,{"contents":{"tnSpan":[1063,1063],"tnHighlights":[[1063,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[1039,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in plot:\ndef show_plot(plot:Plot n a b c) -> String given (a:Type, b:Type, c:Type, n|Ix) =\n render_svg (plot_to_diagram plot) (Point 0.0 0.0, Point 1.0 1.0)\n"]},"tag":"Update"}],[1041,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nString : Type = List Char\n"]},"tag":"Update"}],[1042,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in plot:\ndef y_plot(ys:n=>Float) -> Plot n Float Float () given (n|Ix) =\n xs = for i:n. n_to_f $ ordinal i\n xy_plot xs ys\n"]},"tag":"Update"}],[1045,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef slice(xs:n=>a, start:Nat, m|Ix) -> m=>a given (n|Ix, a:Type) =\n for i. xs[from_ordinal (ordinal i + start)]\n"]},"tag":"Update"}],[1049,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef each(xs: n=>a, f:(a)->{|eff} b) -> {|eff} (n=>b) given (a:Type, b:Type, n|Ix, eff:Effects) =\n for i. f xs[i]\n"]},"tag":"Update"}],[1051,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in main:\nmhSamples = runChain myInitializer (\\k x. mhStep mhParams myLogProb k x) numSamples k0\n"]},"tag":"Update"}],[1053,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef head(xs:n=>a) -> a given (n|Ix, a:Type) = xs[0@_]\n"]},"tag":"Update"}],[1060,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef Fin(n:Nat) -> Type = %Fin(n)\n"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[1039,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}{b:Type}{c:Type}{n:Type}[v#0:(Ix n)](plot:(Plot n a b c)) -> (List\n Word8))"]},"tag":"Update"}],[1041,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[1042,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({n:Type}[v#0:(Ix n)](ys:(n => Float32)) -> (Plot n Float32 Float32 ()))"]},"tag":"Update"}],[1044,{"contents":{"tnuHighlights":[],"tnuText":["Type: (Plot (Fin 1000) Float32 Float32 ())"]},"tag":"Update"}],[1045,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({n:Type}[v#0:(Ix n)]{a:Type}(xs:(n => a),start:Nat,m:Type)[v#1:(Ix m)] -> (m\n => a))"]},"tag":"Update"}],[1047,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((Fin numSamp) => Float32)"]},"tag":"Update"}],[1049,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}{b:Type}{n:Type}[v#0:(Ix n)]{eff:EffKind}(xs:(n\n => a),f:((v#1:a) -> {|eff} b)) -> {|eff} (n\n => b))"]},"tag":"Update"}],[1051,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((Fin numSamp) => (Fin 2) => Float32)"]},"tag":"Update"}],[1053,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({n:Type}[v#0:(Ix n)]{a:Type}(xs:(n => a)) -> a)"]},"tag":"Update"}],[1056,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}],[1057,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((Fin 1000) => Float32)"]},"tag":"Update"}],[1058,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[1060,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((n:Nat) -> Type)"]},"tag":"Update"}],[1062,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["TypePass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"},{"contents":["SimpPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["OptPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"},{"contents":"","tag":"RenderedHtmlOut"}]],"tag":"Create"}],[41,{"contents":[{"rsbBlockId":41,"rsbHtml":"
","rsbLexemeList":[1107,1108,1109,1111,1112,1114,1117,1118,1120,1122,1123,1125,1128,1129,1131,1132],"rsbNumLines":2,"rsbLine":121,"rsbText":":html show_plot $ y_plot $\n slice (each hmcSamples head) 0 (Fin 1000)\n"},"Complete",[{"contents":[[1108,1108],[1109,1110],[1111,1111],[1112,1113],[1114,1114],[1117,1116],[1118,1118],[1120,1120],[1122,1122],[1123,1116],[1125,1125],[1128,1127],[1129,1129],[1131,1131],[1132,1127]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[1108,1132],"tnHighlights":[[1110,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1108,{"contents":{"tnSpan":[1108,1108],"tnHighlights":[[1108,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1109,{"contents":{"tnSpan":[1109,1109],"tnHighlights":[[1109,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1110,{"contents":{"tnSpan":[1108,1132],"tnHighlights":[[1109,"HighlightLeaf"],[1108,"HighlightGroup"],[1113,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1111,{"contents":{"tnSpan":[1111,1111],"tnHighlights":[[1111,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1112,{"contents":{"tnSpan":[1112,1112],"tnHighlights":[[1112,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1113,{"contents":{"tnSpan":[1111,1132],"tnHighlights":[[1112,"HighlightLeaf"],[1111,"HighlightGroup"],[1126,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1114,{"contents":{"tnSpan":[1114,1114],"tnHighlights":[[1114,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1115,{"contents":{"tnSpan":[1114,1123],"tnHighlights":[[1114,"HighlightGroup"],[1116,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1116,{"contents":{"tnSpan":[1117,1123],"tnHighlights":[[1117,"HighlightLeaf"],[1123,"HighlightLeaf"],[1121,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1117,{"contents":{"tnSpan":[1117,1117],"tnHighlights":[[1117,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1118,{"contents":{"tnSpan":[1118,1118],"tnHighlights":[[1118,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1119,{"contents":{"tnSpan":[1118,1120],"tnHighlights":[[1118,"HighlightGroup"],[1120,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1120,{"contents":{"tnSpan":[1120,1120],"tnHighlights":[[1120,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1121,{"contents":{"tnSpan":[1118,1122],"tnHighlights":[[1119,"HighlightGroup"],[1122,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1122,{"contents":{"tnSpan":[1122,1122],"tnHighlights":[[1122,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1123,{"contents":{"tnSpan":[1123,1123],"tnHighlights":[[1123,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1124,{"contents":{"tnSpan":[1114,1125],"tnHighlights":[[1115,"HighlightGroup"],[1125,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1125,{"contents":{"tnSpan":[1125,1125],"tnHighlights":[[1125,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1126,{"contents":{"tnSpan":[1114,1132],"tnHighlights":[[1124,"HighlightGroup"],[1127,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1127,{"contents":{"tnSpan":[1128,1132],"tnHighlights":[[1128,"HighlightLeaf"],[1132,"HighlightLeaf"],[1130,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1128,{"contents":{"tnSpan":[1128,1128],"tnHighlights":[[1128,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1129,{"contents":{"tnSpan":[1129,1129],"tnHighlights":[[1129,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1130,{"contents":{"tnSpan":[1129,1131],"tnHighlights":[[1129,"HighlightGroup"],[1131,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1131,{"contents":{"tnSpan":[1131,1131],"tnHighlights":[[1131,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1132,{"contents":{"tnSpan":[1132,1132],"tnHighlights":[[1132,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[1108,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in plot:\ndef show_plot(plot:Plot n a b c) -> String given (a:Type, b:Type, c:Type, n|Ix) =\n render_svg (plot_to_diagram plot) (Point 0.0 0.0, Point 1.0 1.0)\n"]},"tag":"Update"}],[1110,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nString : Type = List Char\n"]},"tag":"Update"}],[1111,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in plot:\ndef y_plot(ys:n=>Float) -> Plot n Float Float () given (n|Ix) =\n xs = for i:n. n_to_f $ ordinal i\n xy_plot xs ys\n"]},"tag":"Update"}],[1114,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef slice(xs:n=>a, start:Nat, m|Ix) -> m=>a given (n|Ix, a:Type) =\n for i. xs[from_ordinal (ordinal i + start)]\n"]},"tag":"Update"}],[1118,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef each(xs: n=>a, f:(a)->{|eff} b) -> {|eff} (n=>b) given (a:Type, b:Type, n|Ix, eff:Effects) =\n for i. f xs[i]\n"]},"tag":"Update"}],[1120,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in main:\nhmcSamples = runChain myInitializer (\\k x. hmcStep hmcParams myLogProb k x) numSamples k0\n"]},"tag":"Update"}],[1122,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef head(xs:n=>a) -> a given (n|Ix, a:Type) = xs[0@_]\n"]},"tag":"Update"}],[1129,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef Fin(n:Nat) -> Type = %Fin(n)\n"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[1108,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}{b:Type}{c:Type}{n:Type}[v#0:(Ix n)](plot:(Plot n a b c)) -> (List\n Word8))"]},"tag":"Update"}],[1110,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[1111,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({n:Type}[v#0:(Ix n)](ys:(n => Float32)) -> (Plot n Float32 Float32 ()))"]},"tag":"Update"}],[1113,{"contents":{"tnuHighlights":[],"tnuText":["Type: (Plot (Fin 1000) Float32 Float32 ())"]},"tag":"Update"}],[1114,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({n:Type}[v#0:(Ix n)]{a:Type}(xs:(n => a),start:Nat,m:Type)[v#1:(Ix m)] -> (m\n => a))"]},"tag":"Update"}],[1116,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((Fin numSamp) => Float32)"]},"tag":"Update"}],[1118,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}{b:Type}{n:Type}[v#0:(Ix n)]{eff:EffKind}(xs:(n\n => a),f:((v#1:a) -> {|eff} b)) -> {|eff} (n\n => b))"]},"tag":"Update"}],[1120,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((Fin numSamp) => (Fin 2) => Float32)"]},"tag":"Update"}],[1122,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({n:Type}[v#0:(Ix n)]{a:Type}(xs:(n => a)) -> a)"]},"tag":"Update"}],[1125,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}],[1126,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((Fin 1000) => Float32)"]},"tag":"Update"}],[1127,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[1129,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((n:Nat) -> Type)"]},"tag":"Update"}],[1131,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["TypePass",null],"tag":"RenderedPassResult"},{"contents":["SimpPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["OptPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"},{"contents":"","tag":"RenderedHtmlOut"}]],"tag":"Create"}]]}
\ No newline at end of file
diff --git a/examples/pi.json b/examples/pi.json
index 81a0723cb..c1c8e6600 100644
--- a/examples/pi.json
+++ b/examples/pi.json
@@ -1 +1 @@
-{"orderedNodesUpdate":{"numDropped":0,"newTail":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]},"nodeMapUpdate":[[0,{"contents":[{"rsbBlockId":0,"rsbHtml":"
","rsbLexemeList":[],"rsbNumLines":2,"rsbLine":1,"rsbText":"'# Monte Carlo Estimates of Pi\n\n"},"Inert",[]],"tag":"Create"}],[2,{"contents":[{"rsbBlockId":2,"rsbHtml":"
Consider the unit circle centered at the origin.
\n
","rsbLexemeList":[],"rsbNumLines":2,"rsbLine":3,"rsbText":"'Consider the unit circle centered at the origin.\n\n"},"Inert",[]],"tag":"Create"}],[3,{"contents":[{"rsbBlockId":3,"rsbHtml":"
Consider the first quadrant: the unit circle quadrant and its $1 \\times 1$ bounding unit square.
\n
","rsbLexemeList":[],"rsbNumLines":2,"rsbLine":5,"rsbText":"'Consider the first quadrant: the unit circle quadrant and its $1 \\times 1$ bounding unit square.\n\n"},"Inert",[]],"tag":"Create"}],[4,{"contents":[{"rsbBlockId":4,"rsbHtml":"
$$\\text{Area of unit circle quadrant: } \\\\ A_{quadrant} = \\frac{\\pi r^2}{4} = \\frac{\\pi}{4}$$
\n
","rsbLexemeList":[],"rsbNumLines":2,"rsbLine":7,"rsbText":"'$$\\text{Area of unit circle quadrant: } \\\\\\\\ A_{quadrant} = \\frac{\\pi r^2}{4} = \\frac{\\pi}{4}$$\n\n"},"Inert",[]],"tag":"Create"}],[5,{"contents":[{"rsbBlockId":5,"rsbHtml":"
$$\\text{Area of unit square: } \\\\ A_{square} = 1$$
\n
","rsbLexemeList":[],"rsbNumLines":2,"rsbLine":9,"rsbText":"'$$\\text{Area of unit square: } \\\\\\\\ A_{square} = 1$$\n\n"},"Inert",[]],"tag":"Create"}],[6,{"contents":[{"rsbBlockId":6,"rsbHtml":"
To compute $\\pi$, randomly sample points in the first quadrant unit square to estimate the $\\frac{A_{quadrant}}{A_{square}}$ ratio. Then, multiply by $4$.
\n
","rsbLexemeList":[],"rsbNumLines":2,"rsbLine":13,"rsbText":"'To compute $\\pi$, randomly sample points in the first quadrant unit square to estimate the $\\frac{A_{quadrant}}{A_{square}}$ ratio. Then, multiply by $4$.\n\n"},"Inert",[]],"tag":"Create"}],[8,{"contents":[{"rsbBlockId":8,"rsbHtml":"
","rsbLexemeList":[2,3,5,6,7,9,10,11,12,13,17,18,19,20,21,22,23,25,27,28,29,31,33,34,35,37,39,40,42,43,45,46,48,50,51,52,54,56,57,59,61],"rsbNumLines":6,"rsbLine":15,"rsbText":"def estimatePiArea(key:Key) -> Float =\n [k1, k2] = split_key key\n x = rand k1\n y = rand k2\n inBounds = (sq x + sq y) < 1.0\n 4.0 * b_to_f inBounds\n"},"CompleteWithErrors",[{"contents":[[2,1],[3,3],[5,4],[6,6],[7,8],[9,9],[10,4],[11,1],[12,12],[13,1],[17,16],[18,18],[19,16],[20,20],[21,16],[22,15],[23,23],[25,25],[27,27],[28,26],[29,29],[31,31],[33,33],[34,32],[35,35],[37,37],[39,39],[40,38],[42,41],[43,43],[45,45],[46,46],[48,48],[50,50],[51,41],[52,52],[54,54],[56,56],[57,57],[59,59],[61,61]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[2,61],"tnHighlights":[[1,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[1,{"contents":{"tnSpan":[2,61],"tnHighlights":[[2,"HighlightLeaf"],[11,"HighlightLeaf"],[13,"HighlightLeaf"],[3,"HighlightGroup"],[4,"HighlightGroup"],[12,"HighlightGroup"],[14,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[2,{"contents":{"tnSpan":[2,2],"tnHighlights":[[2,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[3,{"contents":{"tnSpan":[3,3],"tnHighlights":[[3,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[4,{"contents":{"tnSpan":[5,10],"tnHighlights":[[5,"HighlightLeaf"],[10,"HighlightLeaf"],[8,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[5,{"contents":{"tnSpan":[5,5],"tnHighlights":[[5,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[6,{"contents":{"tnSpan":[6,6],"tnHighlights":[[6,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[7,{"contents":{"tnSpan":[7,7],"tnHighlights":[[7,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[8,{"contents":{"tnSpan":[6,9],"tnHighlights":[[7,"HighlightLeaf"],[6,"HighlightGroup"],[9,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[9,{"contents":{"tnSpan":[9,9],"tnHighlights":[[9,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[10,{"contents":{"tnSpan":[10,10],"tnHighlights":[[10,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[11,{"contents":{"tnSpan":[11,11],"tnHighlights":[[11,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[12,{"contents":{"tnSpan":[12,12],"tnHighlights":[[12,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[13,{"contents":{"tnSpan":[13,13],"tnHighlights":[[13,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[14,{"contents":{"tnSpan":[17,61],"tnHighlights":[[15,"HighlightGroup"],[26,"HighlightGroup"],[32,"HighlightGroup"],[38,"HighlightGroup"],[55,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[15,{"contents":{"tnSpan":[17,25],"tnHighlights":[[22,"HighlightLeaf"],[16,"HighlightGroup"],[24,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[16,{"contents":{"tnSpan":[17,21],"tnHighlights":[[17,"HighlightLeaf"],[19,"HighlightLeaf"],[21,"HighlightLeaf"],[18,"HighlightGroup"],[20,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[17,{"contents":{"tnSpan":[17,17],"tnHighlights":[[17,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[18,{"contents":{"tnSpan":[18,18],"tnHighlights":[[18,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[19,{"contents":{"tnSpan":[19,19],"tnHighlights":[[19,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[20,{"contents":{"tnSpan":[20,20],"tnHighlights":[[20,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[21,{"contents":{"tnSpan":[21,21],"tnHighlights":[[21,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[22,{"contents":{"tnSpan":[22,22],"tnHighlights":[[22,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[23,{"contents":{"tnSpan":[23,23],"tnHighlights":[[23,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[24,{"contents":{"tnSpan":[23,25],"tnHighlights":[[23,"HighlightGroup"],[25,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[25,{"contents":{"tnSpan":[25,25],"tnHighlights":[[25,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[26,{"contents":{"tnSpan":[27,31],"tnHighlights":[[28,"HighlightLeaf"],[27,"HighlightGroup"],[30,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[27,{"contents":{"tnSpan":[27,27],"tnHighlights":[[27,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[28,{"contents":{"tnSpan":[28,28],"tnHighlights":[[28,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[29,{"contents":{"tnSpan":[29,29],"tnHighlights":[[29,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[30,{"contents":{"tnSpan":[29,31],"tnHighlights":[[29,"HighlightGroup"],[31,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[31,{"contents":{"tnSpan":[31,31],"tnHighlights":[[31,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[32,{"contents":{"tnSpan":[33,37],"tnHighlights":[[34,"HighlightLeaf"],[33,"HighlightGroup"],[36,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[33,{"contents":{"tnSpan":[33,33],"tnHighlights":[[33,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[34,{"contents":{"tnSpan":[34,34],"tnHighlights":[[34,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[35,{"contents":{"tnSpan":[35,35],"tnHighlights":[[35,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[36,{"contents":{"tnSpan":[35,37],"tnHighlights":[[35,"HighlightGroup"],[37,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[37,{"contents":{"tnSpan":[37,37],"tnHighlights":[[37,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[38,{"contents":{"tnSpan":[39,54],"tnHighlights":[[40,"HighlightLeaf"],[39,"HighlightGroup"],[53,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[39,{"contents":{"tnSpan":[39,39],"tnHighlights":[[39,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[40,{"contents":{"tnSpan":[40,40],"tnHighlights":[[40,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[41,{"contents":{"tnSpan":[42,51],"tnHighlights":[[42,"HighlightLeaf"],[51,"HighlightLeaf"],[47,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[42,{"contents":{"tnSpan":[42,42],"tnHighlights":[[42,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[43,{"contents":{"tnSpan":[43,43],"tnHighlights":[[43,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[44,{"contents":{"tnSpan":[43,45],"tnHighlights":[[43,"HighlightGroup"],[45,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[45,{"contents":{"tnSpan":[45,45],"tnHighlights":[[45,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[46,{"contents":{"tnSpan":[46,46],"tnHighlights":[[46,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[47,{"contents":{"tnSpan":[43,50],"tnHighlights":[[44,"HighlightGroup"],[46,"HighlightGroup"],[49,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[48,{"contents":{"tnSpan":[48,48],"tnHighlights":[[48,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[49,{"contents":{"tnSpan":[48,50],"tnHighlights":[[48,"HighlightGroup"],[50,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[50,{"contents":{"tnSpan":[50,50],"tnHighlights":[[50,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[51,{"contents":{"tnSpan":[51,51],"tnHighlights":[[51,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[52,{"contents":{"tnSpan":[52,52],"tnHighlights":[[52,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[53,{"contents":{"tnSpan":[42,54],"tnHighlights":[[41,"HighlightGroup"],[52,"HighlightGroup"],[54,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[54,{"contents":{"tnSpan":[54,54],"tnHighlights":[[54,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[55,{"contents":{"tnSpan":[56,61],"tnHighlights":[[58,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[56,{"contents":{"tnSpan":[56,56],"tnHighlights":[[56,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[57,{"contents":{"tnSpan":[57,57],"tnHighlights":[[57,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[58,{"contents":{"tnSpan":[56,61],"tnHighlights":[[56,"HighlightGroup"],[57,"HighlightGroup"],[60,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[59,{"contents":{"tnSpan":[59,59],"tnHighlights":[[59,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[60,{"contents":{"tnSpan":[59,61],"tnHighlights":[[59,"HighlightGroup"],[61,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[61,{"contents":{"tnSpan":[61,61],"tnHighlights":[[61,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[3,{"contents":{"tnuHighlights":[[3,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[6,{"contents":{"tnuHighlights":[[6,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[9,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nKey = Word64\n"]},"tag":"Update"}],[12,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nFloat = Float32\n"]},"tag":"Update"}],[18,{"contents":{"tnuHighlights":[[18,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[20,{"contents":{"tnuHighlights":[[20,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[23,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef split_key(k:Key) -> Fin n => Key given (n:Nat) = for i. ixkey(k, i)\n"]},"tag":"Update"}],[25,{"contents":{"tnuHighlights":[[6,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[6,{"contents":{"tnuHighlights":[[25,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[27,{"contents":{"tnuHighlights":[[27,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[29,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef rand(k:Key) -> Float =\n exponent_bits : Word32 = 1065353216 # 1065353216 = 127 << 23\n mantissa_bits = (high_word k .&. 8388607) # 8388607 == (1 << 23) - 1\n bits = exponent_bits .|. mantissa_bits\n %bitcast(Float, bits) - 1.0\n"]},"tag":"Update"}],[31,{"contents":{"tnuHighlights":[[18,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[18,{"contents":{"tnuHighlights":[[31,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[33,{"contents":{"tnuHighlights":[[33,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[35,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef rand(k:Key) -> Float =\n exponent_bits : Word32 = 1065353216 # 1065353216 = 127 << 23\n mantissa_bits = (high_word k .&. 8388607) # 8388607 == (1 << 23) - 1\n bits = exponent_bits .|. mantissa_bits\n %bitcast(Float, bits) - 1.0\n"]},"tag":"Update"}],[37,{"contents":{"tnuHighlights":[[20,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[20,{"contents":{"tnuHighlights":[[37,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[39,{"contents":{"tnuHighlights":[[39,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[43,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef sq(x:a) -> a given (a|Mul) = x * x\n"]},"tag":"Update"}],[45,{"contents":{"tnuHighlights":[[27,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[27,{"contents":{"tnuHighlights":[[45,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[46,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Add(a|Data)\n (+) : (a, a) -> a\n zero : a\n"]},"tag":"Update"}],[48,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef sq(x:a) -> a given (a|Mul) = x * x\n"]},"tag":"Update"}],[50,{"contents":{"tnuHighlights":[[33,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[33,{"contents":{"tnuHighlights":[[50,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[52,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Ord(a|Eq)\n (>) : (a, a) -> Bool\n (<) : (a, a) -> Bool\n"]},"tag":"Update"}],[57,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Mul(a|Data)\n (*) : (a, a) -> a\n one : a\n"]},"tag":"Update"}],[59,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef b_to_f(x:Bool) -> Float = i_to_f(b_to_i x)\n"]},"tag":"Update"}],[61,{"contents":{"tnuHighlights":[[39,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[39,{"contents":{"tnuHighlights":[[61,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[6,{"contents":{"tnuHighlights":[],"tnuText":["Type: Word64"]},"tag":"Update"}],[9,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[12,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[23,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({n:Nat}(k:Word64) -> ((Fin n) => Word64))"]},"tag":"Update"}],[25,{"contents":{"tnuHighlights":[],"tnuText":["Type: Word64"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":[24,"Type error: couldn't infer implicit argument `n` of split_key"],"tag":"RenderedError"}]],"tag":"Create"}],[9,{"contents":[{"rsbBlockId":9,"rsbHtml":"
","rsbLexemeList":[98,99,101,102,103,105,106,107,108,111,112,113,114,116,117,118,119,121,122,123,125,126,127,128,129,130,133,134,136,137,138,141,142,144,145,146,147,149,151,153,156,157,159,160,161,163,164],"rsbNumLines":3,"rsbLine":26,"rsbText":"def meanAndStdDev(n:Nat, f: (Key) -> Float, key:Key) -> (Float, Float) =\n samps = for i:(Fin n). many f key i\n (mean samps, std samps)\n"},"Complete",[{"contents":[[98,97],[99,99],[101,100],[102,102],[103,104],[105,105],[106,100],[107,107],[108,109],[111,110],[112,112],[113,110],[114,115],[116,116],[117,100],[118,118],[119,120],[121,121],[122,100],[123,97],[125,124],[126,126],[127,124],[128,128],[129,124],[130,97],[133,133],[134,132],[136,135],[137,137],[138,139],[141,140],[142,142],[144,144],[145,140],[146,135],[147,147],[149,149],[151,151],[153,153],[156,155],[157,157],[159,159],[160,155],[161,161],[163,163],[164,155]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[98,164],"tnHighlights":[[97,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[97,{"contents":{"tnSpan":[98,164],"tnHighlights":[[98,"HighlightLeaf"],[123,"HighlightLeaf"],[130,"HighlightLeaf"],[99,"HighlightGroup"],[100,"HighlightGroup"],[124,"HighlightGroup"],[131,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[98,{"contents":{"tnSpan":[98,98],"tnHighlights":[[98,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[99,{"contents":{"tnSpan":[99,99],"tnHighlights":[[99,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[100,{"contents":{"tnSpan":[101,122],"tnHighlights":[[101,"HighlightLeaf"],[106,"HighlightLeaf"],[117,"HighlightLeaf"],[122,"HighlightLeaf"],[104,"HighlightGroup"],[109,"HighlightGroup"],[120,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[101,{"contents":{"tnSpan":[101,101],"tnHighlights":[[101,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[102,{"contents":{"tnSpan":[102,102],"tnHighlights":[[102,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[103,{"contents":{"tnSpan":[103,103],"tnHighlights":[[103,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[104,{"contents":{"tnSpan":[102,105],"tnHighlights":[[103,"HighlightLeaf"],[102,"HighlightGroup"],[105,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[105,{"contents":{"tnSpan":[105,105],"tnHighlights":[[105,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[106,{"contents":{"tnSpan":[106,106],"tnHighlights":[[106,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[107,{"contents":{"tnSpan":[107,107],"tnHighlights":[[107,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[108,{"contents":{"tnSpan":[108,108],"tnHighlights":[[108,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[109,{"contents":{"tnSpan":[107,116],"tnHighlights":[[108,"HighlightLeaf"],[107,"HighlightGroup"],[115,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[110,{"contents":{"tnSpan":[111,113],"tnHighlights":[[111,"HighlightLeaf"],[113,"HighlightLeaf"],[112,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[111,{"contents":{"tnSpan":[111,111],"tnHighlights":[[111,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[112,{"contents":{"tnSpan":[112,112],"tnHighlights":[[112,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[113,{"contents":{"tnSpan":[113,113],"tnHighlights":[[113,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[114,{"contents":{"tnSpan":[114,114],"tnHighlights":[[114,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[115,{"contents":{"tnSpan":[111,116],"tnHighlights":[[114,"HighlightLeaf"],[110,"HighlightGroup"],[116,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[116,{"contents":{"tnSpan":[116,116],"tnHighlights":[[116,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[117,{"contents":{"tnSpan":[117,117],"tnHighlights":[[117,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[118,{"contents":{"tnSpan":[118,118],"tnHighlights":[[118,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[119,{"contents":{"tnSpan":[119,119],"tnHighlights":[[119,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[120,{"contents":{"tnSpan":[118,121],"tnHighlights":[[119,"HighlightLeaf"],[118,"HighlightGroup"],[121,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[121,{"contents":{"tnSpan":[121,121],"tnHighlights":[[121,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[122,{"contents":{"tnSpan":[122,122],"tnHighlights":[[122,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[123,{"contents":{"tnSpan":[123,123],"tnHighlights":[[123,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[124,{"contents":{"tnSpan":[125,129],"tnHighlights":[[125,"HighlightLeaf"],[127,"HighlightLeaf"],[129,"HighlightLeaf"],[126,"HighlightGroup"],[128,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[125,{"contents":{"tnSpan":[125,125],"tnHighlights":[[125,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[126,{"contents":{"tnSpan":[126,126],"tnHighlights":[[126,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[127,{"contents":{"tnSpan":[127,127],"tnHighlights":[[127,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[128,{"contents":{"tnSpan":[128,128],"tnHighlights":[[128,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[129,{"contents":{"tnSpan":[129,129],"tnHighlights":[[129,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[130,{"contents":{"tnSpan":[130,130],"tnHighlights":[[130,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[131,{"contents":{"tnSpan":[133,164],"tnHighlights":[[132,"HighlightGroup"],[154,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[132,{"contents":{"tnSpan":[133,153],"tnHighlights":[[134,"HighlightLeaf"],[133,"HighlightGroup"],[135,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[133,{"contents":{"tnSpan":[133,133],"tnHighlights":[[133,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[134,{"contents":{"tnSpan":[134,134],"tnHighlights":[[134,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[135,{"contents":{"tnSpan":[136,153],"tnHighlights":[[136,"HighlightLeaf"],[146,"HighlightLeaf"],[139,"HighlightGroup"],[152,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[136,{"contents":{"tnSpan":[136,136],"tnHighlights":[[136,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[137,{"contents":{"tnSpan":[137,137],"tnHighlights":[[137,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[138,{"contents":{"tnSpan":[138,138],"tnHighlights":[[138,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[139,{"contents":{"tnSpan":[137,145],"tnHighlights":[[138,"HighlightLeaf"],[137,"HighlightGroup"],[140,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[140,{"contents":{"tnSpan":[141,145],"tnHighlights":[[141,"HighlightLeaf"],[145,"HighlightLeaf"],[143,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[141,{"contents":{"tnSpan":[141,141],"tnHighlights":[[141,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[142,{"contents":{"tnSpan":[142,142],"tnHighlights":[[142,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[143,{"contents":{"tnSpan":[142,144],"tnHighlights":[[142,"HighlightGroup"],[144,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[144,{"contents":{"tnSpan":[144,144],"tnHighlights":[[144,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[145,{"contents":{"tnSpan":[145,145],"tnHighlights":[[145,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[146,{"contents":{"tnSpan":[146,146],"tnHighlights":[[146,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[147,{"contents":{"tnSpan":[147,147],"tnHighlights":[[147,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[148,{"contents":{"tnSpan":[147,149],"tnHighlights":[[147,"HighlightGroup"],[149,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[149,{"contents":{"tnSpan":[149,149],"tnHighlights":[[149,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[150,{"contents":{"tnSpan":[147,151],"tnHighlights":[[148,"HighlightGroup"],[151,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[151,{"contents":{"tnSpan":[151,151],"tnHighlights":[[151,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[152,{"contents":{"tnSpan":[147,153],"tnHighlights":[[150,"HighlightGroup"],[153,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[153,{"contents":{"tnSpan":[153,153],"tnHighlights":[[153,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[154,{"contents":{"tnSpan":[156,164],"tnHighlights":[[155,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[155,{"contents":{"tnSpan":[156,164],"tnHighlights":[[156,"HighlightLeaf"],[160,"HighlightLeaf"],[164,"HighlightLeaf"],[158,"HighlightGroup"],[162,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[156,{"contents":{"tnSpan":[156,156],"tnHighlights":[[156,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[157,{"contents":{"tnSpan":[157,157],"tnHighlights":[[157,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[158,{"contents":{"tnSpan":[157,159],"tnHighlights":[[157,"HighlightGroup"],[159,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[159,{"contents":{"tnSpan":[159,159],"tnHighlights":[[159,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[160,{"contents":{"tnSpan":[160,160],"tnHighlights":[[160,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[161,{"contents":{"tnSpan":[161,161],"tnHighlights":[[161,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[162,{"contents":{"tnSpan":[161,163],"tnHighlights":[[161,"HighlightGroup"],[163,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[163,{"contents":{"tnSpan":[163,163],"tnHighlights":[[163,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[164,{"contents":{"tnSpan":[164,164],"tnHighlights":[[164,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[99,{"contents":{"tnuHighlights":[[99,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[102,{"contents":{"tnuHighlights":[[102,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[105,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nNat = %Nat()\n"]},"tag":"Update"}],[107,{"contents":{"tnuHighlights":[[107,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[112,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nKey = Word64\n"]},"tag":"Update"}],[116,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nFloat = Float32\n"]},"tag":"Update"}],[118,{"contents":{"tnuHighlights":[[118,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[121,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nKey = Word64\n"]},"tag":"Update"}],[126,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nFloat = Float32\n"]},"tag":"Update"}],[128,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nFloat = Float32\n"]},"tag":"Update"}],[133,{"contents":{"tnuHighlights":[[133,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[137,{"contents":{"tnuHighlights":[[137,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[142,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef Fin(n:Nat) -> Type = %Fin(n)\n"]},"tag":"Update"}],[144,{"contents":{"tnuHighlights":[[102,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[102,{"contents":{"tnuHighlights":[[144,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[147,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef many(f:(Key)->a, k:Key, i:n) -> a given (a:Type, n|Ix) = f hash(k, ordinal i)\n"]},"tag":"Update"}],[149,{"contents":{"tnuHighlights":[[107,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[107,{"contents":{"tnuHighlights":[[149,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[151,{"contents":{"tnuHighlights":[[118,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[118,{"contents":{"tnuHighlights":[[151,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[153,{"contents":{"tnuHighlights":[[137,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[137,{"contents":{"tnuHighlights":[[153,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[157,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef mean(xs:n=>v) -> v given (n|Ix, v|VSpace) = sum xs / n_to_f (size n)\n"]},"tag":"Update"}],[159,{"contents":{"tnuHighlights":[[133,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[133,{"contents":{"tnuHighlights":[[159,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[161,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef std(xs:n=>v) -> v given (n|Ix, v|Mul|Sub|VSpace|Floating) = sqrt $ mean (each xs sq) - sq (mean xs)\n"]},"tag":"Update"}],[163,{"contents":{"tnuHighlights":[[133,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[133,{"contents":{"tnuHighlights":[[163,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[97,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((n:Nat,f:((v#0:Word64) -> Float32),key:Word64) -> (Float32, Float32))"]},"tag":"Update"}],[102,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}],[105,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[107,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((v#0:Word64) -> Float32)"]},"tag":"Update"}],[112,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[115,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[116,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[118,{"contents":{"tnuHighlights":[],"tnuText":["Type: Word64"]},"tag":"Update"}],[121,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[124,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[126,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[128,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[133,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((Fin n) => Float32)"]},"tag":"Update"}],[135,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((Fin n) => Float32)"]},"tag":"Update"}],[137,{"contents":{"tnuHighlights":[],"tnuText":["Type: (Fin n)"]},"tag":"Update"}],[140,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[142,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((n:Nat) -> Type)"]},"tag":"Update"}],[144,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}],[147,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}{n:Type}[v#0:(Ix n)](f:((v#1:Word64) -> a),k:Word64,i:n) -> a)"]},"tag":"Update"}],[149,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((v#0:Word64) -> Float32)"]},"tag":"Update"}],[151,{"contents":{"tnuHighlights":[],"tnuText":["Type: Word64"]},"tag":"Update"}],[152,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}],[153,{"contents":{"tnuHighlights":[],"tnuText":["Type: (Fin n)"]},"tag":"Update"}],[155,{"contents":{"tnuHighlights":[],"tnuText":["Type: (Float32, Float32)"]},"tag":"Update"}],[157,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({n:Type}[v#0:(Ix n)]{v:Type}[v#1:(VSpace v)](xs:(n => v)) -> v)"]},"tag":"Update"}],[158,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}],[159,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((Fin n) => Float32)"]},"tag":"Update"}],[161,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({n:Type}[v#0:(Ix n)]{v:Type}[v#1:(Mul v),v#2:(Sub v),v#3:(VSpace v),v#4:(Floating v)](xs:(n\n => v)) -> v)"]},"tag":"Update"}],[162,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}],[163,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((Fin n) => Float32)"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["TypePass",null],"tag":"RenderedPassResult"},{"contents":["SimpPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["OptPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"}]],"tag":"Create"}],[13,{"contents":[{"rsbBlockId":13,"rsbHtml":"
","rsbLexemeList":[169,170,172,174,177,178,180,181],"rsbNumLines":1,"rsbLine":32,"rsbText":":p meanAndStdDev numSamps estimatePiArea (new_key 0)\n"},"CompleteWithErrors",[{"contents":[[170,170],[172,172],[174,174],[177,176],[178,178],[180,180],[181,176]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[170,181],"tnHighlights":[[175,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[170,{"contents":{"tnSpan":[170,170],"tnHighlights":[[170,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[171,{"contents":{"tnSpan":[170,172],"tnHighlights":[[170,"HighlightGroup"],[172,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[172,{"contents":{"tnSpan":[172,172],"tnHighlights":[[172,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[173,{"contents":{"tnSpan":[170,174],"tnHighlights":[[171,"HighlightGroup"],[174,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[174,{"contents":{"tnSpan":[174,174],"tnHighlights":[[174,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[175,{"contents":{"tnSpan":[170,181],"tnHighlights":[[173,"HighlightGroup"],[176,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[176,{"contents":{"tnSpan":[177,181],"tnHighlights":[[177,"HighlightLeaf"],[181,"HighlightLeaf"],[179,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[177,{"contents":{"tnSpan":[177,177],"tnHighlights":[[177,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[178,{"contents":{"tnSpan":[178,178],"tnHighlights":[[178,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[179,{"contents":{"tnSpan":[178,180],"tnHighlights":[[178,"HighlightGroup"],[180,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[180,{"contents":{"tnSpan":[180,180],"tnHighlights":[[180,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[181,{"contents":{"tnSpan":[181,181],"tnHighlights":[[181,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[170,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in main:\ndef meanAndStdDev(n:Nat, f: (Key) -> Float, key:Key) -> (Float, Float) =\n samps = for i:(Fin n). many f key i\n (mean samps, std samps)\n"]},"tag":"Update"}],[172,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in main:\nnumSamps = 1000000\n"]},"tag":"Update"}],[175,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef show_any(x:a) -> String given (a:Type) = unsafe_coerce(to=String, %showAny(x))\n"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":[174,"Name error: error in (earlier) definition of variable: estimatePiArea"],"tag":"RenderedError"}]],"tag":"Create"}],[17,{"contents":[{"rsbBlockId":17,"rsbHtml":"
","rsbLexemeList":[182,183,185,187,190,191,193,194],"rsbNumLines":1,"rsbLine":35,"rsbText":":p meanAndStdDev numSamps estimatePiAvgVal (new_key 0)\n"},"Complete",[{"contents":[[183,183],[185,185],[187,187],[190,189],[191,191],[193,193],[194,189]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[183,194],"tnHighlights":[[188,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[183,{"contents":{"tnSpan":[183,183],"tnHighlights":[[183,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[184,{"contents":{"tnSpan":[183,185],"tnHighlights":[[183,"HighlightGroup"],[185,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[185,{"contents":{"tnSpan":[185,185],"tnHighlights":[[185,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[186,{"contents":{"tnSpan":[183,187],"tnHighlights":[[184,"HighlightGroup"],[187,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[187,{"contents":{"tnSpan":[187,187],"tnHighlights":[[187,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[188,{"contents":{"tnSpan":[183,194],"tnHighlights":[[186,"HighlightGroup"],[189,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[189,{"contents":{"tnSpan":[190,194],"tnHighlights":[[190,"HighlightLeaf"],[194,"HighlightLeaf"],[192,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[190,{"contents":{"tnSpan":[190,190],"tnHighlights":[[190,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[191,{"contents":{"tnSpan":[191,191],"tnHighlights":[[191,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[192,{"contents":{"tnSpan":[191,193],"tnHighlights":[[191,"HighlightGroup"],[193,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[193,{"contents":{"tnSpan":[193,193],"tnHighlights":[[193,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[194,{"contents":{"tnSpan":[194,194],"tnHighlights":[[194,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[183,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in main:\ndef meanAndStdDev(n:Nat, f: (Key) -> Float, key:Key) -> (Float, Float) =\n samps = for i:(Fin n). many f key i\n (mean samps, std samps)\n"]},"tag":"Update"}],[185,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in main:\nnumSamps = 1000000\n"]},"tag":"Update"}],[187,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in main:\ndef estimatePiAvgVal(key:Key) -> Float =\n x = rand key\n 4.0 * sqrt (1.0 - sq x)\n"]},"tag":"Update"}],[188,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef show_any(x:a) -> String given (a:Type) = unsafe_coerce(to=String, %showAny(x))\n"]},"tag":"Update"}],[191,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef new_key(x:Nat) -> Key = hash(0, x)\n"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[183,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((n:Nat,f:((v#0:Word64) -> Float32),key:Word64) -> (Float32, Float32))"]},"tag":"Update"}],[185,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}],[187,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((key:Word64) -> Float32)"]},"tag":"Update"}],[188,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}(x:a) -> (List Word8))"]},"tag":"Update"}],[189,{"contents":{"tnuHighlights":[],"tnuText":["Type: Word64"]},"tag":"Update"}],[191,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((x:Nat) -> Word64)"]},"tag":"Update"}],[193,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["TypePass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"},{"contents":["SimpPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["OptPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"},{"contents":"(3.145509, 0.886251)","tag":"RenderedTextOut"}]],"tag":"Create"}]]}
\ No newline at end of file
+{"orderedNodesUpdate":{"numDropped":0,"newTail":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]},"nodeMapUpdate":[[0,{"contents":[{"rsbBlockId":0,"rsbHtml":"
","rsbLexemeList":[],"rsbNumLines":2,"rsbLine":1,"rsbText":"'# Monte Carlo Estimates of Pi\n\n"},"Inert",[]],"tag":"Create"}],[2,{"contents":[{"rsbBlockId":2,"rsbHtml":"
Consider the unit circle centered at the origin.
\n
","rsbLexemeList":[],"rsbNumLines":2,"rsbLine":3,"rsbText":"'Consider the unit circle centered at the origin.\n\n"},"Inert",[]],"tag":"Create"}],[3,{"contents":[{"rsbBlockId":3,"rsbHtml":"
Consider the first quadrant: the unit circle quadrant and its $1 \\times 1$ bounding unit square.
\n
","rsbLexemeList":[],"rsbNumLines":2,"rsbLine":5,"rsbText":"'Consider the first quadrant: the unit circle quadrant and its $1 \\times 1$ bounding unit square.\n\n"},"Inert",[]],"tag":"Create"}],[4,{"contents":[{"rsbBlockId":4,"rsbHtml":"
$$\\text{Area of unit circle quadrant: } \\\\ A_{quadrant} = \\frac{\\pi r^2}{4} = \\frac{\\pi}{4}$$
\n
","rsbLexemeList":[],"rsbNumLines":2,"rsbLine":7,"rsbText":"'$$\\text{Area of unit circle quadrant: } \\\\\\\\ A_{quadrant} = \\frac{\\pi r^2}{4} = \\frac{\\pi}{4}$$\n\n"},"Inert",[]],"tag":"Create"}],[5,{"contents":[{"rsbBlockId":5,"rsbHtml":"
$$\\text{Area of unit square: } \\\\ A_{square} = 1$$
\n
","rsbLexemeList":[],"rsbNumLines":2,"rsbLine":9,"rsbText":"'$$\\text{Area of unit square: } \\\\\\\\ A_{square} = 1$$\n\n"},"Inert",[]],"tag":"Create"}],[6,{"contents":[{"rsbBlockId":6,"rsbHtml":"
To compute $\\pi$, randomly sample points in the first quadrant unit square to estimate the $\\frac{A_{quadrant}}{A_{square}}$ ratio. Then, multiply by $4$.
\n
","rsbLexemeList":[],"rsbNumLines":2,"rsbLine":13,"rsbText":"'To compute $\\pi$, randomly sample points in the first quadrant unit square to estimate the $\\frac{A_{quadrant}}{A_{square}}$ ratio. Then, multiply by $4$.\n\n"},"Inert",[]],"tag":"Create"}],[8,{"contents":[{"rsbBlockId":8,"rsbHtml":"
","rsbLexemeList":[106,107,109,110,111,113,114,115,116,119,120,121,122,124,125,126,127,129,130,131,133,134,135,136,137,138,141,142,144,145,146,149,150,152,153,154,155,157,159,161,164,165,167,168,169,171,172],"rsbNumLines":3,"rsbLine":26,"rsbText":"def meanAndStdDev(n:Nat, f: (Key) -> Float, key:Key) -> (Float, Float) =\n samps = for i:(Fin n). many f key i\n (mean samps, std samps)\n"},"Complete",[{"contents":[[106,105],[107,107],[109,108],[110,110],[111,112],[113,113],[114,108],[115,115],[116,117],[119,118],[120,120],[121,118],[122,123],[124,124],[125,108],[126,126],[127,128],[129,129],[130,108],[131,105],[133,132],[134,134],[135,132],[136,136],[137,132],[138,105],[141,141],[142,140],[144,143],[145,145],[146,147],[149,148],[150,150],[152,152],[153,148],[154,143],[155,155],[157,157],[159,159],[161,161],[164,163],[165,165],[167,167],[168,163],[169,169],[171,171],[172,163]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[106,172],"tnHighlights":[[105,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[105,{"contents":{"tnSpan":[106,172],"tnHighlights":[[106,"HighlightLeaf"],[131,"HighlightLeaf"],[138,"HighlightLeaf"],[107,"HighlightGroup"],[108,"HighlightGroup"],[132,"HighlightGroup"],[139,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[106,{"contents":{"tnSpan":[106,106],"tnHighlights":[[106,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[107,{"contents":{"tnSpan":[107,107],"tnHighlights":[[107,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[108,{"contents":{"tnSpan":[109,130],"tnHighlights":[[109,"HighlightLeaf"],[114,"HighlightLeaf"],[125,"HighlightLeaf"],[130,"HighlightLeaf"],[112,"HighlightGroup"],[117,"HighlightGroup"],[128,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[109,{"contents":{"tnSpan":[109,109],"tnHighlights":[[109,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[110,{"contents":{"tnSpan":[110,110],"tnHighlights":[[110,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[111,{"contents":{"tnSpan":[111,111],"tnHighlights":[[111,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[112,{"contents":{"tnSpan":[110,113],"tnHighlights":[[111,"HighlightLeaf"],[110,"HighlightGroup"],[113,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[113,{"contents":{"tnSpan":[113,113],"tnHighlights":[[113,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[114,{"contents":{"tnSpan":[114,114],"tnHighlights":[[114,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[115,{"contents":{"tnSpan":[115,115],"tnHighlights":[[115,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[116,{"contents":{"tnSpan":[116,116],"tnHighlights":[[116,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[117,{"contents":{"tnSpan":[115,124],"tnHighlights":[[116,"HighlightLeaf"],[115,"HighlightGroup"],[123,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[118,{"contents":{"tnSpan":[119,121],"tnHighlights":[[119,"HighlightLeaf"],[121,"HighlightLeaf"],[120,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[119,{"contents":{"tnSpan":[119,119],"tnHighlights":[[119,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[120,{"contents":{"tnSpan":[120,120],"tnHighlights":[[120,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[121,{"contents":{"tnSpan":[121,121],"tnHighlights":[[121,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[122,{"contents":{"tnSpan":[122,122],"tnHighlights":[[122,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[123,{"contents":{"tnSpan":[119,124],"tnHighlights":[[122,"HighlightLeaf"],[118,"HighlightGroup"],[124,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[124,{"contents":{"tnSpan":[124,124],"tnHighlights":[[124,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[125,{"contents":{"tnSpan":[125,125],"tnHighlights":[[125,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[126,{"contents":{"tnSpan":[126,126],"tnHighlights":[[126,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[127,{"contents":{"tnSpan":[127,127],"tnHighlights":[[127,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[128,{"contents":{"tnSpan":[126,129],"tnHighlights":[[127,"HighlightLeaf"],[126,"HighlightGroup"],[129,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[129,{"contents":{"tnSpan":[129,129],"tnHighlights":[[129,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[130,{"contents":{"tnSpan":[130,130],"tnHighlights":[[130,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[131,{"contents":{"tnSpan":[131,131],"tnHighlights":[[131,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[132,{"contents":{"tnSpan":[133,137],"tnHighlights":[[133,"HighlightLeaf"],[135,"HighlightLeaf"],[137,"HighlightLeaf"],[134,"HighlightGroup"],[136,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[133,{"contents":{"tnSpan":[133,133],"tnHighlights":[[133,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[134,{"contents":{"tnSpan":[134,134],"tnHighlights":[[134,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[135,{"contents":{"tnSpan":[135,135],"tnHighlights":[[135,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[136,{"contents":{"tnSpan":[136,136],"tnHighlights":[[136,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[137,{"contents":{"tnSpan":[137,137],"tnHighlights":[[137,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[138,{"contents":{"tnSpan":[138,138],"tnHighlights":[[138,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[139,{"contents":{"tnSpan":[141,172],"tnHighlights":[[140,"HighlightGroup"],[162,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[140,{"contents":{"tnSpan":[141,161],"tnHighlights":[[142,"HighlightLeaf"],[141,"HighlightGroup"],[143,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[141,{"contents":{"tnSpan":[141,141],"tnHighlights":[[141,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[142,{"contents":{"tnSpan":[142,142],"tnHighlights":[[142,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[143,{"contents":{"tnSpan":[144,161],"tnHighlights":[[144,"HighlightLeaf"],[154,"HighlightLeaf"],[147,"HighlightGroup"],[160,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[144,{"contents":{"tnSpan":[144,144],"tnHighlights":[[144,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[145,{"contents":{"tnSpan":[145,145],"tnHighlights":[[145,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[146,{"contents":{"tnSpan":[146,146],"tnHighlights":[[146,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[147,{"contents":{"tnSpan":[145,153],"tnHighlights":[[146,"HighlightLeaf"],[145,"HighlightGroup"],[148,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[148,{"contents":{"tnSpan":[149,153],"tnHighlights":[[149,"HighlightLeaf"],[153,"HighlightLeaf"],[151,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[149,{"contents":{"tnSpan":[149,149],"tnHighlights":[[149,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[150,{"contents":{"tnSpan":[150,150],"tnHighlights":[[150,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[151,{"contents":{"tnSpan":[150,152],"tnHighlights":[[150,"HighlightGroup"],[152,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[152,{"contents":{"tnSpan":[152,152],"tnHighlights":[[152,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[153,{"contents":{"tnSpan":[153,153],"tnHighlights":[[153,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[154,{"contents":{"tnSpan":[154,154],"tnHighlights":[[154,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[155,{"contents":{"tnSpan":[155,155],"tnHighlights":[[155,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[156,{"contents":{"tnSpan":[155,157],"tnHighlights":[[155,"HighlightGroup"],[157,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[157,{"contents":{"tnSpan":[157,157],"tnHighlights":[[157,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[158,{"contents":{"tnSpan":[155,159],"tnHighlights":[[156,"HighlightGroup"],[159,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[159,{"contents":{"tnSpan":[159,159],"tnHighlights":[[159,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[160,{"contents":{"tnSpan":[155,161],"tnHighlights":[[158,"HighlightGroup"],[161,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[161,{"contents":{"tnSpan":[161,161],"tnHighlights":[[161,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[162,{"contents":{"tnSpan":[164,172],"tnHighlights":[[163,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[163,{"contents":{"tnSpan":[164,172],"tnHighlights":[[164,"HighlightLeaf"],[168,"HighlightLeaf"],[172,"HighlightLeaf"],[166,"HighlightGroup"],[170,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[164,{"contents":{"tnSpan":[164,164],"tnHighlights":[[164,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[165,{"contents":{"tnSpan":[165,165],"tnHighlights":[[165,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[166,{"contents":{"tnSpan":[165,167],"tnHighlights":[[165,"HighlightGroup"],[167,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[167,{"contents":{"tnSpan":[167,167],"tnHighlights":[[167,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[168,{"contents":{"tnSpan":[168,168],"tnHighlights":[[168,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[169,{"contents":{"tnSpan":[169,169],"tnHighlights":[[169,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[170,{"contents":{"tnSpan":[169,171],"tnHighlights":[[169,"HighlightGroup"],[171,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[171,{"contents":{"tnSpan":[171,171],"tnHighlights":[[171,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[172,{"contents":{"tnSpan":[172,172],"tnHighlights":[[172,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[107,{"contents":{"tnuHighlights":[[107,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[110,{"contents":{"tnuHighlights":[[110,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[113,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nNat = %Nat()\n"]},"tag":"Update"}],[115,{"contents":{"tnuHighlights":[[115,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[120,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nKey = Word64\n"]},"tag":"Update"}],[124,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nFloat = Float32\n"]},"tag":"Update"}],[126,{"contents":{"tnuHighlights":[[126,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[129,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nKey = Word64\n"]},"tag":"Update"}],[134,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nFloat = Float32\n"]},"tag":"Update"}],[136,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nFloat = Float32\n"]},"tag":"Update"}],[141,{"contents":{"tnuHighlights":[[141,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[145,{"contents":{"tnuHighlights":[[145,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[150,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef Fin(n:Nat) -> Type = %Fin(n)\n"]},"tag":"Update"}],[152,{"contents":{"tnuHighlights":[[110,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[110,{"contents":{"tnuHighlights":[[152,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[155,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef many(f:(Key)->a, k:Key, i:n) -> a given (a:Type, n|Ix) = f hash(k, ordinal i)\n"]},"tag":"Update"}],[157,{"contents":{"tnuHighlights":[[115,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[115,{"contents":{"tnuHighlights":[[157,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[159,{"contents":{"tnuHighlights":[[126,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[126,{"contents":{"tnuHighlights":[[159,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[161,{"contents":{"tnuHighlights":[[145,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[145,{"contents":{"tnuHighlights":[[161,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[165,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef mean(xs:n=>v) -> v given (n|Ix, v|VSpace) = sum xs / n_to_f (size n)\n"]},"tag":"Update"}],[167,{"contents":{"tnuHighlights":[[141,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[141,{"contents":{"tnuHighlights":[[167,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[169,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef std(xs:n=>v) -> v given (n|Ix, v|Mul|Sub|VSpace|Floating) = sqrt $ mean (each xs sq) - sq (mean xs)\n"]},"tag":"Update"}],[171,{"contents":{"tnuHighlights":[[141,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[141,{"contents":{"tnuHighlights":[[171,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[105,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((n:Nat,f:((v#0:Word64) -> Float32),key:Word64) -> (Float32, Float32))"]},"tag":"Update"}],[110,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}],[113,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[115,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((v#0:Word64) -> Float32)"]},"tag":"Update"}],[120,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[123,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[124,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[126,{"contents":{"tnuHighlights":[],"tnuText":["Type: Word64"]},"tag":"Update"}],[129,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[132,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[134,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[136,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[141,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((Fin n) => Float32)"]},"tag":"Update"}],[143,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((Fin n) => Float32)"]},"tag":"Update"}],[145,{"contents":{"tnuHighlights":[],"tnuText":["Type: (Fin n)"]},"tag":"Update"}],[148,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[150,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((n:Nat) -> Type)"]},"tag":"Update"}],[152,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}],[155,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}{n:Type}[v#0:(Ix n)](f:((v#1:Word64) -> a),k:Word64,i:n) -> a)"]},"tag":"Update"}],[157,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((v#0:Word64) -> Float32)"]},"tag":"Update"}],[159,{"contents":{"tnuHighlights":[],"tnuText":["Type: Word64"]},"tag":"Update"}],[160,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}],[161,{"contents":{"tnuHighlights":[],"tnuText":["Type: (Fin n)"]},"tag":"Update"}],[163,{"contents":{"tnuHighlights":[],"tnuText":["Type: (Float32, Float32)"]},"tag":"Update"}],[165,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({n:Type}[v#0:(Ix n)]{v:Type}[v#1:(VSpace v)](xs:(n => v)) -> v)"]},"tag":"Update"}],[166,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}],[167,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((Fin n) => Float32)"]},"tag":"Update"}],[169,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({n:Type}[v#0:(Ix n)]{v:Type}[v#1:(Mul v),v#2:(Sub v),v#3:(VSpace v),v#4:(Floating v)](xs:(n\n => v)) -> v)"]},"tag":"Update"}],[170,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}],[171,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((Fin n) => Float32)"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["TypePass",null],"tag":"RenderedPassResult"},{"contents":["SimpPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["OptPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"}]],"tag":"Create"}],[13,{"contents":[{"rsbBlockId":13,"rsbHtml":"
","rsbLexemeList":[190,191,193,195,198,199,201,202],"rsbNumLines":1,"rsbLine":35,"rsbText":":p meanAndStdDev numSamps estimatePiAvgVal (new_key 0)\n"},"Complete",[{"contents":[[191,191],[193,193],[195,195],[198,197],[199,199],[201,201],[202,197]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[191,202],"tnHighlights":[[196,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[191,{"contents":{"tnSpan":[191,191],"tnHighlights":[[191,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[192,{"contents":{"tnSpan":[191,193],"tnHighlights":[[191,"HighlightGroup"],[193,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[193,{"contents":{"tnSpan":[193,193],"tnHighlights":[[193,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[194,{"contents":{"tnSpan":[191,195],"tnHighlights":[[192,"HighlightGroup"],[195,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[195,{"contents":{"tnSpan":[195,195],"tnHighlights":[[195,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[196,{"contents":{"tnSpan":[191,202],"tnHighlights":[[194,"HighlightGroup"],[197,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[197,{"contents":{"tnSpan":[198,202],"tnHighlights":[[198,"HighlightLeaf"],[202,"HighlightLeaf"],[200,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[198,{"contents":{"tnSpan":[198,198],"tnHighlights":[[198,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[199,{"contents":{"tnSpan":[199,199],"tnHighlights":[[199,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[200,{"contents":{"tnSpan":[199,201],"tnHighlights":[[199,"HighlightGroup"],[201,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[201,{"contents":{"tnSpan":[201,201],"tnHighlights":[[201,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[202,{"contents":{"tnSpan":[202,202],"tnHighlights":[[202,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[191,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in main:\ndef meanAndStdDev(n:Nat, f: (Key) -> Float, key:Key) -> (Float, Float) =\n samps = for i:(Fin n). many f key i\n (mean samps, std samps)\n"]},"tag":"Update"}],[193,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in main:\nnumSamps = 1000000\n"]},"tag":"Update"}],[195,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in main:\ndef estimatePiAvgVal(key:Key) -> Float =\n x = rand key\n 4.0 * sqrt (1.0 - sq x)\n"]},"tag":"Update"}],[196,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef show_any(x:a) -> String given (a:Type) = unsafe_coerce(to=String, %showAny(x))\n"]},"tag":"Update"}],[199,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef new_key(x:Nat) -> Key = hash(0, x)\n"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[191,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((n:Nat,f:((v#0:Word64) -> Float32),key:Word64) -> (Float32, Float32))"]},"tag":"Update"}],[193,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}],[195,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((key:Word64) -> Float32)"]},"tag":"Update"}],[196,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}(x:a) -> (List Word8))"]},"tag":"Update"}],[197,{"contents":{"tnuHighlights":[],"tnuText":["Type: Word64"]},"tag":"Update"}],[199,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((x:Nat) -> Word64)"]},"tag":"Update"}],[201,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["TypePass",null],"tag":"RenderedPassResult"},{"contents":["SimpPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["OptPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"},{"contents":"(3.145509, 0.886251)","tag":"RenderedTextOut"}]],"tag":"Create"}]]}
\ No newline at end of file
diff --git a/examples/sierpinski.json b/examples/sierpinski.json
index bc9c15b56..32036df94 100644
--- a/examples/sierpinski.json
+++ b/examples/sierpinski.json
@@ -1 +1 @@
-{"orderedNodesUpdate":{"numDropped":0,"newTail":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]},"nodeMapUpdate":[[0,{"contents":[{"rsbBlockId":0,"rsbHtml":"
","rsbLexemeList":[6,7,9,10,11,13,14,16,17,18,19,21,22,23,24,26,27,28,29,30,32,33,34,36,37,38,41,42,43,46,47,49,50,52,55,56,57,60,61,63,64,65,67,69,70,71,72,73,74,77,78,80,81,82,84,86,87,88,89],"rsbNumLines":3,"rsbLine":6,"rsbText":"def update(points:n=>Point, key:Key, p:Point) -> Point given (n|Ix) =\n p' = points[rand_idx key]\n Point(0.5 * (p.x + p'.x), 0.5 * (p.y + p'.y))\n"},"Complete",[{"contents":[[6,5],[7,7],[9,8],[10,10],[11,12],[13,13],[14,15],[16,16],[17,8],[18,18],[19,20],[21,21],[22,8],[23,23],[24,25],[26,26],[27,8],[28,5],[29,29],[30,5],[32,31],[33,33],[34,35],[36,36],[37,31],[38,5],[41,41],[42,40],[43,43],[46,45],[47,47],[49,49],[50,45],[52,52],[55,54],[56,56],[57,57],[60,59],[61,61],[63,62],[64,64],[65,65],[67,67],[69,68],[70,70],[71,59],[72,54],[73,73],[74,74],[77,76],[78,78],[80,79],[81,81],[82,82],[84,84],[86,85],[87,87],[88,76],[89,54]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[6,89],"tnHighlights":[[5,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[5,{"contents":{"tnSpan":[6,89],"tnHighlights":[[6,"HighlightLeaf"],[28,"HighlightLeaf"],[30,"HighlightLeaf"],[38,"HighlightLeaf"],[7,"HighlightGroup"],[8,"HighlightGroup"],[29,"HighlightGroup"],[31,"HighlightGroup"],[39,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[6,{"contents":{"tnSpan":[6,6],"tnHighlights":[[6,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[7,{"contents":{"tnSpan":[7,7],"tnHighlights":[[7,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[8,{"contents":{"tnSpan":[9,27],"tnHighlights":[[9,"HighlightLeaf"],[17,"HighlightLeaf"],[22,"HighlightLeaf"],[27,"HighlightLeaf"],[12,"HighlightGroup"],[20,"HighlightGroup"],[25,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[9,{"contents":{"tnSpan":[9,9],"tnHighlights":[[9,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[10,{"contents":{"tnSpan":[10,10],"tnHighlights":[[10,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[11,{"contents":{"tnSpan":[11,11],"tnHighlights":[[11,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[12,{"contents":{"tnSpan":[10,16],"tnHighlights":[[11,"HighlightLeaf"],[10,"HighlightGroup"],[15,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[13,{"contents":{"tnSpan":[13,13],"tnHighlights":[[13,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[14,{"contents":{"tnSpan":[14,14],"tnHighlights":[[14,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[15,{"contents":{"tnSpan":[13,16],"tnHighlights":[[14,"HighlightLeaf"],[13,"HighlightGroup"],[16,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[16,{"contents":{"tnSpan":[16,16],"tnHighlights":[[16,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[17,{"contents":{"tnSpan":[17,17],"tnHighlights":[[17,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[18,{"contents":{"tnSpan":[18,18],"tnHighlights":[[18,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[19,{"contents":{"tnSpan":[19,19],"tnHighlights":[[19,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[20,{"contents":{"tnSpan":[18,21],"tnHighlights":[[19,"HighlightLeaf"],[18,"HighlightGroup"],[21,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[21,{"contents":{"tnSpan":[21,21],"tnHighlights":[[21,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[22,{"contents":{"tnSpan":[22,22],"tnHighlights":[[22,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[23,{"contents":{"tnSpan":[23,23],"tnHighlights":[[23,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[24,{"contents":{"tnSpan":[24,24],"tnHighlights":[[24,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[25,{"contents":{"tnSpan":[23,26],"tnHighlights":[[24,"HighlightLeaf"],[23,"HighlightGroup"],[26,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[26,{"contents":{"tnSpan":[26,26],"tnHighlights":[[26,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[27,{"contents":{"tnSpan":[27,27],"tnHighlights":[[27,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[28,{"contents":{"tnSpan":[28,28],"tnHighlights":[[28,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[29,{"contents":{"tnSpan":[29,29],"tnHighlights":[[29,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[30,{"contents":{"tnSpan":[30,30],"tnHighlights":[[30,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[31,{"contents":{"tnSpan":[32,37],"tnHighlights":[[32,"HighlightLeaf"],[37,"HighlightLeaf"],[35,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[32,{"contents":{"tnSpan":[32,32],"tnHighlights":[[32,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[33,{"contents":{"tnSpan":[33,33],"tnHighlights":[[33,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[34,{"contents":{"tnSpan":[34,34],"tnHighlights":[[34,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[35,{"contents":{"tnSpan":[33,36],"tnHighlights":[[34,"HighlightLeaf"],[33,"HighlightGroup"],[36,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[36,{"contents":{"tnSpan":[36,36],"tnHighlights":[[36,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[37,{"contents":{"tnSpan":[37,37],"tnHighlights":[[37,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[38,{"contents":{"tnSpan":[38,38],"tnHighlights":[[38,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[39,{"contents":{"tnSpan":[41,89],"tnHighlights":[[40,"HighlightGroup"],[51,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[40,{"contents":{"tnSpan":[41,50],"tnHighlights":[[42,"HighlightLeaf"],[41,"HighlightGroup"],[44,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[41,{"contents":{"tnSpan":[41,41],"tnHighlights":[[41,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[42,{"contents":{"tnSpan":[42,42],"tnHighlights":[[42,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[43,{"contents":{"tnSpan":[43,43],"tnHighlights":[[43,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[44,{"contents":{"tnSpan":[43,50],"tnHighlights":[[43,"HighlightGroup"],[45,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[45,{"contents":{"tnSpan":[46,50],"tnHighlights":[[46,"HighlightLeaf"],[50,"HighlightLeaf"],[48,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[46,{"contents":{"tnSpan":[46,46],"tnHighlights":[[46,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[47,{"contents":{"tnSpan":[47,47],"tnHighlights":[[47,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[48,{"contents":{"tnSpan":[47,49],"tnHighlights":[[47,"HighlightGroup"],[49,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[49,{"contents":{"tnSpan":[49,49],"tnHighlights":[[49,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[50,{"contents":{"tnSpan":[50,50],"tnHighlights":[[50,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[51,{"contents":{"tnSpan":[52,89],"tnHighlights":[[53,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[52,{"contents":{"tnSpan":[52,52],"tnHighlights":[[52,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[53,{"contents":{"tnSpan":[52,89],"tnHighlights":[[52,"HighlightGroup"],[54,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[54,{"contents":{"tnSpan":[55,89],"tnHighlights":[[55,"HighlightLeaf"],[72,"HighlightLeaf"],[89,"HighlightLeaf"],[58,"HighlightGroup"],[75,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[55,{"contents":{"tnSpan":[55,55],"tnHighlights":[[55,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[56,{"contents":{"tnSpan":[56,56],"tnHighlights":[[56,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[57,{"contents":{"tnSpan":[57,57],"tnHighlights":[[57,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[58,{"contents":{"tnSpan":[56,71],"tnHighlights":[[56,"HighlightGroup"],[57,"HighlightGroup"],[59,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[59,{"contents":{"tnSpan":[60,71],"tnHighlights":[[60,"HighlightLeaf"],[71,"HighlightLeaf"],[66,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[60,{"contents":{"tnSpan":[60,60],"tnHighlights":[[60,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[61,{"contents":{"tnSpan":[61,61],"tnHighlights":[[61,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[62,{"contents":{"tnSpan":[61,64],"tnHighlights":[[63,"HighlightLeaf"],[61,"HighlightGroup"],[64,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[63,{"contents":{"tnSpan":[63,63],"tnHighlights":[[63,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[64,{"contents":{"tnSpan":[64,64],"tnHighlights":[[64,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[65,{"contents":{"tnSpan":[65,65],"tnHighlights":[[65,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[66,{"contents":{"tnSpan":[61,70],"tnHighlights":[[62,"HighlightGroup"],[65,"HighlightGroup"],[68,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[67,{"contents":{"tnSpan":[67,67],"tnHighlights":[[67,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[68,{"contents":{"tnSpan":[67,70],"tnHighlights":[[69,"HighlightLeaf"],[67,"HighlightGroup"],[70,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[69,{"contents":{"tnSpan":[69,69],"tnHighlights":[[69,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[70,{"contents":{"tnSpan":[70,70],"tnHighlights":[[70,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[71,{"contents":{"tnSpan":[71,71],"tnHighlights":[[71,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[72,{"contents":{"tnSpan":[72,72],"tnHighlights":[[72,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[73,{"contents":{"tnSpan":[73,73],"tnHighlights":[[73,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[74,{"contents":{"tnSpan":[74,74],"tnHighlights":[[74,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[75,{"contents":{"tnSpan":[73,88],"tnHighlights":[[73,"HighlightGroup"],[74,"HighlightGroup"],[76,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[76,{"contents":{"tnSpan":[77,88],"tnHighlights":[[77,"HighlightLeaf"],[88,"HighlightLeaf"],[83,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[77,{"contents":{"tnSpan":[77,77],"tnHighlights":[[77,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[78,{"contents":{"tnSpan":[78,78],"tnHighlights":[[78,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[79,{"contents":{"tnSpan":[78,81],"tnHighlights":[[80,"HighlightLeaf"],[78,"HighlightGroup"],[81,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[80,{"contents":{"tnSpan":[80,80],"tnHighlights":[[80,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[81,{"contents":{"tnSpan":[81,81],"tnHighlights":[[81,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[82,{"contents":{"tnSpan":[82,82],"tnHighlights":[[82,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[83,{"contents":{"tnSpan":[78,87],"tnHighlights":[[79,"HighlightGroup"],[82,"HighlightGroup"],[85,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[84,{"contents":{"tnSpan":[84,84],"tnHighlights":[[84,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[85,{"contents":{"tnSpan":[84,87],"tnHighlights":[[86,"HighlightLeaf"],[84,"HighlightGroup"],[87,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[86,{"contents":{"tnSpan":[86,86],"tnHighlights":[[86,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[87,{"contents":{"tnSpan":[87,87],"tnHighlights":[[87,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[88,{"contents":{"tnSpan":[88,88],"tnHighlights":[[88,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[89,{"contents":{"tnSpan":[89,89],"tnHighlights":[[89,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[7,{"contents":{"tnuHighlights":[[7,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[10,{"contents":{"tnuHighlights":[[10,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[13,{"contents":{"tnuHighlights":[[33,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[33,{"contents":{"tnuHighlights":[[13,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[16,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in diagram:\nstruct Point =\n x : Float\n y : Float\n"]},"tag":"Update"}],[18,{"contents":{"tnuHighlights":[[18,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[21,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nKey = Word64\n"]},"tag":"Update"}],[23,{"contents":{"tnuHighlights":[[23,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[26,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in diagram:\nstruct Point =\n x : Float\n y : Float\n"]},"tag":"Update"}],[29,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in diagram:\nstruct Point =\n x : Float\n y : Float\n"]},"tag":"Update"}],[33,{"contents":{"tnuHighlights":[[33,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[33,{"contents":{"tnuHighlights":[[33,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[36,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Ix(n|Data)\n size' : () -> Nat\n ordinal : (n) -> Nat\n unsafe_from_ordinal : (Nat) -> n\n"]},"tag":"Update"}],[41,{"contents":{"tnuHighlights":[[41,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[43,{"contents":{"tnuHighlights":[[10,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[10,{"contents":{"tnuHighlights":[[43,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[47,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef rand_idx(k:Key) -> n given (n|Ix) =\n rand k * n_to_f (size n) | floor | f_to_n | unsafe_from_ordinal\n"]},"tag":"Update"}],[49,{"contents":{"tnuHighlights":[[18,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[18,{"contents":{"tnuHighlights":[[49,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[52,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in diagram:\nstruct Point =\n x : Float\n y : Float\n"]},"tag":"Update"}],[57,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Mul(a|Data)\n (*) : (a, a) -> a\n one : a\n"]},"tag":"Update"}],[61,{"contents":{"tnuHighlights":[[23,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[23,{"contents":{"tnuHighlights":[[61,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[65,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Add(a|Data)\n (+) : (a, a) -> a\n zero : a\n"]},"tag":"Update"}],[67,{"contents":{"tnuHighlights":[[41,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[41,{"contents":{"tnuHighlights":[[67,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[74,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Mul(a|Data)\n (*) : (a, a) -> a\n one : a\n"]},"tag":"Update"}],[78,{"contents":{"tnuHighlights":[[23,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[23,{"contents":{"tnuHighlights":[[78,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[82,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Add(a|Data)\n (+) : (a, a) -> a\n zero : a\n"]},"tag":"Update"}],[84,{"contents":{"tnuHighlights":[[41,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[41,{"contents":{"tnuHighlights":[[84,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[5,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({n:Type}[v#0:(Ix n)](points:(n => Point),key:Word64,p:Point) -> Point)"]},"tag":"Update"}],[10,{"contents":{"tnuHighlights":[],"tnuText":["Type: (n => Point)"]},"tag":"Update"}],[13,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[15,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[16,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[18,{"contents":{"tnuHighlights":[],"tnuText":["Type: Word64"]},"tag":"Update"}],[21,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[23,{"contents":{"tnuHighlights":[],"tnuText":["Type: Point"]},"tag":"Update"}],[26,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[29,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[33,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[36,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[41,{"contents":{"tnuHighlights":[],"tnuText":["Type: Point"]},"tag":"Update"}],[43,{"contents":{"tnuHighlights":[],"tnuText":["Type: (n => Point)"]},"tag":"Update"}],[44,{"contents":{"tnuHighlights":[],"tnuText":["Type: Point"]},"tag":"Update"}],[47,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({n:Type}[v#0:(Ix n)](k:Word64) -> n)"]},"tag":"Update"}],[48,{"contents":{"tnuHighlights":[],"tnuText":["Type: n"]},"tag":"Update"}],[49,{"contents":{"tnuHighlights":[],"tnuText":["Type: Word64"]},"tag":"Update"}],[52,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((v#0:Float32,v#1:Float32) -> Point)"]},"tag":"Update"}],[53,{"contents":{"tnuHighlights":[],"tnuText":["Type: Point"]},"tag":"Update"}],[56,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}],[57,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}[v#3:(Mul a)](v#4:a,v#5:a) -> a)"]},"tag":"Update"}],[58,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}],[59,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}],[61,{"contents":{"tnuHighlights":[],"tnuText":["Type: Point"]},"tag":"Update"}],[62,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}],[65,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}[v#3:(Add a)](v#4:a,v#5:a) -> a)"]},"tag":"Update"}],[67,{"contents":{"tnuHighlights":[],"tnuText":["Type: Point"]},"tag":"Update"}],[68,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}],[73,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}],[74,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}[v#9:(Mul a)](v#10:a,v#11:a) -> a)"]},"tag":"Update"}],[75,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}],[76,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}],[78,{"contents":{"tnuHighlights":[],"tnuText":["Type: Point"]},"tag":"Update"}],[79,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}],[82,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}[v#9:(Add a)](v#10:a,v#11:a) -> a)"]},"tag":"Update"}],[84,{"contents":{"tnuHighlights":[],"tnuText":["Type: Point"]},"tag":"Update"}],[85,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["TypePass",null],"tag":"RenderedPassResult"},{"contents":["SimpPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["OptPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"}]],"tag":"Create"}],[6,{"contents":[{"rsbBlockId":6,"rsbHtml":"
","rsbLexemeList":[91,92,94,95,96,98,99,100,101,104,105,106,107,108,109,111,112,113,114,116,117,118,119,121,122,123,124,126,127,129,130,132,133,134,136,137,138,141,142,143,145,148,149,150,153,154,156,157,158,161,162,163,165,167,168,169,171,173,174,176,179,180,182,183,185,186,188,190],"rsbNumLines":7,"rsbLine":10,"rsbText":"def runChain(n:Nat, f:(Key, a) -> a, key:Key, x0:a) -> Fin n => a given (a|Data) =\n ref <- with_state x0\n for i:(Fin n).\n prev = get ref\n new = ixkey key i | f(get ref)\n ref := new\n new\n"},"Complete",[{"contents":[[91,90],[92,92],[94,93],[95,95],[96,97],[98,98],[99,93],[100,100],[101,102],[104,103],[105,105],[106,103],[107,107],[108,103],[109,110],[111,111],[112,93],[113,113],[114,115],[116,116],[117,93],[118,118],[119,120],[121,121],[122,93],[123,90],[124,124],[126,126],[127,128],[129,129],[130,90],[132,131],[133,133],[134,135],[136,136],[137,131],[138,90],[141,141],[142,140],[143,143],[145,145],[148,147],[149,149],[150,151],[153,152],[154,154],[156,156],[157,152],[158,147],[161,161],[162,160],[163,163],[165,165],[167,167],[168,166],[169,169],[171,171],[173,173],[174,175],[176,176],[179,178],[180,180],[182,182],[183,178],[185,185],[186,186],[188,188],[190,190]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[91,190],"tnHighlights":[[90,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[90,{"contents":{"tnSpan":[91,190],"tnHighlights":[[91,"HighlightLeaf"],[123,"HighlightLeaf"],[130,"HighlightLeaf"],[138,"HighlightLeaf"],[92,"HighlightGroup"],[93,"HighlightGroup"],[128,"HighlightGroup"],[131,"HighlightGroup"],[139,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[91,{"contents":{"tnSpan":[91,91],"tnHighlights":[[91,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[92,{"contents":{"tnSpan":[92,92],"tnHighlights":[[92,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[93,{"contents":{"tnSpan":[94,122],"tnHighlights":[[94,"HighlightLeaf"],[99,"HighlightLeaf"],[112,"HighlightLeaf"],[117,"HighlightLeaf"],[122,"HighlightLeaf"],[97,"HighlightGroup"],[102,"HighlightGroup"],[115,"HighlightGroup"],[120,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[94,{"contents":{"tnSpan":[94,94],"tnHighlights":[[94,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[95,{"contents":{"tnSpan":[95,95],"tnHighlights":[[95,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[96,{"contents":{"tnSpan":[96,96],"tnHighlights":[[96,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[97,{"contents":{"tnSpan":[95,98],"tnHighlights":[[96,"HighlightLeaf"],[95,"HighlightGroup"],[98,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[98,{"contents":{"tnSpan":[98,98],"tnHighlights":[[98,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[99,{"contents":{"tnSpan":[99,99],"tnHighlights":[[99,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[100,{"contents":{"tnSpan":[100,100],"tnHighlights":[[100,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[101,{"contents":{"tnSpan":[101,101],"tnHighlights":[[101,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[102,{"contents":{"tnSpan":[100,111],"tnHighlights":[[101,"HighlightLeaf"],[100,"HighlightGroup"],[110,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[103,{"contents":{"tnSpan":[104,108],"tnHighlights":[[104,"HighlightLeaf"],[106,"HighlightLeaf"],[108,"HighlightLeaf"],[105,"HighlightGroup"],[107,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[104,{"contents":{"tnSpan":[104,104],"tnHighlights":[[104,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[105,{"contents":{"tnSpan":[105,105],"tnHighlights":[[105,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[106,{"contents":{"tnSpan":[106,106],"tnHighlights":[[106,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[107,{"contents":{"tnSpan":[107,107],"tnHighlights":[[107,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[108,{"contents":{"tnSpan":[108,108],"tnHighlights":[[108,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[109,{"contents":{"tnSpan":[109,109],"tnHighlights":[[109,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[110,{"contents":{"tnSpan":[104,111],"tnHighlights":[[109,"HighlightLeaf"],[103,"HighlightGroup"],[111,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[111,{"contents":{"tnSpan":[111,111],"tnHighlights":[[111,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[112,{"contents":{"tnSpan":[112,112],"tnHighlights":[[112,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[113,{"contents":{"tnSpan":[113,113],"tnHighlights":[[113,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[114,{"contents":{"tnSpan":[114,114],"tnHighlights":[[114,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[115,{"contents":{"tnSpan":[113,116],"tnHighlights":[[114,"HighlightLeaf"],[113,"HighlightGroup"],[116,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[116,{"contents":{"tnSpan":[116,116],"tnHighlights":[[116,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[117,{"contents":{"tnSpan":[117,117],"tnHighlights":[[117,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[118,{"contents":{"tnSpan":[118,118],"tnHighlights":[[118,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[119,{"contents":{"tnSpan":[119,119],"tnHighlights":[[119,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[120,{"contents":{"tnSpan":[118,121],"tnHighlights":[[119,"HighlightLeaf"],[118,"HighlightGroup"],[121,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[121,{"contents":{"tnSpan":[121,121],"tnHighlights":[[121,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[122,{"contents":{"tnSpan":[122,122],"tnHighlights":[[122,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[123,{"contents":{"tnSpan":[123,123],"tnHighlights":[[123,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[124,{"contents":{"tnSpan":[124,124],"tnHighlights":[[124,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[125,{"contents":{"tnSpan":[124,126],"tnHighlights":[[124,"HighlightGroup"],[126,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[126,{"contents":{"tnSpan":[126,126],"tnHighlights":[[126,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[127,{"contents":{"tnSpan":[127,127],"tnHighlights":[[127,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[128,{"contents":{"tnSpan":[124,129],"tnHighlights":[[127,"HighlightLeaf"],[125,"HighlightGroup"],[129,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[129,{"contents":{"tnSpan":[129,129],"tnHighlights":[[129,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[130,{"contents":{"tnSpan":[130,130],"tnHighlights":[[130,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[131,{"contents":{"tnSpan":[132,137],"tnHighlights":[[132,"HighlightLeaf"],[137,"HighlightLeaf"],[135,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[132,{"contents":{"tnSpan":[132,132],"tnHighlights":[[132,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[133,{"contents":{"tnSpan":[133,133],"tnHighlights":[[133,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[134,{"contents":{"tnSpan":[134,134],"tnHighlights":[[134,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[135,{"contents":{"tnSpan":[133,136],"tnHighlights":[[134,"HighlightLeaf"],[133,"HighlightGroup"],[136,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[136,{"contents":{"tnSpan":[136,136],"tnHighlights":[[136,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[137,{"contents":{"tnSpan":[137,137],"tnHighlights":[[137,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[138,{"contents":{"tnSpan":[138,138],"tnHighlights":[[138,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[139,{"contents":{"tnSpan":[141,190],"tnHighlights":[[140,"HighlightGroup"],[146,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[140,{"contents":{"tnSpan":[141,145],"tnHighlights":[[142,"HighlightLeaf"],[141,"HighlightGroup"],[144,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[141,{"contents":{"tnSpan":[141,141],"tnHighlights":[[141,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[142,{"contents":{"tnSpan":[142,142],"tnHighlights":[[142,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[143,{"contents":{"tnSpan":[143,143],"tnHighlights":[[143,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[144,{"contents":{"tnSpan":[143,145],"tnHighlights":[[143,"HighlightGroup"],[145,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[145,{"contents":{"tnSpan":[145,145],"tnHighlights":[[145,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[146,{"contents":{"tnSpan":[148,190],"tnHighlights":[[147,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[147,{"contents":{"tnSpan":[148,190],"tnHighlights":[[148,"HighlightLeaf"],[158,"HighlightLeaf"],[151,"HighlightGroup"],[159,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[148,{"contents":{"tnSpan":[148,148],"tnHighlights":[[148,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[149,{"contents":{"tnSpan":[149,149],"tnHighlights":[[149,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[150,{"contents":{"tnSpan":[150,150],"tnHighlights":[[150,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[151,{"contents":{"tnSpan":[149,157],"tnHighlights":[[150,"HighlightLeaf"],[149,"HighlightGroup"],[152,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[152,{"contents":{"tnSpan":[153,157],"tnHighlights":[[153,"HighlightLeaf"],[157,"HighlightLeaf"],[155,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[153,{"contents":{"tnSpan":[153,153],"tnHighlights":[[153,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[154,{"contents":{"tnSpan":[154,154],"tnHighlights":[[154,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[155,{"contents":{"tnSpan":[154,156],"tnHighlights":[[154,"HighlightGroup"],[156,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[156,{"contents":{"tnSpan":[156,156],"tnHighlights":[[156,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[157,{"contents":{"tnSpan":[157,157],"tnHighlights":[[157,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[158,{"contents":{"tnSpan":[158,158],"tnHighlights":[[158,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[159,{"contents":{"tnSpan":[161,190],"tnHighlights":[[160,"HighlightGroup"],[166,"HighlightGroup"],[184,"HighlightGroup"],[189,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[160,{"contents":{"tnSpan":[161,165],"tnHighlights":[[162,"HighlightLeaf"],[161,"HighlightGroup"],[164,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[161,{"contents":{"tnSpan":[161,161],"tnHighlights":[[161,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[162,{"contents":{"tnSpan":[162,162],"tnHighlights":[[162,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[163,{"contents":{"tnSpan":[163,163],"tnHighlights":[[163,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[164,{"contents":{"tnSpan":[163,165],"tnHighlights":[[163,"HighlightGroup"],[165,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[165,{"contents":{"tnSpan":[165,165],"tnHighlights":[[165,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[166,{"contents":{"tnSpan":[167,183],"tnHighlights":[[168,"HighlightLeaf"],[167,"HighlightGroup"],[175,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[167,{"contents":{"tnSpan":[167,167],"tnHighlights":[[167,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[168,{"contents":{"tnSpan":[168,168],"tnHighlights":[[168,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[169,{"contents":{"tnSpan":[169,169],"tnHighlights":[[169,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[170,{"contents":{"tnSpan":[169,171],"tnHighlights":[[169,"HighlightGroup"],[171,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[171,{"contents":{"tnSpan":[171,171],"tnHighlights":[[171,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[172,{"contents":{"tnSpan":[169,173],"tnHighlights":[[170,"HighlightGroup"],[173,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[173,{"contents":{"tnSpan":[173,173],"tnHighlights":[[173,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[174,{"contents":{"tnSpan":[174,174],"tnHighlights":[[174,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[175,{"contents":{"tnSpan":[169,183],"tnHighlights":[[174,"HighlightLeaf"],[172,"HighlightGroup"],[177,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[176,{"contents":{"tnSpan":[176,176],"tnHighlights":[[176,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[177,{"contents":{"tnSpan":[176,183],"tnHighlights":[[176,"HighlightGroup"],[178,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[178,{"contents":{"tnSpan":[179,183],"tnHighlights":[[179,"HighlightLeaf"],[183,"HighlightLeaf"],[181,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[179,{"contents":{"tnSpan":[179,179],"tnHighlights":[[179,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[180,{"contents":{"tnSpan":[180,180],"tnHighlights":[[180,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[181,{"contents":{"tnSpan":[180,182],"tnHighlights":[[180,"HighlightGroup"],[182,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[182,{"contents":{"tnSpan":[182,182],"tnHighlights":[[182,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[183,{"contents":{"tnSpan":[183,183],"tnHighlights":[[183,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[184,{"contents":{"tnSpan":[185,188],"tnHighlights":[[187,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[185,{"contents":{"tnSpan":[185,185],"tnHighlights":[[185,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[186,{"contents":{"tnSpan":[186,186],"tnHighlights":[[186,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[187,{"contents":{"tnSpan":[185,188],"tnHighlights":[[185,"HighlightGroup"],[186,"HighlightGroup"],[188,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[188,{"contents":{"tnSpan":[188,188],"tnHighlights":[[188,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[189,{"contents":{"tnSpan":[190,190],"tnHighlights":[[190,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[190,{"contents":{"tnSpan":[190,190],"tnHighlights":[[190,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[92,{"contents":{"tnuHighlights":[[92,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[95,{"contents":{"tnuHighlights":[[95,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[98,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nNat = %Nat()\n"]},"tag":"Update"}],[100,{"contents":{"tnuHighlights":[[100,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[105,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nKey = Word64\n"]},"tag":"Update"}],[107,{"contents":{"tnuHighlights":[[133,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[133,{"contents":{"tnuHighlights":[[107,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[111,{"contents":{"tnuHighlights":[[133,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[133,{"contents":{"tnuHighlights":[[111,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[113,{"contents":{"tnuHighlights":[[113,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[116,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nKey = Word64\n"]},"tag":"Update"}],[118,{"contents":{"tnuHighlights":[[118,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[121,{"contents":{"tnuHighlights":[[133,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[133,{"contents":{"tnuHighlights":[[121,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[124,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef Fin(n:Nat) -> Type = %Fin(n)\n"]},"tag":"Update"}],[126,{"contents":{"tnuHighlights":[[95,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[95,{"contents":{"tnuHighlights":[[126,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[129,{"contents":{"tnuHighlights":[[133,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[133,{"contents":{"tnuHighlights":[[129,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[133,{"contents":{"tnuHighlights":[[133,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[133,{"contents":{"tnuHighlights":[[133,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[136,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Data(a:Type)\n do_not_implement_this_interface_for_the_compiler_relies_on_the_invariant_it_protects : (a) -> a\n"]},"tag":"Update"}],[141,{"contents":{"tnuHighlights":[[141,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[143,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef with_state(\n init:s,\n action: (given (h:Heap), Ref h s) -> {State h |eff} a\n ) -> {|eff} a given (a:Type, s|Data, eff:Effects) =\n fst $ run_state(init, action)\n"]},"tag":"Update"}],[145,{"contents":{"tnuHighlights":[[118,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[118,{"contents":{"tnuHighlights":[[145,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[149,{"contents":{"tnuHighlights":[[149,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[154,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef Fin(n:Nat) -> Type = %Fin(n)\n"]},"tag":"Update"}],[156,{"contents":{"tnuHighlights":[[95,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[95,{"contents":{"tnuHighlights":[[156,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[161,{"contents":{"tnuHighlights":[[161,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[163,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef get(ref:Ref h s) -> {State h} s given (h:Heap, s|Data) = %get(ref)\n"]},"tag":"Update"}],[165,{"contents":{"tnuHighlights":[[141,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[141,{"contents":{"tnuHighlights":[[165,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[167,{"contents":{"tnuHighlights":[[167,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[169,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef ixkey(k:Key, i:n) -> Key given (n|Ix) = hash(k, ordinal i)\n"]},"tag":"Update"}],[171,{"contents":{"tnuHighlights":[[113,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[113,{"contents":{"tnuHighlights":[[171,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[173,{"contents":{"tnuHighlights":[[149,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[149,{"contents":{"tnuHighlights":[[173,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[176,{"contents":{"tnuHighlights":[[100,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[100,{"contents":{"tnuHighlights":[[176,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[180,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef get(ref:Ref h s) -> {State h} s given (h:Heap, s|Data) = %get(ref)\n"]},"tag":"Update"}],[182,{"contents":{"tnuHighlights":[[141,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[141,{"contents":{"tnuHighlights":[[182,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[185,{"contents":{"tnuHighlights":[[141,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[141,{"contents":{"tnuHighlights":[[185,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[186,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef (:=)(ref:Ref h s, x:s) -> {State h} () given (h:Heap, s|Data) = %put(ref, x)\n"]},"tag":"Update"}],[188,{"contents":{"tnuHighlights":[[167,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[167,{"contents":{"tnuHighlights":[[188,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[190,{"contents":{"tnuHighlights":[[167,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[167,{"contents":{"tnuHighlights":[[190,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[90,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}[v#0:(Data a)](n:Nat,f:((v#1:Word64,v#2:a) -> a),key:Word64,x0:a) -> ((Fin n)\n => a))"]},"tag":"Update"}],[95,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}],[98,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[100,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((v#1:Word64,v#2:a) -> a)"]},"tag":"Update"}],[105,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[107,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[110,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[111,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[113,{"contents":{"tnuHighlights":[],"tnuText":["Type: Word64"]},"tag":"Update"}],[116,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[118,{"contents":{"tnuHighlights":[],"tnuText":["Type: a"]},"tag":"Update"}],[121,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[124,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((n:Nat) -> Type)"]},"tag":"Update"}],[125,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[126,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}],[128,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[129,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[133,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[136,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[140,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((Fin n) => a)"]},"tag":"Update"}],[141,{"contents":{"tnuHighlights":[],"tnuText":["Type: (Ref h a)"]},"tag":"Update"}],[143,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}{s:Type}[v#0:(Data s)]{eff:EffKind}(init:s,action:({h:Heap}(v#1:(Ref\n h s)) -> {State h|eff} a)) -> {|eff} a)"]},"tag":"Update"}],[145,{"contents":{"tnuHighlights":[],"tnuText":["Type: a"]},"tag":"Update"}],[147,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((Fin n) => a)"]},"tag":"Update"}],[149,{"contents":{"tnuHighlights":[],"tnuText":["Type: (Fin n)"]},"tag":"Update"}],[152,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[154,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((n:Nat) -> Type)"]},"tag":"Update"}],[156,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}],[161,{"contents":{"tnuHighlights":[],"tnuText":["Type: a"]},"tag":"Update"}],[163,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({h:Heap}{s:Type}[v#0:(Data s)](ref:(Ref h s)) -> {State h} s)"]},"tag":"Update"}],[164,{"contents":{"tnuHighlights":[],"tnuText":["Type: a"]},"tag":"Update"}],[165,{"contents":{"tnuHighlights":[],"tnuText":["Type: (Ref h a)"]},"tag":"Update"}],[167,{"contents":{"tnuHighlights":[],"tnuText":["Type: a"]},"tag":"Update"}],[169,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({n:Type}[v#0:(Ix n)](k:Word64,i:n) -> Word64)"]},"tag":"Update"}],[171,{"contents":{"tnuHighlights":[],"tnuText":["Type: Word64"]},"tag":"Update"}],[172,{"contents":{"tnuHighlights":[],"tnuText":["Type: Word64"]},"tag":"Update"}],[173,{"contents":{"tnuHighlights":[],"tnuText":["Type: (Fin n)"]},"tag":"Update"}],[175,{"contents":{"tnuHighlights":[],"tnuText":["Type: a"]},"tag":"Update"}],[176,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((v#1:Word64,v#2:a) -> a)"]},"tag":"Update"}],[180,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({h:Heap}{s:Type}[v#0:(Data s)](ref:(Ref h s)) -> {State h} s)"]},"tag":"Update"}],[181,{"contents":{"tnuHighlights":[],"tnuText":["Type: a"]},"tag":"Update"}],[182,{"contents":{"tnuHighlights":[],"tnuText":["Type: (Ref h a)"]},"tag":"Update"}],[185,{"contents":{"tnuHighlights":[],"tnuText":["Type: (Ref h a)"]},"tag":"Update"}],[186,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({h:Heap}{s:Type}[v#0:(Data s)](ref:(Ref h s),x:s) -> {State h} ())"]},"tag":"Update"}],[187,{"contents":{"tnuHighlights":[],"tnuText":["Type: ()"]},"tag":"Update"}],[188,{"contents":{"tnuHighlights":[],"tnuText":["Type: a"]},"tag":"Update"}],[190,{"contents":{"tnuHighlights":[],"tnuText":["Type: a"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["TypePass",null],"tag":"RenderedPassResult"},{"contents":["SimpPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["OptPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"}]],"tag":"Create"}],[8,{"contents":[{"rsbBlockId":8,"rsbHtml":"
","rsbLexemeList":[237,238,239,241,244,246,247,248,249,250,252,254,256,257,260,261,263,264,267,268,270,272,273],"rsbNumLines":1,"rsbLine":20,"rsbText":"points = runChain 3000 (\\k p. update trianglePoints k p) (new_key 0) (Point 0.0 0.0)\n"},"CompleteWithErrors",[{"contents":[[237,237],[238,236],[239,239],[241,241],[244,243],[246,245],[247,247],[248,248],[249,245],[250,250],[252,252],[254,254],[256,256],[257,243],[260,259],[261,261],[263,263],[264,259],[267,266],[268,268],[270,270],[272,272],[273,266]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[237,273],"tnHighlights":[[236,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[236,{"contents":{"tnSpan":[237,273],"tnHighlights":[[238,"HighlightLeaf"],[237,"HighlightGroup"],[265,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[237,{"contents":{"tnSpan":[237,237],"tnHighlights":[[237,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[238,{"contents":{"tnSpan":[238,238],"tnHighlights":[[238,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[239,{"contents":{"tnSpan":[239,239],"tnHighlights":[[239,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[240,{"contents":{"tnSpan":[239,241],"tnHighlights":[[239,"HighlightGroup"],[241,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[241,{"contents":{"tnSpan":[241,241],"tnHighlights":[[241,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[242,{"contents":{"tnSpan":[239,257],"tnHighlights":[[240,"HighlightGroup"],[243,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[243,{"contents":{"tnSpan":[244,257],"tnHighlights":[[244,"HighlightLeaf"],[257,"HighlightLeaf"],[245,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[244,{"contents":{"tnSpan":[244,244],"tnHighlights":[[244,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[245,{"contents":{"tnSpan":[246,256],"tnHighlights":[[246,"HighlightLeaf"],[249,"HighlightLeaf"],[247,"HighlightGroup"],[248,"HighlightGroup"],[255,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[246,{"contents":{"tnSpan":[246,246],"tnHighlights":[[246,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[247,{"contents":{"tnSpan":[247,247],"tnHighlights":[[247,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[248,{"contents":{"tnSpan":[248,248],"tnHighlights":[[248,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[249,{"contents":{"tnSpan":[249,249],"tnHighlights":[[249,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[250,{"contents":{"tnSpan":[250,250],"tnHighlights":[[250,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[251,{"contents":{"tnSpan":[250,252],"tnHighlights":[[250,"HighlightGroup"],[252,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[252,{"contents":{"tnSpan":[252,252],"tnHighlights":[[252,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[253,{"contents":{"tnSpan":[250,254],"tnHighlights":[[251,"HighlightGroup"],[254,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[254,{"contents":{"tnSpan":[254,254],"tnHighlights":[[254,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[255,{"contents":{"tnSpan":[250,256],"tnHighlights":[[253,"HighlightGroup"],[256,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[256,{"contents":{"tnSpan":[256,256],"tnHighlights":[[256,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[257,{"contents":{"tnSpan":[257,257],"tnHighlights":[[257,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[258,{"contents":{"tnSpan":[239,264],"tnHighlights":[[242,"HighlightGroup"],[259,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[259,{"contents":{"tnSpan":[260,264],"tnHighlights":[[260,"HighlightLeaf"],[264,"HighlightLeaf"],[262,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[260,{"contents":{"tnSpan":[260,260],"tnHighlights":[[260,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[261,{"contents":{"tnSpan":[261,261],"tnHighlights":[[261,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[262,{"contents":{"tnSpan":[261,263],"tnHighlights":[[261,"HighlightGroup"],[263,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[263,{"contents":{"tnSpan":[263,263],"tnHighlights":[[263,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[264,{"contents":{"tnSpan":[264,264],"tnHighlights":[[264,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[265,{"contents":{"tnSpan":[239,273],"tnHighlights":[[258,"HighlightGroup"],[266,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[266,{"contents":{"tnSpan":[267,273],"tnHighlights":[[267,"HighlightLeaf"],[273,"HighlightLeaf"],[271,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[267,{"contents":{"tnSpan":[267,267],"tnHighlights":[[267,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[268,{"contents":{"tnSpan":[268,268],"tnHighlights":[[268,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[269,{"contents":{"tnSpan":[268,270],"tnHighlights":[[268,"HighlightGroup"],[270,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[270,{"contents":{"tnSpan":[270,270],"tnHighlights":[[270,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[271,{"contents":{"tnSpan":[268,272],"tnHighlights":[[269,"HighlightGroup"],[272,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[272,{"contents":{"tnSpan":[272,272],"tnHighlights":[[272,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[273,{"contents":{"tnSpan":[273,273],"tnHighlights":[[273,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[237,{"contents":{"tnuHighlights":[[237,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[239,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in main:\ndef runChain(n:Nat, f:(Key, a) -> a, key:Key, x0:a) -> Fin n => a given (a|Data) =\n ref <- with_state x0\n for i:(Fin n).\n prev = get ref\n new = ixkey key i | f(get ref)\n ref := new\n new\n"]},"tag":"Update"}],[247,{"contents":{"tnuHighlights":[[247,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[248,{"contents":{"tnuHighlights":[[248,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[250,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in main:\ndef update(points:n=>Point, key:Key, p:Point) -> Point given (n|Ix) =\n p' = points[rand_idx key]\n Point(0.5 * (p.x + p'.x), 0.5 * (p.y + p'.y))\n"]},"tag":"Update"}],[252,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in main:\ntrianglePoints : (Fin 3)=>Point = [Point(0.0, 0.0), Point(1.0, 0.0), Point(0.5, sqrt 0.75)]\n"]},"tag":"Update"}],[254,{"contents":{"tnuHighlights":[[247,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[247,{"contents":{"tnuHighlights":[[254,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[256,{"contents":{"tnuHighlights":[[248,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[248,{"contents":{"tnuHighlights":[[256,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[261,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef new_key(x:Nat) -> Key = hash(0, x)\n"]},"tag":"Update"}],[268,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in diagram:\nstruct Point =\n x : Float\n y : Float\n"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[239,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}[v#0:(Data a)](n:Nat,f:((v#1:Word64,v#2:a) -> a),key:Word64,x0:a) -> ((Fin n)\n => a))"]},"tag":"Update"}],[241,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":[247,"Type error: type annotation or constraint required"],"tag":"RenderedError"}]],"tag":"Create"}],[12,{"contents":[{"rsbBlockId":12,"rsbHtml":"
","rsbLexemeList":[276,277,278,279,280,281,282,285,286,287,289,290,293,294,295,297,298,299,300,303,304,305,307,308,309],"rsbNumLines":1,"rsbLine":22,"rsbText":"(xs, ys) = unzip for i. (points[i].x, points[i].y)\n"},"CompleteWithErrors",[{"contents":[[276,275],[277,277],[278,275],[279,279],[280,275],[281,274],[282,282],[285,284],[286,286],[287,284],[289,288],[290,290],[293,292],[294,294],[295,292],[297,296],[298,298],[299,288],[300,300],[303,302],[304,304],[305,302],[307,306],[308,308],[309,288]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[276,309],"tnHighlights":[[274,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[274,{"contents":{"tnSpan":[276,309],"tnHighlights":[[281,"HighlightLeaf"],[275,"HighlightGroup"],[283,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[275,{"contents":{"tnSpan":[276,280],"tnHighlights":[[276,"HighlightLeaf"],[278,"HighlightLeaf"],[280,"HighlightLeaf"],[277,"HighlightGroup"],[279,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[276,{"contents":{"tnSpan":[276,276],"tnHighlights":[[276,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[277,{"contents":{"tnSpan":[277,277],"tnHighlights":[[277,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[278,{"contents":{"tnSpan":[278,278],"tnHighlights":[[278,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[279,{"contents":{"tnSpan":[279,279],"tnHighlights":[[279,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[280,{"contents":{"tnSpan":[280,280],"tnHighlights":[[280,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[281,{"contents":{"tnSpan":[281,281],"tnHighlights":[[281,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[282,{"contents":{"tnSpan":[282,282],"tnHighlights":[[282,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[283,{"contents":{"tnSpan":[282,309],"tnHighlights":[[282,"HighlightGroup"],[284,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[284,{"contents":{"tnSpan":[285,309],"tnHighlights":[[285,"HighlightLeaf"],[287,"HighlightLeaf"],[286,"HighlightGroup"],[288,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[285,{"contents":{"tnSpan":[285,285],"tnHighlights":[[285,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[286,{"contents":{"tnSpan":[286,286],"tnHighlights":[[286,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[287,{"contents":{"tnSpan":[287,287],"tnHighlights":[[287,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[288,{"contents":{"tnSpan":[289,309],"tnHighlights":[[289,"HighlightLeaf"],[299,"HighlightLeaf"],[309,"HighlightLeaf"],[296,"HighlightGroup"],[306,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[289,{"contents":{"tnSpan":[289,289],"tnHighlights":[[289,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[290,{"contents":{"tnSpan":[290,290],"tnHighlights":[[290,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[291,{"contents":{"tnSpan":[290,295],"tnHighlights":[[290,"HighlightGroup"],[292,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[292,{"contents":{"tnSpan":[293,295],"tnHighlights":[[293,"HighlightLeaf"],[295,"HighlightLeaf"],[294,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[293,{"contents":{"tnSpan":[293,293],"tnHighlights":[[293,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[294,{"contents":{"tnSpan":[294,294],"tnHighlights":[[294,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[295,{"contents":{"tnSpan":[295,295],"tnHighlights":[[295,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[296,{"contents":{"tnSpan":[290,298],"tnHighlights":[[297,"HighlightLeaf"],[291,"HighlightGroup"],[298,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[297,{"contents":{"tnSpan":[297,297],"tnHighlights":[[297,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[298,{"contents":{"tnSpan":[298,298],"tnHighlights":[[298,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[299,{"contents":{"tnSpan":[299,299],"tnHighlights":[[299,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[300,{"contents":{"tnSpan":[300,300],"tnHighlights":[[300,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[301,{"contents":{"tnSpan":[300,305],"tnHighlights":[[300,"HighlightGroup"],[302,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[302,{"contents":{"tnSpan":[303,305],"tnHighlights":[[303,"HighlightLeaf"],[305,"HighlightLeaf"],[304,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[303,{"contents":{"tnSpan":[303,303],"tnHighlights":[[303,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[304,{"contents":{"tnSpan":[304,304],"tnHighlights":[[304,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[305,{"contents":{"tnSpan":[305,305],"tnHighlights":[[305,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[306,{"contents":{"tnSpan":[300,308],"tnHighlights":[[307,"HighlightLeaf"],[301,"HighlightGroup"],[308,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[307,{"contents":{"tnSpan":[307,307],"tnHighlights":[[307,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[308,{"contents":{"tnSpan":[308,308],"tnHighlights":[[308,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[309,{"contents":{"tnSpan":[309,309],"tnHighlights":[[309,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[282,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef unzip(xys:n=>(a,b)) -> (n=>a , n=>b) given (a:Type, b:Type, n|Ix) =\n (each xys \\xy. fst(xy), each xys \\xy. snd(xy))\n"]},"tag":"Update"}],[286,{"contents":{"tnuHighlights":[[286,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":[290,"Name error: error in (earlier) definition of variable: points"],"tag":"RenderedError"}]],"tag":"Create"}],[14,{"contents":[{"rsbBlockId":14,"rsbHtml":"
","rsbLexemeList":[310,311,312,314,316,318],"rsbNumLines":1,"rsbLine":24,"rsbText":":html show_plot $ xy_plot xs ys\n"},"CompleteWithErrors",[{"contents":[[311,311],[312,313],[314,314],[316,316],[318,318]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[311,318],"tnHighlights":[[313,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[311,{"contents":{"tnSpan":[311,311],"tnHighlights":[[311,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[312,{"contents":{"tnSpan":[312,312],"tnHighlights":[[312,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[313,{"contents":{"tnSpan":[311,318],"tnHighlights":[[312,"HighlightLeaf"],[311,"HighlightGroup"],[317,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[314,{"contents":{"tnSpan":[314,314],"tnHighlights":[[314,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[315,{"contents":{"tnSpan":[314,316],"tnHighlights":[[314,"HighlightGroup"],[316,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[316,{"contents":{"tnSpan":[316,316],"tnHighlights":[[316,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[317,{"contents":{"tnSpan":[314,318],"tnHighlights":[[315,"HighlightGroup"],[318,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[318,{"contents":{"tnSpan":[318,318],"tnHighlights":[[318,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[311,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in plot:\ndef show_plot(plot:Plot n a b c) -> String given (a:Type, b:Type, c:Type, n|Ix) =\n render_svg (plot_to_diagram plot) (Point 0.0 0.0, Point 1.0 1.0)\n"]},"tag":"Update"}],[314,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in plot:\ndef xy_plot(xs:n=>Float, ys:n=>Float) -> Plot n Float Float () given (n|Ix) =\n blank_plot(n) |\n set_x_data (auto_scale xs) |\n set_y_data (auto_scale ys)\n"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":[316,"Name error: error in (earlier) definition of variable: xs"],"tag":"RenderedError"}]],"tag":"Create"}]]}
\ No newline at end of file
+{"orderedNodesUpdate":{"numDropped":0,"newTail":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]},"nodeMapUpdate":[[0,{"contents":[{"rsbBlockId":0,"rsbHtml":"
","rsbLexemeList":[6,7,9,10,11,13,14,16,17,18,19,21,22,23,24,26,27,28,29,30,32,33,34,36,37,38,41,42,43,46,47,49,50,52,55,56,57,60,61,63,64,65,67,69,70,71,72,73,74,77,78,80,81,82,84,86,87,88,89],"rsbNumLines":3,"rsbLine":6,"rsbText":"def update(points:n=>Point, key:Key, p:Point) -> Point given (n|Ix) =\n p' = points[rand_idx key]\n Point(0.5 * (p.x + p'.x), 0.5 * (p.y + p'.y))\n"},"Complete",[{"contents":[[6,5],[7,7],[9,8],[10,10],[11,12],[13,13],[14,15],[16,16],[17,8],[18,18],[19,20],[21,21],[22,8],[23,23],[24,25],[26,26],[27,8],[28,5],[29,29],[30,5],[32,31],[33,33],[34,35],[36,36],[37,31],[38,5],[41,41],[42,40],[43,43],[46,45],[47,47],[49,49],[50,45],[52,52],[55,54],[56,56],[57,57],[60,59],[61,61],[63,62],[64,64],[65,65],[67,67],[69,68],[70,70],[71,59],[72,54],[73,73],[74,74],[77,76],[78,78],[80,79],[81,81],[82,82],[84,84],[86,85],[87,87],[88,76],[89,54]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[6,89],"tnHighlights":[[5,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[5,{"contents":{"tnSpan":[6,89],"tnHighlights":[[6,"HighlightLeaf"],[28,"HighlightLeaf"],[30,"HighlightLeaf"],[38,"HighlightLeaf"],[7,"HighlightGroup"],[8,"HighlightGroup"],[29,"HighlightGroup"],[31,"HighlightGroup"],[39,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[6,{"contents":{"tnSpan":[6,6],"tnHighlights":[[6,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[7,{"contents":{"tnSpan":[7,7],"tnHighlights":[[7,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[8,{"contents":{"tnSpan":[9,27],"tnHighlights":[[9,"HighlightLeaf"],[17,"HighlightLeaf"],[22,"HighlightLeaf"],[27,"HighlightLeaf"],[12,"HighlightGroup"],[20,"HighlightGroup"],[25,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[9,{"contents":{"tnSpan":[9,9],"tnHighlights":[[9,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[10,{"contents":{"tnSpan":[10,10],"tnHighlights":[[10,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[11,{"contents":{"tnSpan":[11,11],"tnHighlights":[[11,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[12,{"contents":{"tnSpan":[10,16],"tnHighlights":[[11,"HighlightLeaf"],[10,"HighlightGroup"],[15,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[13,{"contents":{"tnSpan":[13,13],"tnHighlights":[[13,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[14,{"contents":{"tnSpan":[14,14],"tnHighlights":[[14,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[15,{"contents":{"tnSpan":[13,16],"tnHighlights":[[14,"HighlightLeaf"],[13,"HighlightGroup"],[16,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[16,{"contents":{"tnSpan":[16,16],"tnHighlights":[[16,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[17,{"contents":{"tnSpan":[17,17],"tnHighlights":[[17,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[18,{"contents":{"tnSpan":[18,18],"tnHighlights":[[18,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[19,{"contents":{"tnSpan":[19,19],"tnHighlights":[[19,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[20,{"contents":{"tnSpan":[18,21],"tnHighlights":[[19,"HighlightLeaf"],[18,"HighlightGroup"],[21,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[21,{"contents":{"tnSpan":[21,21],"tnHighlights":[[21,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[22,{"contents":{"tnSpan":[22,22],"tnHighlights":[[22,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[23,{"contents":{"tnSpan":[23,23],"tnHighlights":[[23,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[24,{"contents":{"tnSpan":[24,24],"tnHighlights":[[24,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[25,{"contents":{"tnSpan":[23,26],"tnHighlights":[[24,"HighlightLeaf"],[23,"HighlightGroup"],[26,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[26,{"contents":{"tnSpan":[26,26],"tnHighlights":[[26,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[27,{"contents":{"tnSpan":[27,27],"tnHighlights":[[27,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[28,{"contents":{"tnSpan":[28,28],"tnHighlights":[[28,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[29,{"contents":{"tnSpan":[29,29],"tnHighlights":[[29,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[30,{"contents":{"tnSpan":[30,30],"tnHighlights":[[30,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[31,{"contents":{"tnSpan":[32,37],"tnHighlights":[[32,"HighlightLeaf"],[37,"HighlightLeaf"],[35,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[32,{"contents":{"tnSpan":[32,32],"tnHighlights":[[32,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[33,{"contents":{"tnSpan":[33,33],"tnHighlights":[[33,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[34,{"contents":{"tnSpan":[34,34],"tnHighlights":[[34,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[35,{"contents":{"tnSpan":[33,36],"tnHighlights":[[34,"HighlightLeaf"],[33,"HighlightGroup"],[36,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[36,{"contents":{"tnSpan":[36,36],"tnHighlights":[[36,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[37,{"contents":{"tnSpan":[37,37],"tnHighlights":[[37,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[38,{"contents":{"tnSpan":[38,38],"tnHighlights":[[38,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[39,{"contents":{"tnSpan":[41,89],"tnHighlights":[[40,"HighlightGroup"],[51,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[40,{"contents":{"tnSpan":[41,50],"tnHighlights":[[42,"HighlightLeaf"],[41,"HighlightGroup"],[44,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[41,{"contents":{"tnSpan":[41,41],"tnHighlights":[[41,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[42,{"contents":{"tnSpan":[42,42],"tnHighlights":[[42,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[43,{"contents":{"tnSpan":[43,43],"tnHighlights":[[43,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[44,{"contents":{"tnSpan":[43,50],"tnHighlights":[[43,"HighlightGroup"],[45,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[45,{"contents":{"tnSpan":[46,50],"tnHighlights":[[46,"HighlightLeaf"],[50,"HighlightLeaf"],[48,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[46,{"contents":{"tnSpan":[46,46],"tnHighlights":[[46,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[47,{"contents":{"tnSpan":[47,47],"tnHighlights":[[47,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[48,{"contents":{"tnSpan":[47,49],"tnHighlights":[[47,"HighlightGroup"],[49,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[49,{"contents":{"tnSpan":[49,49],"tnHighlights":[[49,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[50,{"contents":{"tnSpan":[50,50],"tnHighlights":[[50,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[51,{"contents":{"tnSpan":[52,89],"tnHighlights":[[53,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[52,{"contents":{"tnSpan":[52,52],"tnHighlights":[[52,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[53,{"contents":{"tnSpan":[52,89],"tnHighlights":[[52,"HighlightGroup"],[54,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[54,{"contents":{"tnSpan":[55,89],"tnHighlights":[[55,"HighlightLeaf"],[72,"HighlightLeaf"],[89,"HighlightLeaf"],[58,"HighlightGroup"],[75,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[55,{"contents":{"tnSpan":[55,55],"tnHighlights":[[55,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[56,{"contents":{"tnSpan":[56,56],"tnHighlights":[[56,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[57,{"contents":{"tnSpan":[57,57],"tnHighlights":[[57,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[58,{"contents":{"tnSpan":[56,71],"tnHighlights":[[56,"HighlightGroup"],[57,"HighlightGroup"],[59,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[59,{"contents":{"tnSpan":[60,71],"tnHighlights":[[60,"HighlightLeaf"],[71,"HighlightLeaf"],[66,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[60,{"contents":{"tnSpan":[60,60],"tnHighlights":[[60,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[61,{"contents":{"tnSpan":[61,61],"tnHighlights":[[61,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[62,{"contents":{"tnSpan":[61,64],"tnHighlights":[[63,"HighlightLeaf"],[61,"HighlightGroup"],[64,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[63,{"contents":{"tnSpan":[63,63],"tnHighlights":[[63,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[64,{"contents":{"tnSpan":[64,64],"tnHighlights":[[64,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[65,{"contents":{"tnSpan":[65,65],"tnHighlights":[[65,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[66,{"contents":{"tnSpan":[61,70],"tnHighlights":[[62,"HighlightGroup"],[65,"HighlightGroup"],[68,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[67,{"contents":{"tnSpan":[67,67],"tnHighlights":[[67,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[68,{"contents":{"tnSpan":[67,70],"tnHighlights":[[69,"HighlightLeaf"],[67,"HighlightGroup"],[70,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[69,{"contents":{"tnSpan":[69,69],"tnHighlights":[[69,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[70,{"contents":{"tnSpan":[70,70],"tnHighlights":[[70,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[71,{"contents":{"tnSpan":[71,71],"tnHighlights":[[71,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[72,{"contents":{"tnSpan":[72,72],"tnHighlights":[[72,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[73,{"contents":{"tnSpan":[73,73],"tnHighlights":[[73,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[74,{"contents":{"tnSpan":[74,74],"tnHighlights":[[74,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[75,{"contents":{"tnSpan":[73,88],"tnHighlights":[[73,"HighlightGroup"],[74,"HighlightGroup"],[76,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[76,{"contents":{"tnSpan":[77,88],"tnHighlights":[[77,"HighlightLeaf"],[88,"HighlightLeaf"],[83,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[77,{"contents":{"tnSpan":[77,77],"tnHighlights":[[77,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[78,{"contents":{"tnSpan":[78,78],"tnHighlights":[[78,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[79,{"contents":{"tnSpan":[78,81],"tnHighlights":[[80,"HighlightLeaf"],[78,"HighlightGroup"],[81,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[80,{"contents":{"tnSpan":[80,80],"tnHighlights":[[80,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[81,{"contents":{"tnSpan":[81,81],"tnHighlights":[[81,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[82,{"contents":{"tnSpan":[82,82],"tnHighlights":[[82,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[83,{"contents":{"tnSpan":[78,87],"tnHighlights":[[79,"HighlightGroup"],[82,"HighlightGroup"],[85,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[84,{"contents":{"tnSpan":[84,84],"tnHighlights":[[84,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[85,{"contents":{"tnSpan":[84,87],"tnHighlights":[[86,"HighlightLeaf"],[84,"HighlightGroup"],[87,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[86,{"contents":{"tnSpan":[86,86],"tnHighlights":[[86,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[87,{"contents":{"tnSpan":[87,87],"tnHighlights":[[87,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[88,{"contents":{"tnSpan":[88,88],"tnHighlights":[[88,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[89,{"contents":{"tnSpan":[89,89],"tnHighlights":[[89,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[7,{"contents":{"tnuHighlights":[[7,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[10,{"contents":{"tnuHighlights":[[10,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[13,{"contents":{"tnuHighlights":[[33,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[33,{"contents":{"tnuHighlights":[[13,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[16,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in diagram:\nstruct Point =\n x : Float\n y : Float\n"]},"tag":"Update"}],[18,{"contents":{"tnuHighlights":[[18,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[21,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nKey = Word64\n"]},"tag":"Update"}],[23,{"contents":{"tnuHighlights":[[23,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[26,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in diagram:\nstruct Point =\n x : Float\n y : Float\n"]},"tag":"Update"}],[29,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in diagram:\nstruct Point =\n x : Float\n y : Float\n"]},"tag":"Update"}],[33,{"contents":{"tnuHighlights":[[33,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[33,{"contents":{"tnuHighlights":[[33,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[36,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Ix(n|Data)\n size' : () -> Nat\n ordinal : (n) -> Nat\n unsafe_from_ordinal : (Nat) -> n\n"]},"tag":"Update"}],[41,{"contents":{"tnuHighlights":[[41,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[43,{"contents":{"tnuHighlights":[[10,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[10,{"contents":{"tnuHighlights":[[43,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[47,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef rand_idx(k:Key) -> n given (n|Ix) =\n rand k * n_to_f (size n) | floor | f_to_n | unsafe_from_ordinal\n"]},"tag":"Update"}],[49,{"contents":{"tnuHighlights":[[18,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[18,{"contents":{"tnuHighlights":[[49,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[52,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in diagram:\nstruct Point =\n x : Float\n y : Float\n"]},"tag":"Update"}],[57,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Mul(a|Data)\n (*) : (a, a) -> a\n one : a\n"]},"tag":"Update"}],[61,{"contents":{"tnuHighlights":[[23,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[23,{"contents":{"tnuHighlights":[[61,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[65,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Add(a|Data)\n (+) : (a, a) -> a\n zero : a\n"]},"tag":"Update"}],[67,{"contents":{"tnuHighlights":[[41,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[41,{"contents":{"tnuHighlights":[[67,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[74,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Mul(a|Data)\n (*) : (a, a) -> a\n one : a\n"]},"tag":"Update"}],[78,{"contents":{"tnuHighlights":[[23,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[23,{"contents":{"tnuHighlights":[[78,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[82,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Add(a|Data)\n (+) : (a, a) -> a\n zero : a\n"]},"tag":"Update"}],[84,{"contents":{"tnuHighlights":[[41,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[41,{"contents":{"tnuHighlights":[[84,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[5,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({n:Type}[v#0:(Ix n)](points:(n => Point),key:Word64,p:Point) -> Point)"]},"tag":"Update"}],[10,{"contents":{"tnuHighlights":[],"tnuText":["Type: (n => Point)"]},"tag":"Update"}],[13,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[15,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[16,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[18,{"contents":{"tnuHighlights":[],"tnuText":["Type: Word64"]},"tag":"Update"}],[21,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[23,{"contents":{"tnuHighlights":[],"tnuText":["Type: Point"]},"tag":"Update"}],[26,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[29,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[33,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[36,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[41,{"contents":{"tnuHighlights":[],"tnuText":["Type: Point"]},"tag":"Update"}],[43,{"contents":{"tnuHighlights":[],"tnuText":["Type: (n => Point)"]},"tag":"Update"}],[44,{"contents":{"tnuHighlights":[],"tnuText":["Type: Point"]},"tag":"Update"}],[47,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({n:Type}[v#0:(Ix n)](k:Word64) -> n)"]},"tag":"Update"}],[48,{"contents":{"tnuHighlights":[],"tnuText":["Type: n"]},"tag":"Update"}],[49,{"contents":{"tnuHighlights":[],"tnuText":["Type: Word64"]},"tag":"Update"}],[52,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((v#0:Float32,v#1:Float32) -> Point)"]},"tag":"Update"}],[53,{"contents":{"tnuHighlights":[],"tnuText":["Type: Point"]},"tag":"Update"}],[56,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}],[57,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}[v#3:(Mul a)](v#4:a,v#5:a) -> a)"]},"tag":"Update"}],[58,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}],[59,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}],[61,{"contents":{"tnuHighlights":[],"tnuText":["Type: Point"]},"tag":"Update"}],[62,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}],[65,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}[v#3:(Add a)](v#4:a,v#5:a) -> a)"]},"tag":"Update"}],[67,{"contents":{"tnuHighlights":[],"tnuText":["Type: Point"]},"tag":"Update"}],[68,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}],[73,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}],[74,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}[v#9:(Mul a)](v#10:a,v#11:a) -> a)"]},"tag":"Update"}],[75,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}],[76,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}],[78,{"contents":{"tnuHighlights":[],"tnuText":["Type: Point"]},"tag":"Update"}],[79,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}],[82,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}[v#9:(Add a)](v#10:a,v#11:a) -> a)"]},"tag":"Update"}],[84,{"contents":{"tnuHighlights":[],"tnuText":["Type: Point"]},"tag":"Update"}],[85,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["TypePass",null],"tag":"RenderedPassResult"},{"contents":["SimpPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["OptPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"}]],"tag":"Create"}],[6,{"contents":[{"rsbBlockId":6,"rsbHtml":"
","rsbLexemeList":[91,92,94,95,96,98,99,100,101,103,104,105,106,108,109,110,111,114,115,116,117,118,119,121,122,123,124,126,127,129,130,132,133,134,136,137,138,141,142,143,145,148,149,150,153,154,156,157,158,161,162,163,165,167,168,170,173,174,176,177,179,180,182,184],"rsbNumLines":6,"rsbLine":10,"rsbText":"def runChain(n:Nat, key:Key, x0:a, f:(Key, a) -> a) -> Fin n => a given (a|Data) =\n ref <- with_state x0\n for i:(Fin n).\n new = ixkey key i | f(get ref)\n ref := new\n new\n"},"Complete",[{"contents":[[91,90],[92,92],[94,93],[95,95],[96,97],[98,98],[99,93],[100,100],[101,102],[103,103],[104,93],[105,105],[106,107],[108,108],[109,93],[110,110],[111,112],[114,113],[115,115],[116,113],[117,117],[118,113],[119,120],[121,121],[122,93],[123,90],[124,124],[126,126],[127,128],[129,129],[130,90],[132,131],[133,133],[134,135],[136,136],[137,131],[138,90],[141,141],[142,140],[143,143],[145,145],[148,147],[149,149],[150,151],[153,152],[154,154],[156,156],[157,152],[158,147],[161,161],[162,160],[163,163],[165,165],[167,167],[168,169],[170,170],[173,172],[174,174],[176,176],[177,172],[179,179],[180,180],[182,182],[184,184]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[91,184],"tnHighlights":[[90,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[90,{"contents":{"tnSpan":[91,184],"tnHighlights":[[91,"HighlightLeaf"],[123,"HighlightLeaf"],[130,"HighlightLeaf"],[138,"HighlightLeaf"],[92,"HighlightGroup"],[93,"HighlightGroup"],[128,"HighlightGroup"],[131,"HighlightGroup"],[139,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[91,{"contents":{"tnSpan":[91,91],"tnHighlights":[[91,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[92,{"contents":{"tnSpan":[92,92],"tnHighlights":[[92,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[93,{"contents":{"tnSpan":[94,122],"tnHighlights":[[94,"HighlightLeaf"],[99,"HighlightLeaf"],[104,"HighlightLeaf"],[109,"HighlightLeaf"],[122,"HighlightLeaf"],[97,"HighlightGroup"],[102,"HighlightGroup"],[107,"HighlightGroup"],[112,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[94,{"contents":{"tnSpan":[94,94],"tnHighlights":[[94,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[95,{"contents":{"tnSpan":[95,95],"tnHighlights":[[95,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[96,{"contents":{"tnSpan":[96,96],"tnHighlights":[[96,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[97,{"contents":{"tnSpan":[95,98],"tnHighlights":[[96,"HighlightLeaf"],[95,"HighlightGroup"],[98,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[98,{"contents":{"tnSpan":[98,98],"tnHighlights":[[98,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[99,{"contents":{"tnSpan":[99,99],"tnHighlights":[[99,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[100,{"contents":{"tnSpan":[100,100],"tnHighlights":[[100,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[101,{"contents":{"tnSpan":[101,101],"tnHighlights":[[101,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[102,{"contents":{"tnSpan":[100,103],"tnHighlights":[[101,"HighlightLeaf"],[100,"HighlightGroup"],[103,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[103,{"contents":{"tnSpan":[103,103],"tnHighlights":[[103,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[104,{"contents":{"tnSpan":[104,104],"tnHighlights":[[104,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[105,{"contents":{"tnSpan":[105,105],"tnHighlights":[[105,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[106,{"contents":{"tnSpan":[106,106],"tnHighlights":[[106,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[107,{"contents":{"tnSpan":[105,108],"tnHighlights":[[106,"HighlightLeaf"],[105,"HighlightGroup"],[108,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[108,{"contents":{"tnSpan":[108,108],"tnHighlights":[[108,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[109,{"contents":{"tnSpan":[109,109],"tnHighlights":[[109,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[110,{"contents":{"tnSpan":[110,110],"tnHighlights":[[110,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[111,{"contents":{"tnSpan":[111,111],"tnHighlights":[[111,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[112,{"contents":{"tnSpan":[110,121],"tnHighlights":[[111,"HighlightLeaf"],[110,"HighlightGroup"],[120,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[113,{"contents":{"tnSpan":[114,118],"tnHighlights":[[114,"HighlightLeaf"],[116,"HighlightLeaf"],[118,"HighlightLeaf"],[115,"HighlightGroup"],[117,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[114,{"contents":{"tnSpan":[114,114],"tnHighlights":[[114,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[115,{"contents":{"tnSpan":[115,115],"tnHighlights":[[115,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[116,{"contents":{"tnSpan":[116,116],"tnHighlights":[[116,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[117,{"contents":{"tnSpan":[117,117],"tnHighlights":[[117,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[118,{"contents":{"tnSpan":[118,118],"tnHighlights":[[118,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[119,{"contents":{"tnSpan":[119,119],"tnHighlights":[[119,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[120,{"contents":{"tnSpan":[114,121],"tnHighlights":[[119,"HighlightLeaf"],[113,"HighlightGroup"],[121,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[121,{"contents":{"tnSpan":[121,121],"tnHighlights":[[121,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[122,{"contents":{"tnSpan":[122,122],"tnHighlights":[[122,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[123,{"contents":{"tnSpan":[123,123],"tnHighlights":[[123,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[124,{"contents":{"tnSpan":[124,124],"tnHighlights":[[124,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[125,{"contents":{"tnSpan":[124,126],"tnHighlights":[[124,"HighlightGroup"],[126,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[126,{"contents":{"tnSpan":[126,126],"tnHighlights":[[126,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[127,{"contents":{"tnSpan":[127,127],"tnHighlights":[[127,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[128,{"contents":{"tnSpan":[124,129],"tnHighlights":[[127,"HighlightLeaf"],[125,"HighlightGroup"],[129,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[129,{"contents":{"tnSpan":[129,129],"tnHighlights":[[129,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[130,{"contents":{"tnSpan":[130,130],"tnHighlights":[[130,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[131,{"contents":{"tnSpan":[132,137],"tnHighlights":[[132,"HighlightLeaf"],[137,"HighlightLeaf"],[135,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[132,{"contents":{"tnSpan":[132,132],"tnHighlights":[[132,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[133,{"contents":{"tnSpan":[133,133],"tnHighlights":[[133,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[134,{"contents":{"tnSpan":[134,134],"tnHighlights":[[134,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[135,{"contents":{"tnSpan":[133,136],"tnHighlights":[[134,"HighlightLeaf"],[133,"HighlightGroup"],[136,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[136,{"contents":{"tnSpan":[136,136],"tnHighlights":[[136,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[137,{"contents":{"tnSpan":[137,137],"tnHighlights":[[137,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[138,{"contents":{"tnSpan":[138,138],"tnHighlights":[[138,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[139,{"contents":{"tnSpan":[141,184],"tnHighlights":[[140,"HighlightGroup"],[146,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[140,{"contents":{"tnSpan":[141,145],"tnHighlights":[[142,"HighlightLeaf"],[141,"HighlightGroup"],[144,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[141,{"contents":{"tnSpan":[141,141],"tnHighlights":[[141,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[142,{"contents":{"tnSpan":[142,142],"tnHighlights":[[142,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[143,{"contents":{"tnSpan":[143,143],"tnHighlights":[[143,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[144,{"contents":{"tnSpan":[143,145],"tnHighlights":[[143,"HighlightGroup"],[145,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[145,{"contents":{"tnSpan":[145,145],"tnHighlights":[[145,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[146,{"contents":{"tnSpan":[148,184],"tnHighlights":[[147,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[147,{"contents":{"tnSpan":[148,184],"tnHighlights":[[148,"HighlightLeaf"],[158,"HighlightLeaf"],[151,"HighlightGroup"],[159,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[148,{"contents":{"tnSpan":[148,148],"tnHighlights":[[148,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[149,{"contents":{"tnSpan":[149,149],"tnHighlights":[[149,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[150,{"contents":{"tnSpan":[150,150],"tnHighlights":[[150,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[151,{"contents":{"tnSpan":[149,157],"tnHighlights":[[150,"HighlightLeaf"],[149,"HighlightGroup"],[152,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[152,{"contents":{"tnSpan":[153,157],"tnHighlights":[[153,"HighlightLeaf"],[157,"HighlightLeaf"],[155,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[153,{"contents":{"tnSpan":[153,153],"tnHighlights":[[153,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[154,{"contents":{"tnSpan":[154,154],"tnHighlights":[[154,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[155,{"contents":{"tnSpan":[154,156],"tnHighlights":[[154,"HighlightGroup"],[156,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[156,{"contents":{"tnSpan":[156,156],"tnHighlights":[[156,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[157,{"contents":{"tnSpan":[157,157],"tnHighlights":[[157,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[158,{"contents":{"tnSpan":[158,158],"tnHighlights":[[158,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[159,{"contents":{"tnSpan":[161,184],"tnHighlights":[[160,"HighlightGroup"],[178,"HighlightGroup"],[183,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[160,{"contents":{"tnSpan":[161,177],"tnHighlights":[[162,"HighlightLeaf"],[161,"HighlightGroup"],[169,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[161,{"contents":{"tnSpan":[161,161],"tnHighlights":[[161,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[162,{"contents":{"tnSpan":[162,162],"tnHighlights":[[162,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[163,{"contents":{"tnSpan":[163,163],"tnHighlights":[[163,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[164,{"contents":{"tnSpan":[163,165],"tnHighlights":[[163,"HighlightGroup"],[165,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[165,{"contents":{"tnSpan":[165,165],"tnHighlights":[[165,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[166,{"contents":{"tnSpan":[163,167],"tnHighlights":[[164,"HighlightGroup"],[167,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[167,{"contents":{"tnSpan":[167,167],"tnHighlights":[[167,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[168,{"contents":{"tnSpan":[168,168],"tnHighlights":[[168,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[169,{"contents":{"tnSpan":[163,177],"tnHighlights":[[168,"HighlightLeaf"],[166,"HighlightGroup"],[171,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[170,{"contents":{"tnSpan":[170,170],"tnHighlights":[[170,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[171,{"contents":{"tnSpan":[170,177],"tnHighlights":[[170,"HighlightGroup"],[172,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[172,{"contents":{"tnSpan":[173,177],"tnHighlights":[[173,"HighlightLeaf"],[177,"HighlightLeaf"],[175,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[173,{"contents":{"tnSpan":[173,173],"tnHighlights":[[173,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[174,{"contents":{"tnSpan":[174,174],"tnHighlights":[[174,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[175,{"contents":{"tnSpan":[174,176],"tnHighlights":[[174,"HighlightGroup"],[176,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[176,{"contents":{"tnSpan":[176,176],"tnHighlights":[[176,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[177,{"contents":{"tnSpan":[177,177],"tnHighlights":[[177,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[178,{"contents":{"tnSpan":[179,182],"tnHighlights":[[181,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[179,{"contents":{"tnSpan":[179,179],"tnHighlights":[[179,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[180,{"contents":{"tnSpan":[180,180],"tnHighlights":[[180,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[181,{"contents":{"tnSpan":[179,182],"tnHighlights":[[179,"HighlightGroup"],[180,"HighlightGroup"],[182,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[182,{"contents":{"tnSpan":[182,182],"tnHighlights":[[182,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[183,{"contents":{"tnSpan":[184,184],"tnHighlights":[[184,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[184,{"contents":{"tnSpan":[184,184],"tnHighlights":[[184,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[92,{"contents":{"tnuHighlights":[[92,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[95,{"contents":{"tnuHighlights":[[95,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[98,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nNat = %Nat()\n"]},"tag":"Update"}],[100,{"contents":{"tnuHighlights":[[100,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[103,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nKey = Word64\n"]},"tag":"Update"}],[105,{"contents":{"tnuHighlights":[[105,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[108,{"contents":{"tnuHighlights":[[133,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[133,{"contents":{"tnuHighlights":[[108,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[110,{"contents":{"tnuHighlights":[[110,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[115,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nKey = Word64\n"]},"tag":"Update"}],[117,{"contents":{"tnuHighlights":[[133,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[133,{"contents":{"tnuHighlights":[[117,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[121,{"contents":{"tnuHighlights":[[133,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[133,{"contents":{"tnuHighlights":[[121,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[124,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef Fin(n:Nat) -> Type = %Fin(n)\n"]},"tag":"Update"}],[126,{"contents":{"tnuHighlights":[[95,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[95,{"contents":{"tnuHighlights":[[126,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[129,{"contents":{"tnuHighlights":[[133,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[133,{"contents":{"tnuHighlights":[[129,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[133,{"contents":{"tnuHighlights":[[133,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[133,{"contents":{"tnuHighlights":[[133,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[136,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ninterface Data(a:Type)\n do_not_implement_this_interface_for_the_compiler_relies_on_the_invariant_it_protects : (a) -> a\n"]},"tag":"Update"}],[141,{"contents":{"tnuHighlights":[[141,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[143,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef with_state(\n init:s,\n action: (given (h:Heap), Ref h s) -> {State h |eff} a\n ) -> {|eff} a given (a:Type, s|Data, eff:Effects) =\n fst $ run_state(init, action)\n"]},"tag":"Update"}],[145,{"contents":{"tnuHighlights":[[105,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[105,{"contents":{"tnuHighlights":[[145,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[149,{"contents":{"tnuHighlights":[[149,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[154,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef Fin(n:Nat) -> Type = %Fin(n)\n"]},"tag":"Update"}],[156,{"contents":{"tnuHighlights":[[95,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[95,{"contents":{"tnuHighlights":[[156,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[161,{"contents":{"tnuHighlights":[[161,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[163,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef ixkey(k:Key, i:n) -> Key given (n|Ix) = hash(k, ordinal i)\n"]},"tag":"Update"}],[165,{"contents":{"tnuHighlights":[[100,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[100,{"contents":{"tnuHighlights":[[165,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[167,{"contents":{"tnuHighlights":[[149,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[149,{"contents":{"tnuHighlights":[[167,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[170,{"contents":{"tnuHighlights":[[110,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[110,{"contents":{"tnuHighlights":[[170,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[174,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef get(ref:Ref h s) -> {State h} s given (h:Heap, s|Data) = %get(ref)\n"]},"tag":"Update"}],[176,{"contents":{"tnuHighlights":[[141,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[141,{"contents":{"tnuHighlights":[[176,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[179,{"contents":{"tnuHighlights":[[141,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[141,{"contents":{"tnuHighlights":[[179,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[180,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef (:=)(ref:Ref h s, x:s) -> {State h} () given (h:Heap, s|Data) = %put(ref, x)\n"]},"tag":"Update"}],[182,{"contents":{"tnuHighlights":[[161,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[161,{"contents":{"tnuHighlights":[[182,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[184,{"contents":{"tnuHighlights":[[161,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[161,{"contents":{"tnuHighlights":[[184,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[90,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}[v#0:(Data a)](n:Nat,key:Word64,x0:a,f:((v#1:Word64,v#2:a) -> a)) -> ((Fin n)\n => a))"]},"tag":"Update"}],[95,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}],[98,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[100,{"contents":{"tnuHighlights":[],"tnuText":["Type: Word64"]},"tag":"Update"}],[103,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[105,{"contents":{"tnuHighlights":[],"tnuText":["Type: a"]},"tag":"Update"}],[108,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[110,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((v#1:Word64,v#2:a) -> a)"]},"tag":"Update"}],[115,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[117,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[120,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[121,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[124,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((n:Nat) -> Type)"]},"tag":"Update"}],[125,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[126,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}],[128,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[129,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[133,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[136,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[140,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((Fin n) => a)"]},"tag":"Update"}],[141,{"contents":{"tnuHighlights":[],"tnuText":["Type: (Ref h a)"]},"tag":"Update"}],[143,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}{s:Type}[v#0:(Data s)]{eff:EffKind}(init:s,action:({h:Heap}(v#1:(Ref\n h s)) -> {State h|eff} a)) -> {|eff} a)"]},"tag":"Update"}],[145,{"contents":{"tnuHighlights":[],"tnuText":["Type: a"]},"tag":"Update"}],[147,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((Fin n) => a)"]},"tag":"Update"}],[149,{"contents":{"tnuHighlights":[],"tnuText":["Type: (Fin n)"]},"tag":"Update"}],[152,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[154,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((n:Nat) -> Type)"]},"tag":"Update"}],[156,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}],[161,{"contents":{"tnuHighlights":[],"tnuText":["Type: a"]},"tag":"Update"}],[163,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({n:Type}[v#0:(Ix n)](k:Word64,i:n) -> Word64)"]},"tag":"Update"}],[165,{"contents":{"tnuHighlights":[],"tnuText":["Type: Word64"]},"tag":"Update"}],[166,{"contents":{"tnuHighlights":[],"tnuText":["Type: Word64"]},"tag":"Update"}],[167,{"contents":{"tnuHighlights":[],"tnuText":["Type: (Fin n)"]},"tag":"Update"}],[169,{"contents":{"tnuHighlights":[],"tnuText":["Type: a"]},"tag":"Update"}],[170,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((v#1:Word64,v#2:a) -> a)"]},"tag":"Update"}],[174,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({h:Heap}{s:Type}[v#0:(Data s)](ref:(Ref h s)) -> {State h} s)"]},"tag":"Update"}],[175,{"contents":{"tnuHighlights":[],"tnuText":["Type: a"]},"tag":"Update"}],[176,{"contents":{"tnuHighlights":[],"tnuText":["Type: (Ref h a)"]},"tag":"Update"}],[179,{"contents":{"tnuHighlights":[],"tnuText":["Type: (Ref h a)"]},"tag":"Update"}],[180,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({h:Heap}{s:Type}[v#0:(Data s)](ref:(Ref h s),x:s) -> {State h} ())"]},"tag":"Update"}],[181,{"contents":{"tnuHighlights":[],"tnuText":["Type: ()"]},"tag":"Update"}],[182,{"contents":{"tnuHighlights":[],"tnuText":["Type: a"]},"tag":"Update"}],[184,{"contents":{"tnuHighlights":[],"tnuText":["Type: a"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["TypePass",null],"tag":"RenderedPassResult"},{"contents":["SimpPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["OptPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"}]],"tag":"Create"}],[8,{"contents":[{"rsbBlockId":8,"rsbHtml":"
","rsbLexemeList":[235,236,237,239,242,243,245,246,249,250,252,254,255,258,259,260,261,262,264,266,268],"rsbNumLines":1,"rsbLine":20,"rsbText":"points = runChain n (new_key 0) (Point 0.0 0.0) \\k p. update trianglePoints k p\n"},"Complete",[{"contents":[[235,235],[236,234],[237,237],[239,239],[242,241],[243,243],[245,245],[246,241],[249,248],[250,250],[252,252],[254,254],[255,248],[258,257],[259,259],[260,260],[261,257],[262,262],[264,264],[266,266],[268,268]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[235,268],"tnHighlights":[[234,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[234,{"contents":{"tnSpan":[235,268],"tnHighlights":[[236,"HighlightLeaf"],[235,"HighlightGroup"],[256,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[235,{"contents":{"tnSpan":[235,235],"tnHighlights":[[235,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[236,{"contents":{"tnSpan":[236,236],"tnHighlights":[[236,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[237,{"contents":{"tnSpan":[237,237],"tnHighlights":[[237,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[238,{"contents":{"tnSpan":[237,239],"tnHighlights":[[237,"HighlightGroup"],[239,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[239,{"contents":{"tnSpan":[239,239],"tnHighlights":[[239,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[240,{"contents":{"tnSpan":[237,246],"tnHighlights":[[238,"HighlightGroup"],[241,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[241,{"contents":{"tnSpan":[242,246],"tnHighlights":[[242,"HighlightLeaf"],[246,"HighlightLeaf"],[244,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[242,{"contents":{"tnSpan":[242,242],"tnHighlights":[[242,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[243,{"contents":{"tnSpan":[243,243],"tnHighlights":[[243,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[244,{"contents":{"tnSpan":[243,245],"tnHighlights":[[243,"HighlightGroup"],[245,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[245,{"contents":{"tnSpan":[245,245],"tnHighlights":[[245,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[246,{"contents":{"tnSpan":[246,246],"tnHighlights":[[246,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[247,{"contents":{"tnSpan":[237,255],"tnHighlights":[[240,"HighlightGroup"],[248,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[248,{"contents":{"tnSpan":[249,255],"tnHighlights":[[249,"HighlightLeaf"],[255,"HighlightLeaf"],[253,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[249,{"contents":{"tnSpan":[249,249],"tnHighlights":[[249,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[250,{"contents":{"tnSpan":[250,250],"tnHighlights":[[250,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[251,{"contents":{"tnSpan":[250,252],"tnHighlights":[[250,"HighlightGroup"],[252,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[252,{"contents":{"tnSpan":[252,252],"tnHighlights":[[252,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[253,{"contents":{"tnSpan":[250,254],"tnHighlights":[[251,"HighlightGroup"],[254,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[254,{"contents":{"tnSpan":[254,254],"tnHighlights":[[254,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[255,{"contents":{"tnSpan":[255,255],"tnHighlights":[[255,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[256,{"contents":{"tnSpan":[237,268],"tnHighlights":[[247,"HighlightGroup"],[257,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[257,{"contents":{"tnSpan":[258,268],"tnHighlights":[[258,"HighlightLeaf"],[261,"HighlightLeaf"],[259,"HighlightGroup"],[260,"HighlightGroup"],[267,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[258,{"contents":{"tnSpan":[258,258],"tnHighlights":[[258,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[259,{"contents":{"tnSpan":[259,259],"tnHighlights":[[259,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[260,{"contents":{"tnSpan":[260,260],"tnHighlights":[[260,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[261,{"contents":{"tnSpan":[261,261],"tnHighlights":[[261,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[262,{"contents":{"tnSpan":[262,262],"tnHighlights":[[262,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[263,{"contents":{"tnSpan":[262,264],"tnHighlights":[[262,"HighlightGroup"],[264,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[264,{"contents":{"tnSpan":[264,264],"tnHighlights":[[264,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[265,{"contents":{"tnSpan":[262,266],"tnHighlights":[[263,"HighlightGroup"],[266,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[266,{"contents":{"tnSpan":[266,266],"tnHighlights":[[266,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[267,{"contents":{"tnSpan":[262,268],"tnHighlights":[[265,"HighlightGroup"],[268,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[268,{"contents":{"tnSpan":[268,268],"tnHighlights":[[268,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[235,{"contents":{"tnuHighlights":[[235,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[237,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in main:\ndef runChain(n:Nat, key:Key, x0:a, f:(Key, a) -> a) -> Fin n => a given (a|Data) =\n ref <- with_state x0\n for i:(Fin n).\n new = ixkey key i | f(get ref)\n ref := new\n new\n"]},"tag":"Update"}],[239,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in main:\nn = 3000\n"]},"tag":"Update"}],[243,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\ndef new_key(x:Nat) -> Key = hash(0, x)\n"]},"tag":"Update"}],[250,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in diagram:\nstruct Point =\n x : Float\n y : Float\n"]},"tag":"Update"}],[259,{"contents":{"tnuHighlights":[[259,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[260,{"contents":{"tnuHighlights":[[260,"HighlightBinder"]],"tnuText":[]},"tag":"Update"}],[262,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in main:\ndef update(points:n=>Point, key:Key, p:Point) -> Point given (n|Ix) =\n p' = points[rand_idx key]\n Point(0.5 * (p.x + p'.x), 0.5 * (p.y + p'.y))\n"]},"tag":"Update"}],[264,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in main:\ntrianglePoints : (Fin 3)=>Point = [Point(0.0, 0.0), Point(1.0, 0.0), Point(0.5, sqrt 0.75)]\n"]},"tag":"Update"}],[266,{"contents":{"tnuHighlights":[[259,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[259,{"contents":{"tnuHighlights":[[266,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}],[268,{"contents":{"tnuHighlights":[[260,"HighlightBinder"]],"tnuText":["Local name"]},"tag":"Update"}],[260,{"contents":{"tnuHighlights":[[268,"HighlightOcc"]],"tnuText":[]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[237,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}[v#0:(Data a)](n:Nat,key:Word64,x0:a,f:((v#1:Word64,v#2:a) -> a)) -> ((Fin n)\n => a))"]},"tag":"Update"}],[239,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}],[241,{"contents":{"tnuHighlights":[],"tnuText":["Type: Word64"]},"tag":"Update"}],[243,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((x:Nat) -> Word64)"]},"tag":"Update"}],[245,{"contents":{"tnuHighlights":[],"tnuText":["Type: Nat"]},"tag":"Update"}],[248,{"contents":{"tnuHighlights":[],"tnuText":["Type: Point"]},"tag":"Update"}],[250,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((v#0:Float32,v#1:Float32) -> Point)"]},"tag":"Update"}],[252,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}],[254,{"contents":{"tnuHighlights":[],"tnuText":["Type: Float32"]},"tag":"Update"}],[256,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((Fin n) => Point)"]},"tag":"Update"}],[259,{"contents":{"tnuHighlights":[],"tnuText":["Type: Word64"]},"tag":"Update"}],[260,{"contents":{"tnuHighlights":[],"tnuText":["Type: Point"]},"tag":"Update"}],[262,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({n:Type}[v#0:(Ix n)](points:(n => Point),key:Word64,p:Point) -> Point)"]},"tag":"Update"}],[264,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((Fin 3) => Point)"]},"tag":"Update"}],[266,{"contents":{"tnuHighlights":[],"tnuText":["Type: Word64"]},"tag":"Update"}],[267,{"contents":{"tnuHighlights":[],"tnuText":["Type: Point"]},"tag":"Update"}],[268,{"contents":{"tnuHighlights":[],"tnuText":["Type: Point"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["TypePass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"},{"contents":["SimpPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["OptPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"}]],"tag":"Create"}],[13,{"contents":[{"rsbBlockId":13,"rsbHtml":"
","rsbLexemeList":[313,314,315,317,319,321],"rsbNumLines":1,"rsbLine":24,"rsbText":":html show_plot $ xy_plot xs ys\n"},"Complete",[{"contents":[[314,314],[315,316],[317,317],[319,319],[321,321]],"tag":"RenderedFocusUpdate"},{"contents":[[0,{"contents":{"tnSpan":[314,321],"tnHighlights":[[316,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[314,{"contents":{"tnSpan":[314,314],"tnHighlights":[[314,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[315,{"contents":{"tnSpan":[315,315],"tnHighlights":[[315,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[316,{"contents":{"tnSpan":[314,321],"tnHighlights":[[315,"HighlightLeaf"],[314,"HighlightGroup"],[320,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[317,{"contents":{"tnSpan":[317,317],"tnHighlights":[[317,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[318,{"contents":{"tnSpan":[317,319],"tnHighlights":[[317,"HighlightGroup"],[319,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[319,{"contents":{"tnSpan":[319,319],"tnHighlights":[[319,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[320,{"contents":{"tnSpan":[317,321],"tnHighlights":[[318,"HighlightGroup"],[321,"HighlightGroup"]],"tnText":""},"tag":"Create"}],[321,{"contents":{"tnSpan":[321,321],"tnHighlights":[[321,"HighlightGroup"]],"tnText":""},"tag":"Create"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["Parse",null],"tag":"RenderedPassResult"},{"contents":[[314,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in plot:\ndef show_plot(plot:Plot n a b c) -> String given (a:Type, b:Type, c:Type, n|Ix) =\n render_svg (plot_to_diagram plot) (Point 0.0 0.0, Point 1.0 1.0)\n"]},"tag":"Update"}],[316,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in prelude:\nString : Type = List Char\n"]},"tag":"Update"}],[317,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in plot:\ndef xy_plot(xs:n=>Float, ys:n=>Float) -> Plot n Float Float () given (n|Ix) =\n blank_plot(n) |\n set_x_data (auto_scale xs) |\n set_y_data (auto_scale ys)\n"]},"tag":"Update"}],[319,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in main:\n(xs, ys) = unzip for i:(Fin n). (points[i].x, points[i].y)\n"]},"tag":"Update"}],[321,{"contents":{"tnuHighlights":[],"tnuText":["Top-level name defined in main:\n(xs, ys) = unzip for i:(Fin n). (points[i].x, points[i].y)\n"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["RenamePass",null],"tag":"RenderedPassResult"},{"contents":[[314,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({a:Type}{b:Type}{c:Type}{n:Type}[v#0:(Ix n)](plot:(Plot n a b c)) -> (List\n Word8))"]},"tag":"Update"}],[316,{"contents":{"tnuHighlights":[],"tnuText":["Type: Type"]},"tag":"Update"}],[317,{"contents":{"tnuHighlights":[],"tnuText":["Type: ({n:Type}[v#0:(Ix n)](xs:(n => Float32),ys:(n => Float32)) -> (Plot\n n\n Float32\n Float32\n ()))"]},"tag":"Update"}],[319,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((Fin n) => Float32)"]},"tag":"Update"}],[320,{"contents":{"tnuHighlights":[],"tnuText":["Type: (Plot (Fin n) Float32 Float32 ())"]},"tag":"Update"}],[321,{"contents":{"tnuHighlights":[],"tnuText":["Type: ((Fin n) => Float32)"]},"tag":"Update"}]],"tag":"RenderedTreeNodeUpdate"},{"contents":["TypePass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"},{"contents":["SimpPass",null],"tag":"RenderedPassResult"},{"contents":["LowerPass",null],"tag":"RenderedPassResult"},{"contents":["OptPass",null],"tag":"RenderedPassResult"},{"contents":["ImpPass",null],"tag":"RenderedPassResult"},{"contents":["JitPass",null],"tag":"RenderedPassResult"},{"contents":["LLVMOpt",null],"tag":"RenderedPassResult"},{"contents":["AsmPass",null],"tag":"RenderedPassResult"},{"contents":"","tag":"RenderedHtmlOut"}]],"tag":"Create"}]]}
\ No newline at end of file