Conformance.Builtin.Semantics.Bls12381G2MultiScalarMul

Conformance tests generated from plutus-conformance/test-cases/uplc/evaluation/builtin/semantics/bls12_381_G2_multiScalarMul. See Conformance.Eval for how they are run.

module Conformance.Builtin.Semantics.Bls12381G2MultiScalarMul where

open import Conformance.Eval

multiScalarMul-01

-- builtin/semantics/bls12_381_G2_multiScalarMul/multiScalarMul-01
-- Multi-scalar multiplication is the same as ordinary scalar multiplication for inputs of size 1.
test-multiScalarMul-01 : Untyped
test-multiScalarMul-01 = (UApp (UApp (UBuiltin bls12-381-G2-equal) (UApp (UApp (UBuiltin bls12-381-G2-multiScalarMul) (UCon (tagCon (list integer) ((ℤ.negsuc 7843724524521392138901923801823923123123454352156) ∷ [])))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\174.\238U\177\183\157\244^MU0\145.\rf1&\130\ACK0\138\196V\177\238y\v\228\179\245E\207jsA\199\216\RS\168\236X}\189\228s\146\194\a\EM_\194\DC3\165\151\SUB\236\178l\250ax\235|vZH\193\254[\175=\168\205I\152AuFr\230\202Z\RSv\ETB\207j\164\SI\223c\ENQbA'"))))) (UCon (tagCon (list bls12-381-g2-element) ([])))))) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.negsuc 7843724524521392138901923801823923123123454352156)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\174.\238U\177\183\157\244^MU0\145.\rf1&\130\ACK0\138\196V\177\238y\v\228\179\245E\207jsA\199\216\RS\168\236X}\189\228s\146\194\a\EM_\194\DC3\165\151\SUB\236\178l\250ax\235|vZH\193\254[\175=\168\205I\152AuFr\230\202Z\RSv\ETB\207j\164\SI\223c\ENQbA'"))))))

expected-multiScalarMul-01 : Result
expected-multiScalarMul-01 = success (UCon (tagCon bool true))

-- Pending: bytestring constant; postulated builtin `bls12-381-G2-equal`; postulated builtin `bls12-381-G2-multiScalarMul`; postulated builtin `bls12-381-G2-uncompress`; postulated builtin `bls12-381-G2-scalarMul`.
pending-multiScalarMul-01 : Set
pending-multiScalarMul-01 = Pending (evalRaw test-multiScalarMul-01 ≡ expected-multiScalarMul-01)

multiScalarMul-02a

-- builtin/semantics/bls12_381_G2_multiScalarMul/multiScalarMul-02a
-- Multi-scalar multiplication is itertated multiply-and-add.
-- msm [n1,n2,n3,n4,n5,n6] [p1,p2,p3,p4,p5,p6] = n1*p1+(n2*p2+(n3*p3+(n4*p4+(n5*p5+n6*p6))))
test-multiScalarMul-02a : Untyped
test-multiScalarMul-02a = (UApp (UApp (UBuiltin bls12-381-G2-equal) (UApp (UApp (UBuiltin bls12-381-G2-multiScalarMul) (UCon (tagCon (list integer) ((ℤ.negsuc 7843724524521392138901923801823923123123454352156) ∷ (ℤ.pos 34527457238) ∷ (ℤ.pos 941957124591735785278457826354751745783452348102412301239547134528453782352345235423452345234523452345234512341423412341234) ∷ (ℤ.negsuc 6) ∷ (ℤ.pos 78438238) ∷ (ℤ.pos 123) ∷ [])))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\184\137\170A(\167-\142-b\239\174\&7\237L\147\221U\NUL\DC4^n\141\213\&2\225\GS\"\EM\134iB\231\DC2\195\EOT\bl\155\229\234 \144(\162R\213\182\SI\189\169O\228\172\230\186\NUL\201\178\DEL\246\EOT]\244\b\140\137'\GSV\176\152\184n\139\232\250G8\NUL\140\213\237\180\223\150q\220\192\NAK\145\248v\DLE\250r"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\137` \236\181Y\147\STXV\252\&0;\224\ACK\vP$+[\186\DC4GA\226\234\EOT\178.\203.iQ\185\170\139?\ETB\244>\240\201\ETXF\247\249\&2A:\v\US\143\GSM\174\212\205\221\176\253\f\252ov\130\242@@\140\210\151G4\207\NAK\n\147&\241\135\131K\148\ETB\236\203\SI\129\225{0\146\GS\159\205)\157"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\174\&5\153\168\ESCA\239c\238\235\SYN\225g\DC4\131P\216\248\f\186y\179\188F\173\SYNZx\181k\159\161V\165\&5g\236-\173\135'\138S\247\EOT*\t\131\EOTN\243 \148\218\182y\178jjO\182\163M\213O&\160\216\155\CAN\129\227\196\145X\177-c(\195\168u\191\231&6\"\154\190R\191\145\SO\198\&1["))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\182\n\203/\189[\SUB\215mnr\159\220L\222H\246\228\194zUQ\242?q)\153n\156\&5e\143\144\147\243\171\179W\182\165\DC1b\215\229\234\183\&5\142\DLE\ETX\215\208\190\220vM\143\139\186\204\r\181\227\187\173!\171\FS\250Q\213lN\147G~\159\224\196\164\241\128\169S\218\179j\163\222\214zl\176\DC1\142\&1"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\171\ENQ\161\b\198|\SIIi3\138\168\131\239\168\195\167\137\200\246\236\v%m\ENQH,\228\191\153\148\230\201Nb\179[i\185e<\CANy\228#\216\133\172\SI\134f};\214\231p\236\150<\132Nl\189\CAN\136a\131^\209R\154\231F\SI\189\ao\148\t^\223\243\t?\250\171\235\DLE\234i\252\150\229\&25\227"))))) (UCon (tagCon (list bls12-381-g2-element) ([]))))))))))) (UApp (UApp (UBuiltin bls12-381-G2-add) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.negsuc 7843724524521392138901923801823923123123454352156)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\184\137\170A(\167-\142-b\239\174\&7\237L\147\221U\NUL\DC4^n\141\213\&2\225\GS\"\EM\134iB\231\DC2\195\EOT\bl\155\229\234 \144(\162R\213\182\SI\189\169O\228\172\230\186\NUL\201\178\DEL\246\EOT]\244\b\140\137'\GSV\176\152\184n\139\232\250G8\NUL\140\213\237\180\223\150q\220\192\NAK\145\248v\DLE\250r")))))) (UApp (UApp (UBuiltin bls12-381-G2-add) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.pos 34527457238)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL")))))) (UApp (UApp (UBuiltin bls12-381-G2-add) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.pos 941957124591735785278457826354751745783452348102412301239547134528453782352345235423452345234523452345234512341423412341234)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\137` \236\181Y\147\STXV\252\&0;\224\ACK\vP$+[\186\DC4GA\226\234\EOT\178.\203.iQ\185\170\139?\ETB\244>\240\201\ETXF\247\249\&2A:\v\US\143\GSM\174\212\205\221\176\253\f\252ov\130\242@@\140\210\151G4\207\NAK\n\147&\241\135\131K\148\ETB\236\203\SI\129\225{0\146\GS\159\205)\157")))))) (UApp (UApp (UBuiltin bls12-381-G2-add) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.negsuc 6)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\174\&5\153\168\ESCA\239c\238\235\SYN\225g\DC4\131P\216\248\f\186y\179\188F\173\SYNZx\181k\159\161V\165\&5g\236-\173\135'\138S\247\EOT*\t\131\EOTN\243 \148\218\182y\178jjO\182\163M\213O&\160\216\155\CAN\129\227\196\145X\177-c(\195\168u\191\231&6\"\154\190R\191\145\SO\198\&1[")))))) (UApp (UApp (UBuiltin bls12-381-G2-add) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.pos 78438238)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\182\n\203/\189[\SUB\215mnr\159\220L\222H\246\228\194zUQ\242?q)\153n\156\&5e\143\144\147\243\171\179W\182\165\DC1b\215\229\234\183\&5\142\DLE\ETX\215\208\190\220vM\143\139\186\204\r\181\227\187\173!\171\FS\250Q\213lN\147G~\159\224\196\164\241\128\169S\218\179j\163\222\214zl\176\DC1\142\&1")))))) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.pos 123)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\171\ENQ\161\b\198|\SIIi3\138\168\131\239\168\195\167\137\200\246\236\v%m\ENQH,\228\191\153\148\230\201Nb\179[i\185e<\CANy\228#\216\133\172\SI\134f};\214\231p\236\150<\132Nl\189\CAN\136a\131^\209R\154\231F\SI\189\ao\148\t^\223\243\t?\250\171\235\DLE\234i\252\150\229\&25\227")))))))))))

expected-multiScalarMul-02a : Result
expected-multiScalarMul-02a = success (UCon (tagCon bool true))

-- Pending: bytestring constant; postulated builtin `bls12-381-G2-equal`; postulated builtin `bls12-381-G2-multiScalarMul`; postulated builtin `bls12-381-G2-uncompress`; postulated builtin `bls12-381-G2-add`; postulated builtin `bls12-381-G2-scalarMul`.
pending-multiScalarMul-02a : Set
pending-multiScalarMul-02a = Pending (evalRaw test-multiScalarMul-02a ≡ expected-multiScalarMul-02a)

multiScalarMul-02b

-- builtin/semantics/bls12_381_G2_multiScalarMul/multiScalarMul-02b
-- Multi-scalar multiplication is itertated multiply-and-add.
-- msm [n1,n2,n3,n4,n5,n6] [p1,p2,p3,p4,p5,p6] = n1*p1+(n2*p2+(n3*p3+(n4*p4+(n5*p5+n6*p6))))
-- No infinite points in the input.
test-multiScalarMul-02b : Untyped
test-multiScalarMul-02b = (UApp (UApp (UBuiltin bls12-381-G2-equal) (UApp (UApp (UBuiltin bls12-381-G2-multiScalarMul) (UCon (tagCon (list integer) ((ℤ.negsuc 7843724524521392138901923801823923123123454352156) ∷ (ℤ.pos 34527457238) ∷ (ℤ.pos 941957124591735785278457826354751745783452348102412301239547134528453782352345235423452345234523452345234512341423412341234) ∷ (ℤ.negsuc 6) ∷ (ℤ.pos 78438238) ∷ (ℤ.pos 123) ∷ [])))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\173A\170\206\146\184/K}0\161]\195\172\DC3P{5r\166\SYNU\142\SO\180\185I\161\253\ENQ\r\171\255\136\&0A\197L\163\244\169LT\ETB\131a\202\202\n\161\176\202\180}\232@\224\168\230\"\201@\228\219\f\193K\196\206\133\140 \214\137B\235\147\190l\227\247\"\254\136\207\235h\222\154\236I\SOHln\DC1\188"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\145\178\145f\159\&4:Y(K\239\f\245'\tr\145(\253\189\v\162D\212|\147\150t\222\174+\162d^$@R\129~-UF\218!i\SUB1\185\r\163\190\213\243\DC4\226\148\224\205\194\249\235&_3\EOTj\153\186\236iL\SO+\NAK.$\136\251\246\220(\212\179\&6H\217>\SUB\n\178]N\130\163Q\138"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\165sE&\152\241\DC3\129\"\239\146\235\199\247\168\187\137\211\DC2\129\&8\188\EOTWz\196%\154>I\SO\137\204\204\205\212$)\199\161\150iR\154\227g\242\226\SYN\133m\220\188\SYN$\\U\211\NUL\132/Q\205\NUL\208\250\141\185\CAN`\162\EOT\n\DELg\163RI\194\173\150\SUB\148\FS\171\158\222c.\140\205JbB\154\140"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\146\DC1\217\196\RS)\200\233\245\205\&7\189\217\196\143x\186\224\STX\DC4\192\129!3%\146\163\207\161\165\137\133\222\217\210\190\209{\a\179\172\139\242\228\ETB\b\235H\EOTK\ESCB\236\236\135\212O\242\ENQB\168h\DC2\184M\v{\186\217 \193e\205\128\148\143\240n\252^8R5\n\234Wh\198\222[31p\204\SYN\135"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\162Y\235\248\DEL\251\166\183\246x\176V#rk\NUL\vRe\200\255hcp\251\152\b\r\a\167\CAN\217:\ETXN\253\149-f\177\ETBw\186j\195\140=4\b2\159m\134\236\rx\199\249Q(Un[d\175\&6}\177\128N\201w9K\FS\139 \181\210a\184J\r\SO\226tu\DC2\DLE\154\243\250\154\144\165O"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\130\231>\243\173\129\192rv\168\185\&6\v\DC3I\220\168a\207<\DC1\215\227\211\218#\177R]h;\177\135B\146\131\163 \SOHV\175\DC3\SOH\246\239\&2iz\DC4y\174\197shS\245\145\t\\\241Z\185P|q\167{\213y\187._L\171\148\216\255\&3\188C\252\243\&6\DC3j\162\250\206(\241\136kb\243\204\169"))))) (UCon (tagCon (list bls12-381-g2-element) ([]))))))))))) (UApp (UApp (UBuiltin bls12-381-G2-add) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.negsuc 7843724524521392138901923801823923123123454352156)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\173A\170\206\146\184/K}0\161]\195\172\DC3P{5r\166\SYNU\142\SO\180\185I\161\253\ENQ\r\171\255\136\&0A\197L\163\244\169LT\ETB\131a\202\202\n\161\176\202\180}\232@\224\168\230\"\201@\228\219\f\193K\196\206\133\140 \214\137B\235\147\190l\227\247\"\254\136\207\235h\222\154\236I\SOHln\DC1\188")))))) (UApp (UApp (UBuiltin bls12-381-G2-add) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.pos 34527457238)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\145\178\145f\159\&4:Y(K\239\f\245'\tr\145(\253\189\v\162D\212|\147\150t\222\174+\162d^$@R\129~-UF\218!i\SUB1\185\r\163\190\213\243\DC4\226\148\224\205\194\249\235&_3\EOTj\153\186\236iL\SO+\NAK.$\136\251\246\220(\212\179\&6H\217>\SUB\n\178]N\130\163Q\138")))))) (UApp (UApp (UBuiltin bls12-381-G2-add) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.pos 941957124591735785278457826354751745783452348102412301239547134528453782352345235423452345234523452345234512341423412341234)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\165sE&\152\241\DC3\129\"\239\146\235\199\247\168\187\137\211\DC2\129\&8\188\EOTWz\196%\154>I\SO\137\204\204\205\212$)\199\161\150iR\154\227g\242\226\SYN\133m\220\188\SYN$\\U\211\NUL\132/Q\205\NUL\208\250\141\185\CAN`\162\EOT\n\DELg\163RI\194\173\150\SUB\148\FS\171\158\222c.\140\205JbB\154\140")))))) (UApp (UApp (UBuiltin bls12-381-G2-add) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.negsuc 6)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\146\DC1\217\196\RS)\200\233\245\205\&7\189\217\196\143x\186\224\STX\DC4\192\129!3%\146\163\207\161\165\137\133\222\217\210\190\209{\a\179\172\139\242\228\ETB\b\235H\EOTK\ESCB\236\236\135\212O\242\ENQB\168h\DC2\184M\v{\186\217 \193e\205\128\148\143\240n\252^8R5\n\234Wh\198\222[31p\204\SYN\135")))))) (UApp (UApp (UBuiltin bls12-381-G2-add) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.pos 78438238)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\162Y\235\248\DEL\251\166\183\246x\176V#rk\NUL\vRe\200\255hcp\251\152\b\r\a\167\CAN\217:\ETXN\253\149-f\177\ETBw\186j\195\140=4\b2\159m\134\236\rx\199\249Q(Un[d\175\&6}\177\128N\201w9K\FS\139 \181\210a\184J\r\SO\226tu\DC2\DLE\154\243\250\154\144\165O")))))) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.pos 123)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\130\231>\243\173\129\192rv\168\185\&6\v\DC3I\220\168a\207<\DC1\215\227\211\218#\177R]h;\177\135B\146\131\163 \SOHV\175\DC3\SOH\246\239\&2iz\DC4y\174\197shS\245\145\t\\\241Z\185P|q\167{\213y\187._L\171\148\216\255\&3\188C\252\243\&6\DC3j\162\250\206(\241\136kb\243\204\169")))))))))))

expected-multiScalarMul-02b : Result
expected-multiScalarMul-02b = success (UCon (tagCon bool true))

-- Pending: bytestring constant; postulated builtin `bls12-381-G2-equal`; postulated builtin `bls12-381-G2-multiScalarMul`; postulated builtin `bls12-381-G2-uncompress`; postulated builtin `bls12-381-G2-add`; postulated builtin `bls12-381-G2-scalarMul`.
pending-multiScalarMul-02b : Set
pending-multiScalarMul-02b = Pending (evalRaw test-multiScalarMul-02b ≡ expected-multiScalarMul-02b)

multiScalarMul-03a

-- builtin/semantics/bls12_381_G2_multiScalarMul/multiScalarMul-03a
-- Multi-scalar multiplication is itertated multiply-and-add.
-- msm [n1,n2,n3,n4,n5,n6] [p1,p2,p3,p4,p5,p6] = ((((n1*p1+n2*p2)+n3*p3)+n4*p4)+n5*p5)+n6*p6
test-multiScalarMul-03a : Untyped
test-multiScalarMul-03a = (UApp (UApp (UBuiltin bls12-381-G2-equal) (UApp (UApp (UBuiltin bls12-381-G2-multiScalarMul) (UCon (tagCon (list integer) ((ℤ.negsuc 7843724524521392138901923801823923123123454352156) ∷ (ℤ.pos 34527457238) ∷ (ℤ.pos 941957124591735785278457826354751745783452348102412301239547134528453782352345235423452345234523452345234512341423412341234) ∷ (ℤ.negsuc 6) ∷ (ℤ.pos 78438238) ∷ (ℤ.pos 123) ∷ [])))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\184\137\170A(\167-\142-b\239\174\&7\237L\147\221U\NUL\DC4^n\141\213\&2\225\GS\"\EM\134iB\231\DC2\195\EOT\bl\155\229\234 \144(\162R\213\182\SI\189\169O\228\172\230\186\NUL\201\178\DEL\246\EOT]\244\b\140\137'\GSV\176\152\184n\139\232\250G8\NUL\140\213\237\180\223\150q\220\192\NAK\145\248v\DLE\250r"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\137` \236\181Y\147\STXV\252\&0;\224\ACK\vP$+[\186\DC4GA\226\234\EOT\178.\203.iQ\185\170\139?\ETB\244>\240\201\ETXF\247\249\&2A:\v\US\143\GSM\174\212\205\221\176\253\f\252ov\130\242@@\140\210\151G4\207\NAK\n\147&\241\135\131K\148\ETB\236\203\SI\129\225{0\146\GS\159\205)\157"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\174\&5\153\168\ESCA\239c\238\235\SYN\225g\DC4\131P\216\248\f\186y\179\188F\173\SYNZx\181k\159\161V\165\&5g\236-\173\135'\138S\247\EOT*\t\131\EOTN\243 \148\218\182y\178jjO\182\163M\213O&\160\216\155\CAN\129\227\196\145X\177-c(\195\168u\191\231&6\"\154\190R\191\145\SO\198\&1["))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\182\n\203/\189[\SUB\215mnr\159\220L\222H\246\228\194zUQ\242?q)\153n\156\&5e\143\144\147\243\171\179W\182\165\DC1b\215\229\234\183\&5\142\DLE\ETX\215\208\190\220vM\143\139\186\204\r\181\227\187\173!\171\FS\250Q\213lN\147G~\159\224\196\164\241\128\169S\218\179j\163\222\214zl\176\DC1\142\&1"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\171\ENQ\161\b\198|\SIIi3\138\168\131\239\168\195\167\137\200\246\236\v%m\ENQH,\228\191\153\148\230\201Nb\179[i\185e<\CANy\228#\216\133\172\SI\134f};\214\231p\236\150<\132Nl\189\CAN\136a\131^\209R\154\231F\SI\189\ao\148\t^\223\243\t?\250\171\235\DLE\234i\252\150\229\&25\227"))))) (UCon (tagCon (list bls12-381-g2-element) ([]))))))))))) (UApp (UApp (UBuiltin bls12-381-G2-add) (UApp (UApp (UBuiltin bls12-381-G2-add) (UApp (UApp (UBuiltin bls12-381-G2-add) (UApp (UApp (UBuiltin bls12-381-G2-add) (UApp (UApp (UBuiltin bls12-381-G2-add) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.negsuc 7843724524521392138901923801823923123123454352156)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\184\137\170A(\167-\142-b\239\174\&7\237L\147\221U\NUL\DC4^n\141\213\&2\225\GS\"\EM\134iB\231\DC2\195\EOT\bl\155\229\234 \144(\162R\213\182\SI\189\169O\228\172\230\186\NUL\201\178\DEL\246\EOT]\244\b\140\137'\GSV\176\152\184n\139\232\250G8\NUL\140\213\237\180\223\150q\220\192\NAK\145\248v\DLE\250r")))))) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.pos 34527457238)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))))) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.pos 941957124591735785278457826354751745783452348102412301239547134528453782352345235423452345234523452345234512341423412341234)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\137` \236\181Y\147\STXV\252\&0;\224\ACK\vP$+[\186\DC4GA\226\234\EOT\178.\203.iQ\185\170\139?\ETB\244>\240\201\ETXF\247\249\&2A:\v\US\143\GSM\174\212\205\221\176\253\f\252ov\130\242@@\140\210\151G4\207\NAK\n\147&\241\135\131K\148\ETB\236\203\SI\129\225{0\146\GS\159\205)\157"))))))) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.negsuc 6)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\174\&5\153\168\ESCA\239c\238\235\SYN\225g\DC4\131P\216\248\f\186y\179\188F\173\SYNZx\181k\159\161V\165\&5g\236-\173\135'\138S\247\EOT*\t\131\EOTN\243 \148\218\182y\178jjO\182\163M\213O&\160\216\155\CAN\129\227\196\145X\177-c(\195\168u\191\231&6\"\154\190R\191\145\SO\198\&1["))))))) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.pos 78438238)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\182\n\203/\189[\SUB\215mnr\159\220L\222H\246\228\194zUQ\242?q)\153n\156\&5e\143\144\147\243\171\179W\182\165\DC1b\215\229\234\183\&5\142\DLE\ETX\215\208\190\220vM\143\139\186\204\r\181\227\187\173!\171\FS\250Q\213lN\147G~\159\224\196\164\241\128\169S\218\179j\163\222\214zl\176\DC1\142\&1"))))))) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.pos 123)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\171\ENQ\161\b\198|\SIIi3\138\168\131\239\168\195\167\137\200\246\236\v%m\ENQH,\228\191\153\148\230\201Nb\179[i\185e<\CANy\228#\216\133\172\SI\134f};\214\231p\236\150<\132Nl\189\CAN\136a\131^\209R\154\231F\SI\189\ao\148\t^\223\243\t?\250\171\235\DLE\234i\252\150\229\&25\227")))))))

expected-multiScalarMul-03a : Result
expected-multiScalarMul-03a = success (UCon (tagCon bool true))

-- Pending: bytestring constant; postulated builtin `bls12-381-G2-equal`; postulated builtin `bls12-381-G2-multiScalarMul`; postulated builtin `bls12-381-G2-uncompress`; postulated builtin `bls12-381-G2-add`; postulated builtin `bls12-381-G2-scalarMul`.
pending-multiScalarMul-03a : Set
pending-multiScalarMul-03a = Pending (evalRaw test-multiScalarMul-03a ≡ expected-multiScalarMul-03a)

multiScalarMul-03b

-- builtin/semantics/bls12_381_G2_multiScalarMul/multiScalarMul-03b
-- Multi-scalar multiplication is itertated multiply-and-add.
-- msm [n1,n2,n3,n4,n5,n6] [p1,p2,p3,p4,p5,p6] = ((((n1*p1+n2*p2)+n3*p3)+n4*p4)+n5*p5)+n6*p6
-- No infinite points in the input.
test-multiScalarMul-03b : Untyped
test-multiScalarMul-03b = (UApp (UApp (UBuiltin bls12-381-G2-equal) (UApp (UApp (UBuiltin bls12-381-G2-multiScalarMul) (UCon (tagCon (list integer) ((ℤ.negsuc 7843724524521392138901923801823923123123454352156) ∷ (ℤ.pos 34527457238) ∷ (ℤ.pos 941957124591735785278457826354751745783452348102412301239547134528453782352345235423452345234523452345234512341423412341234) ∷ (ℤ.negsuc 6) ∷ (ℤ.pos 78438238) ∷ (ℤ.pos 123) ∷ [])))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\173A\170\206\146\184/K}0\161]\195\172\DC3P{5r\166\SYNU\142\SO\180\185I\161\253\ENQ\r\171\255\136\&0A\197L\163\244\169LT\ETB\131a\202\202\n\161\176\202\180}\232@\224\168\230\"\201@\228\219\f\193K\196\206\133\140 \214\137B\235\147\190l\227\247\"\254\136\207\235h\222\154\236I\SOHln\DC1\188"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\145\178\145f\159\&4:Y(K\239\f\245'\tr\145(\253\189\v\162D\212|\147\150t\222\174+\162d^$@R\129~-UF\218!i\SUB1\185\r\163\190\213\243\DC4\226\148\224\205\194\249\235&_3\EOTj\153\186\236iL\SO+\NAK.$\136\251\246\220(\212\179\&6H\217>\SUB\n\178]N\130\163Q\138"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\165sE&\152\241\DC3\129\"\239\146\235\199\247\168\187\137\211\DC2\129\&8\188\EOTWz\196%\154>I\SO\137\204\204\205\212$)\199\161\150iR\154\227g\242\226\SYN\133m\220\188\SYN$\\U\211\NUL\132/Q\205\NUL\208\250\141\185\CAN`\162\EOT\n\DELg\163RI\194\173\150\SUB\148\FS\171\158\222c.\140\205JbB\154\140"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\146\DC1\217\196\RS)\200\233\245\205\&7\189\217\196\143x\186\224\STX\DC4\192\129!3%\146\163\207\161\165\137\133\222\217\210\190\209{\a\179\172\139\242\228\ETB\b\235H\EOTK\ESCB\236\236\135\212O\242\ENQB\168h\DC2\184M\v{\186\217 \193e\205\128\148\143\240n\252^8R5\n\234Wh\198\222[31p\204\SYN\135"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\162Y\235\248\DEL\251\166\183\246x\176V#rk\NUL\vRe\200\255hcp\251\152\b\r\a\167\CAN\217:\ETXN\253\149-f\177\ETBw\186j\195\140=4\b2\159m\134\236\rx\199\249Q(Un[d\175\&6}\177\128N\201w9K\FS\139 \181\210a\184J\r\SO\226tu\DC2\DLE\154\243\250\154\144\165O"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\130\231>\243\173\129\192rv\168\185\&6\v\DC3I\220\168a\207<\DC1\215\227\211\218#\177R]h;\177\135B\146\131\163 \SOHV\175\DC3\SOH\246\239\&2iz\DC4y\174\197shS\245\145\t\\\241Z\185P|q\167{\213y\187._L\171\148\216\255\&3\188C\252\243\&6\DC3j\162\250\206(\241\136kb\243\204\169"))))) (UCon (tagCon (list bls12-381-g2-element) ([]))))))))))) (UApp (UApp (UBuiltin bls12-381-G2-add) (UApp (UApp (UBuiltin bls12-381-G2-add) (UApp (UApp (UBuiltin bls12-381-G2-add) (UApp (UApp (UBuiltin bls12-381-G2-add) (UApp (UApp (UBuiltin bls12-381-G2-add) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.negsuc 7843724524521392138901923801823923123123454352156)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\173A\170\206\146\184/K}0\161]\195\172\DC3P{5r\166\SYNU\142\SO\180\185I\161\253\ENQ\r\171\255\136\&0A\197L\163\244\169LT\ETB\131a\202\202\n\161\176\202\180}\232@\224\168\230\"\201@\228\219\f\193K\196\206\133\140 \214\137B\235\147\190l\227\247\"\254\136\207\235h\222\154\236I\SOHln\DC1\188")))))) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.pos 34527457238)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\145\178\145f\159\&4:Y(K\239\f\245'\tr\145(\253\189\v\162D\212|\147\150t\222\174+\162d^$@R\129~-UF\218!i\SUB1\185\r\163\190\213\243\DC4\226\148\224\205\194\249\235&_3\EOTj\153\186\236iL\SO+\NAK.$\136\251\246\220(\212\179\&6H\217>\SUB\n\178]N\130\163Q\138"))))))) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.pos 941957124591735785278457826354751745783452348102412301239547134528453782352345235423452345234523452345234512341423412341234)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\165sE&\152\241\DC3\129\"\239\146\235\199\247\168\187\137\211\DC2\129\&8\188\EOTWz\196%\154>I\SO\137\204\204\205\212$)\199\161\150iR\154\227g\242\226\SYN\133m\220\188\SYN$\\U\211\NUL\132/Q\205\NUL\208\250\141\185\CAN`\162\EOT\n\DELg\163RI\194\173\150\SUB\148\FS\171\158\222c.\140\205JbB\154\140"))))))) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.negsuc 6)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\146\DC1\217\196\RS)\200\233\245\205\&7\189\217\196\143x\186\224\STX\DC4\192\129!3%\146\163\207\161\165\137\133\222\217\210\190\209{\a\179\172\139\242\228\ETB\b\235H\EOTK\ESCB\236\236\135\212O\242\ENQB\168h\DC2\184M\v{\186\217 \193e\205\128\148\143\240n\252^8R5\n\234Wh\198\222[31p\204\SYN\135"))))))) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.pos 78438238)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\162Y\235\248\DEL\251\166\183\246x\176V#rk\NUL\vRe\200\255hcp\251\152\b\r\a\167\CAN\217:\ETXN\253\149-f\177\ETBw\186j\195\140=4\b2\159m\134\236\rx\199\249Q(Un[d\175\&6}\177\128N\201w9K\FS\139 \181\210a\184J\r\SO\226tu\DC2\DLE\154\243\250\154\144\165O"))))))) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.pos 123)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\130\231>\243\173\129\192rv\168\185\&6\v\DC3I\220\168a\207<\DC1\215\227\211\218#\177R]h;\177\135B\146\131\163 \SOHV\175\DC3\SOH\246\239\&2iz\DC4y\174\197shS\245\145\t\\\241Z\185P|q\167{\213y\187._L\171\148\216\255\&3\188C\252\243\&6\DC3j\162\250\206(\241\136kb\243\204\169")))))))

expected-multiScalarMul-03b : Result
expected-multiScalarMul-03b = success (UCon (tagCon bool true))

-- Pending: bytestring constant; postulated builtin `bls12-381-G2-equal`; postulated builtin `bls12-381-G2-multiScalarMul`; postulated builtin `bls12-381-G2-uncompress`; postulated builtin `bls12-381-G2-add`; postulated builtin `bls12-381-G2-scalarMul`.
pending-multiScalarMul-03b : Set
pending-multiScalarMul-03b = Pending (evalRaw test-multiScalarMul-03b ≡ expected-multiScalarMul-03b)

multiScalarMul-04a

-- builtin/semantics/bls12_381_G2_multiScalarMul/multiScalarMul-04a
-- Multi-scalar multiplication is itertated multiply-and-add, invariant under permutation and association.
-- msm [n1,n2,n3,n4,n5,n6] [p1,p2,p3,p4,p5,p6] = n4*p4+((n3*p3+n1*p1)+(n6*p6+(n2*p2+n5*p5)))
test-multiScalarMul-04a : Untyped
test-multiScalarMul-04a = (UApp (UApp (UBuiltin bls12-381-G2-equal) (UApp (UApp (UBuiltin bls12-381-G2-multiScalarMul) (UCon (tagCon (list integer) ((ℤ.negsuc 7843724524521392138901923801823923123123454352156) ∷ (ℤ.pos 34527457238) ∷ (ℤ.pos 941957124591735785278457826354751745783452348102412301239547134528453782352345235423452345234523452345234512341423412341234) ∷ (ℤ.negsuc 6) ∷ (ℤ.pos 78438238) ∷ (ℤ.pos 123) ∷ [])))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\184\137\170A(\167-\142-b\239\174\&7\237L\147\221U\NUL\DC4^n\141\213\&2\225\GS\"\EM\134iB\231\DC2\195\EOT\bl\155\229\234 \144(\162R\213\182\SI\189\169O\228\172\230\186\NUL\201\178\DEL\246\EOT]\244\b\140\137'\GSV\176\152\184n\139\232\250G8\NUL\140\213\237\180\223\150q\220\192\NAK\145\248v\DLE\250r"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\137` \236\181Y\147\STXV\252\&0;\224\ACK\vP$+[\186\DC4GA\226\234\EOT\178.\203.iQ\185\170\139?\ETB\244>\240\201\ETXF\247\249\&2A:\v\US\143\GSM\174\212\205\221\176\253\f\252ov\130\242@@\140\210\151G4\207\NAK\n\147&\241\135\131K\148\ETB\236\203\SI\129\225{0\146\GS\159\205)\157"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\174\&5\153\168\ESCA\239c\238\235\SYN\225g\DC4\131P\216\248\f\186y\179\188F\173\SYNZx\181k\159\161V\165\&5g\236-\173\135'\138S\247\EOT*\t\131\EOTN\243 \148\218\182y\178jjO\182\163M\213O&\160\216\155\CAN\129\227\196\145X\177-c(\195\168u\191\231&6\"\154\190R\191\145\SO\198\&1["))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\182\n\203/\189[\SUB\215mnr\159\220L\222H\246\228\194zUQ\242?q)\153n\156\&5e\143\144\147\243\171\179W\182\165\DC1b\215\229\234\183\&5\142\DLE\ETX\215\208\190\220vM\143\139\186\204\r\181\227\187\173!\171\FS\250Q\213lN\147G~\159\224\196\164\241\128\169S\218\179j\163\222\214zl\176\DC1\142\&1"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\171\ENQ\161\b\198|\SIIi3\138\168\131\239\168\195\167\137\200\246\236\v%m\ENQH,\228\191\153\148\230\201Nb\179[i\185e<\CANy\228#\216\133\172\SI\134f};\214\231p\236\150<\132Nl\189\CAN\136a\131^\209R\154\231F\SI\189\ao\148\t^\223\243\t?\250\171\235\DLE\234i\252\150\229\&25\227"))))) (UCon (tagCon (list bls12-381-g2-element) ([]))))))))))) (UApp (UApp (UBuiltin bls12-381-G2-add) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.negsuc 6)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\174\&5\153\168\ESCA\239c\238\235\SYN\225g\DC4\131P\216\248\f\186y\179\188F\173\SYNZx\181k\159\161V\165\&5g\236-\173\135'\138S\247\EOT*\t\131\EOTN\243 \148\218\182y\178jjO\182\163M\213O&\160\216\155\CAN\129\227\196\145X\177-c(\195\168u\191\231&6\"\154\190R\191\145\SO\198\&1[")))))) (UApp (UApp (UBuiltin bls12-381-G2-add) (UApp (UApp (UBuiltin bls12-381-G2-add) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.pos 941957124591735785278457826354751745783452348102412301239547134528453782352345235423452345234523452345234512341423412341234)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\137` \236\181Y\147\STXV\252\&0;\224\ACK\vP$+[\186\DC4GA\226\234\EOT\178.\203.iQ\185\170\139?\ETB\244>\240\201\ETXF\247\249\&2A:\v\US\143\GSM\174\212\205\221\176\253\f\252ov\130\242@@\140\210\151G4\207\NAK\n\147&\241\135\131K\148\ETB\236\203\SI\129\225{0\146\GS\159\205)\157")))))) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.negsuc 7843724524521392138901923801823923123123454352156)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\184\137\170A(\167-\142-b\239\174\&7\237L\147\221U\NUL\DC4^n\141\213\&2\225\GS\"\EM\134iB\231\DC2\195\EOT\bl\155\229\234 \144(\162R\213\182\SI\189\169O\228\172\230\186\NUL\201\178\DEL\246\EOT]\244\b\140\137'\GSV\176\152\184n\139\232\250G8\NUL\140\213\237\180\223\150q\220\192\NAK\145\248v\DLE\250r"))))))) (UApp (UApp (UBuiltin bls12-381-G2-add) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.pos 123)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\171\ENQ\161\b\198|\SIIi3\138\168\131\239\168\195\167\137\200\246\236\v%m\ENQH,\228\191\153\148\230\201Nb\179[i\185e<\CANy\228#\216\133\172\SI\134f};\214\231p\236\150<\132Nl\189\CAN\136a\131^\209R\154\231F\SI\189\ao\148\t^\223\243\t?\250\171\235\DLE\234i\252\150\229\&25\227")))))) (UApp (UApp (UBuiltin bls12-381-G2-add) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.pos 34527457238)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL")))))) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.pos 78438238)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\182\n\203/\189[\SUB\215mnr\159\220L\222H\246\228\194zUQ\242?q)\153n\156\&5e\143\144\147\243\171\179W\182\165\DC1b\215\229\234\183\&5\142\DLE\ETX\215\208\190\220vM\143\139\186\204\r\181\227\187\173!\171\FS\250Q\213lN\147G~\159\224\196\164\241\128\169S\218\179j\163\222\214zl\176\DC1\142\&1"))))))))))

expected-multiScalarMul-04a : Result
expected-multiScalarMul-04a = success (UCon (tagCon bool true))

-- Pending: bytestring constant; postulated builtin `bls12-381-G2-equal`; postulated builtin `bls12-381-G2-multiScalarMul`; postulated builtin `bls12-381-G2-uncompress`; postulated builtin `bls12-381-G2-add`; postulated builtin `bls12-381-G2-scalarMul`.
pending-multiScalarMul-04a : Set
pending-multiScalarMul-04a = Pending (evalRaw test-multiScalarMul-04a ≡ expected-multiScalarMul-04a)

multiScalarMul-04b

-- builtin/semantics/bls12_381_G2_multiScalarMul/multiScalarMul-04b
-- Multi-scalar multiplication is itertated multiply-and-add, invariant under permutation and association.
-- msm [n1,n2,n3,n4,n5,n6] [p1,p2,p3,p4,p5,p6] = n4*p4+((n3*p3+n1*p1)+(n6*p6+(n2*p2+n5*p5)))
-- No infinite points in the input.
test-multiScalarMul-04b : Untyped
test-multiScalarMul-04b = (UApp (UApp (UBuiltin bls12-381-G2-equal) (UApp (UApp (UBuiltin bls12-381-G2-multiScalarMul) (UCon (tagCon (list integer) ((ℤ.negsuc 7843724524521392138901923801823923123123454352156) ∷ (ℤ.pos 34527457238) ∷ (ℤ.pos 941957124591735785278457826354751745783452348102412301239547134528453782352345235423452345234523452345234512341423412341234) ∷ (ℤ.negsuc 6) ∷ (ℤ.pos 78438238) ∷ (ℤ.pos 123) ∷ [])))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\173A\170\206\146\184/K}0\161]\195\172\DC3P{5r\166\SYNU\142\SO\180\185I\161\253\ENQ\r\171\255\136\&0A\197L\163\244\169LT\ETB\131a\202\202\n\161\176\202\180}\232@\224\168\230\"\201@\228\219\f\193K\196\206\133\140 \214\137B\235\147\190l\227\247\"\254\136\207\235h\222\154\236I\SOHln\DC1\188"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\145\178\145f\159\&4:Y(K\239\f\245'\tr\145(\253\189\v\162D\212|\147\150t\222\174+\162d^$@R\129~-UF\218!i\SUB1\185\r\163\190\213\243\DC4\226\148\224\205\194\249\235&_3\EOTj\153\186\236iL\SO+\NAK.$\136\251\246\220(\212\179\&6H\217>\SUB\n\178]N\130\163Q\138"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\165sE&\152\241\DC3\129\"\239\146\235\199\247\168\187\137\211\DC2\129\&8\188\EOTWz\196%\154>I\SO\137\204\204\205\212$)\199\161\150iR\154\227g\242\226\SYN\133m\220\188\SYN$\\U\211\NUL\132/Q\205\NUL\208\250\141\185\CAN`\162\EOT\n\DELg\163RI\194\173\150\SUB\148\FS\171\158\222c.\140\205JbB\154\140"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\146\DC1\217\196\RS)\200\233\245\205\&7\189\217\196\143x\186\224\STX\DC4\192\129!3%\146\163\207\161\165\137\133\222\217\210\190\209{\a\179\172\139\242\228\ETB\b\235H\EOTK\ESCB\236\236\135\212O\242\ENQB\168h\DC2\184M\v{\186\217 \193e\205\128\148\143\240n\252^8R5\n\234Wh\198\222[31p\204\SYN\135"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\162Y\235\248\DEL\251\166\183\246x\176V#rk\NUL\vRe\200\255hcp\251\152\b\r\a\167\CAN\217:\ETXN\253\149-f\177\ETBw\186j\195\140=4\b2\159m\134\236\rx\199\249Q(Un[d\175\&6}\177\128N\201w9K\FS\139 \181\210a\184J\r\SO\226tu\DC2\DLE\154\243\250\154\144\165O"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\130\231>\243\173\129\192rv\168\185\&6\v\DC3I\220\168a\207<\DC1\215\227\211\218#\177R]h;\177\135B\146\131\163 \SOHV\175\DC3\SOH\246\239\&2iz\DC4y\174\197shS\245\145\t\\\241Z\185P|q\167{\213y\187._L\171\148\216\255\&3\188C\252\243\&6\DC3j\162\250\206(\241\136kb\243\204\169"))))) (UCon (tagCon (list bls12-381-g2-element) ([]))))))))))) (UApp (UApp (UBuiltin bls12-381-G2-add) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.negsuc 6)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\146\DC1\217\196\RS)\200\233\245\205\&7\189\217\196\143x\186\224\STX\DC4\192\129!3%\146\163\207\161\165\137\133\222\217\210\190\209{\a\179\172\139\242\228\ETB\b\235H\EOTK\ESCB\236\236\135\212O\242\ENQB\168h\DC2\184M\v{\186\217 \193e\205\128\148\143\240n\252^8R5\n\234Wh\198\222[31p\204\SYN\135")))))) (UApp (UApp (UBuiltin bls12-381-G2-add) (UApp (UApp (UBuiltin bls12-381-G2-add) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.pos 941957124591735785278457826354751745783452348102412301239547134528453782352345235423452345234523452345234512341423412341234)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\165sE&\152\241\DC3\129\"\239\146\235\199\247\168\187\137\211\DC2\129\&8\188\EOTWz\196%\154>I\SO\137\204\204\205\212$)\199\161\150iR\154\227g\242\226\SYN\133m\220\188\SYN$\\U\211\NUL\132/Q\205\NUL\208\250\141\185\CAN`\162\EOT\n\DELg\163RI\194\173\150\SUB\148\FS\171\158\222c.\140\205JbB\154\140")))))) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.negsuc 7843724524521392138901923801823923123123454352156)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\173A\170\206\146\184/K}0\161]\195\172\DC3P{5r\166\SYNU\142\SO\180\185I\161\253\ENQ\r\171\255\136\&0A\197L\163\244\169LT\ETB\131a\202\202\n\161\176\202\180}\232@\224\168\230\"\201@\228\219\f\193K\196\206\133\140 \214\137B\235\147\190l\227\247\"\254\136\207\235h\222\154\236I\SOHln\DC1\188"))))))) (UApp (UApp (UBuiltin bls12-381-G2-add) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.pos 123)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\130\231>\243\173\129\192rv\168\185\&6\v\DC3I\220\168a\207<\DC1\215\227\211\218#\177R]h;\177\135B\146\131\163 \SOHV\175\DC3\SOH\246\239\&2iz\DC4y\174\197shS\245\145\t\\\241Z\185P|q\167{\213y\187._L\171\148\216\255\&3\188C\252\243\&6\DC3j\162\250\206(\241\136kb\243\204\169")))))) (UApp (UApp (UBuiltin bls12-381-G2-add) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.pos 34527457238)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\145\178\145f\159\&4:Y(K\239\f\245'\tr\145(\253\189\v\162D\212|\147\150t\222\174+\162d^$@R\129~-UF\218!i\SUB1\185\r\163\190\213\243\DC4\226\148\224\205\194\249\235&_3\EOTj\153\186\236iL\SO+\NAK.$\136\251\246\220(\212\179\&6H\217>\SUB\n\178]N\130\163Q\138")))))) (UApp (UApp (UBuiltin bls12-381-G2-scalarMul) (UCon (tagCon integer (ℤ.pos 78438238)))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\162Y\235\248\DEL\251\166\183\246x\176V#rk\NUL\vRe\200\255hcp\251\152\b\r\a\167\CAN\217:\ETXN\253\149-f\177\ETBw\186j\195\140=4\b2\159m\134\236\rx\199\249Q(Un[d\175\&6}\177\128N\201w9K\FS\139 \181\210a\184J\r\SO\226tu\DC2\DLE\154\243\250\154\144\165O"))))))))))

expected-multiScalarMul-04b : Result
expected-multiScalarMul-04b = success (UCon (tagCon bool true))

-- Pending: bytestring constant; postulated builtin `bls12-381-G2-equal`; postulated builtin `bls12-381-G2-multiScalarMul`; postulated builtin `bls12-381-G2-uncompress`; postulated builtin `bls12-381-G2-add`; postulated builtin `bls12-381-G2-scalarMul`.
pending-multiScalarMul-04b : Set
pending-multiScalarMul-04b = Pending (evalRaw test-multiScalarMul-04b ≡ expected-multiScalarMul-04b)

multiScalarMul-05a

-- builtin/semantics/bls12_381_G2_multiScalarMul/multiScalarMul-05a
-- msm (n:ns) (p:ps) = n*p + msm ns ps
test-multiScalarMul-05a : Untyped
test-multiScalarMul-05a = (UApp (UApp (UBuiltin bls12-381-G2-equal) (UApp (UApp (UBuiltin bls12-381-G2-multiScalarMul) (UApp (UApp (UForce (UBuiltin mkCons)) (UCon (tagCon integer (ℤ.negsuc 7843724524521392138901923801823923123123454352156)))) (UCon (tagCon (list integer) ((ℤ.pos 34527457238) ∷ (ℤ.pos 941957124591735785278457826354751745783452348102412301239547134528453782352345235423452345234523452345234512341423412341234) ∷ (ℤ.negsuc 6) ∷ (ℤ.pos 78438238) ∷ (ℤ.pos 123) ∷ []))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\184\137\170A(\167-\142-b\239\174\&7\237L\147\221U\NUL\DC4^n\141\213\&2\225\GS\"\EM\134iB\231\DC2\195\EOT\bl\155\229\234 \144(\162R\213\182\SI\189\169O\228\172\230\186\NUL\201\178\DEL\246\EOT]\244\b\140\137'\GSV\176\152\184n\139\232\250G8\NUL\140\213\237\180\223\150q\220\192\NAK\145\248v\DLE\250r"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\137` \236\181Y\147\STXV\252\&0;\224\ACK\vP$+[\186\DC4GA\226\234\EOT\178.\203.iQ\185\170\139?\ETB\244>\240\201\ETXF\247\249\&2A:\v\US\143\GSM\174\212\205\221\176\253\f\252ov\130\242@@\140\210\151G4\207\NAK\n\147&\241\135\131K\148\ETB\236\203\SI\129\225{0\146\GS\159\205)\157"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\174\&5\153\168\ESCA\239c\238\235\SYN\225g\DC4\131P\216\248\f\186y\179\188F\173\SYNZx\181k\159\161V\165\&5g\236-\173\135'\138S\247\EOT*\t\131\EOTN\243 \148\218\182y\178jjO\182\163M\213O&\160\216\155\CAN\129\227\196\145X\177-c(\195\168u\191\231&6\"\154\190R\191\145\SO\198\&1["))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\182\n\203/\189[\SUB\215mnr\159\220L\222H\246\228\194zUQ\242?q)\153n\156\&5e\143\144\147\243\171\179W\182\165\DC1b\215\229\234\183\&5\142\DLE\ETX\215\208\190\220vM\143\139\186\204\r\181\227\187\173!\171\FS\250Q\213lN\147G~\159\224\196\164\241\128\169S\218\179j\163\222\214zl\176\DC1\142\&1"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\171\ENQ\161\b\198|\SIIi3\138\168\131\239\168\195\167\137\200\246\236\v%m\ENQH,\228\191\153\148\230\201Nb\179[i\185e<\CANy\228#\216\133\172\SI\134f};\214\231p\236\150<\132Nl\189\CAN\136a\131^\209R\154\231F\SI\189\ao\148\t^\223\243\t?\250\171\235\DLE\234i\252\150\229\&25\227"))))) (UCon (tagCon (list bls12-381-g2-element) ([]))))))))))) (UApp (UApp (UBuiltin bls12-381-G2-multiScalarMul) (UCon (tagCon (list integer) ((ℤ.negsuc 7843724524521392138901923801823923123123454352156) ∷ (ℤ.pos 34527457238) ∷ (ℤ.pos 941957124591735785278457826354751745783452348102412301239547134528453782352345235423452345234523452345234512341423412341234) ∷ (ℤ.negsuc 6) ∷ (ℤ.pos 78438238) ∷ (ℤ.pos 123) ∷ [])))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\184\137\170A(\167-\142-b\239\174\&7\237L\147\221U\NUL\DC4^n\141\213\&2\225\GS\"\EM\134iB\231\DC2\195\EOT\bl\155\229\234 \144(\162R\213\182\SI\189\169O\228\172\230\186\NUL\201\178\DEL\246\EOT]\244\b\140\137'\GSV\176\152\184n\139\232\250G8\NUL\140\213\237\180\223\150q\220\192\NAK\145\248v\DLE\250r"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\137` \236\181Y\147\STXV\252\&0;\224\ACK\vP$+[\186\DC4GA\226\234\EOT\178.\203.iQ\185\170\139?\ETB\244>\240\201\ETXF\247\249\&2A:\v\US\143\GSM\174\212\205\221\176\253\f\252ov\130\242@@\140\210\151G4\207\NAK\n\147&\241\135\131K\148\ETB\236\203\SI\129\225{0\146\GS\159\205)\157"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\174\&5\153\168\ESCA\239c\238\235\SYN\225g\DC4\131P\216\248\f\186y\179\188F\173\SYNZx\181k\159\161V\165\&5g\236-\173\135'\138S\247\EOT*\t\131\EOTN\243 \148\218\182y\178jjO\182\163M\213O&\160\216\155\CAN\129\227\196\145X\177-c(\195\168u\191\231&6\"\154\190R\191\145\SO\198\&1["))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\182\n\203/\189[\SUB\215mnr\159\220L\222H\246\228\194zUQ\242?q)\153n\156\&5e\143\144\147\243\171\179W\182\165\DC1b\215\229\234\183\&5\142\DLE\ETX\215\208\190\220vM\143\139\186\204\r\181\227\187\173!\171\FS\250Q\213lN\147G~\159\224\196\164\241\128\169S\218\179j\163\222\214zl\176\DC1\142\&1"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\171\ENQ\161\b\198|\SIIi3\138\168\131\239\168\195\167\137\200\246\236\v%m\ENQH,\228\191\153\148\230\201Nb\179[i\185e<\CANy\228#\216\133\172\SI\134f};\214\231p\236\150<\132Nl\189\CAN\136a\131^\209R\154\231F\SI\189\ao\148\t^\223\243\t?\250\171\235\DLE\234i\252\150\229\&25\227"))))) (UCon (tagCon (list bls12-381-g2-element) ([])))))))))))

expected-multiScalarMul-05a : Result
expected-multiScalarMul-05a = success (UCon (tagCon bool true))

-- Pending: bytestring constant; postulated builtin `bls12-381-G2-equal`; postulated builtin `bls12-381-G2-multiScalarMul`; postulated builtin `bls12-381-G2-uncompress`.
pending-multiScalarMul-05a : Set
pending-multiScalarMul-05a = Pending (evalRaw test-multiScalarMul-05a ≡ expected-multiScalarMul-05a)

multiScalarMul-05b

-- builtin/semantics/bls12_381_G2_multiScalarMul/multiScalarMul-05b
-- msm (n:ns) (p:ps) = n*p + msm ns ps
-- No infinite points in the input.
test-multiScalarMul-05b : Untyped
test-multiScalarMul-05b = (UApp (UApp (UBuiltin bls12-381-G2-equal) (UApp (UApp (UBuiltin bls12-381-G2-multiScalarMul) (UApp (UApp (UForce (UBuiltin mkCons)) (UCon (tagCon integer (ℤ.negsuc 7843724524521392138901923801823923123123454352156)))) (UCon (tagCon (list integer) ((ℤ.pos 34527457238) ∷ (ℤ.pos 941957124591735785278457826354751745783452348102412301239547134528453782352345235423452345234523452345234512341423412341234) ∷ (ℤ.negsuc 6) ∷ (ℤ.pos 78438238) ∷ (ℤ.pos 123) ∷ []))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\173A\170\206\146\184/K}0\161]\195\172\DC3P{5r\166\SYNU\142\SO\180\185I\161\253\ENQ\r\171\255\136\&0A\197L\163\244\169LT\ETB\131a\202\202\n\161\176\202\180}\232@\224\168\230\"\201@\228\219\f\193K\196\206\133\140 \214\137B\235\147\190l\227\247\"\254\136\207\235h\222\154\236I\SOHln\DC1\188"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\145\178\145f\159\&4:Y(K\239\f\245'\tr\145(\253\189\v\162D\212|\147\150t\222\174+\162d^$@R\129~-UF\218!i\SUB1\185\r\163\190\213\243\DC4\226\148\224\205\194\249\235&_3\EOTj\153\186\236iL\SO+\NAK.$\136\251\246\220(\212\179\&6H\217>\SUB\n\178]N\130\163Q\138"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\165sE&\152\241\DC3\129\"\239\146\235\199\247\168\187\137\211\DC2\129\&8\188\EOTWz\196%\154>I\SO\137\204\204\205\212$)\199\161\150iR\154\227g\242\226\SYN\133m\220\188\SYN$\\U\211\NUL\132/Q\205\NUL\208\250\141\185\CAN`\162\EOT\n\DELg\163RI\194\173\150\SUB\148\FS\171\158\222c.\140\205JbB\154\140"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\146\DC1\217\196\RS)\200\233\245\205\&7\189\217\196\143x\186\224\STX\DC4\192\129!3%\146\163\207\161\165\137\133\222\217\210\190\209{\a\179\172\139\242\228\ETB\b\235H\EOTK\ESCB\236\236\135\212O\242\ENQB\168h\DC2\184M\v{\186\217 \193e\205\128\148\143\240n\252^8R5\n\234Wh\198\222[31p\204\SYN\135"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\162Y\235\248\DEL\251\166\183\246x\176V#rk\NUL\vRe\200\255hcp\251\152\b\r\a\167\CAN\217:\ETXN\253\149-f\177\ETBw\186j\195\140=4\b2\159m\134\236\rx\199\249Q(Un[d\175\&6}\177\128N\201w9K\FS\139 \181\210a\184J\r\SO\226tu\DC2\DLE\154\243\250\154\144\165O"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\130\231>\243\173\129\192rv\168\185\&6\v\DC3I\220\168a\207<\DC1\215\227\211\218#\177R]h;\177\135B\146\131\163 \SOHV\175\DC3\SOH\246\239\&2iz\DC4y\174\197shS\245\145\t\\\241Z\185P|q\167{\213y\187._L\171\148\216\255\&3\188C\252\243\&6\DC3j\162\250\206(\241\136kb\243\204\169"))))) (UCon (tagCon (list bls12-381-g2-element) ([]))))))))))) (UApp (UApp (UBuiltin bls12-381-G2-multiScalarMul) (UCon (tagCon (list integer) ((ℤ.negsuc 7843724524521392138901923801823923123123454352156) ∷ (ℤ.pos 34527457238) ∷ (ℤ.pos 941957124591735785278457826354751745783452348102412301239547134528453782352345235423452345234523452345234512341423412341234) ∷ (ℤ.negsuc 6) ∷ (ℤ.pos 78438238) ∷ (ℤ.pos 123) ∷ [])))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\173A\170\206\146\184/K}0\161]\195\172\DC3P{5r\166\SYNU\142\SO\180\185I\161\253\ENQ\r\171\255\136\&0A\197L\163\244\169LT\ETB\131a\202\202\n\161\176\202\180}\232@\224\168\230\"\201@\228\219\f\193K\196\206\133\140 \214\137B\235\147\190l\227\247\"\254\136\207\235h\222\154\236I\SOHln\DC1\188"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\145\178\145f\159\&4:Y(K\239\f\245'\tr\145(\253\189\v\162D\212|\147\150t\222\174+\162d^$@R\129~-UF\218!i\SUB1\185\r\163\190\213\243\DC4\226\148\224\205\194\249\235&_3\EOTj\153\186\236iL\SO+\NAK.$\136\251\246\220(\212\179\&6H\217>\SUB\n\178]N\130\163Q\138"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\165sE&\152\241\DC3\129\"\239\146\235\199\247\168\187\137\211\DC2\129\&8\188\EOTWz\196%\154>I\SO\137\204\204\205\212$)\199\161\150iR\154\227g\242\226\SYN\133m\220\188\SYN$\\U\211\NUL\132/Q\205\NUL\208\250\141\185\CAN`\162\EOT\n\DELg\163RI\194\173\150\SUB\148\FS\171\158\222c.\140\205JbB\154\140"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\146\DC1\217\196\RS)\200\233\245\205\&7\189\217\196\143x\186\224\STX\DC4\192\129!3%\146\163\207\161\165\137\133\222\217\210\190\209{\a\179\172\139\242\228\ETB\b\235H\EOTK\ESCB\236\236\135\212O\242\ENQB\168h\DC2\184M\v{\186\217 \193e\205\128\148\143\240n\252^8R5\n\234Wh\198\222[31p\204\SYN\135"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\162Y\235\248\DEL\251\166\183\246x\176V#rk\NUL\vRe\200\255hcp\251\152\b\r\a\167\CAN\217:\ETXN\253\149-f\177\ETBw\186j\195\140=4\b2\159m\134\236\rx\199\249Q(Un[d\175\&6}\177\128N\201w9K\FS\139 \181\210a\184J\r\SO\226tu\DC2\DLE\154\243\250\154\144\165O"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\130\231>\243\173\129\192rv\168\185\&6\v\DC3I\220\168a\207<\DC1\215\227\211\218#\177R]h;\177\135B\146\131\163 \SOHV\175\DC3\SOH\246\239\&2iz\DC4y\174\197shS\245\145\t\\\241Z\185P|q\167{\213y\187._L\171\148\216\255\&3\188C\252\243\&6\DC3j\162\250\206(\241\136kb\243\204\169"))))) (UCon (tagCon (list bls12-381-g2-element) ([])))))))))))

expected-multiScalarMul-05b : Result
expected-multiScalarMul-05b = success (UCon (tagCon bool true))

-- Pending: bytestring constant; postulated builtin `bls12-381-G2-equal`; postulated builtin `bls12-381-G2-multiScalarMul`; postulated builtin `bls12-381-G2-uncompress`.
pending-multiScalarMul-05b : Set
pending-multiScalarMul-05b = Pending (evalRaw test-multiScalarMul-05b ≡ expected-multiScalarMul-05b)

multiScalarMul-06a

-- builtin/semantics/bls12_381_G2_multiScalarMul/multiScalarMul-06a
-- First argument is empty list => result = zero
test-multiScalarMul-06a : Untyped
test-multiScalarMul-06a = (UApp (UApp (UBuiltin bls12-381-G2-equal) (UApp (UApp (UBuiltin bls12-381-G2-multiScalarMul) (UCon (tagCon (list integer) ([])))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\184\137\170A(\167-\142-b\239\174\&7\237L\147\221U\NUL\DC4^n\141\213\&2\225\GS\"\EM\134iB\231\DC2\195\EOT\bl\155\229\234 \144(\162R\213\182\SI\189\169O\228\172\230\186\NUL\201\178\DEL\246\EOT]\244\b\140\137'\GSV\176\152\184n\139\232\250G8\NUL\140\213\237\180\223\150q\220\192\NAK\145\248v\DLE\250r"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\137` \236\181Y\147\STXV\252\&0;\224\ACK\vP$+[\186\DC4GA\226\234\EOT\178.\203.iQ\185\170\139?\ETB\244>\240\201\ETXF\247\249\&2A:\v\US\143\GSM\174\212\205\221\176\253\f\252ov\130\242@@\140\210\151G4\207\NAK\n\147&\241\135\131K\148\ETB\236\203\SI\129\225{0\146\GS\159\205)\157"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\174\&5\153\168\ESCA\239c\238\235\SYN\225g\DC4\131P\216\248\f\186y\179\188F\173\SYNZx\181k\159\161V\165\&5g\236-\173\135'\138S\247\EOT*\t\131\EOTN\243 \148\218\182y\178jjO\182\163M\213O&\160\216\155\CAN\129\227\196\145X\177-c(\195\168u\191\231&6\"\154\190R\191\145\SO\198\&1["))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\182\n\203/\189[\SUB\215mnr\159\220L\222H\246\228\194zUQ\242?q)\153n\156\&5e\143\144\147\243\171\179W\182\165\DC1b\215\229\234\183\&5\142\DLE\ETX\215\208\190\220vM\143\139\186\204\r\181\227\187\173!\171\FS\250Q\213lN\147G~\159\224\196\164\241\128\169S\218\179j\163\222\214zl\176\DC1\142\&1"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\171\ENQ\161\b\198|\SIIi3\138\168\131\239\168\195\167\137\200\246\236\v%m\ENQH,\228\191\153\148\230\201Nb\179[i\185e<\CANy\228#\216\133\172\SI\134f};\214\231p\236\150<\132Nl\189\CAN\136a\131^\209R\154\231F\SI\189\ao\148\t^\223\243\t?\250\171\235\DLE\234i\252\150\229\&25\227"))))) (UCon (tagCon (list bls12-381-g2-element) ([]))))))))))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL")))))

expected-multiScalarMul-06a : Result
expected-multiScalarMul-06a = success (UCon (tagCon bool true))

-- Pending: bytestring constant; postulated builtin `bls12-381-G2-equal`; postulated builtin `bls12-381-G2-multiScalarMul`; postulated builtin `bls12-381-G2-uncompress`.
pending-multiScalarMul-06a : Set
pending-multiScalarMul-06a = Pending (evalRaw test-multiScalarMul-06a ≡ expected-multiScalarMul-06a)

multiScalarMul-06b

-- builtin/semantics/bls12_381_G2_multiScalarMul/multiScalarMul-06b
-- First argument is empty list => result = zero
-- No infinite points in the input.
test-multiScalarMul-06b : Untyped
test-multiScalarMul-06b = (UApp (UApp (UBuiltin bls12-381-G2-equal) (UApp (UApp (UBuiltin bls12-381-G2-multiScalarMul) (UCon (tagCon (list integer) ([])))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\173A\170\206\146\184/K}0\161]\195\172\DC3P{5r\166\SYNU\142\SO\180\185I\161\253\ENQ\r\171\255\136\&0A\197L\163\244\169LT\ETB\131a\202\202\n\161\176\202\180}\232@\224\168\230\"\201@\228\219\f\193K\196\206\133\140 \214\137B\235\147\190l\227\247\"\254\136\207\235h\222\154\236I\SOHln\DC1\188"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\145\178\145f\159\&4:Y(K\239\f\245'\tr\145(\253\189\v\162D\212|\147\150t\222\174+\162d^$@R\129~-UF\218!i\SUB1\185\r\163\190\213\243\DC4\226\148\224\205\194\249\235&_3\EOTj\153\186\236iL\SO+\NAK.$\136\251\246\220(\212\179\&6H\217>\SUB\n\178]N\130\163Q\138"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\165sE&\152\241\DC3\129\"\239\146\235\199\247\168\187\137\211\DC2\129\&8\188\EOTWz\196%\154>I\SO\137\204\204\205\212$)\199\161\150iR\154\227g\242\226\SYN\133m\220\188\SYN$\\U\211\NUL\132/Q\205\NUL\208\250\141\185\CAN`\162\EOT\n\DELg\163RI\194\173\150\SUB\148\FS\171\158\222c.\140\205JbB\154\140"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\146\DC1\217\196\RS)\200\233\245\205\&7\189\217\196\143x\186\224\STX\DC4\192\129!3%\146\163\207\161\165\137\133\222\217\210\190\209{\a\179\172\139\242\228\ETB\b\235H\EOTK\ESCB\236\236\135\212O\242\ENQB\168h\DC2\184M\v{\186\217 \193e\205\128\148\143\240n\252^8R5\n\234Wh\198\222[31p\204\SYN\135"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\162Y\235\248\DEL\251\166\183\246x\176V#rk\NUL\vRe\200\255hcp\251\152\b\r\a\167\CAN\217:\ETXN\253\149-f\177\ETBw\186j\195\140=4\b2\159m\134\236\rx\199\249Q(Un[d\175\&6}\177\128N\201w9K\FS\139 \181\210a\184J\r\SO\226tu\DC2\DLE\154\243\250\154\144\165O"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\130\231>\243\173\129\192rv\168\185\&6\v\DC3I\220\168a\207<\DC1\215\227\211\218#\177R]h;\177\135B\146\131\163 \SOHV\175\DC3\SOH\246\239\&2iz\DC4y\174\197shS\245\145\t\\\241Z\185P|q\167{\213y\187._L\171\148\216\255\&3\188C\252\243\&6\DC3j\162\250\206(\241\136kb\243\204\169"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\176\224\141*\145\bs\ETX\NAKu\225\"\255\203)\149\223\211\DEL\RS\144\a\236%/\b#\253\229\136\187\239\209G\161\SYN\229Z\163N\132\RS\189<\212.9\186\ve\f\239\189\240\185\135\NUL\245v}\155-\214\219\222\&10\170\209Eh\226-\220\SUB\218\DEL\\\248\199\163E(\156M\194>\223\209kJ\202\248\233\DC1M"))))) (UCon (tagCon (list bls12-381-g2-element) ([])))))))))))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL")))))

expected-multiScalarMul-06b : Result
expected-multiScalarMul-06b = success (UCon (tagCon bool true))

-- Pending: bytestring constant; postulated builtin `bls12-381-G2-equal`; postulated builtin `bls12-381-G2-multiScalarMul`; postulated builtin `bls12-381-G2-uncompress`.
pending-multiScalarMul-06b : Set
pending-multiScalarMul-06b = Pending (evalRaw test-multiScalarMul-06b ≡ expected-multiScalarMul-06b)

multiScalarMul-07

-- builtin/semantics/bls12_381_G2_multiScalarMul/multiScalarMul-07
-- Second argument is empty list => result = zero
test-multiScalarMul-07 : Untyped
test-multiScalarMul-07 = (UApp (UApp (UBuiltin bls12-381-G2-equal) (UApp (UApp (UBuiltin bls12-381-G2-multiScalarMul) (UCon (tagCon (list integer) ((ℤ.negsuc 7843724524521392138901923801823923123123454352156) ∷ (ℤ.pos 34527457238) ∷ (ℤ.pos 941957124591735785278457826354751745783452348102412301239547134528453782352345235423452345234523452345234512341423412341234) ∷ (ℤ.negsuc 6) ∷ (ℤ.pos 78438238) ∷ (ℤ.pos 123) ∷ [])))) (UCon (tagCon (list bls12-381-g2-element) ([]))))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL")))))

expected-multiScalarMul-07 : Result
expected-multiScalarMul-07 = success (UCon (tagCon bool true))

-- Pending: bytestring constant; postulated builtin `bls12-381-G2-equal`; postulated builtin `bls12-381-G2-multiScalarMul`; postulated builtin `bls12-381-G2-uncompress`.
pending-multiScalarMul-07 : Set
pending-multiScalarMul-07 = Pending (evalRaw test-multiScalarMul-07 ≡ expected-multiScalarMul-07)

multiScalarMul-08

-- builtin/semantics/bls12_381_G2_multiScalarMul/multiScalarMul-08
-- Both arguments are empty lists => result = zero
test-multiScalarMul-08 : Untyped
test-multiScalarMul-08 = (UApp (UApp (UBuiltin bls12-381-G2-equal) (UApp (UApp (UBuiltin bls12-381-G2-multiScalarMul) (UCon (tagCon (list integer) ([])))) (UCon (tagCon (list bls12-381-g2-element) ([]))))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL")))))

expected-multiScalarMul-08 : Result
expected-multiScalarMul-08 = success (UCon (tagCon bool true))

-- Pending: bytestring constant; postulated builtin `bls12-381-G2-equal`; postulated builtin `bls12-381-G2-multiScalarMul`; postulated builtin `bls12-381-G2-uncompress`.
pending-multiScalarMul-08 : Set
pending-multiScalarMul-08 = Pending (evalRaw test-multiScalarMul-08 ≡ expected-multiScalarMul-08)

multiScalarMul-09a

-- builtin/semantics/bls12_381_G2_multiScalarMul/multiScalarMul-09a
-- Extra entries at end of first list are ignored
test-multiScalarMul-09a : Untyped
test-multiScalarMul-09a = (UApp (UApp (UBuiltin bls12-381-G2-equal) (UApp (UApp (UBuiltin bls12-381-G2-multiScalarMul) (UCon (tagCon (list integer) ((ℤ.negsuc 7843724524521392138901923801823923123123454352156) ∷ (ℤ.pos 34527457238) ∷ (ℤ.pos 941957124591735785278457826354751745783452348102412301239547134528453782352345235423452345234523452345234512341423412341234) ∷ (ℤ.negsuc 6) ∷ (ℤ.pos 78438238) ∷ (ℤ.pos 123) ∷ (ℤ.pos 1) ∷ (ℤ.pos 82394290214) ∷ (ℤ.negsuc 2148234233) ∷ (ℤ.pos 0) ∷ (ℤ.negsuc 9962138122) ∷ (ℤ.pos 555555) ∷ (ℤ.pos 1000) ∷ [])))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\184\137\170A(\167-\142-b\239\174\&7\237L\147\221U\NUL\DC4^n\141\213\&2\225\GS\"\EM\134iB\231\DC2\195\EOT\bl\155\229\234 \144(\162R\213\182\SI\189\169O\228\172\230\186\NUL\201\178\DEL\246\EOT]\244\b\140\137'\GSV\176\152\184n\139\232\250G8\NUL\140\213\237\180\223\150q\220\192\NAK\145\248v\DLE\250r"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\137` \236\181Y\147\STXV\252\&0;\224\ACK\vP$+[\186\DC4GA\226\234\EOT\178.\203.iQ\185\170\139?\ETB\244>\240\201\ETXF\247\249\&2A:\v\US\143\GSM\174\212\205\221\176\253\f\252ov\130\242@@\140\210\151G4\207\NAK\n\147&\241\135\131K\148\ETB\236\203\SI\129\225{0\146\GS\159\205)\157"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\174\&5\153\168\ESCA\239c\238\235\SYN\225g\DC4\131P\216\248\f\186y\179\188F\173\SYNZx\181k\159\161V\165\&5g\236-\173\135'\138S\247\EOT*\t\131\EOTN\243 \148\218\182y\178jjO\182\163M\213O&\160\216\155\CAN\129\227\196\145X\177-c(\195\168u\191\231&6\"\154\190R\191\145\SO\198\&1["))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\182\n\203/\189[\SUB\215mnr\159\220L\222H\246\228\194zUQ\242?q)\153n\156\&5e\143\144\147\243\171\179W\182\165\DC1b\215\229\234\183\&5\142\DLE\ETX\215\208\190\220vM\143\139\186\204\r\181\227\187\173!\171\FS\250Q\213lN\147G~\159\224\196\164\241\128\169S\218\179j\163\222\214zl\176\DC1\142\&1"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\171\ENQ\161\b\198|\SIIi3\138\168\131\239\168\195\167\137\200\246\236\v%m\ENQH,\228\191\153\148\230\201Nb\179[i\185e<\CANy\228#\216\133\172\SI\134f};\214\231p\236\150<\132Nl\189\CAN\136a\131^\209R\154\231F\SI\189\ao\148\t^\223\243\t?\250\171\235\DLE\234i\252\150\229\&25\227"))))) (UCon (tagCon (list bls12-381-g2-element) ([]))))))))))) (UApp (UApp (UBuiltin bls12-381-G2-multiScalarMul) (UCon (tagCon (list integer) ((ℤ.negsuc 7843724524521392138901923801823923123123454352156) ∷ (ℤ.pos 34527457238) ∷ (ℤ.pos 941957124591735785278457826354751745783452348102412301239547134528453782352345235423452345234523452345234512341423412341234) ∷ (ℤ.negsuc 6) ∷ (ℤ.pos 78438238) ∷ (ℤ.pos 123) ∷ [])))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\184\137\170A(\167-\142-b\239\174\&7\237L\147\221U\NUL\DC4^n\141\213\&2\225\GS\"\EM\134iB\231\DC2\195\EOT\bl\155\229\234 \144(\162R\213\182\SI\189\169O\228\172\230\186\NUL\201\178\DEL\246\EOT]\244\b\140\137'\GSV\176\152\184n\139\232\250G8\NUL\140\213\237\180\223\150q\220\192\NAK\145\248v\DLE\250r"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\137` \236\181Y\147\STXV\252\&0;\224\ACK\vP$+[\186\DC4GA\226\234\EOT\178.\203.iQ\185\170\139?\ETB\244>\240\201\ETXF\247\249\&2A:\v\US\143\GSM\174\212\205\221\176\253\f\252ov\130\242@@\140\210\151G4\207\NAK\n\147&\241\135\131K\148\ETB\236\203\SI\129\225{0\146\GS\159\205)\157"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\174\&5\153\168\ESCA\239c\238\235\SYN\225g\DC4\131P\216\248\f\186y\179\188F\173\SYNZx\181k\159\161V\165\&5g\236-\173\135'\138S\247\EOT*\t\131\EOTN\243 \148\218\182y\178jjO\182\163M\213O&\160\216\155\CAN\129\227\196\145X\177-c(\195\168u\191\231&6\"\154\190R\191\145\SO\198\&1["))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\182\n\203/\189[\SUB\215mnr\159\220L\222H\246\228\194zUQ\242?q)\153n\156\&5e\143\144\147\243\171\179W\182\165\DC1b\215\229\234\183\&5\142\DLE\ETX\215\208\190\220vM\143\139\186\204\r\181\227\187\173!\171\FS\250Q\213lN\147G~\159\224\196\164\241\128\169S\218\179j\163\222\214zl\176\DC1\142\&1"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\171\ENQ\161\b\198|\SIIi3\138\168\131\239\168\195\167\137\200\246\236\v%m\ENQH,\228\191\153\148\230\201Nb\179[i\185e<\CANy\228#\216\133\172\SI\134f};\214\231p\236\150<\132Nl\189\CAN\136a\131^\209R\154\231F\SI\189\ao\148\t^\223\243\t?\250\171\235\DLE\234i\252\150\229\&25\227"))))) (UCon (tagCon (list bls12-381-g2-element) ([])))))))))))

expected-multiScalarMul-09a : Result
expected-multiScalarMul-09a = success (UCon (tagCon bool true))

-- Pending: bytestring constant; postulated builtin `bls12-381-G2-equal`; postulated builtin `bls12-381-G2-multiScalarMul`; postulated builtin `bls12-381-G2-uncompress`.
pending-multiScalarMul-09a : Set
pending-multiScalarMul-09a = Pending (evalRaw test-multiScalarMul-09a ≡ expected-multiScalarMul-09a)

multiScalarMul-09b

-- builtin/semantics/bls12_381_G2_multiScalarMul/multiScalarMul-09b
-- Extra entries at end of first list are ignored
-- No infinite points in the input
test-multiScalarMul-09b : Untyped
test-multiScalarMul-09b = (UApp (UApp (UBuiltin bls12-381-G2-equal) (UApp (UApp (UBuiltin bls12-381-G2-multiScalarMul) (UCon (tagCon (list integer) ((ℤ.negsuc 7843724524521392138901923801823923123123454352156) ∷ (ℤ.pos 34527457238) ∷ (ℤ.pos 941957124591735785278457826354751745783452348102412301239547134528453782352345235423452345234523452345234512341423412341234) ∷ (ℤ.negsuc 6) ∷ (ℤ.pos 78438238) ∷ (ℤ.pos 123) ∷ (ℤ.pos 1) ∷ (ℤ.pos 82394290214) ∷ (ℤ.negsuc 2148234233) ∷ (ℤ.pos 0) ∷ (ℤ.negsuc 9962138122) ∷ (ℤ.pos 555555) ∷ (ℤ.pos 1000) ∷ [])))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\173A\170\206\146\184/K}0\161]\195\172\DC3P{5r\166\SYNU\142\SO\180\185I\161\253\ENQ\r\171\255\136\&0A\197L\163\244\169LT\ETB\131a\202\202\n\161\176\202\180}\232@\224\168\230\"\201@\228\219\f\193K\196\206\133\140 \214\137B\235\147\190l\227\247\"\254\136\207\235h\222\154\236I\SOHln\DC1\188"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\145\178\145f\159\&4:Y(K\239\f\245'\tr\145(\253\189\v\162D\212|\147\150t\222\174+\162d^$@R\129~-UF\218!i\SUB1\185\r\163\190\213\243\DC4\226\148\224\205\194\249\235&_3\EOTj\153\186\236iL\SO+\NAK.$\136\251\246\220(\212\179\&6H\217>\SUB\n\178]N\130\163Q\138"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\165sE&\152\241\DC3\129\"\239\146\235\199\247\168\187\137\211\DC2\129\&8\188\EOTWz\196%\154>I\SO\137\204\204\205\212$)\199\161\150iR\154\227g\242\226\SYN\133m\220\188\SYN$\\U\211\NUL\132/Q\205\NUL\208\250\141\185\CAN`\162\EOT\n\DELg\163RI\194\173\150\SUB\148\FS\171\158\222c.\140\205JbB\154\140"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\146\DC1\217\196\RS)\200\233\245\205\&7\189\217\196\143x\186\224\STX\DC4\192\129!3%\146\163\207\161\165\137\133\222\217\210\190\209{\a\179\172\139\242\228\ETB\b\235H\EOTK\ESCB\236\236\135\212O\242\ENQB\168h\DC2\184M\v{\186\217 \193e\205\128\148\143\240n\252^8R5\n\234Wh\198\222[31p\204\SYN\135"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\162Y\235\248\DEL\251\166\183\246x\176V#rk\NUL\vRe\200\255hcp\251\152\b\r\a\167\CAN\217:\ETXN\253\149-f\177\ETBw\186j\195\140=4\b2\159m\134\236\rx\199\249Q(Un[d\175\&6}\177\128N\201w9K\FS\139 \181\210a\184J\r\SO\226tu\DC2\DLE\154\243\250\154\144\165O"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\130\231>\243\173\129\192rv\168\185\&6\v\DC3I\220\168a\207<\DC1\215\227\211\218#\177R]h;\177\135B\146\131\163 \SOHV\175\DC3\SOH\246\239\&2iz\DC4y\174\197shS\245\145\t\\\241Z\185P|q\167{\213y\187._L\171\148\216\255\&3\188C\252\243\&6\DC3j\162\250\206(\241\136kb\243\204\169"))))) (UCon (tagCon (list bls12-381-g2-element) ([]))))))))))) (UApp (UApp (UBuiltin bls12-381-G2-multiScalarMul) (UCon (tagCon (list integer) ((ℤ.negsuc 7843724524521392138901923801823923123123454352156) ∷ (ℤ.pos 34527457238) ∷ (ℤ.pos 941957124591735785278457826354751745783452348102412301239547134528453782352345235423452345234523452345234512341423412341234) ∷ (ℤ.negsuc 6) ∷ (ℤ.pos 78438238) ∷ (ℤ.pos 123) ∷ [])))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\173A\170\206\146\184/K}0\161]\195\172\DC3P{5r\166\SYNU\142\SO\180\185I\161\253\ENQ\r\171\255\136\&0A\197L\163\244\169LT\ETB\131a\202\202\n\161\176\202\180}\232@\224\168\230\"\201@\228\219\f\193K\196\206\133\140 \214\137B\235\147\190l\227\247\"\254\136\207\235h\222\154\236I\SOHln\DC1\188"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\145\178\145f\159\&4:Y(K\239\f\245'\tr\145(\253\189\v\162D\212|\147\150t\222\174+\162d^$@R\129~-UF\218!i\SUB1\185\r\163\190\213\243\DC4\226\148\224\205\194\249\235&_3\EOTj\153\186\236iL\SO+\NAK.$\136\251\246\220(\212\179\&6H\217>\SUB\n\178]N\130\163Q\138"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\165sE&\152\241\DC3\129\"\239\146\235\199\247\168\187\137\211\DC2\129\&8\188\EOTWz\196%\154>I\SO\137\204\204\205\212$)\199\161\150iR\154\227g\242\226\SYN\133m\220\188\SYN$\\U\211\NUL\132/Q\205\NUL\208\250\141\185\CAN`\162\EOT\n\DELg\163RI\194\173\150\SUB\148\FS\171\158\222c.\140\205JbB\154\140"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\146\DC1\217\196\RS)\200\233\245\205\&7\189\217\196\143x\186\224\STX\DC4\192\129!3%\146\163\207\161\165\137\133\222\217\210\190\209{\a\179\172\139\242\228\ETB\b\235H\EOTK\ESCB\236\236\135\212O\242\ENQB\168h\DC2\184M\v{\186\217 \193e\205\128\148\143\240n\252^8R5\n\234Wh\198\222[31p\204\SYN\135"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\162Y\235\248\DEL\251\166\183\246x\176V#rk\NUL\vRe\200\255hcp\251\152\b\r\a\167\CAN\217:\ETXN\253\149-f\177\ETBw\186j\195\140=4\b2\159m\134\236\rx\199\249Q(Un[d\175\&6}\177\128N\201w9K\FS\139 \181\210a\184J\r\SO\226tu\DC2\DLE\154\243\250\154\144\165O"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\130\231>\243\173\129\192rv\168\185\&6\v\DC3I\220\168a\207<\DC1\215\227\211\218#\177R]h;\177\135B\146\131\163 \SOHV\175\DC3\SOH\246\239\&2iz\DC4y\174\197shS\245\145\t\\\241Z\185P|q\167{\213y\187._L\171\148\216\255\&3\188C\252\243\&6\DC3j\162\250\206(\241\136kb\243\204\169"))))) (UCon (tagCon (list bls12-381-g2-element) ([])))))))))))

expected-multiScalarMul-09b : Result
expected-multiScalarMul-09b = success (UCon (tagCon bool true))

-- Pending: bytestring constant; postulated builtin `bls12-381-G2-equal`; postulated builtin `bls12-381-G2-multiScalarMul`; postulated builtin `bls12-381-G2-uncompress`.
pending-multiScalarMul-09b : Set
pending-multiScalarMul-09b = Pending (evalRaw test-multiScalarMul-09b ≡ expected-multiScalarMul-09b)

multiScalarMul-10a

-- builtin/semantics/bls12_381_G2_multiScalarMul/multiScalarMul-10a
-- Extra entries at end of second list are ignored
test-multiScalarMul-10a : Untyped
test-multiScalarMul-10a = (UApp (UApp (UBuiltin bls12-381-G2-equal) (UApp (UApp (UBuiltin bls12-381-G2-multiScalarMul) (UCon (tagCon (list integer) ((ℤ.negsuc 7843724524521392138901923801823923123123454352156) ∷ (ℤ.pos 34527457238) ∷ (ℤ.pos 941957124591735785278457826354751745783452348102412301239547134528453782352345235423452345234523452345234512341423412341234) ∷ (ℤ.negsuc 6) ∷ (ℤ.pos 78438238) ∷ (ℤ.pos 123) ∷ [])))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\184\137\170A(\167-\142-b\239\174\&7\237L\147\221U\NUL\DC4^n\141\213\&2\225\GS\"\EM\134iB\231\DC2\195\EOT\bl\155\229\234 \144(\162R\213\182\SI\189\169O\228\172\230\186\NUL\201\178\DEL\246\EOT]\244\b\140\137'\GSV\176\152\184n\139\232\250G8\NUL\140\213\237\180\223\150q\220\192\NAK\145\248v\DLE\250r"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\137` \236\181Y\147\STXV\252\&0;\224\ACK\vP$+[\186\DC4GA\226\234\EOT\178.\203.iQ\185\170\139?\ETB\244>\240\201\ETXF\247\249\&2A:\v\US\143\GSM\174\212\205\221\176\253\f\252ov\130\242@@\140\210\151G4\207\NAK\n\147&\241\135\131K\148\ETB\236\203\SI\129\225{0\146\GS\159\205)\157"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\174\&5\153\168\ESCA\239c\238\235\SYN\225g\DC4\131P\216\248\f\186y\179\188F\173\SYNZx\181k\159\161V\165\&5g\236-\173\135'\138S\247\EOT*\t\131\EOTN\243 \148\218\182y\178jjO\182\163M\213O&\160\216\155\CAN\129\227\196\145X\177-c(\195\168u\191\231&6\"\154\190R\191\145\SO\198\&1["))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\182\n\203/\189[\SUB\215mnr\159\220L\222H\246\228\194zUQ\242?q)\153n\156\&5e\143\144\147\243\171\179W\182\165\DC1b\215\229\234\183\&5\142\DLE\ETX\215\208\190\220vM\143\139\186\204\r\181\227\187\173!\171\FS\250Q\213lN\147G~\159\224\196\164\241\128\169S\218\179j\163\222\214zl\176\DC1\142\&1"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\171\ENQ\161\b\198|\SIIi3\138\168\131\239\168\195\167\137\200\246\236\v%m\ENQH,\228\191\153\148\230\201Nb\179[i\185e<\CANy\228#\216\133\172\SI\134f};\214\231p\236\150<\132Nl\189\CAN\136a\131^\209R\154\231F\SI\189\ao\148\t^\223\243\t?\250\171\235\DLE\234i\252\150\229\&25\227"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\148=\190\205\b5k\226\179#Q\147\248\DLE\228\142\DC2u\135\167\NAK\197_n\129\216D]\155r\156^\163\FS\DC4\186t\232\173\181<\137\r\190\151\196s\SI\NUL\DC2\155S\134\&0\170\177\r[<\163\SI\207\SYN\220=cr\207CS\241\n\231}\201\&7\EM\227\194\241\DLE\174\160\191\186\188\239\198?\247\132\128\148\245\216\248"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\178\211\130\164\161\228C~zt\192\&0D\212Y_{~\194\167/\140b(\199\199\199\152\240%H\229\184\152G6\195\ESC\\\190\216\168\156\DC4\228\224\RS\208\ACK\236\247\243^\216\252\&9C\131\"\218\ACK4\nI\161\244K\144\213%\230$\DC2\199\137|\213\CANB\ACK\160S\146\243\233CGed\b\221\ACK\178\129\&7\233"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\184\225\&9\191\rJn\218\131\216\158G\156\&6`\243_\"a\221\240c\131k_\177`\251r\255Z\DC2\135\247w]W\139\188\248\DC3\193\253\208p\155\164\183\STX\234\NAK\142\190F\DC3\197Q\247$\\\202\136IQ\220\175\153'\148\168\212\SOSB\183LhU\NUL\181\SOHT\159\165\233i\169\215\205\202eI\145\US\145\165"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\169w{\203\135\177m\251p\192\200\SO\151\n$\t\EOT4\148^\180\FS!\181\DC2\ACK\ACK\207W\RS\159t\144Z\236vh\226oH\188 \245t\144?b\202\v\168\a\129(\133\v\225\153}g\227e\143t\157\175d\149\249 \\\174\177L\247b\168\RS >z\174\217\a\235\188\216\DEL:}|]SS\140\177i"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\183\170\n-\192\190B\156\230\152\217V\178\188\153\167|M\DC2W!\ESC\ETB\243\128\223\249\218\&9&\185\151p\211|@\177\&5\148\227>3i\210\fak\150\NAK\DLE\251\184\167\239\157\169\241@sr\161\160)\v\185\252[*\206p\219\221\246\166\ESC\221\200\r1\ESCk\214\137\218\"5\242\NUL\b]\b0\166\201\128I"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\136)\140Y\238wl/\222\GS\237\163@\199\DC1\158\175\159e\ETB\197cpj\162\230\184l\EOT0\253\178\199\189\157\ESC\135\EM9Z\253\146\234\189\203\159\212.\ETX&\133x\131KP\236\178Gh\138\v\DC3(\SI\216`\244\165C?!\ENQSH\n/k\231\234thy\187\230\232\SOH\f\189\169\156{\179ZH\153\139"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\166/\248~\b\188\237\168\191\150\191\184\233b\173\146\201\249<d\v\136:q\204Os\159\207\US\224\ETX\236\201\173\144\244\190\243\239\130\ETB\161\218\ETX\133\EOT\219\NUL?\129\196\227\212\\! \172\173r\205\DC3\SO\DELa\ETXk\191\&7\EM2\159\141\255\202+\130\EOT\GS\184&\152\228@\137\244\149\238\&7\130x\136s\184\190\179"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\180\209;\NAK>}\147Wy\163\252j\EOT\131\137E\221\170\130\&1\166\165\US\133YEA\v\152\187\188/I\245\162\164O\238\152\&9\244I&\SI\165\160\184v\DLE\247u\RS}cN\244\231\ACK\215\252\175e\214\168\NULt\166\239\nG\153\155\159f\196\242F\163\215`j%e#d\130G\129H\214\241\244o\246\224)"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\130A\216\v\223J6k\159.\167\146\203\NUL\143\191\214X\237BsUa+\140A}e\225\DC1\191\236\189b\SI\216\249\&6\144\&7z\NAK\165\176*,B\a\a\163E\207\144\172\f\155\213GP\189h;C\185\169\197a)f\151S_\250\196\146\131x\220\229\251\SUB1\158\SI\178p\NAKiW\NAK\DC3\234\"j\180\133"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\185\204)\STX\186xW\241J\176\179g\165\131\145\ESC\241>\156Z\STX%s\208\251\228n=\157\161\US\143u\167\147\189\a|\250\"\248\168^\251\229{89\a\164\SUBN+'\232\220\196\150\220M\252\188?\251\170\221\t\SOp\244\192\164]\143\198G]|\150M\ETX\199\201\255\216\230\212C\STXm\187\174\bv\189\216"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\167\208<a\214\238\140QV\236\133\193I\185\200o$P\210\192\bc+6Z\192&1/\195M\243\226\253\224\254\141+>\184o{\128c\166\131\251\132\STX1\171\153]}\217S`\US\206\145'\246\212\171\205-}2\199c\203\154\a\b\182\&9\239+2<\163\161\218\159\CAN\245w\157\250\147\ACK\ETX\ESC\DC4\239+"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\178\245+Cg\184\219sn\176.\a\146&U\239X\138E\FS\\\254}\163\ACK\144\NUL\t\226\174\242\\'\216bn\STXe\SUB\218\251\CAN\217\248\&0\166A'\SOx^\222-\163\SOH\228f\DC2lL\STX\142\141\228\222\247\174\246\167\128\182F\NUL\DC1\225BR\193\213\151\243Z\SI\180>\247v^\246\DC1\181\206\233|\212\142"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\152cc8\217\235\185[P\DC1\251\194\235\162\195!\178\188\EM\DC3&\RS\154sff\130\214\191\239~6IS\163\DC3\255(\155\134\251\251\163T\153ce\222\f\146L\155\215f\GS(\235\167\193\190\134\210- \STX\241\NUL\140\181(Y\DC4}\223\233\133\227oEO\205\194\181JX\146\171\&8\NAK\141\188U\173\&0q\DC4"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\166\134!\222'\170D\162\214\160 \171|\147\158\186\130`\248\204\161\185\ACKd\223\DC20\134\213\207\193\202\174\156\228X{\188N\211\212\RS\158zs\150\224\191\ACK\174\158\220\ESC\141\247\&9\ESC\180U\SYN\163@\225\226$\187/:M\173TX\194y\136d\161z\220%I\151\159w\RS\NUL\164@\SOH\198\a\163\RS\DC1<,"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\148V\154\136$0\ENQ\242\209\204-,\t\215\CAN\224\138\185\200\133\234L\135\SOH\200\DC3\141^\EOT\194\172\243#-kY\158\176\239D\196IY\167\ETX\DC4ck\EOT\173\238\v\247>\236cM\134\227O\224D\tG{\SUB_\170\EM\ACK])\163\\B+1\132\190\&2x\ESCm\140\218\230\229cg\222\ETB\231|\199\185\194"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\150$\252\147[\251g\183\158\f\209\146jdU\ESCu\154Z\DLE\251\b\236\252\220\214q\224 y'\158\247\&3l\129&V\152\v\247\223\185\ETX\133\DC2\DLEu\DLE\128%\177\&9Zun92\146&\224\167#\210\208M\"\181\204\"b\185,\137\214+(\130\SI \162\130\GS\171\182\169\DEL\232E\161E\157{\192k\250"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\180\SOH+\148K\161s\216\SII\ACK\247+\158,\DC1!5P\154S\226!\234\221xr\247\SO\153w\230W\\\133\154\STX\130\255\167\130\220\220\177&\240\142\f\SIt*=\138\187\157\150[\226G\197<h\FS\130\255_2\214x\DC1\190\231\180\244\136\GSo\152\184\202\209K\193\132\255\US\192\GS\175)\132&\239\168<Y"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\144\238\EOT\229\&2\a\b\r\168*n\228 \139\234YU\190\253\241\163G\147l\GS\f=%\218\247\"\174P\t\218\177\172\US\203\SUBb~7%\b)\NULZ\CAN\182|)\GS\199iun\189l\162!\CAN1\151/b\165\172 I\193\253\&5\DC2x\158rq\NUL.\SYN\t\202mci\v\227\195g\148\240\255\238\&6\233"))))) (UCon (tagCon (list bls12-381-g2-element) ([]))))))))))))))))))))))))))))) (UApp (UApp (UBuiltin bls12-381-G2-multiScalarMul) (UCon (tagCon (list integer) ((ℤ.negsuc 7843724524521392138901923801823923123123454352156) ∷ (ℤ.pos 34527457238) ∷ (ℤ.pos 941957124591735785278457826354751745783452348102412301239547134528453782352345235423452345234523452345234512341423412341234) ∷ (ℤ.negsuc 6) ∷ (ℤ.pos 78438238) ∷ (ℤ.pos 123) ∷ [])))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\184\137\170A(\167-\142-b\239\174\&7\237L\147\221U\NUL\DC4^n\141\213\&2\225\GS\"\EM\134iB\231\DC2\195\EOT\bl\155\229\234 \144(\162R\213\182\SI\189\169O\228\172\230\186\NUL\201\178\DEL\246\EOT]\244\b\140\137'\GSV\176\152\184n\139\232\250G8\NUL\140\213\237\180\223\150q\220\192\NAK\145\248v\DLE\250r"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\137` \236\181Y\147\STXV\252\&0;\224\ACK\vP$+[\186\DC4GA\226\234\EOT\178.\203.iQ\185\170\139?\ETB\244>\240\201\ETXF\247\249\&2A:\v\US\143\GSM\174\212\205\221\176\253\f\252ov\130\242@@\140\210\151G4\207\NAK\n\147&\241\135\131K\148\ETB\236\203\SI\129\225{0\146\GS\159\205)\157"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\174\&5\153\168\ESCA\239c\238\235\SYN\225g\DC4\131P\216\248\f\186y\179\188F\173\SYNZx\181k\159\161V\165\&5g\236-\173\135'\138S\247\EOT*\t\131\EOTN\243 \148\218\182y\178jjO\182\163M\213O&\160\216\155\CAN\129\227\196\145X\177-c(\195\168u\191\231&6\"\154\190R\191\145\SO\198\&1["))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\182\n\203/\189[\SUB\215mnr\159\220L\222H\246\228\194zUQ\242?q)\153n\156\&5e\143\144\147\243\171\179W\182\165\DC1b\215\229\234\183\&5\142\DLE\ETX\215\208\190\220vM\143\139\186\204\r\181\227\187\173!\171\FS\250Q\213lN\147G~\159\224\196\164\241\128\169S\218\179j\163\222\214zl\176\DC1\142\&1"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\171\ENQ\161\b\198|\SIIi3\138\168\131\239\168\195\167\137\200\246\236\v%m\ENQH,\228\191\153\148\230\201Nb\179[i\185e<\CANy\228#\216\133\172\SI\134f};\214\231p\236\150<\132Nl\189\CAN\136a\131^\209R\154\231F\SI\189\ao\148\t^\223\243\t?\250\171\235\DLE\234i\252\150\229\&25\227"))))) (UCon (tagCon (list bls12-381-g2-element) ([])))))))))))

expected-multiScalarMul-10a : Result
expected-multiScalarMul-10a = success (UCon (tagCon bool true))

-- Pending: bytestring constant; postulated builtin `bls12-381-G2-equal`; postulated builtin `bls12-381-G2-multiScalarMul`; postulated builtin `bls12-381-G2-uncompress`.
pending-multiScalarMul-10a : Set
pending-multiScalarMul-10a = Pending (evalRaw test-multiScalarMul-10a ≡ expected-multiScalarMul-10a)

multiScalarMul-10b

-- builtin/semantics/bls12_381_G2_multiScalarMul/multiScalarMul-10b
-- Extra entries at end of second list are ignored
-- No infinite points in the input
test-multiScalarMul-10b : Untyped
test-multiScalarMul-10b = (UApp (UApp (UBuiltin bls12-381-G2-equal) (UApp (UApp (UBuiltin bls12-381-G2-multiScalarMul) (UCon (tagCon (list integer) ((ℤ.negsuc 7843724524521392138901923801823923123123454352156) ∷ (ℤ.pos 34527457238) ∷ (ℤ.pos 941957124591735785278457826354751745783452348102412301239547134528453782352345235423452345234523452345234512341423412341234) ∷ (ℤ.negsuc 6) ∷ (ℤ.pos 78438238) ∷ (ℤ.pos 123) ∷ [])))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\173A\170\206\146\184/K}0\161]\195\172\DC3P{5r\166\SYNU\142\SO\180\185I\161\253\ENQ\r\171\255\136\&0A\197L\163\244\169LT\ETB\131a\202\202\n\161\176\202\180}\232@\224\168\230\"\201@\228\219\f\193K\196\206\133\140 \214\137B\235\147\190l\227\247\"\254\136\207\235h\222\154\236I\SOHln\DC1\188"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\145\178\145f\159\&4:Y(K\239\f\245'\tr\145(\253\189\v\162D\212|\147\150t\222\174+\162d^$@R\129~-UF\218!i\SUB1\185\r\163\190\213\243\DC4\226\148\224\205\194\249\235&_3\EOTj\153\186\236iL\SO+\NAK.$\136\251\246\220(\212\179\&6H\217>\SUB\n\178]N\130\163Q\138"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\165sE&\152\241\DC3\129\"\239\146\235\199\247\168\187\137\211\DC2\129\&8\188\EOTWz\196%\154>I\SO\137\204\204\205\212$)\199\161\150iR\154\227g\242\226\SYN\133m\220\188\SYN$\\U\211\NUL\132/Q\205\NUL\208\250\141\185\CAN`\162\EOT\n\DELg\163RI\194\173\150\SUB\148\FS\171\158\222c.\140\205JbB\154\140"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\146\DC1\217\196\RS)\200\233\245\205\&7\189\217\196\143x\186\224\STX\DC4\192\129!3%\146\163\207\161\165\137\133\222\217\210\190\209{\a\179\172\139\242\228\ETB\b\235H\EOTK\ESCB\236\236\135\212O\242\ENQB\168h\DC2\184M\v{\186\217 \193e\205\128\148\143\240n\252^8R5\n\234Wh\198\222[31p\204\SYN\135"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\162Y\235\248\DEL\251\166\183\246x\176V#rk\NUL\vRe\200\255hcp\251\152\b\r\a\167\CAN\217:\ETXN\253\149-f\177\ETBw\186j\195\140=4\b2\159m\134\236\rx\199\249Q(Un[d\175\&6}\177\128N\201w9K\FS\139 \181\210a\184J\r\SO\226tu\DC2\DLE\154\243\250\154\144\165O"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\130\231>\243\173\129\192rv\168\185\&6\v\DC3I\220\168a\207<\DC1\215\227\211\218#\177R]h;\177\135B\146\131\163 \SOHV\175\DC3\SOH\246\239\&2iz\DC4y\174\197shS\245\145\t\\\241Z\185P|q\167{\213y\187._L\171\148\216\255\&3\188C\252\243\&6\DC3j\162\250\206(\241\136kb\243\204\169"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\176\224\141*\145\bs\ETX\NAKu\225\"\255\203)\149\223\211\DEL\RS\144\a\236%/\b#\253\229\136\187\239\209G\161\SYN\229Z\163N\132\RS\189<\212.9\186\ve\f\239\189\240\185\135\NUL\245v}\155-\214\219\222\&10\170\209Eh\226-\220\SUB\218\DEL\\\248\199\163E(\156M\194>\223\209kJ\202\248\233\DC1M"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\137\SYN\138\236\145A\165(\162\175l\EM\190\211\166m\252jC]\244(V}}0\RS\213vt\FS\204\186j\255\179\171\&7TX\179\SUB\ESC\240\&3\157\195\234\ETB=\161G\211\238\GSY\205\132o\154F\254\SOH\250\130q\246\179\213\192\168\DC1\150\191u\242\178UU\138b\170B\r\226\255c\r\145\136\165>}\177\129&"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\175\SUB\153\250\ETBO\186\&3\b\DC1;KNs\144\221&\171t\206\219\255>\232\182D\224\142\152N\211BF\154\198>\243\189\ETX\159\136\213\143\241\143Z\STX\211\SOHp\ACK`\218\n\204\201J\218H\v)}\190\DC4\143/\203qdI$\137]j\246)\200^\148\199\133#\222\&8\234\209\165)\224n]H\197pD\254"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\137\GSP\149[*:\NAK\161\n\EOT\226\228\206\176/\DEL\GS\SUBdRN\244k\220\tB\188\219\173n\240\200\192\208]-\152\147\&4\175\233\189M\239.E?\ETX\251\197UV\SYN*F\222\SO\SOH\129\DLE\a\160\SYN\r\198~\248\RS%\132\145\ACK\195B\246f\211\139\DC47R\210\190\CAN$'\218\241\178\236$\234!\134\141"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\150\253\170f\243\ENQ\155\154?oTn\v\213\177\163$\148bG}\221hl]\DC47\207Y\STX\a:\156\180>\179\190\EM\134\164\253\150\&5%'fs\137\ETX\236\STX\SUB\246(i]+\174\254r\202\\\DLE\254\255\131\EM\SO\145 \214,!}\230P-\212\CAN^h\218\DC3#}D8Yn\145N'.\184e\180"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\164AZ\227\208\202~\234c_\197]\209\227\139H'\EOT?\199\133\143Oj\USR\185<\160q\GS\164aF\DEL+\138\n$\231\134\215\203oM\aM}\ETB\236w\210\246vj<\GS\146j6t\214\144\DC1\148S\153\145\ACK{\139&\240Q\197'm\245D)\DEL\237\t\f\174j&\181\SUB\GS=\197\182\158\129\252"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\136\DEL\169(u\130\207\191\248\206\bT\199\210\fBUN\167\b\144Lj\237dOB\133\193\203\198\SO?v\198\204\169\SI\155\132,\DC3\DC4\ESC\212\231\DC2\253\ETB\248X\223\202\225\nz\215\235\185\207F\182\154\195m\t\170\250\140\224\SO\132\200\232O%\170\254,#\USvj#t:\SUB*\211\DELm;\248\242\146-"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\176e5h\143\200&x!k\242;\131a,\149\DC4\211\132VTV\226\182\a=\ESC~\USMK\186\215c@\225\194*A\242c\nJ\209}K\189l\CAN{\209\t\212\217\139\144\DC2~\DC1\248\179\162d\188\175\SO\196\fn)\DLEx\202j\181\148\155YC\143\147\200\ESC\201N\SOH\224\160A\190\247\213\130-\140\164"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\165)\250{\208\EOTN\\\156\134\137\219\155S\201\246\132w\128g\"\236\229pHX\213h\233Z\128\239\173\SUB\158\146\171\144>\223\242S\180X\176\a\EM\207\SI\205\226\231\135\190\139\234b\SOH\142\187\153\239\nPA\198\DC1:\244\EOT\212\222\200/\235\170\173Q\254\211\242C\DC1\229%T\DELq;\242\173>\"\234\152$"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\175\a\\T\150>\198/0\149\ETX\180\229\211k\206\GSKc$\SI\149\DLE2\EOT\136\201\NUL\222\201\195\151\193\&6}\158\229z=S\148n\229\237\&4'[\b\EOT\ENQ\EM\SYN\191\r\222\232o^\235\203\132$q[\245r\229\143\253B\172]\255K\n,E1\DEL\245%\213\177\241\&2\223\EM_\140}\DC2!\231\ETX\137\171"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\130\214\245\211@\ENQ\170\FS\249V\185L\206>\206 \230[:\DC3\208\183-\207I\182,\182\249\134;i\226\169\179\164\160\226F<rp\192\155p,\aU\SYN\RS\170\&3\146p40R\196E\221cu\DLEN\199M,\153\t\250&\132\252\b\175\219\247I\223L\243\156\&3\SUB\180\ACKE\168\151\187\EOT.\201\SI\DEL\204"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\162O\n\226$\172\149\206\131\210\164V\200\STXS\161\142\SUB?#\180\138\203:\NAK\208\&1L\tsX,9\ETB&s;vb\248\136(T\ESC\\\DC4s\SO\v\128\214EKZ\248\DC2\199}_f\198\&2\196K\128\ESC\151\153\168G\235\230N\229\207\235\149\167\176\214\206\130\DEL\248\192!/(\"{b\ETB\164\201\ACK("))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\153\"l\DC4\180q\\\157.\246\ETBa\216\144{\149\r\173\221\250\230-\240\218\&2\140\187\148\172R\223*\200\224\162\211\209w\247\SI\227l\v\228<\204\159\186\ETB\186e(\a\r\164`\rY\fl\168]\164_:\SYN\161\235cS\148\178\137\SUB\174\225\248\DEL\141\249\168\242\232\134A\\\162\135\137qZ!`\152l\158"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\183#\136\STX2Mx'Z\CAN\235\146\212o]\ENQ\180\210\148i\155#gN\EM~\f\165p`o+\197*\134\155o\US\DC4\161T\194\241n\191\141a:\CAN\214\251\&1\212\176\n\136\206\161c\239\153\172\143\218\245{\146\fG~!\160V\159\192\&8\EM\DLE2Z\242\218\224\185\250\179\243*\197_\180\195\221l\194\168"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\181\190\&7'v\ACK0\156\204\254\224\&5\f\187\241nj\236\NAK\148u{\243\189gt\202K\208\177\226Q\192P\131\175\ETBnv\190`W\200\DC1\224\235\225\131\SOH5FZ\"z^\217\198\v\ESCp\249\240G\183\160\f:\162P\145(\234\152\SOHN\153/zD\231\227g\vAm\200w`\228Z_r\EOT\150G%"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\153^\254d\210\201\173\199\154\186\153\226\253\165&y\GS4u\USo\209`5\ACK\139\188\b\ESC\198\167I\208\230r\179\162E\206\242\141\237\129\206/]\135{\ETX\DC1dJ\210)\191fvf\v{\208\DC1\DELTE$c\215\EMM<\190\141\138\222jf\218\222k\179\ENQ\175\148\207\200qe\228h\203H<M\169\166"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\128\189i\STX\169\212\FSr\194\213\231\160\177.z\131eQ&N\135\170\nL!\184v4adO\145\147EW>0@\RS\238A6J)\190|\180\179\DLE\155e\144\233\161\224\150\f\246K~\139\232\215\US\187|'\164\\\197\177\FS45\198\230\227\SI\193*\196\180\230D\230h\182\249\SI\178\FS\n-\CANB\242"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\141\161\166\SUB\SI\190\DC1\233\170\144\138X\a\180\251=\211\f\236\n]\n&\199\167\DC2\NUL_Q\199\147F\134\138\237\228\252\138\SUB\ACK\181iG\ETBsz%\ACK\f\DLE\189k\SUB\EOT\175O0\RS\214\219\245\180\188\222\SIcasT\153\180\228>P\244\246U\NUL,>An\175\181\169\176\197\170$\249 \n\205M\145k"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\185'\200d\185Z\199.\131i\184c\214\172\&6\EM\252\220'\SYN\NUL\232\136\222+k\210.\198\213hV\174f\194/\211U\149M}\228\158\148\202\200\&8\ESC\EM\180\174\a\136!kF\198\144S\251$\SUB\139q\SUB\148\219MB*\195_@\252\ETB\186,\NAK\162h\192W\213\236\204\194\165\217R7\233\128\238X\205-"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\170\b\SYN\135\136\SII\242\249S\139\222\SUB\133P\158\RS\231\&4\240\&4\187\213\194\162\NULh_\133\232lO\207V~\GS\222l\219\233\142\RSA\220\149\&1\176[\DC1>\151H\255L\228\178n\228\129\b\rJF\150x\138\138\&50\160Q\130X\DLE!X\SUBn\142\169\190\ENQJ\136)\224\DC4\DC2Y\250\253\fz\ETX\a\154"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\171\227ui!6\NUL\220g&%!v(\224'\214\220\242\STX1vW\EM\ETB\aH\255\159\223I{\CANU\159\170\217,\227b\136\216\151:\211\141#\137\NUL%lI<\226uLe\162\207\179\180\ENQ\ESC\241\181\215\172\173^f\n\190\182\&3.\ETX\227\157G|\204\157\213\136\EOT\236j\DC1:\152\128G\206\245m\237"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\141\167o\128\244\209\ETXY0)\190_\211\248\242\ACK]DW\tD\220\240\SYN\246a\141\193\218\255<tii\215\237d\152{\175G\bG\fY\t\168\152\DC39\USSOyp\r\191uR\186\154\DC2\200i\213\196z\161E\177\231\252\225\222\200\129\166\200\185\&5\176\199\225p\190\DC4k,%\190\222\225\177G\239\251"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\142\217\133.1\DLE\179o\245\ETXa\183\253:\247#H\245\131to\240P1 `\236\216\135\175\254\180qW#k\178b\DLE\FS\181\204\194\141\140\137\NAKq\aA\241\231\199\ETXCm'\207\209\198EG\216\254\fUS\151\159\225\237\ETB\148[\191T)[3y\224J\186\132\252\ENQ\NAK\181d\CAN\226\&4a\NAKe\249"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\160\156F\253\140js\186W\168\&4\EM\176\ENQ?\140\129;\v\232\169\DC2<\177\\\167\CAN\226*\230Q>I1\147\217\222\&20\219\174+\RS\171\251\192\fc\SINBsLm\204\176i\212zZF\191\252\191Z\226[\226\174\240\203\150X\"\v\251\169\139\154\159\GS\215\240:\DEL@\EOT4\174<^\227C\GS\187\254"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\160\136\231b\179\237%\237\n>\CANw\129\251~\239\179\DC1(s\241\216\209E\154\251\244\207\154\207\&6w\249\253\215\NUL]\"\DC1\NAK\137\247\152-\234zW\154\ENQZ\132O\a#\221\&7\151\215\DELtAd\177\225\"\218\176\251\255.\157d\145\212:\193\&6\STX\249\195\ETB\152\244\\\194X\NUL\NUL\RS\253\NAKQ\195\fp\160"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\160`\230Qo_\"\184\DC3\200\ACK>\161'\197\145T\232b\225ul\216\176\133\144\182\148&0\203{\233A\209~l\238\209\167mWd4\r:)b\r\142M\215C\236\218\153\194\226\186]6\133\194\&4\252QQ)>\193G\206t\200\158\128\255g!\218.&\166g\131;2\131z\233\222\149\&4R\253\238"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\177\DC1\200\185\240\172\142\248\230\143\ETXa\131S\155Kx]mN\166d\182\184\t\232\&6:\ENQeky\201\231\220\211\&7\235\181\EOT\158\235P\140\254$\ETB6\STXi)\224\161,\192\140\186\147\138'\164\146\247\190I\157+k5\164FK \196\221\131\219SElVI1\243CAe\250\157\218?\166\155w\RS\b"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\136\141\191\215ALy\168!\f\148\149\222\166%\146\143i;pa0\129?\180\DC1\190:\157\184s\221\191\136P\143\220\143{.\233\&2\157\242\146\184\237\v\ENQ=\150)\US\241\141\234(\238\b\254$\195\216#\243\195\218\203\204k<]\NAK\167o\251\232\r?\231\&7\167s\188\183]\190\&9\205\149)\181m\224V\222"))))) (UCon (tagCon (list bls12-381-g2-element) ([]))))))))))))))))))))))))))))))))))))))) (UApp (UApp (UBuiltin bls12-381-G2-multiScalarMul) (UCon (tagCon (list integer) ((ℤ.negsuc 7843724524521392138901923801823923123123454352156) ∷ (ℤ.pos 34527457238) ∷ (ℤ.pos 941957124591735785278457826354751745783452348102412301239547134528453782352345235423452345234523452345234512341423412341234) ∷ (ℤ.negsuc 6) ∷ (ℤ.pos 78438238) ∷ (ℤ.pos 123) ∷ [])))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\173A\170\206\146\184/K}0\161]\195\172\DC3P{5r\166\SYNU\142\SO\180\185I\161\253\ENQ\r\171\255\136\&0A\197L\163\244\169LT\ETB\131a\202\202\n\161\176\202\180}\232@\224\168\230\"\201@\228\219\f\193K\196\206\133\140 \214\137B\235\147\190l\227\247\"\254\136\207\235h\222\154\236I\SOHln\DC1\188"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\145\178\145f\159\&4:Y(K\239\f\245'\tr\145(\253\189\v\162D\212|\147\150t\222\174+\162d^$@R\129~-UF\218!i\SUB1\185\r\163\190\213\243\DC4\226\148\224\205\194\249\235&_3\EOTj\153\186\236iL\SO+\NAK.$\136\251\246\220(\212\179\&6H\217>\SUB\n\178]N\130\163Q\138"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\165sE&\152\241\DC3\129\"\239\146\235\199\247\168\187\137\211\DC2\129\&8\188\EOTWz\196%\154>I\SO\137\204\204\205\212$)\199\161\150iR\154\227g\242\226\SYN\133m\220\188\SYN$\\U\211\NUL\132/Q\205\NUL\208\250\141\185\CAN`\162\EOT\n\DELg\163RI\194\173\150\SUB\148\FS\171\158\222c.\140\205JbB\154\140"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\146\DC1\217\196\RS)\200\233\245\205\&7\189\217\196\143x\186\224\STX\DC4\192\129!3%\146\163\207\161\165\137\133\222\217\210\190\209{\a\179\172\139\242\228\ETB\b\235H\EOTK\ESCB\236\236\135\212O\242\ENQB\168h\DC2\184M\v{\186\217 \193e\205\128\148\143\240n\252^8R5\n\234Wh\198\222[31p\204\SYN\135"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\162Y\235\248\DEL\251\166\183\246x\176V#rk\NUL\vRe\200\255hcp\251\152\b\r\a\167\CAN\217:\ETXN\253\149-f\177\ETBw\186j\195\140=4\b2\159m\134\236\rx\199\249Q(Un[d\175\&6}\177\128N\201w9K\FS\139 \181\210a\184J\r\SO\226tu\DC2\DLE\154\243\250\154\144\165O"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\130\231>\243\173\129\192rv\168\185\&6\v\DC3I\220\168a\207<\DC1\215\227\211\218#\177R]h;\177\135B\146\131\163 \SOHV\175\DC3\SOH\246\239\&2iz\DC4y\174\197shS\245\145\t\\\241Z\185P|q\167{\213y\187._L\171\148\216\255\&3\188C\252\243\&6\DC3j\162\250\206(\241\136kb\243\204\169"))))) (UCon (tagCon (list bls12-381-g2-element) ([])))))))))))

expected-multiScalarMul-10b : Result
expected-multiScalarMul-10b = success (UCon (tagCon bool true))

-- Pending: bytestring constant; postulated builtin `bls12-381-G2-equal`; postulated builtin `bls12-381-G2-multiScalarMul`; postulated builtin `bls12-381-G2-uncompress`.
pending-multiScalarMul-10b : Set
pending-multiScalarMul-10b = Pending (evalRaw test-multiScalarMul-10b ≡ expected-multiScalarMul-10b)

multiScalarMul-11

-- builtin/semantics/bls12_381_G2_multiScalarMul/multiScalarMul-11
-- All entries in second list are the zero point => result is the zero point
test-multiScalarMul-11 : Untyped
test-multiScalarMul-11 = (UApp (UApp (UBuiltin bls12-381-G2-equal) (UApp (UApp (UBuiltin bls12-381-G2-multiScalarMul) (UCon (tagCon (list integer) ((ℤ.negsuc 7843724524521392138901923801823923123123454352156) ∷ (ℤ.pos 34527457238) ∷ (ℤ.pos 941957124591735785278457826354751745783452348102412301239547134528453782352345235423452345234523452345234512341423412341234) ∷ (ℤ.negsuc 6) ∷ (ℤ.pos 78438238) ∷ (ℤ.pos 123) ∷ (ℤ.pos 1) ∷ (ℤ.pos 82394290214) ∷ (ℤ.negsuc 2148234233) ∷ (ℤ.pos 0) ∷ (ℤ.negsuc 9962138122) ∷ (ℤ.pos 555555) ∷ (ℤ.pos 1000) ∷ [])))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UCon (tagCon (list bls12-381-g2-element) ([])))))))))))))))))))))))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL")))))

expected-multiScalarMul-11 : Result
expected-multiScalarMul-11 = success (UCon (tagCon bool true))

-- Pending: bytestring constant; postulated builtin `bls12-381-G2-equal`; postulated builtin `bls12-381-G2-multiScalarMul`; postulated builtin `bls12-381-G2-uncompress`.
pending-multiScalarMul-11 : Set
pending-multiScalarMul-11 = Pending (evalRaw test-multiScalarMul-11 ≡ expected-multiScalarMul-11)

multiScalarMul-12a

-- builtin/semantics/bls12_381_G2_multiScalarMul/multiScalarMul-12a
-- All entries in the first list are zero => result is the zero point.
test-multiScalarMul-12a : Untyped
test-multiScalarMul-12a = (UApp (UApp (UBuiltin bls12-381-G2-equal) (UApp (UApp (UBuiltin bls12-381-G2-multiScalarMul) (UCon (tagCon (list integer) ((ℤ.pos 0) ∷ (ℤ.pos 0) ∷ (ℤ.pos 0) ∷ (ℤ.pos 0) ∷ (ℤ.pos 0) ∷ (ℤ.pos 0) ∷ (ℤ.pos 0) ∷ (ℤ.pos 0) ∷ (ℤ.pos 0) ∷ (ℤ.pos 0) ∷ (ℤ.pos 0) ∷ [])))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\184\137\170A(\167-\142-b\239\174\&7\237L\147\221U\NUL\DC4^n\141\213\&2\225\GS\"\EM\134iB\231\DC2\195\EOT\bl\155\229\234 \144(\162R\213\182\SI\189\169O\228\172\230\186\NUL\201\178\DEL\246\EOT]\244\b\140\137'\GSV\176\152\184n\139\232\250G8\NUL\140\213\237\180\223\150q\220\192\NAK\145\248v\DLE\250r"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\174\&5\153\168\ESCA\239c\238\235\SYN\225g\DC4\131P\216\248\f\186y\179\188F\173\SYNZx\181k\159\161V\165\&5g\236-\173\135'\138S\247\EOT*\t\131\EOTN\243 \148\218\182y\178jjO\182\163M\213O&\160\216\155\CAN\129\227\196\145X\177-c(\195\168u\191\231&6\"\154\190R\191\145\SO\198\&1["))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\182\n\203/\189[\SUB\215mnr\159\220L\222H\246\228\194zUQ\242?q)\153n\156\&5e\143\144\147\243\171\179W\182\165\DC1b\215\229\234\183\&5\142\DLE\ETX\215\208\190\220vM\143\139\186\204\r\181\227\187\173!\171\FS\250Q\213lN\147G~\159\224\196\164\241\128\169S\218\179j\163\222\214zl\176\DC1\142\&1"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\171\ENQ\161\b\198|\SIIi3\138\168\131\239\168\195\167\137\200\246\236\v%m\ENQH,\228\191\153\148\230\201Nb\179[i\185e<\CANy\228#\216\133\172\SI\134f};\214\231p\236\150<\132Nl\189\CAN\136a\131^\209R\154\231F\SI\189\ao\148\t^\223\243\t?\250\171\235\DLE\234i\252\150\229\&25\227"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\148=\190\205\b5k\226\179#Q\147\248\DLE\228\142\DC2u\135\167\NAK\197_n\129\216D]\155r\156^\163\FS\DC4\186t\232\173\181<\137\r\190\151\196s\SI\NUL\DC2\155S\134\&0\170\177\r[<\163\SI\207\SYN\220=cr\207CS\241\n\231}\201\&7\EM\227\194\241\DLE\174\160\191\186\188\239\198?\247\132\128\148\245\216\248"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\178\211\130\164\161\228C~zt\192\&0D\212Y_{~\194\167/\140b(\199\199\199\152\240%H\229\184\152G6\195\ESC\\\190\216\168\156\DC4\228\224\RS\208\ACK\236\247\243^\216\252\&9C\131\"\218\ACK4\nI\161\244K\144\213%\230$\DC2\199\137|\213\CANB\ACK\160S\146\243\233CGed\b\221\ACK\178\129\&7\233"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\184\225\&9\191\rJn\218\131\216\158G\156\&6`\243_\"a\221\240c\131k_\177`\251r\255Z\DC2\135\247w]W\139\188\248\DC3\193\253\208p\155\164\183\STX\234\NAK\142\190F\DC3\197Q\247$\\\202\136IQ\220\175\153'\148\168\212\SOSB\183LhU\NUL\181\SOHT\159\165\233i\169\215\205\202eI\145\US\145\165"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\169w{\203\135\177m\251p\192\200\SO\151\n$\t\EOT4\148^\180\FS!\181\DC2\ACK\ACK\207W\RS\159t\144Z\236vh\226oH\188 \245t\144?b\202\v\168\a\129(\133\v\225\153}g\227e\143t\157\175d\149\249 \\\174\177L\247b\168\RS >z\174\217\a\235\188\216\DEL:}|]SS\140\177i"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\183\170\n-\192\190B\156\230\152\217V\178\188\153\167|M\DC2W!\ESC\ETB\243\128\223\249\218\&9&\185\151p\211|@\177\&5\148\227>3i\210\fak\150\NAK\DLE\251\184\167\239\157\169\241@sr\161\160)\v\185\252[*\206p\219\221\246\166\ESC\221\200\r1\ESCk\214\137\218\"5\242\NUL\b]\b0\166\201\128I"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\136)\140Y\238wl/\222\GS\237\163@\199\DC1\158\175\159e\ETB\197cpj\162\230\184l\EOT0\253\178\199\189\157\ESC\135\EM9Z\253\146\234\189\203\159\212.\ETX&\133x\131KP\236\178Gh\138\v\DC3(\SI\216`\244\165C?!\ENQSH\n/k\231\234thy\187\230\232\SOH\f\189\169\156{\179ZH\153\139"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\166/\248~\b\188\237\168\191\150\191\184\233b\173\146\201\249<d\v\136:q\204Os\159\207\US\224\ETX\236\201\173\144\244\190\243\239\130\ETB\161\218\ETX\133\EOT\219\NUL?\129\196\227\212\\! \172\173r\205\DC3\SO\DELa\ETXk\191\&7\EM2\159\141\255\202+\130\EOT\GS\184&\152\228@\137\244\149\238\&7\130x\136s\184\190\179"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\180\209;\NAK>}\147Wy\163\252j\EOT\131\137E\221\170\130\&1\166\165\US\133YEA\v\152\187\188/I\245\162\164O\238\152\&9\244I&\SI\165\160\184v\DLE\247u\RS}cN\244\231\ACK\215\252\175e\214\168\NULt\166\239\nG\153\155\159f\196\242F\163\215`j%e#d\130G\129H\214\241\244o\246\224)"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\130A\216\v\223J6k\159.\167\146\203\NUL\143\191\214X\237BsUa+\140A}e\225\DC1\191\236\189b\SI\216\249\&6\144\&7z\NAK\165\176*,B\a\a\163E\207\144\172\f\155\213GP\189h;C\185\169\197a)f\151S_\250\196\146\131x\220\229\251\SUB1\158\SI\178p\NAKiW\NAK\DC3\234\"j\180\133"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\185\204)\STX\186xW\241J\176\179g\165\131\145\ESC\241>\156Z\STX%s\208\251\228n=\157\161\US\143u\167\147\189\a|\250\"\248\168^\251\229{89\a\164\SUBN+'\232\220\196\150\220M\252\188?\251\170\221\t\SOp\244\192\164]\143\198G]|\150M\ETX\199\201\255\216\230\212C\STXm\187\174\bv\189\216"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\167\208<a\214\238\140QV\236\133\193I\185\200o$P\210\192\bc+6Z\192&1/\195M\243\226\253\224\254\141+>\184o{\128c\166\131\251\132\STX1\171\153]}\217S`\US\206\145'\246\212\171\205-}2\199c\203\154\a\b\182\&9\239+2<\163\161\218\159\CAN\245w\157\250\147\ACK\ETX\ESC\DC4\239+"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\178\245+Cg\184\219sn\176.\a\146&U\239X\138E\FS\\\254}\163\ACK\144\NUL\t\226\174\242\\'\216bn\STXe\SUB\218\251\CAN\217\248\&0\166A'\SOx^\222-\163\SOH\228f\DC2lL\STX\142\141\228\222\247\174\246\167\128\182F\NUL\DC1\225BR\193\213\151\243Z\SI\180>\247v^\246\DC1\181\206\233|\212\142"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\152cc8\217\235\185[P\DC1\251\194\235\162\195!\178\188\EM\DC3&\RS\154sff\130\214\191\239~6IS\163\DC3\255(\155\134\251\251\163T\153ce\222\f\146L\155\215f\GS(\235\167\193\190\134\210- \STX\241\NUL\140\181(Y\DC4}\223\233\133\227oEO\205\194\181JX\146\171\&8\NAK\141\188U\173\&0q\DC4"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\166\134!\222'\170D\162\214\160 \171|\147\158\186\130`\248\204\161\185\ACKd\223\DC20\134\213\207\193\202\174\156\228X{\188N\211\212\RS\158zs\150\224\191\ACK\174\158\220\ESC\141\247\&9\ESC\180U\SYN\163@\225\226$\187/:M\173TX\194y\136d\161z\220%I\151\159w\RS\NUL\164@\SOH\198\a\163\RS\DC1<,"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\148V\154\136$0\ENQ\242\209\204-,\t\215\CAN\224\138\185\200\133\234L\135\SOH\200\DC3\141^\EOT\194\172\243#-kY\158\176\239D\196IY\167\ETX\DC4ck\EOT\173\238\v\247>\236cM\134\227O\224D\tG{\SUB_\170\EM\ACK])\163\\B+1\132\190\&2x\ESCm\140\218\230\229cg\222\ETB\231|\199\185\194"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\150$\252\147[\251g\183\158\f\209\146jdU\ESCu\154Z\DLE\251\b\236\252\220\214q\224 y'\158\247\&3l\129&V\152\v\247\223\185\ETX\133\DC2\DLEu\DLE\128%\177\&9Zun92\146&\224\167#\210\208M\"\181\204\"b\185,\137\214+(\130\SI \162\130\GS\171\182\169\DEL\232E\161E\157{\192k\250"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\180\SOH+\148K\161s\216\SII\ACK\247+\158,\DC1!5P\154S\226!\234\221xr\247\SO\153w\230W\\\133\154\STX\130\255\167\130\220\220\177&\240\142\f\SIt*=\138\187\157\150[\226G\197<h\FS\130\255_2\214x\DC1\190\231\180\244\136\GSo\152\184\202\209K\193\132\255\US\192\GS\175)\132&\239\168<Y"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\144\238\EOT\229\&2\a\b\r\168*n\228 \139\234YU\190\253\241\163G\147l\GS\f=%\218\247\"\174P\t\218\177\172\US\203\SUBb~7%\b)\NULZ\CAN\182|)\GS\199iun\189l\162!\CAN1\151/b\165\172 I\193\253\&5\DC2x\158rq\NUL.\SYN\t\202mci\v\227\195g\148\240\255\238\&6\233"))))) (UCon (tagCon (list bls12-381-g2-element) ([])))))))))))))))))))))))))))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL")))))

expected-multiScalarMul-12a : Result
expected-multiScalarMul-12a = success (UCon (tagCon bool true))

-- Pending: bytestring constant; postulated builtin `bls12-381-G2-equal`; postulated builtin `bls12-381-G2-multiScalarMul`; postulated builtin `bls12-381-G2-uncompress`.
pending-multiScalarMul-12a : Set
pending-multiScalarMul-12a = Pending (evalRaw test-multiScalarMul-12a ≡ expected-multiScalarMul-12a)

multiScalarMul-12b

-- builtin/semantics/bls12_381_G2_multiScalarMul/multiScalarMul-12b
-- All entries in the first list are zero => result is the zero point.
-- No infinite points in the input
test-multiScalarMul-12b : Untyped
test-multiScalarMul-12b = (UApp (UApp (UBuiltin bls12-381-G2-equal) (UApp (UApp (UBuiltin bls12-381-G2-multiScalarMul) (UCon (tagCon (list integer) ((ℤ.pos 0) ∷ (ℤ.pos 0) ∷ (ℤ.pos 0) ∷ (ℤ.pos 0) ∷ (ℤ.pos 0) ∷ (ℤ.pos 0) ∷ (ℤ.pos 0) ∷ (ℤ.pos 0) ∷ (ℤ.pos 0) ∷ (ℤ.pos 0) ∷ (ℤ.pos 0) ∷ [])))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\173A\170\206\146\184/K}0\161]\195\172\DC3P{5r\166\SYNU\142\SO\180\185I\161\253\ENQ\r\171\255\136\&0A\197L\163\244\169LT\ETB\131a\202\202\n\161\176\202\180}\232@\224\168\230\"\201@\228\219\f\193K\196\206\133\140 \214\137B\235\147\190l\227\247\"\254\136\207\235h\222\154\236I\SOHln\DC1\188"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\145\178\145f\159\&4:Y(K\239\f\245'\tr\145(\253\189\v\162D\212|\147\150t\222\174+\162d^$@R\129~-UF\218!i\SUB1\185\r\163\190\213\243\DC4\226\148\224\205\194\249\235&_3\EOTj\153\186\236iL\SO+\NAK.$\136\251\246\220(\212\179\&6H\217>\SUB\n\178]N\130\163Q\138"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\165sE&\152\241\DC3\129\"\239\146\235\199\247\168\187\137\211\DC2\129\&8\188\EOTWz\196%\154>I\SO\137\204\204\205\212$)\199\161\150iR\154\227g\242\226\SYN\133m\220\188\SYN$\\U\211\NUL\132/Q\205\NUL\208\250\141\185\CAN`\162\EOT\n\DELg\163RI\194\173\150\SUB\148\FS\171\158\222c.\140\205JbB\154\140"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\146\DC1\217\196\RS)\200\233\245\205\&7\189\217\196\143x\186\224\STX\DC4\192\129!3%\146\163\207\161\165\137\133\222\217\210\190\209{\a\179\172\139\242\228\ETB\b\235H\EOTK\ESCB\236\236\135\212O\242\ENQB\168h\DC2\184M\v{\186\217 \193e\205\128\148\143\240n\252^8R5\n\234Wh\198\222[31p\204\SYN\135"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\162Y\235\248\DEL\251\166\183\246x\176V#rk\NUL\vRe\200\255hcp\251\152\b\r\a\167\CAN\217:\ETXN\253\149-f\177\ETBw\186j\195\140=4\b2\159m\134\236\rx\199\249Q(Un[d\175\&6}\177\128N\201w9K\FS\139 \181\210a\184J\r\SO\226tu\DC2\DLE\154\243\250\154\144\165O"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\130\231>\243\173\129\192rv\168\185\&6\v\DC3I\220\168a\207<\DC1\215\227\211\218#\177R]h;\177\135B\146\131\163 \SOHV\175\DC3\SOH\246\239\&2iz\DC4y\174\197shS\245\145\t\\\241Z\185P|q\167{\213y\187._L\171\148\216\255\&3\188C\252\243\&6\DC3j\162\250\206(\241\136kb\243\204\169"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\176\224\141*\145\bs\ETX\NAKu\225\"\255\203)\149\223\211\DEL\RS\144\a\236%/\b#\253\229\136\187\239\209G\161\SYN\229Z\163N\132\RS\189<\212.9\186\ve\f\239\189\240\185\135\NUL\245v}\155-\214\219\222\&10\170\209Eh\226-\220\SUB\218\DEL\\\248\199\163E(\156M\194>\223\209kJ\202\248\233\DC1M"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\137\SYN\138\236\145A\165(\162\175l\EM\190\211\166m\252jC]\244(V}}0\RS\213vt\FS\204\186j\255\179\171\&7TX\179\SUB\ESC\240\&3\157\195\234\ETB=\161G\211\238\GSY\205\132o\154F\254\SOH\250\130q\246\179\213\192\168\DC1\150\191u\242\178UU\138b\170B\r\226\255c\r\145\136\165>}\177\129&"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\175\SUB\153\250\ETBO\186\&3\b\DC1;KNs\144\221&\171t\206\219\255>\232\182D\224\142\152N\211BF\154\198>\243\189\ETX\159\136\213\143\241\143Z\STX\211\SOHp\ACK`\218\n\204\201J\218H\v)}\190\DC4\143/\203qdI$\137]j\246)\200^\148\199\133#\222\&8\234\209\165)\224n]H\197pD\254"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\137\GSP\149[*:\NAK\161\n\EOT\226\228\206\176/\DEL\GS\SUBdRN\244k\220\tB\188\219\173n\240\200\192\208]-\152\147\&4\175\233\189M\239.E?\ETX\251\197UV\SYN*F\222\SO\SOH\129\DLE\a\160\SYN\r\198~\248\RS%\132\145\ACK\195B\246f\211\139\DC47R\210\190\CAN$'\218\241\178\236$\234!\134\141"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\150\253\170f\243\ENQ\155\154?oTn\v\213\177\163$\148bG}\221hl]\DC47\207Y\STX\a:\156\180>\179\190\EM\134\164\253\150\&5%'fs\137\ETX\236\STX\SUB\246(i]+\174\254r\202\\\DLE\254\255\131\EM\SO\145 \214,!}\230P-\212\CAN^h\218\DC3#}D8Yn\145N'.\184e\180"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\164AZ\227\208\202~\234c_\197]\209\227\139H'\EOT?\199\133\143Oj\USR\185<\160q\GS\164aF\DEL+\138\n$\231\134\215\203oM\aM}\ETB\236w\210\246vj<\GS\146j6t\214\144\DC1\148S\153\145\ACK{\139&\240Q\197'm\245D)\DEL\237\t\f\174j&\181\SUB\GS=\197\182\158\129\252"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\136\DEL\169(u\130\207\191\248\206\bT\199\210\fBUN\167\b\144Lj\237dOB\133\193\203\198\SO?v\198\204\169\SI\155\132,\DC3\DC4\ESC\212\231\DC2\253\ETB\248X\223\202\225\nz\215\235\185\207F\182\154\195m\t\170\250\140\224\SO\132\200\232O%\170\254,#\USvj#t:\SUB*\211\DELm;\248\242\146-"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\176e5h\143\200&x!k\242;\131a,\149\DC4\211\132VTV\226\182\a=\ESC~\USMK\186\215c@\225\194*A\242c\nJ\209}K\189l\CAN{\209\t\212\217\139\144\DC2~\DC1\248\179\162d\188\175\SO\196\fn)\DLEx\202j\181\148\155YC\143\147\200\ESC\201N\SOH\224\160A\190\247\213\130-\140\164"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\165)\250{\208\EOTN\\\156\134\137\219\155S\201\246\132w\128g\"\236\229pHX\213h\233Z\128\239\173\SUB\158\146\171\144>\223\242S\180X\176\a\EM\207\SI\205\226\231\135\190\139\234b\SOH\142\187\153\239\nPA\198\DC1:\244\EOT\212\222\200/\235\170\173Q\254\211\242C\DC1\229%T\DELq;\242\173>\"\234\152$"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\175\a\\T\150>\198/0\149\ETX\180\229\211k\206\GSKc$\SI\149\DLE2\EOT\136\201\NUL\222\201\195\151\193\&6}\158\229z=S\148n\229\237\&4'[\b\EOT\ENQ\EM\SYN\191\r\222\232o^\235\203\132$q[\245r\229\143\253B\172]\255K\n,E1\DEL\245%\213\177\241\&2\223\EM_\140}\DC2!\231\ETX\137\171"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\130\214\245\211@\ENQ\170\FS\249V\185L\206>\206 \230[:\DC3\208\183-\207I\182,\182\249\134;i\226\169\179\164\160\226F<rp\192\155p,\aU\SYN\RS\170\&3\146p40R\196E\221cu\DLEN\199M,\153\t\250&\132\252\b\175\219\247I\223L\243\156\&3\SUB\180\ACKE\168\151\187\EOT.\201\SI\DEL\204"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\162O\n\226$\172\149\206\131\210\164V\200\STXS\161\142\SUB?#\180\138\203:\NAK\208\&1L\tsX,9\ETB&s;vb\248\136(T\ESC\\\DC4s\SO\v\128\214EKZ\248\DC2\199}_f\198\&2\196K\128\ESC\151\153\168G\235\230N\229\207\235\149\167\176\214\206\130\DEL\248\192!/(\"{b\ETB\164\201\ACK("))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\153\"l\DC4\180q\\\157.\246\ETBa\216\144{\149\r\173\221\250\230-\240\218\&2\140\187\148\172R\223*\200\224\162\211\209w\247\SI\227l\v\228<\204\159\186\ETB\186e(\a\r\164`\rY\fl\168]\164_:\SYN\161\235cS\148\178\137\SUB\174\225\248\DEL\141\249\168\242\232\134A\\\162\135\137qZ!`\152l\158"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\183#\136\STX2Mx'Z\CAN\235\146\212o]\ENQ\180\210\148i\155#gN\EM~\f\165p`o+\197*\134\155o\US\DC4\161T\194\241n\191\141a:\CAN\214\251\&1\212\176\n\136\206\161c\239\153\172\143\218\245{\146\fG~!\160V\159\192\&8\EM\DLE2Z\242\218\224\185\250\179\243*\197_\180\195\221l\194\168"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\181\190\&7'v\ACK0\156\204\254\224\&5\f\187\241nj\236\NAK\148u{\243\189gt\202K\208\177\226Q\192P\131\175\ETBnv\190`W\200\DC1\224\235\225\131\SOH5FZ\"z^\217\198\v\ESCp\249\240G\183\160\f:\162P\145(\234\152\SOHN\153/zD\231\227g\vAm\200w`\228Z_r\EOT\150G%"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\153^\254d\210\201\173\199\154\186\153\226\253\165&y\GS4u\USo\209`5\ACK\139\188\b\ESC\198\167I\208\230r\179\162E\206\242\141\237\129\206/]\135{\ETX\DC1dJ\210)\191fvf\v{\208\DC1\DELTE$c\215\EMM<\190\141\138\222jf\218\222k\179\ENQ\175\148\207\200qe\228h\203H<M\169\166"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\128\189i\STX\169\212\FSr\194\213\231\160\177.z\131eQ&N\135\170\nL!\184v4adO\145\147EW>0@\RS\238A6J)\190|\180\179\DLE\155e\144\233\161\224\150\f\246K~\139\232\215\US\187|'\164\\\197\177\FS45\198\230\227\SI\193*\196\180\230D\230h\182\249\SI\178\FS\n-\CANB\242"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\141\161\166\SUB\SI\190\DC1\233\170\144\138X\a\180\251=\211\f\236\n]\n&\199\167\DC2\NUL_Q\199\147F\134\138\237\228\252\138\SUB\ACK\181iG\ETBsz%\ACK\f\DLE\189k\SUB\EOT\175O0\RS\214\219\245\180\188\222\SIcasT\153\180\228>P\244\246U\NUL,>An\175\181\169\176\197\170$\249 \n\205M\145k"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\185'\200d\185Z\199.\131i\184c\214\172\&6\EM\252\220'\SYN\NUL\232\136\222+k\210.\198\213hV\174f\194/\211U\149M}\228\158\148\202\200\&8\ESC\EM\180\174\a\136!kF\198\144S\251$\SUB\139q\SUB\148\219MB*\195_@\252\ETB\186,\NAK\162h\192W\213\236\204\194\165\217R7\233\128\238X\205-"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\170\b\SYN\135\136\SII\242\249S\139\222\SUB\133P\158\RS\231\&4\240\&4\187\213\194\162\NULh_\133\232lO\207V~\GS\222l\219\233\142\RSA\220\149\&1\176[\DC1>\151H\255L\228\178n\228\129\b\rJF\150x\138\138\&50\160Q\130X\DLE!X\SUBn\142\169\190\ENQJ\136)\224\DC4\DC2Y\250\253\fz\ETX\a\154"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\171\227ui!6\NUL\220g&%!v(\224'\214\220\242\STX1vW\EM\ETB\aH\255\159\223I{\CANU\159\170\217,\227b\136\216\151:\211\141#\137\NUL%lI<\226uLe\162\207\179\180\ENQ\ESC\241\181\215\172\173^f\n\190\182\&3.\ETX\227\157G|\204\157\213\136\EOT\236j\DC1:\152\128G\206\245m\237"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\141\167o\128\244\209\ETXY0)\190_\211\248\242\ACK]DW\tD\220\240\SYN\246a\141\193\218\255<tii\215\237d\152{\175G\bG\fY\t\168\152\DC39\USSOyp\r\191uR\186\154\DC2\200i\213\196z\161E\177\231\252\225\222\200\129\166\200\185\&5\176\199\225p\190\DC4k,%\190\222\225\177G\239\251"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\142\217\133.1\DLE\179o\245\ETXa\183\253:\247#H\245\131to\240P1 `\236\216\135\175\254\180qW#k\178b\DLE\FS\181\204\194\141\140\137\NAKq\aA\241\231\199\ETXCm'\207\209\198EG\216\254\fUS\151\159\225\237\ETB\148[\191T)[3y\224J\186\132\252\ENQ\NAK\181d\CAN\226\&4a\NAKe\249"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\160\156F\253\140js\186W\168\&4\EM\176\ENQ?\140\129;\v\232\169\DC2<\177\\\167\CAN\226*\230Q>I1\147\217\222\&20\219\174+\RS\171\251\192\fc\SINBsLm\204\176i\212zZF\191\252\191Z\226[\226\174\240\203\150X\"\v\251\169\139\154\159\GS\215\240:\DEL@\EOT4\174<^\227C\GS\187\254"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\160\136\231b\179\237%\237\n>\CANw\129\251~\239\179\DC1(s\241\216\209E\154\251\244\207\154\207\&6w\249\253\215\NUL]\"\DC1\NAK\137\247\152-\234zW\154\ENQZ\132O\a#\221\&7\151\215\DELtAd\177\225\"\218\176\251\255.\157d\145\212:\193\&6\STX\249\195\ETB\152\244\\\194X\NUL\NUL\RS\253\NAKQ\195\fp\160"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\160`\230Qo_\"\184\DC3\200\ACK>\161'\197\145T\232b\225ul\216\176\133\144\182\148&0\203{\233A\209~l\238\209\167mWd4\r:)b\r\142M\215C\236\218\153\194\226\186]6\133\194\&4\252QQ)>\193G\206t\200\158\128\255g!\218.&\166g\131;2\131z\233\222\149\&4R\253\238"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\177\DC1\200\185\240\172\142\248\230\143\ETXa\131S\155Kx]mN\166d\182\184\t\232\&6:\ENQeky\201\231\220\211\&7\235\181\EOT\158\235P\140\254$\ETB6\STXi)\224\161,\192\140\186\147\138'\164\146\247\190I\157+k5\164FK \196\221\131\219SElVI1\243CAe\250\157\218?\166\155w\RS\b"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\136\141\191\215ALy\168!\f\148\149\222\166%\146\143i;pa0\129?\180\DC1\190:\157\184s\221\191\136P\143\220\143{.\233\&2\157\242\146\184\237\v\ENQ=\150)\US\241\141\234(\238\b\254$\195\216#\243\195\218\203\204k<]\NAK\167o\251\232\r?\231\&7\167s\188\183]\190\&9\205\149)\181m\224V\222"))))) (UCon (tagCon (list bls12-381-g2-element) ([]))))))))))))))))))))))))))))))))))))))) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL")))))

expected-multiScalarMul-12b : Result
expected-multiScalarMul-12b = success (UCon (tagCon bool true))

-- Pending: bytestring constant; postulated builtin `bls12-381-G2-equal`; postulated builtin `bls12-381-G2-multiScalarMul`; postulated builtin `bls12-381-G2-uncompress`.
pending-multiScalarMul-12b : Set
pending-multiScalarMul-12b = Pending (evalRaw test-multiScalarMul-12b ≡ expected-multiScalarMul-12b)

multiScalarMul-13a

-- builtin/semantics/bls12_381_G2_multiScalarMul/multiScalarMul-13a
-- Maximum allowed scalar is OK
test-multiScalarMul-13a : Untyped
test-multiScalarMul-13a = (UApp (UBuiltin bls12-381-G2-compress) (UApp (UApp (UBuiltin bls12-381-G2-multiScalarMul) (UCon (tagCon (list integer) ((ℤ.negsuc 7843724524521392138901923801823923123123454352156) ∷ (ℤ.pos 34527457238) ∷ (ℤ.pos 941957124591735785278457826354751745783452348102412301239547134528453782352345235423452345234523452345234512341423412341234) ∷ (ℤ.negsuc 6) ∷ (ℤ.pos 522194440706576253345876355358312191289982124523691890192116741641976953985778728424413405967498779170445053357219631418993786719092896803631618043925682638972978488271854999170180795067191859157214035005927973113188159419698856372836167342172293308748403954352901852035642024370059304557233988891799014503343469488440893892973452815095130470299789726716411734651513348221529512507986199933857107770846917779942645743159118957217248367043905936319748237550094520674504208530837546834166925275516486044134775384991808184705966507606898412918594045916828375610659246423184062775112999150206172392431297837246097308511903252956622805412865917690043804311051417135098849101156584508839003337597742539960818209685142687562392007453579567729991395256699805775897135553415567045292136442139895777424891477161767258532611634530697452993846501061481697843891439474220308003706472837459911525285821188577408160690315522951458068463354171428220365223949985950890732881736611925133626529949897998045399734600887312408859224933727829625089164535236559716582775403784110923285873186648442456409760158728501220463308455437074192539205964902261490928669488824051563042951500651206733594863336608245755565801460390869016718045121902354170201577095167) ∷ (ℤ.pos 123) ∷ [])))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\184\137\170A(\167-\142-b\239\174\&7\237L\147\221U\NUL\DC4^n\141\213\&2\225\GS\"\EM\134iB\231\DC2\195\EOT\bl\155\229\234 \144(\162R\213\182\SI\189\169O\228\172\230\186\NUL\201\178\DEL\246\EOT]\244\b\140\137'\GSV\176\152\184n\139\232\250G8\NUL\140\213\237\180\223\150q\220\192\NAK\145\248v\DLE\250r"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\137` \236\181Y\147\STXV\252\&0;\224\ACK\vP$+[\186\DC4GA\226\234\EOT\178.\203.iQ\185\170\139?\ETB\244>\240\201\ETXF\247\249\&2A:\v\US\143\GSM\174\212\205\221\176\253\f\252ov\130\242@@\140\210\151G4\207\NAK\n\147&\241\135\131K\148\ETB\236\203\SI\129\225{0\146\GS\159\205)\157"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\174\&5\153\168\ESCA\239c\238\235\SYN\225g\DC4\131P\216\248\f\186y\179\188F\173\SYNZx\181k\159\161V\165\&5g\236-\173\135'\138S\247\EOT*\t\131\EOTN\243 \148\218\182y\178jjO\182\163M\213O&\160\216\155\CAN\129\227\196\145X\177-c(\195\168u\191\231&6\"\154\190R\191\145\SO\198\&1["))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\182\n\203/\189[\SUB\215mnr\159\220L\222H\246\228\194zUQ\242?q)\153n\156\&5e\143\144\147\243\171\179W\182\165\DC1b\215\229\234\183\&5\142\DLE\ETX\215\208\190\220vM\143\139\186\204\r\181\227\187\173!\171\FS\250Q\213lN\147G~\159\224\196\164\241\128\169S\218\179j\163\222\214zl\176\DC1\142\&1"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\171\ENQ\161\b\198|\SIIi3\138\168\131\239\168\195\167\137\200\246\236\v%m\ENQH,\228\191\153\148\230\201Nb\179[i\185e<\CANy\228#\216\133\172\SI\134f};\214\231p\236\150<\132Nl\189\CAN\136a\131^\209R\154\231F\SI\189\ao\148\t^\223\243\t?\250\171\235\DLE\234i\252\150\229\&25\227"))))) (UCon (tagCon (list bls12-381-g2-element) ([])))))))))))

expected-multiScalarMul-13a : Result
expected-multiScalarMul-13a = success (UCon (tagCon bytestring (mkByteString "\171g\235\176x\134\202\203\178\ACK\227\232\167\148\232\176Z>\199Y\130\FS\205\141\139XsX\177\178|)\229[\219>\157\166V\155\&2\197\148S\vL\176G\DC2*c\FS!\"\204\252\137\CAN\138pg\198\DC4\146\182\236M_\ETX\250\199\CAN\178\155\169\177f\169\SOH\163\186*\\\167v\ESC\226\207\129\DC1}\194\210\SO\STXt")))

-- Pending: bytestring constant; postulated builtin `bls12-381-G2-compress`; postulated builtin `bls12-381-G2-multiScalarMul`; postulated builtin `bls12-381-G2-uncompress`.
pending-multiScalarMul-13a : Set
pending-multiScalarMul-13a = Pending (evalRaw test-multiScalarMul-13a ≡ expected-multiScalarMul-13a)

multiScalarMul-13b

-- builtin/semantics/bls12_381_G2_multiScalarMul/multiScalarMul-13b
-- A scalar one greater than the maximum causes an error
test-multiScalarMul-13b : Untyped
test-multiScalarMul-13b = (UApp (UApp (UBuiltin bls12-381-G2-multiScalarMul) (UCon (tagCon (list integer) ((ℤ.negsuc 7843724524521392138901923801823923123123454352156) ∷ (ℤ.pos 34527457238) ∷ (ℤ.pos 941957124591735785278457826354751745783452348102412301239547134528453782352345235423452345234523452345234512341423412341234) ∷ (ℤ.negsuc 6) ∷ (ℤ.pos 522194440706576253345876355358312191289982124523691890192116741641976953985778728424413405967498779170445053357219631418993786719092896803631618043925682638972978488271854999170180795067191859157214035005927973113188159419698856372836167342172293308748403954352901852035642024370059304557233988891799014503343469488440893892973452815095130470299789726716411734651513348221529512507986199933857107770846917779942645743159118957217248367043905936319748237550094520674504208530837546834166925275516486044134775384991808184705966507606898412918594045916828375610659246423184062775112999150206172392431297837246097308511903252956622805412865917690043804311051417135098849101156584508839003337597742539960818209685142687562392007453579567729991395256699805775897135553415567045292136442139895777424891477161767258532611634530697452993846501061481697843891439474220308003706472837459911525285821188577408160690315522951458068463354171428220365223949985950890732881736611925133626529949897998045399734600887312408859224933727829625089164535236559716582775403784110923285873186648442456409760158728501220463308455437074192539205964902261490928669488824051563042951500651206733594863336608245755565801460390869016718045121902354170201577095168) ∷ (ℤ.pos 123) ∷ [])))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\184\137\170A(\167-\142-b\239\174\&7\237L\147\221U\NUL\DC4^n\141\213\&2\225\GS\"\EM\134iB\231\DC2\195\EOT\bl\155\229\234 \144(\162R\213\182\SI\189\169O\228\172\230\186\NUL\201\178\DEL\246\EOT]\244\b\140\137'\GSV\176\152\184n\139\232\250G8\NUL\140\213\237\180\223\150q\220\192\NAK\145\248v\DLE\250r"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\137` \236\181Y\147\STXV\252\&0;\224\ACK\vP$+[\186\DC4GA\226\234\EOT\178.\203.iQ\185\170\139?\ETB\244>\240\201\ETXF\247\249\&2A:\v\US\143\GSM\174\212\205\221\176\253\f\252ov\130\242@@\140\210\151G4\207\NAK\n\147&\241\135\131K\148\ETB\236\203\SI\129\225{0\146\GS\159\205)\157"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\174\&5\153\168\ESCA\239c\238\235\SYN\225g\DC4\131P\216\248\f\186y\179\188F\173\SYNZx\181k\159\161V\165\&5g\236-\173\135'\138S\247\EOT*\t\131\EOTN\243 \148\218\182y\178jjO\182\163M\213O&\160\216\155\CAN\129\227\196\145X\177-c(\195\168u\191\231&6\"\154\190R\191\145\SO\198\&1["))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\182\n\203/\189[\SUB\215mnr\159\220L\222H\246\228\194zUQ\242?q)\153n\156\&5e\143\144\147\243\171\179W\182\165\DC1b\215\229\234\183\&5\142\DLE\ETX\215\208\190\220vM\143\139\186\204\r\181\227\187\173!\171\FS\250Q\213lN\147G~\159\224\196\164\241\128\169S\218\179j\163\222\214zl\176\DC1\142\&1"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\171\ENQ\161\b\198|\SIIi3\138\168\131\239\168\195\167\137\200\246\236\v%m\ENQH,\228\191\153\148\230\201Nb\179[i\185e<\CANy\228#\216\133\172\SI\134f};\214\231p\236\150<\132Nl\189\CAN\136a\131^\209R\154\231F\SI\189\ao\148\t^\223\243\t?\250\171\235\DLE\234i\252\150\229\&25\227"))))) (UCon (tagCon (list bls12-381-g2-element) ([]))))))))))

expected-multiScalarMul-13b : Result
expected-multiScalarMul-13b = failure

-- Pending: bytestring constant; postulated builtin `bls12-381-G2-multiScalarMul`; postulated builtin `bls12-381-G2-uncompress`.
pending-multiScalarMul-13b : Set
pending-multiScalarMul-13b = Pending (evalRaw test-multiScalarMul-13b ≡ expected-multiScalarMul-13b)

multiScalarMul-13c

-- builtin/semantics/bls12_381_G2_multiScalarMul/multiScalarMul-13c
-- Minimum allowed scalar is OK
test-multiScalarMul-13c : Untyped
test-multiScalarMul-13c = (UApp (UBuiltin bls12-381-G2-compress) (UApp (UApp (UBuiltin bls12-381-G2-multiScalarMul) (UCon (tagCon (list integer) ((ℤ.negsuc 7843724524521392138901923801823923123123454352156) ∷ (ℤ.pos 34527457238) ∷ (ℤ.pos 941957124591735785278457826354751745783452348102412301239547134528453782352345235423452345234523452345234512341423412341234) ∷ (ℤ.negsuc 6) ∷ (ℤ.negsuc 522194440706576253345876355358312191289982124523691890192116741641976953985778728424413405967498779170445053357219631418993786719092896803631618043925682638972978488271854999170180795067191859157214035005927973113188159419698856372836167342172293308748403954352901852035642024370059304557233988891799014503343469488440893892973452815095130470299789726716411734651513348221529512507986199933857107770846917779942645743159118957217248367043905936319748237550094520674504208530837546834166925275516486044134775384991808184705966507606898412918594045916828375610659246423184062775112999150206172392431297837246097308511903252956622805412865917690043804311051417135098849101156584508839003337597742539960818209685142687562392007453579567729991395256699805775897135553415567045292136442139895777424891477161767258532611634530697452993846501061481697843891439474220308003706472837459911525285821188577408160690315522951458068463354171428220365223949985950890732881736611925133626529949897998045399734600887312408859224933727829625089164535236559716582775403784110923285873186648442456409760158728501220463308455437074192539205964902261490928669488824051563042951500651206733594863336608245755565801460390869016718045121902354170201577095167) ∷ (ℤ.pos 123) ∷ [])))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\184\137\170A(\167-\142-b\239\174\&7\237L\147\221U\NUL\DC4^n\141\213\&2\225\GS\"\EM\134iB\231\DC2\195\EOT\bl\155\229\234 \144(\162R\213\182\SI\189\169O\228\172\230\186\NUL\201\178\DEL\246\EOT]\244\b\140\137'\GSV\176\152\184n\139\232\250G8\NUL\140\213\237\180\223\150q\220\192\NAK\145\248v\DLE\250r"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\137` \236\181Y\147\STXV\252\&0;\224\ACK\vP$+[\186\DC4GA\226\234\EOT\178.\203.iQ\185\170\139?\ETB\244>\240\201\ETXF\247\249\&2A:\v\US\143\GSM\174\212\205\221\176\253\f\252ov\130\242@@\140\210\151G4\207\NAK\n\147&\241\135\131K\148\ETB\236\203\SI\129\225{0\146\GS\159\205)\157"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\174\&5\153\168\ESCA\239c\238\235\SYN\225g\DC4\131P\216\248\f\186y\179\188F\173\SYNZx\181k\159\161V\165\&5g\236-\173\135'\138S\247\EOT*\t\131\EOTN\243 \148\218\182y\178jjO\182\163M\213O&\160\216\155\CAN\129\227\196\145X\177-c(\195\168u\191\231&6\"\154\190R\191\145\SO\198\&1["))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\182\n\203/\189[\SUB\215mnr\159\220L\222H\246\228\194zUQ\242?q)\153n\156\&5e\143\144\147\243\171\179W\182\165\DC1b\215\229\234\183\&5\142\DLE\ETX\215\208\190\220vM\143\139\186\204\r\181\227\187\173!\171\FS\250Q\213lN\147G~\159\224\196\164\241\128\169S\218\179j\163\222\214zl\176\DC1\142\&1"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\171\ENQ\161\b\198|\SIIi3\138\168\131\239\168\195\167\137\200\246\236\v%m\ENQH,\228\191\153\148\230\201Nb\179[i\185e<\CANy\228#\216\133\172\SI\134f};\214\231p\236\150<\132Nl\189\CAN\136a\131^\209R\154\231F\SI\189\ao\148\t^\223\243\t?\250\171\235\DLE\234i\252\150\229\&25\227"))))) (UCon (tagCon (list bls12-381-g2-element) ([])))))))))))

expected-multiScalarMul-13c : Result
expected-multiScalarMul-13c = success (UCon (tagCon bytestring (mkByteString "\144\a0c\147\&7\130G^v\184\195\&2&\180}\193\248\198\132\143\165:2\v\149\175'\GS\149O\STX.<\190ga\252\182e\220_\168\151\190\US\130#\t\GS@\163aZd&\DC1'\233*\252!5.Z\195%Q|\216$i\CAN\217\233\220\230\240\214\DC3e\199\DC2\143\NUL5\221\192\136\183\135\139\ETX\215jF")))

-- Pending: bytestring constant; postulated builtin `bls12-381-G2-compress`; postulated builtin `bls12-381-G2-multiScalarMul`; postulated builtin `bls12-381-G2-uncompress`.
pending-multiScalarMul-13c : Set
pending-multiScalarMul-13c = Pending (evalRaw test-multiScalarMul-13c ≡ expected-multiScalarMul-13c)

multiScalarMul-13d

-- builtin/semantics/bls12_381_G2_multiScalarMul/multiScalarMul-13d
-- A scalar one less than the minimum causes an error
test-multiScalarMul-13d : Untyped
test-multiScalarMul-13d = (UApp (UApp (UBuiltin bls12-381-G2-multiScalarMul) (UCon (tagCon (list integer) ((ℤ.negsuc 7843724524521392138901923801823923123123454352156) ∷ (ℤ.pos 34527457238) ∷ (ℤ.pos 941957124591735785278457826354751745783452348102412301239547134528453782352345235423452345234523452345234512341423412341234) ∷ (ℤ.negsuc 6) ∷ (ℤ.negsuc 522194440706576253345876355358312191289982124523691890192116741641976953985778728424413405967498779170445053357219631418993786719092896803631618043925682638972978488271854999170180795067191859157214035005927973113188159419698856372836167342172293308748403954352901852035642024370059304557233988891799014503343469488440893892973452815095130470299789726716411734651513348221529512507986199933857107770846917779942645743159118957217248367043905936319748237550094520674504208530837546834166925275516486044134775384991808184705966507606898412918594045916828375610659246423184062775112999150206172392431297837246097308511903252956622805412865917690043804311051417135098849101156584508839003337597742539960818209685142687562392007453579567729991395256699805775897135553415567045292136442139895777424891477161767258532611634530697452993846501061481697843891439474220308003706472837459911525285821188577408160690315522951458068463354171428220365223949985950890732881736611925133626529949897998045399734600887312408859224933727829625089164535236559716582775403784110923285873186648442456409760158728501220463308455437074192539205964902261490928669488824051563042951500651206733594863336608245755565801460390869016718045121902354170201577095168) ∷ (ℤ.pos 123) ∷ [])))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\184\137\170A(\167-\142-b\239\174\&7\237L\147\221U\NUL\DC4^n\141\213\&2\225\GS\"\EM\134iB\231\DC2\195\EOT\bl\155\229\234 \144(\162R\213\182\SI\189\169O\228\172\230\186\NUL\201\178\DEL\246\EOT]\244\b\140\137'\GSV\176\152\184n\139\232\250G8\NUL\140\213\237\180\223\150q\220\192\NAK\145\248v\DLE\250r"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\192\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\137` \236\181Y\147\STXV\252\&0;\224\ACK\vP$+[\186\DC4GA\226\234\EOT\178.\203.iQ\185\170\139?\ETB\244>\240\201\ETXF\247\249\&2A:\v\US\143\GSM\174\212\205\221\176\253\f\252ov\130\242@@\140\210\151G4\207\NAK\n\147&\241\135\131K\148\ETB\236\203\SI\129\225{0\146\GS\159\205)\157"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\174\&5\153\168\ESCA\239c\238\235\SYN\225g\DC4\131P\216\248\f\186y\179\188F\173\SYNZx\181k\159\161V\165\&5g\236-\173\135'\138S\247\EOT*\t\131\EOTN\243 \148\218\182y\178jjO\182\163M\213O&\160\216\155\CAN\129\227\196\145X\177-c(\195\168u\191\231&6\"\154\190R\191\145\SO\198\&1["))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\182\n\203/\189[\SUB\215mnr\159\220L\222H\246\228\194zUQ\242?q)\153n\156\&5e\143\144\147\243\171\179W\182\165\DC1b\215\229\234\183\&5\142\DLE\ETX\215\208\190\220vM\143\139\186\204\r\181\227\187\173!\171\FS\250Q\213lN\147G~\159\224\196\164\241\128\169S\218\179j\163\222\214zl\176\DC1\142\&1"))))) (UApp (UApp (UForce (UBuiltin mkCons)) (UApp (UBuiltin bls12-381-G2-uncompress) (UCon (tagCon bytestring (mkByteString "\171\ENQ\161\b\198|\SIIi3\138\168\131\239\168\195\167\137\200\246\236\v%m\ENQH,\228\191\153\148\230\201Nb\179[i\185e<\CANy\228#\216\133\172\SI\134f};\214\231p\236\150<\132Nl\189\CAN\136a\131^\209R\154\231F\SI\189\ao\148\t^\223\243\t?\250\171\235\DLE\234i\252\150\229\&25\227"))))) (UCon (tagCon (list bls12-381-g2-element) ([]))))))))))

expected-multiScalarMul-13d : Result
expected-multiScalarMul-13d = failure

-- Pending: bytestring constant; postulated builtin `bls12-381-G2-multiScalarMul`; postulated builtin `bls12-381-G2-uncompress`.
pending-multiScalarMul-13d : Set
pending-multiScalarMul-13d = Pending (evalRaw test-multiScalarMul-13d ≡ expected-multiScalarMul-13d)