From fec75458aa778eff1890951e27bcd49b51dc26e5 Mon Sep 17 00:00:00 2001 From: pyrex41 Date: Fri, 6 Nov 2026 21:37:51 -0600 Subject: [PATCH 1/3] kernel: move to community ShenOSKernel 43.4 (shen-sources f34b307) Vendor the 23 .kl files and tests/ byte-identical. stlib.kl now declares signatures via shen.declare-with-signature with precompiled abstractions: drop the stdlib signature sidecar, and record those signatures in the native typechecker's table (it had 171 of 465 entries without this). The two stdlib datatypes still run the rule compiler. Replay their fasl records from .stlibdt, the cache added with PR 101, instead of the signature sidecar that 43.3 made redundant. make certify expects 154 tests on 43.4, the same kerneltests.shen count as 43.2. Co-Authored-By: Claude Sonnet 5.5 --- CHANGELOG.md | 14 +- README.md | 6 +- bin/yggdrasil-build.lua | 4 +- boot.lua | 167 +---- klambda/PROVENANCE.md | 34 +- klambda/README.md | 10 +- klambda/core.kl | 2 +- klambda/dict.kl | 34 +- klambda/extension-expand-dynamic.kl | 30 +- klambda/extension-features.kl | 6 +- klambda/extension-launcher.kl | 32 +- klambda/extension-namespaces.kl | 28 +- ...extension-programmable-pattern-matching.kl | 32 +- klambda/extension-type-annotations.kl | 14 +- klambda/init.kl | 4 +- klambda/macros.kl | 66 +- klambda/stlib.kl | 622 +++++++++--------- klambda/sys.kl | 214 +++--- klambda/t-star.kl | 110 ++-- klambda/toplevel.kl | 34 +- klambda/track.kl | 62 +- klambda/types.kl | 16 +- klambda/writer.kl | 52 +- run-kernel-tests.lua | 2 +- test/boot_cache_spec.lua | 45 +- tests/extensions/expand-dynamic/tests.shen | 235 +++++++ tests/extensions/runme.shen | 2 + tests/regressions/factoriser-cond.shen | 42 ++ tests/runme.shen | 3 +- typecheck_native.lua | 15 +- 30 files changed, 1086 insertions(+), 851 deletions(-) create mode 100644 tests/extensions/expand-dynamic/tests.shen create mode 100644 tests/regressions/factoriser-cond.shen diff --git a/CHANGELOG.md b/CHANGELOG.md index ce3beb4..ebea7c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,10 +7,22 @@ Notable changes to shen-lua. Release notes for earlier versions are under ### Changed +- **Kernel: ShenOSKernel 43.4** (community `Shen-Language/shen-sources`, tag + `shen-43.4`, commit `f34b307b490880eedcfe1f5e5d3cc24ca3d2602e`, release + tarball SHA-256 `15e7972e...a2756`). Vendored byte-identical; `(version)` is + `"43.4"`. `tests/` is the 43.4 suite. The native typechecker's fingerprints + are unchanged (verified with `scripts/kernel-fingerprints.lua`). +- stlib.kl now declares its 290 signatures with + `shen.declare-with-signature` and a precompiled abstraction, so the + `.stlib` signature sidecar is gone. `typecheck_native.lua` + wraps `shen.declare-with-signature`; without that its native signature + table silently lacked the stdlib signatures (171 instead of 465 entries). + The two stdlib datatypes still run the rule compiler; their fasl records + stay in `.stlibdt`. - **Startup and compile cost.** `variable?` no longer throws on a non-symbol; the fasl records a global push as a delta (SHENFASL9), the reader has native paths for plain tokens, macroexpansion keeps unchanged cells, the stdlib datatypes replay from - the signature sidecar (SHENSIG2), and a replayed `declare` skips the variancy query + `.stlibdt`, and a replayed `declare` skips the variancy query when the compile run found no old type. The GC pause adapts past a small live heap and stops adapting once the host sets its own; the default stepmul is 1000, which trades work for memory (a string-building loop: +7% instructions, 78 to 47 MB). diff --git a/README.md b/README.md index cf745e8..edb3324 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # shen-lua [Shen](https://shenlanguage.org) on **LuaJIT 2.1**: pattern matching, optional -sequent types, and Prolog, compiled to Lua. ShenOSKernel 43.2, **154/154** +sequent types, and Prolog, compiled to Lua. ShenOSKernel 43.4, **154/154** official kernel tests. Embeds in any Lua host. Plain Lua 5.1/5.4/5.5 works too (slower, still correct). @@ -147,7 +147,7 @@ More under [`examples/`](examples/README.md). A full tour: ```sh make test # port specs (test/*_spec.lua) -luajit run-kernel-tests.lua # official 43.2 suite → 154/154 +luajit run-kernel-tests.lua # official 43.4 suite → 154/154 ``` The kernel suite is vendored in `tests/`. Port specs cover primitives, REPL, @@ -160,7 +160,7 @@ luarocks install shen # launcher + modules luarocks make --local shen-scm-1.rockspec # this tree ``` -LuaJIT required (`lua == 5.1`). This tree uses ShenOSKernel **43.2**; release +LuaJIT required (`lua == 5.1`). This tree uses ShenOSKernel **43.4**; release **0.12.0** is the first on the community 43.2 kernel, **0.11.1** uses Tarver's S42 kernel; **0.9.0** was 41.1. Or grab `shen-bundle.lua` from [Releases](https://github.com/pyrex41/shen-lua/releases/latest) — one file, `require("shen-bundle")`. diff --git a/bin/yggdrasil-build.lua b/bin/yggdrasil-build.lua index f7e4676..4a5fff0 100644 --- a/bin/yggdrasil-build.lua +++ b/bin/yggdrasil-build.lua @@ -108,8 +108,8 @@ end assert(man.kernel, MANIFEST .. ": missing kernel=") assert(man.init, MANIFEST .. ": missing init=") assert(#man.user > 0, MANIFEST .. ": no user= entries") -if man["kernel-version"] ~= "43.2" then - io.stderr:write(("yggdrasil-build: warning: manifest kernel-version=%s, this port is certified against 43.2\n") +if man["kernel-version"] ~= "43.4" then + io.stderr:write(("yggdrasil-build: warning: manifest kernel-version=%s, this port is certified against 43.4\n") :format(tostring(man["kernel-version"]))) end diff --git a/boot.lua b/boot.lua index 14676b8..98f1818 100644 --- a/boot.lua +++ b/boot.lua @@ -183,7 +183,7 @@ local function find_kldir() end local KLDIR = find_kldir() .. "/" P.KLDIR = KLDIR -- resolved .kl directory (trailing /), for typecheck_native --- Boot order for the ShenOSKernel-43.2 kernel (community shen-sources line). +-- Boot order for the ShenOSKernel-43.4 kernel (community shen-sources line). -- Every 43.1 .kl file is pure defuns: no module has load-time side effects, so -- the order below (upstream make.shen's module order, then the booted -- extensions, then the precompiled standard library) is for readability only. @@ -223,7 +223,7 @@ P.GLOBALS["*implementation*"] = rawget(_G, "jit") and "LuaJIT" or _VERSION P.GLOBALS["*port*"] = "shen-lua" P.GLOBALS["*porters*"] = "shen-lua contributors" P.GLOBALS["*os*"] = (package.config and package.config:sub(1,1) == "\\") and "Windows" or "Unix" -P.GLOBALS["*release*"] = "0.1" -- port release; kernel *version* comes from init.kl ("43.2") +P.GLOBALS["*release*"] = "0.1" -- port release; kernel *version* comes from init.kl ("43.4") -- ---- kernel bytecode cache ------------------------------------------------- -- Loading the kernel from .kl sources costs ~0.8s (read + parse + KL->Lua @@ -537,8 +537,9 @@ end -- (ShenOSKernel 43.1 has no top-level forms at all — its kernel signatures are -- precompiled closures in init.kl's shen.initialise-signedfuncs — so on the -- vendored kernel hoist_tail finds nothing to hoist. The machinery stays for --- S42-shaped trees via SHEN_KL_DIR, and record_declares / replay_declares are --- reused for the standard library's 290 declares; see stlib_types.) +-- S42-shaped trees via SHEN_KL_DIR. Since 43.3 the stdlib's 290 signatures are +-- precompiled in stlib.kl and are not replayed here; the datatype rule +-- compiles are cached separately (stlib_datatypes).) -- On the S42.0 kernel, klambda/types.kl ended with 161 top-level -- `(declare Name Type)` forms, and -- they are not cheap annotations: `declare` (types.kl) runs the type theory for @@ -1517,46 +1518,26 @@ end -- defuns stay loaded but are not registered as Shen functions). local STDLIB_LOADED = false --- (stlib.initialise-types) is 290 (declare Name Type) calls, and `declare` --- runs the type theory for real on each (variancy under the Prolog machine, --- then a KL->Lua compile of the signature's prolog abstraction): ~0.2 s, the --- bulk of a warm boot. Everything it depends on is fixed by the kernel cache --- key, so cache it exactly the way the S42 kernel's own types.kl signatures --- were cached (hoist_tail / record_declares / replay_declares): a sidecar file --- next to the kernel bytecode cache holds, per signature, its raw type and the --- dumped abstraction chunk, plus the gensym / inference counters. A warm boot --- replays them into shen.*sigf* (and the native typechecker's signature --- table) in the original order. SHEN_KERNEL_CACHE=off disables it with the --- kernel cache. +-- ShenOSKernel 43.3 precompiles the 290 stdlib signature abstractions as +-- (shen.declare-with-signature Name Type (freeze Abstraction)) inside +-- stlib.kl. A warm boot no longer runs the type theory per signature, and the +-- old .stlib signature sidecar is gone. typecheck_native wraps +-- shen.declare-with-signature, so its signature table still sees every one. -- --- The file also holds the record stream of (stlib.initialise-datatypes), in the --- user fasl's format: its two datatypes run the whole rule compiler and were --- 40% of a warm boot's instructions. The records need the fasl recorder, so a --- boot with SHEN_FASL=off stores none and runs the phase. -local SIGS_FORMAT = "SHENSIG2" -- 2: datatype records after the counters -local function stlib_sigs_path() - if P.KERNEL_CACHE_DATA then return nil end -- single-file bundle +-- The two datatypes still run the rule compiler (shen.process-datatype), which +-- was the expensive half of a warm boot once the signatures were precompiled. +-- Their fasl records live in .stlibdt (SHENDT1), keyed on the +-- kernel cache key. SHEN_FASL=off, SHEN_KERNEL_CACHE=off, or a bundle with no +-- cache path runs the phase for real. A truncated file is a miss and is +-- rewritten; a replay that raises still raises. +local DT_FORMAT = "SHENDT1" +local function stlib_dt_path() + if P.KERNEL_CACHE_DATA then return nil end local p = cache_path() - return p and (p .. ".stlib") or nil + return p and (p .. ".stlibdt") or nil end -local function write_sigs(path, key, decl, counters, datatypes) - local parts = { SIGS_FORMAT, "\n", key, "\n", tostring(#decl), "\n" } - for _, e in ipairs(decl) do - parts[#parts+1] = e.name .. "\n" .. #e.dump .. "\n" .. e.dump - kdata_ser(e.typ, parts) - end - parts[#parts+1] = tostring(counters.gensym) .. "\n" .. tostring(counters.infs) .. "\n" - parts[#parts+1] = datatypes or "" - local tmp = path .. ".tmp" - local fh = open_for_write(tmp) - if not fh then return end - fh:write(table.concat(parts)); fh:close() - os.remove(path) - os.rename(tmp, path) -end - -local function read_sigs(path, key) +local function read_datatypes(path, key) local data = read_file(path) if not data then return nil end local pos = 1 @@ -1566,54 +1547,17 @@ local function read_sigs(path, key) local s = data:sub(pos, e - 1); pos = e + 1 return s end - if line() ~= SIGS_FORMAT or line() ~= key then return nil end - local n = tonumber(line() or ""); if not n then return nil end - local decl = {} - local ok = pcall(function() - for i = 1, n do - local nm = line() - local len = tonumber(line() or "") - if not nm or not len or pos + len - 1 > #data then error("truncated") end - local dump = data:sub(pos, pos + len - 1) - pos = pos + len - local typ - typ, pos = kdata_de(data, pos) - decl[i] = { name = nm, typ = typ, dump = dump } - end - end) - if not ok then return nil end - local gensym = tonumber(line() or ""); if not gensym then return nil end - local infs = tonumber(line() or ""); if not infs then return nil end - local datatypes - if pos <= #data then - datatypes = fasl_parse(data, pos) - if not datatypes then return nil end - end - return { decl = decl, gensym = gensym, infs = infs, datatypes = datatypes } -end - --- The sidecar, read once per boot: both phases below use it. -local STLIB_SIGS, STLIB_SIGS_READ -local function stlib_cached() - if not STLIB_SIGS_READ then - STLIB_SIGS_READ = true - local path = stlib_sigs_path() - if path then - STLIB_SIGS = read_sigs(path, kernel_key() .. "|" .. SIGS_FORMAT) - end - end - return STLIB_SIGS + if line() ~= DT_FORMAT or line() ~= key then return nil end + return fasl_parse(data, pos) end --- (stlib.initialise-datatypes), from its records when the sidecar has them, --- else for real, recording them for write_sigs (stlib_types, the next phase --- that matters) when the fasl recorder is live. -local STLIB_DT_BLOB local function stlib_datatypes() local run = P.F["stlib.initialise-datatypes"] - local cached = stlib_cached() - if cached and cached.datatypes then return fasl_replay(cached.datatypes) end - if cached or not FASL_INSTALLED or not stlib_sigs_path() then return run() end + local path = stlib_dt_path() + if not path or not FASL_INSTALLED then return run() end + local key = kernel_key() .. "|" .. DT_FORMAT + local cached = read_datatypes(path, key) + if cached then return fasl_replay(cached) end local rec = { n = 0, in_chunk = false } local arity0 = {} for k, v in pairs(C.ARITY) do arity0[k] = v end @@ -1627,59 +1571,12 @@ local function stlib_datatypes() C.NO_KDATA = saved_nokdata if not ok then error(err, 0) end local sok, blob = pcall(fasl_serialize, rec, arity0) - if sok then STLIB_DT_BLOB = blob end + if sok then atomic_write(path, DT_FORMAT .. "\n" .. key .. "\n" .. blob) end end local function stlib_types(verbose) - local init_types = P.F["stlib.initialise-types"] - local path = stlib_sigs_path() - if not path then return init_types() end - local key = kernel_key() .. "|" .. SIGS_FORMAT - local tn = package.loaded["typecheck_native"] - local on_sig = tn and tn.record_sig or nil - local cached = stlib_cached() - if cached then - -- load every dump before running any, so a foreign-arch file falls back - -- to the real declares with nothing half-applied - local fns, lok = {}, true - for i, e in ipairs(cached.decl) do - local ok, fn = pcall(P.load_chunk, e.dump, "declare:" .. e.name) - if not ok then lok = false; break end - fns[i] = fn - end - if lok then - replay_declares(cached.decl, fns, on_sig) - if type(P.GLOBALS["shen.*gensym*"]) == "number" - and cached.gensym > P.GLOBALS["shen.*gensym*"] then - P.GLOBALS["shen.*gensym*"] = cached.gensym - end - if type(P.GLOBALS["shen.*infs*"]) == "number" - and cached.infs > P.GLOBALS["shen.*infs*"] then - P.GLOBALS["shen.*infs*"] = cached.infs - end - if verbose then io.stderr:write(" stdlib signatures (cached)\n") end - return - end - os.remove(path) - end - -- Cold: collect the (name, type) pairs the compiled initialiser declares, - -- then run the real declares through record_declares in the same order. - local live = P.F["declare"] - local decls = {} - P.F["declare"] = function(name, typ) - decls[#decls + 1] = { name = name, typ = typ } - return name - end - local ok, err = pcall(init_types) - P.F["declare"] = live - if not ok then error(err, 0) end - local out = record_declares(decls) - if out then - write_sigs(path, key, out, { - gensym = type(P.GLOBALS["shen.*gensym*"]) == "number" and P.GLOBALS["shen.*gensym*"] or 0, - infs = type(P.GLOBALS["shen.*infs*"]) == "number" and P.GLOBALS["shen.*infs*"] or 0, - }, STLIB_DT_BLOB) - end + if verbose then io.stderr:write(" stdlib signatures\n") end + P.F["stlib.initialise-types"]() end local STDLIB_PHASES = { "environment", "arities", "macros", "synonyms", @@ -1695,7 +1592,7 @@ local function load_stdlib(verbose) local hush0 = P.GLOBALS["*hush*"] local ok, err = pcall(function() -- (stlib.initialise) is exactly these phases in this order; run them - -- individually so the types phase can be served from the cache. + -- individually so the datatype phase can be served from the cache. local whole = true for _, ph in ipairs(STDLIB_PHASES) do if not P.F["stlib.initialise-" .. ph] then whole = false end diff --git a/klambda/PROVENANCE.md b/klambda/PROVENANCE.md index d9aa5bd..5b78dfc 100644 --- a/klambda/PROVENANCE.md +++ b/klambda/PROVENANCE.md @@ -1,16 +1,24 @@ # Provenance of the vendored KLambda kernel -## Current: ShenOSKernel 43.2 +## Current: ShenOSKernel 43.4 -- **Repository**: `Shen-Language/shen-sources`, tag `shen-43.2` - (tag object `7b7563e5`), commit `e6947f507ebc` -- **Release asset**: `ShenOSKernel-43.2.tar.gz` - - SHA-256: `23c71508f0de24785e1f127ea4fab440081904d81c463090bc642ee840417f32` +- **Repository**: `Shen-Language/shen-sources`, tag `shen-43.4` + (tag object `40fd335893cf7caf4c3a285e122ea0de06696430`), commit + `f34b307b490880eedcfe1f5e5d3cc24ca3d2602e` +- **Release asset**: `ShenOSKernel-43.4.tar.gz` + - SHA-256: `15e7972e6bf0cd65d37c2eba85750b8839d2dbadda41027eae0c88e5017a2756` - All 23 `.kl` files and `tests/` are byte-identical to the extracted archive. -- `(version)` reports `"43.2"` (set in `init.kl`). -- Relative to the previous vendoring (43.1 at `ec16a9f`, below) only `init.kl` - (version) and `extension-type-annotations.kl` (renumbered generated names) - differ; `t-star.kl` is identical. `tests/` adds `benchmark-coverage.shen`. +- `(version)` reports `"43.4"` (set in `init.kl`). +- Against 43.2, 17 of 23 `.kl` files differ. `kernel` and `stlib.kl` must move + together: stlib's initialiser now calls `shen.declare-with-signature` (43.3) + and `shen.update-lambda-table/precompiled` (43.4). `t-star.kl` differs but the + native typechecker's fingerprints (`scripts/kernel-fingerprints.lua`) are all + unchanged. `tests/` adds `regressions/` and `extensions/expand-dynamic/`. + +## Previous: ShenOSKernel 43.2 + +- Tag `shen-43.2`, commit `e6947f507ebc`; asset SHA-256 + `23c71508f0de24785e1f127ea4fab440081904d81c463090bc642ee840417f32`. The records of the earlier imports follow. @@ -111,9 +119,11 @@ the `lua.*` interop entries, then runs `(stlib.initialise)`. The resulting ### Standard library `klambda/stlib.kl` loads with the kernel and `(stlib.initialise)` registers -it (port-upgrades.md, 41.1). Its 290 `declare`s are cached next to the kernel -bytecode cache (`.stlib`, keyed on the kernel cache key); see -`boot.lua` `stlib_types`. `SHEN_NO_STDLIB=1` skips `(stlib.initialise)`. +it (port-upgrades.md, 41.1). Since 43.3 its 290 signatures are precompiled +`shen.declare-with-signature` forms, so there is no signature sidecar. The two +datatype rule compiles are cached next to the kernel bytecode cache +(`.stlibdt`); see `boot.lua` `stlib_datatypes`. +`SHEN_NO_STDLIB=1` skips `(stlib.initialise)`. ## Overriding diff --git a/klambda/README.md b/klambda/README.md index ebf9301..5788876 100644 --- a/klambda/README.md +++ b/klambda/README.md @@ -1,8 +1,8 @@ -# Vendored KLambda for ShenOSKernel 43.2 +# Vendored KLambda for ShenOSKernel 43.4 -These are the KLambda sources of **ShenOSKernel 43.2** (community +These are the KLambda sources of **ShenOSKernel 43.4** (community [`shen-sources`](https://github.com/Shen-Language/shen-sources) release -`shen-43.2`, commit `e6947f507ebc`), +`shen-43.4`, commit `f34b307b490880eedcfe1f5e5d3cc24ca3d2602e`), vendored byte-identical so that `shen-lua` is self-contained: you can `git clone` and run without a separate kernel checkout. See [PROVENANCE.md](PROVENANCE.md) for the exact source, checksum and the lineage @@ -11,12 +11,12 @@ interfaces are implemented by the native Lua stream layer. ## Files -There are 23 official ShenOSKernel 43.2 `.kl` files. +There are 23 official ShenOSKernel 43.4 `.kl` files. **Kernel (16):** core, declarations, dict, init, load, macros, prolog, reader, sequent, sys, t-star, toplevel, track, types, writer, yacc -**Standard library (1):** stlib — precompiled from 43.2's `lib/stlib`, registered +**Standard library (1):** stlib — precompiled from 43.4's `lib/stlib`, registered at boot by `(stlib.initialise)`. **Extensions (6):** diff --git a/klambda/core.kl b/klambda/core.kl index 8c35f8f..92aaead 100644 --- a/klambda/core.kl +++ b/klambda/core.kl @@ -121,7 +121,7 @@ (defun shen.factor (V874) (cond ((and (cons? V874) (and (= defun (hd V874)) (and (cons? (tl V874)) (and (cons? (tl (tl V874))) (and (cons? (tl (tl (tl V874)))) (and (cons? (hd (tl (tl (tl V874))))) (and (= cond (hd (hd (tl (tl (tl V874)))))) (= () (tl (tl (tl (tl V874)))))))))))) (cons defun (cons (hd (tl V874)) (cons (hd (tl (tl V874))) (cons (shen.factor-recognisors (tl (hd (tl (tl (tl V874)))))) ()))))) (true V874))) -(defun shen.factor-recognisors (V877) (cond ((and (cons? V877) (and (cons? (hd V877)) (and (= true (hd (hd V877))) (and (cons? (tl (hd V877))) (= () (tl (tl (hd V877)))))))) (hd (tl (hd V877)))) ((and (cons? V877) (and (cons? (hd V877)) (and (cons? (hd (hd V877))) (and (= and (hd (hd (hd V877)))) (and (cons? (tl (hd (hd V877)))) (and (cons? (tl (tl (hd (hd V877))))) (and (= () (tl (tl (tl (hd (hd V877)))))) (and (cons? (tl (hd V877))) (= () (tl (tl (hd V877)))))))))))) (let W878 (shen.pivot-on (hd (tl (hd (hd V877)))) V877 ()) (let W879 (fst W878) (if (shen.bad-pivot? W879) (append (cons if ()) (append (shen.recursively-factor-selectors (hd (hd V877)) (hd (tl (hd V877)))) (cons (shen.factor-recognisors (tl V877)) ()))) (let W880 (snd W878) (let W881 (shen.factor-recognisors W880) (let W882 (gensym GoTo) (let W883 (reverse (cons (cons true (cons (cons thaw (cons W882 ())) ())) W879)) (let W884 (cons let (cons W882 (cons (cons freeze (cons W881 ())) (cons (cons if (cons (hd (tl (hd (hd V877)))) (cons (shen.factor-selectors (hd (tl (hd (hd V877)))) (shen.factor-recognisors W883)) (cons (cons thaw (cons W882 ())) ())))) ())))) (shen.remove-indirection W884)))))))))) ((and (cons? V877) (and (cons? (hd V877)) (and (cons? (tl (hd V877))) (= () (tl (tl (hd V877))))))) (cons if (cons (hd (hd V877)) (cons (hd (tl (hd V877))) (cons (shen.factor-recognisors (tl V877)) ()))))) (true (shen.f-error shen.factor-recognisors)))) +(defun shen.factor-recognisors (V877) (cond ((and (cons? V877) (and (cons? (hd V877)) (and (= true (hd (hd V877))) (and (cons? (tl (hd V877))) (= () (tl (tl (hd V877)))))))) (hd (tl (hd V877)))) ((and (cons? V877) (and (cons? (hd V877)) (and (cons? (hd (hd V877))) (and (= and (hd (hd (hd V877)))) (and (cons? (tl (hd (hd V877)))) (and (cons? (tl (tl (hd (hd V877))))) (and (= () (tl (tl (tl (hd (hd V877)))))) (and (cons? (tl (hd V877))) (= () (tl (tl (hd V877)))))))))))) (let W878 (shen.pivot-on (hd (tl (hd (hd V877)))) V877 ()) (let W879 (fst W878) (if (shen.bad-pivot? W879) (append (cons if ()) (append (shen.recursively-factor-selectors (hd (hd V877)) (hd (tl (hd V877)))) (cons (shen.factor-recognisors (tl V877)) ()))) (let W880 (snd W878) (let W881 (shen.factor-recognisors W880) (let W882 (gensym GoTo) (let W883 (reverse (cons (cons true (cons (cons thaw (cons W882 ())) ())) W879)) (let W884 (cons let (cons W882 (cons (cons freeze (cons W881 ())) (cons (cons if (cons (hd (tl (hd (hd V877)))) (cons (shen.factor-selectors (hd (tl (hd (hd V877)))) (shen.factor-recognisors W883)) (cons (cons thaw (cons W882 ())) ())))) ())))) (shen.remove-indirection W884)))))))))) ((and (cons? V877) (and (cons? (hd V877)) (and (cons? (tl (hd V877))) (= () (tl (tl (hd V877))))))) (cons if (cons (hd (hd V877)) (cons (hd (tl (hd V877))) (cons (shen.factor-recognisors (tl V877)) ()))))) ((= () V877) (cons simple-error (cons "condition failure" ()))) (true (shen.f-error shen.factor-recognisors)))) (defun shen.recursively-factor-selectors (V885 V886) (cond ((and (cons? V885) (and (= let (hd V885)) (and (cons? (tl V885)) (and (cons? (tl (tl V885))) (and (cons? (tl (tl (tl V885)))) (= () (tl (tl (tl (tl V885)))))))))) (shen.restore-local (hd (tl V885)) (hd (tl (tl V885))) (shen.recursively-factor-selectors (hd (tl (tl (tl V885)))) V886))) ((and (cons? V885) (and (= and (hd V885)) (and (cons? (tl V885)) (and (cons? (tl (tl V885))) (= () (tl (tl (tl V885)))))))) (shen.restore-P (hd (tl V885)) (shen.recursively-factor-selectors (shen.factor-selectors (hd (tl V885)) (hd (tl (tl V885)))) (shen.factor-selectors (hd (tl V885)) V886)))) (true (cons V885 (cons V886 ()))))) diff --git a/klambda/dict.kl b/klambda/dict.kl index cb5a75d..8edfe5a 100644 --- a/klambda/dict.kl +++ b/klambda/dict.kl @@ -1,33 +1,33 @@ -(defun shen.dict (V4205) (cond ((< V4205 1) (simple-error (cn "invalid initial dict size: " (shen.app V4205 "" shen.s)))) (true (let W4206 (absvector (+ 3 V4205)) (let W4207 (address-> W4206 0 shen.dictionary) (let W4208 (address-> W4206 1 V4205) (let W4209 (address-> W4206 2 0) (let W4210 (shen.fillvector W4206 3 (+ 2 V4205) ()) W4206)))))))) +(defun shen.dict (V4220) (cond ((< V4220 1) (simple-error (cn "invalid initial dict size: " (shen.app V4220 "" shen.s)))) (true (let W4221 (absvector (+ 3 V4220)) (let W4222 (address-> W4221 0 shen.dictionary) (let W4223 (address-> W4221 1 V4220) (let W4224 (address-> W4221 2 0) (let W4225 (shen.fillvector W4221 3 (+ 2 V4220) ()) W4221)))))))) -(defun shen.dict? (V4211) (and (absvector? V4211) (= (trap-error (<-address V4211 0) (lambda Z4212 shen.not-dictionary)) shen.dictionary))) +(defun shen.dict? (V4226) (and (absvector? V4226) (= (trap-error (<-address V4226 0) (lambda Z4227 shen.not-dictionary)) shen.dictionary))) -(defun shen.dict-capacity (V4213) (<-address V4213 1)) +(defun shen.dict-capacity (V4228) (<-address V4228 1)) -(defun shen.dict-count (V4214) (<-address V4214 2)) +(defun shen.dict-count (V4229) (<-address V4229 2)) -(defun shen.dict-count-> (V4215 V4216) (address-> V4215 2 V4216)) +(defun shen.dict-count-> (V4230 V4231) (address-> V4230 2 V4231)) -(defun shen.<-dict-bucket (V4217 V4218) (<-address V4217 (+ 3 V4218))) +(defun shen.<-dict-bucket (V4232 V4233) (<-address V4232 (+ 3 V4233))) -(defun shen.dict-bucket-> (V4219 V4220 V4221) (address-> V4219 (+ 3 V4220) V4221)) +(defun shen.dict-bucket-> (V4234 V4235 V4236) (address-> V4234 (+ 3 V4235) V4236)) -(defun shen.dict-update-count (V4222 V4223 V4224) (let W4225 (- (length V4224) (length V4223)) (shen.dict-count-> V4222 (+ W4225 (shen.dict-count V4222))))) +(defun shen.dict-update-count (V4237 V4238 V4239) (let W4240 (- (length V4239) (length V4238)) (shen.dict-count-> V4237 (+ W4240 (shen.dict-count V4237))))) -(defun shen.dict-> (V4226 V4227 V4228) (let W4229 (hash V4227 (shen.dict-capacity V4226)) (let W4230 (shen.<-dict-bucket V4226 W4229) (let W4231 (shen.assoc-set V4227 V4228 W4230) (let W4232 (shen.dict-bucket-> V4226 W4229 W4231) (let W4233 (shen.dict-update-count V4226 W4230 W4231) V4228)))))) +(defun shen.dict-> (V4241 V4242 V4243) (let W4244 (hash V4242 (shen.dict-capacity V4241)) (let W4245 (shen.<-dict-bucket V4241 W4244) (let W4246 (shen.assoc-set V4242 V4243 W4245) (let W4247 (shen.dict-bucket-> V4241 W4244 W4246) (let W4248 (shen.dict-update-count V4241 W4245 W4246) V4243)))))) -(defun shen.<-dict (V4234 V4235) (let W4236 (hash V4235 (shen.dict-capacity V4234)) (let W4237 (shen.<-dict-bucket V4234 W4236) (let W4238 (assoc V4235 W4237) (if (empty? W4238) (simple-error (cn "value " (shen.app V4235 " not found in dict -" shen.a))) (tl W4238)))))) +(defun shen.<-dict (V4249 V4250) (let W4251 (hash V4250 (shen.dict-capacity V4249)) (let W4252 (shen.<-dict-bucket V4249 W4251) (let W4253 (assoc V4250 W4252) (if (empty? W4253) (simple-error (cn "value " (shen.app V4250 " not found in dict +" shen.a))) (tl W4253)))))) -(defun shen.dict-rm (V4239 V4240) (let W4241 (hash V4240 (shen.dict-capacity V4239)) (let W4242 (shen.<-dict-bucket V4239 W4241) (let W4243 (shen.assoc-rm V4240 W4242) (let W4244 (shen.dict-bucket-> V4239 W4241 W4243) (let W4245 (shen.dict-update-count V4239 W4242 W4243) V4240)))))) +(defun shen.dict-rm (V4254 V4255) (let W4256 (hash V4255 (shen.dict-capacity V4254)) (let W4257 (shen.<-dict-bucket V4254 W4256) (let W4258 (shen.assoc-rm V4255 W4257) (let W4259 (shen.dict-bucket-> V4254 W4256 W4258) (let W4260 (shen.dict-update-count V4254 W4257 W4258) V4255)))))) -(defun shen.dict-fold (V4246 V4247 V4248) (let W4249 (shen.dict-capacity V4247) (shen.dict-fold-h V4246 V4247 V4248 0 W4249))) +(defun shen.dict-fold (V4261 V4262 V4263) (let W4264 (shen.dict-capacity V4262) (shen.dict-fold-h V4261 V4262 V4263 0 W4264))) -(defun shen.dict-fold-h (V4251 V4252 V4253 V4254 V4255) (cond ((= V4254 V4255) V4253) (true (let W4256 (shen.<-dict-bucket V4252 V4254) (let W4257 (shen.bucket-fold V4251 W4256 V4253) (shen.dict-fold-h V4251 V4252 W4257 (+ 1 V4254) V4255)))))) +(defun shen.dict-fold-h (V4266 V4267 V4268 V4269 V4270) (cond ((= V4269 V4270) V4268) (true (let W4271 (shen.<-dict-bucket V4267 V4269) (let W4272 (shen.bucket-fold V4266 W4271 V4268) (shen.dict-fold-h V4266 V4267 W4272 (+ 1 V4269) V4270)))))) -(defun shen.bucket-fold (V4258 V4259 V4260) (cond ((= () V4259) V4260) ((and (cons? V4259) (cons? (hd V4259))) (((V4258 (hd (hd V4259))) (tl (hd V4259))) (shen.bucket-fold V4258 (tl V4259) V4260))) (true (shen.f-error shen.bucket-fold)))) +(defun shen.bucket-fold (V4273 V4274 V4275) (cond ((= () V4274) V4275) ((and (cons? V4274) (cons? (hd V4274))) (((V4273 (hd (hd V4274))) (tl (hd V4274))) (shen.bucket-fold V4273 (tl V4274) V4275))) (true (shen.f-error shen.bucket-fold)))) -(defun shen.dict-keys (V4261) (shen.dict-fold (lambda Z4262 (lambda Z4263 (lambda Z4264 (cons Z4262 Z4264)))) V4261 ())) +(defun shen.dict-keys (V4276) (shen.dict-fold (lambda Z4277 (lambda Z4278 (lambda Z4279 (cons Z4277 Z4279)))) V4276 ())) -(defun shen.dict-values (V4265) (shen.dict-fold (lambda Z4266 (lambda Z4267 (lambda Z4268 (cons Z4267 Z4268)))) V4265 ())) +(defun shen.dict-values (V4280) (shen.dict-fold (lambda Z4281 (lambda Z4282 (lambda Z4283 (cons Z4282 Z4283)))) V4280 ())) diff --git a/klambda/extension-expand-dynamic.kl b/klambda/extension-expand-dynamic.kl index 96708a4..7ede6ef 100644 --- a/klambda/extension-expand-dynamic.kl +++ b/klambda/extension-expand-dynamic.kl @@ -3,21 +3,33 @@ BSD 3-Clause License: http://opensource.org/licenses/BSD-3-Clause" (defun shen.x.expand-dynamic.initialise () (set shen.x.expand-dynamic.*arities* ())) -(defun shen.x.expand-dynamic.expand-dynamic (V7477) (cond ((= () V7477) ()) ((and (cons? V7477) (and (cons? (hd V7477)) (and (= declare (hd (hd V7477))) (and (cons? (tl (hd V7477))) (and (cons? (tl (tl (hd V7477)))) (= () (tl (tl (tl (hd V7477)))))))))) (cons (shen.x.expand-dynamic.expand-declare (hd V7477)) (shen.x.expand-dynamic.expand-dynamic (tl V7477)))) ((and (cons? V7477) (and (cons? (hd V7477)) (and (= shen.initialise-arity-table (hd (hd V7477))) (and (cons? (tl (hd V7477))) (= () (tl (tl (hd V7477)))))))) (do (set shen.x.expand-dynamic.*arities* (eval-kl (hd (tl (hd V7477))))) (cons (hd V7477) (shen.x.expand-dynamic.expand-dynamic (tl V7477))))) ((and (cons? V7477) (and (cons? (hd V7477)) (and (= shen.build-lambda-table (hd (hd V7477))) (and (cons? (tl (hd V7477))) (and (cons? (hd (tl (hd V7477)))) (and (= external (hd (hd (tl (hd V7477))))) (and (cons? (tl (hd (tl (hd V7477))))) (and (= shen (hd (tl (hd (tl (hd V7477)))))) (and (= () (tl (tl (hd (tl (hd V7477)))))) (= () (tl (tl (hd V7477))))))))))))) (let W7478 X (append (shen.x.expand-dynamic.expand-lambda-entries (cons shen.tuple (cons 1 (cons shen.pvar (cons 1 (cons shen.dictionary (cons 1 (cons shen.print-prolog-vector (cons 1 (cons shen.print-freshterm (cons 1 (cons shen.printF (cons 1 (value shen.x.expand-dynamic.*arities*)))))))))))))) (shen.x.expand-dynamic.expand-dynamic (tl V7477))))) ((cons? V7477) (cons (hd V7477) (shen.x.expand-dynamic.expand-dynamic (tl V7477)))) (true (shen.f-error shen.x.expand-dynamic.expand-dynamic)))) +(defun shen.x.expand-dynamic.expand-dynamic (V7524) (cond ((= () V7524) ()) ((and (cons? V7524) (and (cons? (hd V7524)) (and (= declare (hd (hd V7524))) (and (cons? (tl (hd V7524))) (and (cons? (tl (tl (hd V7524)))) (= () (tl (tl (tl (hd V7524)))))))))) (cons (shen.x.expand-dynamic.expand-declare (hd V7524)) (shen.x.expand-dynamic.expand-dynamic (tl V7524)))) ((and (cons? V7524) (and (cons? (hd V7524)) (and (= shen.initialise-arity-table (hd (hd V7524))) (and (cons? (tl (hd V7524))) (= () (tl (tl (hd V7524)))))))) (do (set shen.x.expand-dynamic.*arities* (eval-kl (hd (tl (hd V7524))))) (cons (hd V7524) (shen.x.expand-dynamic.expand-dynamic (tl V7524))))) ((and (cons? V7524) (and (cons? (hd V7524)) (and (= shen.build-lambda-table (hd (hd V7524))) (and (cons? (tl (hd V7524))) (and (cons? (hd (tl (hd V7524)))) (and (= external (hd (hd (tl (hd V7524))))) (and (cons? (tl (hd (tl (hd V7524))))) (and (= shen (hd (tl (hd (tl (hd V7524)))))) (and (= () (tl (tl (hd (tl (hd V7524)))))) (= () (tl (tl (hd V7524))))))))))))) (let W7525 X (append (shen.x.expand-dynamic.expand-lambda-entries (cons shen.tuple (cons 1 (cons shen.pvar (cons 1 (cons shen.dictionary (cons 1 (cons shen.print-prolog-vector (cons 1 (cons shen.print-freshterm (cons 1 (cons shen.printF (cons 1 (value shen.x.expand-dynamic.*arities*)))))))))))))) (shen.x.expand-dynamic.expand-dynamic (tl V7524))))) ((cons? V7524) (cons (hd V7524) (shen.x.expand-dynamic.expand-dynamic (tl V7524)))) (true (shen.f-error shen.x.expand-dynamic.expand-dynamic)))) -(defun shen.x.expand-dynamic.functions-with-lambdas (V7479) (cond ((= () V7479) ()) ((and (cons? V7479) (cons? (tl V7479))) (cons (hd V7479) (shen.x.expand-dynamic.functions-with-lambdas (tl (tl V7479))))) (true (shen.f-error shen.x.expand-dynamic.functions-with-lambdas)))) +(defun shen.x.expand-dynamic.functions-with-lambdas (V7526) (cond ((= () V7526) ()) ((and (cons? V7526) (cons? (tl V7526))) (cons (hd V7526) (shen.x.expand-dynamic.functions-with-lambdas (tl (tl V7526))))) (true (shen.f-error shen.x.expand-dynamic.functions-with-lambdas)))) -(defun shen.x.expand-dynamic.expand-declare (V7480) (cond ((and (cons? V7480) (and (= declare (hd V7480)) (and (cons? (tl V7480)) (and (cons? (tl (tl V7480))) (= () (tl (tl (tl V7480)))))))) (let W7481 (eval-kl (hd (tl (tl V7480)))) (let W7482 (shen.prolog-abstraction W7481) (let W7483 (cons set (cons shen.*sigf* (cons (cons shen.assoc-> (cons (hd (tl V7480)) (cons W7482 (cons (cons value (cons shen.*sigf* ())) ())))) ()))) W7483)))) (true (shen.f-error shen.x.expand-dynamic.expand-declare)))) +(defun shen.x.expand-dynamic.expand-declare (V7527) (cond ((and (cons? V7527) (and (= declare (hd V7527)) (and (cons? (tl V7527)) (and (cons? (tl (tl V7527))) (= () (tl (tl (tl V7527)))))))) (let W7528 (eval-kl (hd (tl (tl V7527)))) (let W7529 (shen.prolog-abstraction W7528) (let W7530 (cons set (cons shen.*sigf* (cons (cons shen.assoc-> (cons (hd (tl V7527)) (cons W7529 (cons (cons value (cons shen.*sigf* ())) ())))) ()))) W7530)))) (true (shen.f-error shen.x.expand-dynamic.expand-declare)))) -(defun shen.x.expand-dynamic.expand-lambda-entries (V7484) (cond ((= () V7484) ()) ((and (cons? V7484) (cons? (tl V7484))) (append (shen.x.expand-dynamic.expand-lambda-form-entry (hd V7484) (hd (tl V7484))) (shen.x.expand-dynamic.expand-lambda-entries (tl (tl V7484))))) (true (simple-error (cn "expand-lambda-entries: got unexpected " (shen.app V7484 "" shen.a)))))) +(defun shen.x.expand-dynamic.expand-declare/checked (V7531) (cond ((and (cons? V7531) (and (= declare (hd V7531)) (and (cons? (tl V7531)) (and (cons? (tl (tl V7531))) (and (= () (tl (tl (tl V7531)))) (shen.x.expand-dynamic.literal-signature? (hd (tl (tl V7531))))))))) (let W7532 (shen.prolog-abstraction (eval-kl (hd (tl (tl V7531))))) (cons shen.declare-with-signature (cons (hd (tl V7531)) (cons (hd (tl (tl V7531))) (cons (cons freeze (cons W7532 ())) ())))))) (true V7531))) -(defun shen.x.expand-dynamic.expand-lambda-form-entry (V7493 V7494) (cond ((= package V7493) ()) ((= receive V7493) ()) ((= list V7493) ()) ((= foreign V7493) ()) (true (if (= V7494 -1) () (if (= V7494 0) () (cons (cons shen.set-lambda-form-entry (cons (cons cons (cons V7493 (cons (shen.lambda-function (cons V7493 ()) V7494) ()))) ())) ())))))) +(defun shen.x.expand-dynamic.literal-signature? (V7533) (cond ((and (cons? V7533) (and (= protect (hd V7533)) (and (cons? (tl V7533)) (= () (tl (tl V7533)))))) (symbol? (hd (tl V7533)))) ((and (cons? V7533) (and (= cons (hd V7533)) (and (cons? (tl V7533)) (and (cons? (tl (tl V7533))) (= () (tl (tl (tl V7533)))))))) (and (shen.x.expand-dynamic.literal-signature? (hd (tl V7533))) (shen.x.expand-dynamic.literal-signature? (hd (tl (tl V7533)))))) ((= () V7533) true) (true (or (symbol? V7533) (or (number? V7533) (or (string? V7533) (boolean? V7533))))))) -(defun shen.x.expand-dynamic.split-defuns-h (V7495 V7496) (cond ((and (cons? V7495) (and (cons? (hd V7495)) (and (= defun (hd (hd V7495))) (tuple? V7496)))) (shen.x.expand-dynamic.split-defuns-h (tl V7495) (@p (cons (hd V7495) (fst V7496)) (snd V7496)))) ((and (cons? V7495) (tuple? V7496)) (shen.x.expand-dynamic.split-defuns-h (tl V7495) (@p (fst V7496) (cons (hd V7495) (snd V7496))))) ((and (= () V7495) (tuple? V7496)) (@p (reverse (fst V7496)) (reverse (snd V7496)))) (true (shen.f-error shen.x.expand-dynamic.split-defuns-h)))) +(defun shen.x.expand-dynamic.expand-lambda-entries (V7534) (cond ((= () V7534) ()) ((and (cons? V7534) (cons? (tl V7534))) (append (shen.x.expand-dynamic.expand-lambda-form-entry (hd V7534) (hd (tl V7534))) (shen.x.expand-dynamic.expand-lambda-entries (tl (tl V7534))))) (true (simple-error (cn "expand-lambda-entries: got unexpected " (shen.app V7534 "" shen.a)))))) -(defun shen.x.expand-dynamic.split-defuns (V7497) (shen.x.expand-dynamic.split-defuns-h V7497 (@p () ()))) +(defun shen.x.expand-dynamic.expand-lambda-form-entry (V7543 V7544) (cond ((= package V7543) ()) ((= receive V7543) ()) ((= list V7543) ()) ((= foreign V7543) ()) (true (if (= V7544 -1) () (if (= V7544 0) () (cons (cons shen.set-lambda-form-entry (cons (cons cons (cons V7543 (cons (shen.lambda-function (cons V7543 ()) V7544) ()))) ())) ())))))) -(defun shen.x.expand-dynamic.wrap-in-defun (V7498 V7499 V7500) (cons defun (cons V7498 (cons V7499 (cons (shen.x.expand-dynamic.to-single-expression V7498 V7500) ()))))) +(defun shen.x.expand-dynamic.expand-initializer (V7545 V7546 V7547) (shen.x.expand-dynamic.expand-initializer-h V7545 () V7546 V7547)) -(defun shen.x.expand-dynamic.to-single-expression (V7505 V7506) (cond ((and (cons? V7506) (= () (tl V7506))) (hd V7506)) ((cons? V7506) (cons do (cons (hd V7506) (cons (shen.x.expand-dynamic.to-single-expression V7505 (tl V7506)) ())))) (true (simple-error (cn "to-single-expression: got empty list of expressions: " (shen.app V7505 "" shen.a)))))) +(defun shen.x.expand-dynamic.expand-initializer-h (V7572 V7573 V7574 V7575) (cond ((V7575 V7572) V7572) ((and (cons? V7572) (and (= protect (hd V7572)) (and (cons? (tl V7572)) (= () (tl (tl V7572)))))) V7572) ((and (cons? V7572) (and (= defun (hd V7572)) (and (cons? (tl V7572)) (and (cons? (tl (tl V7572))) (and (cons? (tl (tl (tl V7572)))) (= () (tl (tl (tl (tl V7572)))))))))) (cons defun (cons (hd (tl V7572)) (cons (hd (tl (tl V7572))) (cons (shen.x.expand-dynamic.expand-initializer-h (hd (tl (tl (tl V7572)))) (hd (tl (tl V7572))) V7574 V7575) ()))))) ((and (cons? V7572) (and (= lambda (hd V7572)) (and (cons? (tl V7572)) (and (cons? (tl (tl V7572))) (= () (tl (tl (tl V7572)))))))) (cons lambda (cons (hd (tl V7572)) (cons (shen.x.expand-dynamic.expand-initializer-h (hd (tl (tl V7572))) (cons (hd (tl V7572)) V7573) V7574 V7575) ())))) ((and (cons? V7572) (and (= let (hd V7572)) (and (cons? (tl V7572)) (and (cons? (tl (tl V7572))) (and (cons? (tl (tl (tl V7572)))) (= () (tl (tl (tl (tl V7572)))))))))) (cons let (cons (hd (tl V7572)) (cons (shen.x.expand-dynamic.expand-initializer-h (hd (tl (tl V7572))) V7573 V7574 V7575) (cons (shen.x.expand-dynamic.expand-initializer-h (hd (tl (tl (tl V7572)))) (cons (hd (tl V7572)) V7573) V7574 V7575) ()))))) ((and (cons? V7572) (= cond (hd V7572))) (cons cond (map (lambda Z7576 (shen.x.expand-dynamic.expand-initializer-clause Z7576 V7573 V7574 V7575)) (tl V7572)))) ((and (cons? V7572) (= shen.update-lambda-table/precompiled (hd V7572))) V7572) ((and (cons? V7572) (and (= declare (hd V7572)) (and (cons? (tl V7572)) (and (cons? (tl (tl V7572))) (and (= () (tl (tl (tl V7572)))) (and (empty? (intersection (cons declare (cons shen.declare-with-signature (cons is! (cons cons (cons shen.newpv (cons shen.gc ())))))) V7573)) (shen.x.expand-dynamic.literal-in-scope? (hd (tl (tl V7572))) V7573))))))) (shen.x.expand-dynamic.expand-declare/checked V7572)) ((and (cons? V7572) (and (= update-lambda-table (hd V7572)) (and (cons? (tl V7572)) (and (cons? (tl (tl V7572))) (and (= () (tl (tl (tl V7572)))) (and (and (symbol? (hd (tl V7572))) (element? (hd (tl V7572)) V7574)) (and (integer? (hd (tl (tl V7572)))) (and (>= (hd (tl (tl V7572))) 0) (and (not (element? (hd (tl V7572)) V7573)) (and (not (element? update-lambda-table V7573)) (and (not (element? shen.precompiled-function? V7573)) (not (element? shen.update-lambda-table/precompiled V7573))))))))))))) (cons shen.update-lambda-table/precompiled (cons (hd (tl V7572)) (cons (hd (tl (tl V7572))) (cons (cons freeze (cons (if (= (hd (tl (tl V7572))) 0) false (shen.lambda-function (cons (hd (tl V7572)) ()) (hd (tl (tl V7572))))) ())) (cons (cons shen.precompiled-function? (cons (hd (tl V7572)) ())) ())))))) ((cons? V7572) (cons (shen.x.expand-dynamic.expand-initializer-h (hd V7572) V7573 V7574 V7575) (map (lambda Z7577 (shen.x.expand-dynamic.expand-initializer-h Z7577 V7573 V7574 V7575)) (tl V7572)))) (true V7572))) + +(defun shen.x.expand-dynamic.expand-initializer-clause (V7578 V7579 V7580 V7581) (cond ((and (cons? V7578) (and (cons? (tl V7578)) (= () (tl (tl V7578))))) (cons (shen.x.expand-dynamic.expand-initializer-h (hd V7578) V7579 V7580 V7581) (cons (shen.x.expand-dynamic.expand-initializer-h (hd (tl V7578)) V7579 V7580 V7581) ()))) (true (shen.f-error shen.x.expand-dynamic.expand-initializer-clause)))) + +(defun shen.x.expand-dynamic.literal-in-scope? (V7584 V7585) (cond ((and (cons? V7584) (and (= protect (hd V7584)) (and (cons? (tl V7584)) (= () (tl (tl V7584)))))) (symbol? (hd (tl V7584)))) ((and (cons? V7584) (and (= cons (hd V7584)) (and (cons? (tl V7584)) (and (cons? (tl (tl V7584))) (= () (tl (tl (tl V7584)))))))) (and (not (element? cons V7585)) (and (shen.x.expand-dynamic.literal-in-scope? (hd (tl V7584)) V7585) (shen.x.expand-dynamic.literal-in-scope? (hd (tl (tl V7584))) V7585)))) (true (and (shen.x.expand-dynamic.literal-signature? V7584) (not (element? V7584 V7585)))))) + +(defun shen.x.expand-dynamic.split-defuns-h (V7586 V7587) (cond ((and (cons? V7586) (and (cons? (hd V7586)) (and (= defun (hd (hd V7586))) (tuple? V7587)))) (shen.x.expand-dynamic.split-defuns-h (tl V7586) (@p (cons (hd V7586) (fst V7587)) (snd V7587)))) ((and (cons? V7586) (tuple? V7587)) (shen.x.expand-dynamic.split-defuns-h (tl V7586) (@p (fst V7587) (cons (hd V7586) (snd V7587))))) ((and (= () V7586) (tuple? V7587)) (@p (reverse (fst V7587)) (reverse (snd V7587)))) (true (shen.f-error shen.x.expand-dynamic.split-defuns-h)))) + +(defun shen.x.expand-dynamic.split-defuns (V7588) (shen.x.expand-dynamic.split-defuns-h V7588 (@p () ()))) + +(defun shen.x.expand-dynamic.wrap-in-defun (V7589 V7590 V7591) (cons defun (cons V7589 (cons V7590 (cons (shen.x.expand-dynamic.to-single-expression V7589 V7591) ()))))) + +(defun shen.x.expand-dynamic.to-single-expression (V7596 V7597) (cond ((and (cons? V7597) (= () (tl V7597))) (hd V7597)) ((cons? V7597) (cons do (cons (hd V7597) (cons (shen.x.expand-dynamic.to-single-expression V7596 (tl V7597)) ())))) (true (simple-error (cn "to-single-expression: got empty list of expressions: " (shen.app V7596 "" shen.a)))))) diff --git a/klambda/extension-features.kl b/klambda/extension-features.kl index 558d45b..52e2c60 100644 --- a/klambda/extension-features.kl +++ b/klambda/extension-features.kl @@ -1,11 +1,11 @@ "Copyright (c) 2019 Bruno Deferrari. BSD 3-Clause License: http://opensource.org/licenses/BSD-3-Clause" -(defun shen.x.features.cond-expand-macro (V7313) (cond ((and (cons? V7313) (and (= shen.x.features.cond-expand (hd V7313)) (= () (tl V7313)))) (simple-error "Unfulfilled shen.x.features.cond-expand clause.")) ((and (cons? V7313) (and (= shen.x.features.cond-expand (hd V7313)) (and (cons? (tl V7313)) (and (= true (hd (tl V7313))) (and (cons? (tl (tl V7313))) (= () (tl (tl (tl V7313))))))))) (hd (tl (tl V7313)))) ((and (cons? V7313) (and (= shen.x.features.cond-expand (hd V7313)) (and (cons? (tl V7313)) (and (cons? (hd (tl V7313))) (and (= and (hd (hd (tl V7313)))) (and (= () (tl (hd (tl V7313)))) (cons? (tl (tl V7313))))))))) (hd (tl (tl V7313)))) ((and (cons? V7313) (and (= shen.x.features.cond-expand (hd V7313)) (and (cons? (tl V7313)) (and (cons? (hd (tl V7313))) (and (= and (hd (hd (tl V7313)))) (and (cons? (tl (hd (tl V7313)))) (cons? (tl (tl V7313))))))))) (cons shen.x.features.cond-expand (cons (hd (tl (hd (tl V7313)))) (cons (cons shen.x.features.cond-expand (cons (cons and (tl (tl (hd (tl V7313))))) (tl (tl V7313)))) (tl (tl (tl V7313))))))) ((and (cons? V7313) (and (= shen.x.features.cond-expand (hd V7313)) (and (cons? (tl V7313)) (and (cons? (hd (tl V7313))) (and (= or (hd (hd (tl V7313)))) (and (= () (tl (hd (tl V7313)))) (cons? (tl (tl V7313))))))))) (cons shen.x.features.cond-expand (tl (tl (tl V7313))))) ((and (cons? V7313) (and (= shen.x.features.cond-expand (hd V7313)) (and (cons? (tl V7313)) (and (cons? (hd (tl V7313))) (and (= or (hd (hd (tl V7313)))) (and (cons? (tl (hd (tl V7313)))) (cons? (tl (tl V7313))))))))) (cons shen.x.features.cond-expand (cons (hd (tl (hd (tl V7313)))) (cons (hd (tl (tl V7313))) (cons true (cons (cons shen.x.features.cond-expand (cons (cons or (tl (tl (hd (tl V7313))))) (tl (tl V7313)))) ())))))) ((and (cons? V7313) (and (= shen.x.features.cond-expand (hd V7313)) (and (cons? (tl V7313)) (and (cons? (hd (tl V7313))) (and (= not (hd (hd (tl V7313)))) (and (cons? (tl (hd (tl V7313)))) (and (= () (tl (tl (hd (tl V7313))))) (cons? (tl (tl V7313)))))))))) (cons shen.x.features.cond-expand (cons (hd (tl (hd (tl V7313)))) (cons (cons shen.x.features.cond-expand (tl (tl (tl V7313)))) (cons true (cons (hd (tl (tl V7313))) ())))))) ((and (cons? V7313) (and (= shen.x.features.cond-expand (hd V7313)) (and (cons? (tl V7313)) (and (cons? (tl (tl V7313))) (element? (hd (tl V7313)) (value shen.x.features.*features*)))))) (hd (tl (tl V7313)))) ((and (cons? V7313) (and (= shen.x.features.cond-expand (hd V7313)) (and (cons? (tl V7313)) (cons? (tl (tl V7313)))))) (cons shen.x.features.cond-expand (tl (tl (tl V7313))))) (true V7313))) +(defun shen.x.features.cond-expand-macro (V7334) (cond ((and (cons? V7334) (and (= shen.x.features.cond-expand (hd V7334)) (= () (tl V7334)))) (simple-error "Unfulfilled shen.x.features.cond-expand clause.")) ((and (cons? V7334) (and (= shen.x.features.cond-expand (hd V7334)) (and (cons? (tl V7334)) (and (= true (hd (tl V7334))) (and (cons? (tl (tl V7334))) (= () (tl (tl (tl V7334))))))))) (hd (tl (tl V7334)))) ((and (cons? V7334) (and (= shen.x.features.cond-expand (hd V7334)) (and (cons? (tl V7334)) (and (cons? (hd (tl V7334))) (and (= and (hd (hd (tl V7334)))) (and (= () (tl (hd (tl V7334)))) (cons? (tl (tl V7334))))))))) (hd (tl (tl V7334)))) ((and (cons? V7334) (and (= shen.x.features.cond-expand (hd V7334)) (and (cons? (tl V7334)) (and (cons? (hd (tl V7334))) (and (= and (hd (hd (tl V7334)))) (and (cons? (tl (hd (tl V7334)))) (cons? (tl (tl V7334))))))))) (cons shen.x.features.cond-expand (cons (hd (tl (hd (tl V7334)))) (cons (cons shen.x.features.cond-expand (cons (cons and (tl (tl (hd (tl V7334))))) (tl (tl V7334)))) (tl (tl (tl V7334))))))) ((and (cons? V7334) (and (= shen.x.features.cond-expand (hd V7334)) (and (cons? (tl V7334)) (and (cons? (hd (tl V7334))) (and (= or (hd (hd (tl V7334)))) (and (= () (tl (hd (tl V7334)))) (cons? (tl (tl V7334))))))))) (cons shen.x.features.cond-expand (tl (tl (tl V7334))))) ((and (cons? V7334) (and (= shen.x.features.cond-expand (hd V7334)) (and (cons? (tl V7334)) (and (cons? (hd (tl V7334))) (and (= or (hd (hd (tl V7334)))) (and (cons? (tl (hd (tl V7334)))) (cons? (tl (tl V7334))))))))) (cons shen.x.features.cond-expand (cons (hd (tl (hd (tl V7334)))) (cons (hd (tl (tl V7334))) (cons true (cons (cons shen.x.features.cond-expand (cons (cons or (tl (tl (hd (tl V7334))))) (tl (tl V7334)))) ())))))) ((and (cons? V7334) (and (= shen.x.features.cond-expand (hd V7334)) (and (cons? (tl V7334)) (and (cons? (hd (tl V7334))) (and (= not (hd (hd (tl V7334)))) (and (cons? (tl (hd (tl V7334)))) (and (= () (tl (tl (hd (tl V7334))))) (cons? (tl (tl V7334)))))))))) (cons shen.x.features.cond-expand (cons (hd (tl (hd (tl V7334)))) (cons (cons shen.x.features.cond-expand (tl (tl (tl V7334)))) (cons true (cons (hd (tl (tl V7334))) ())))))) ((and (cons? V7334) (and (= shen.x.features.cond-expand (hd V7334)) (and (cons? (tl V7334)) (and (cons? (tl (tl V7334))) (element? (hd (tl V7334)) (value shen.x.features.*features*)))))) (hd (tl (tl V7334)))) ((and (cons? V7334) (and (= shen.x.features.cond-expand (hd V7334)) (and (cons? (tl V7334)) (cons? (tl (tl V7334)))))) (cons shen.x.features.cond-expand (tl (tl (tl V7334))))) (true V7334))) (defun shen.x.features.current () (value shen.x.features.*features*)) -(defun shen.x.features.initialise (V7314) (do (declare shen.x.features.initialise (cons (cons list (cons symbol ())) (cons --> (cons (cons list (cons symbol ())) ())))) (do (declare shen.x.features.current (cons --> (cons (cons list (cons symbol ())) ()))) (do (declare shen.x.features.add (cons symbol (cons --> (cons (cons list (cons symbol ())) ())))) (let W7315 (trap-error (value shen.x.features.*features*) (lambda Z7316 (do (set shen.x.features.*features* ()) (do (shen.set-lambda-form-entry (cons shen.x.features.cond-expand-macro (lambda Z7317 (shen.x.features.cond-expand-macro Z7317)))) (shen.record-macro shen.x.features.cond-expand-macro (lambda Z7318 (shen.x.features.cond-expand-macro Z7318))))))) (let W7319 (shen.x.features.current) (let W7320 (set shen.x.features.*features* V7314) W7319))))))) +(defun shen.x.features.initialise (V7335) (do (shen.declare-with-signature shen.x.features.initialise (cons (cons list (cons symbol ())) (cons --> (cons (cons list (cons symbol ())) ()))) (freeze (lambda V7350 (lambda B7346 (lambda L7347 (lambda Key7348 (lambda C7349 (is! V7350 (cons (cons list (cons symbol ())) (cons --> (cons (cons list (cons symbol ())) ()))) B7346 L7347 Key7348 C7349)))))))) (do (shen.declare-with-signature shen.x.features.current (cons --> (cons (cons list (cons symbol ())) ())) (freeze (lambda V7355 (lambda B7351 (lambda L7352 (lambda Key7353 (lambda C7354 (is! V7355 (cons --> (cons (cons list (cons symbol ())) ())) B7351 L7352 Key7353 C7354)))))))) (do (shen.declare-with-signature shen.x.features.add (cons symbol (cons --> (cons (cons list (cons symbol ())) ()))) (freeze (lambda V7360 (lambda B7356 (lambda L7357 (lambda Key7358 (lambda C7359 (is! V7360 (cons symbol (cons --> (cons (cons list (cons symbol ())) ()))) B7356 L7357 Key7358 C7359)))))))) (let W7336 (trap-error (value shen.x.features.*features*) (lambda Z7337 (do (set shen.x.features.*features* ()) (do (shen.set-lambda-form-entry (cons shen.x.features.cond-expand-macro (lambda Z7338 (shen.x.features.cond-expand-macro Z7338)))) (shen.record-macro shen.x.features.cond-expand-macro (lambda Z7339 (shen.x.features.cond-expand-macro Z7339))))))) (let W7340 (shen.x.features.current) (let W7341 (set shen.x.features.*features* V7335) W7340))))))) -(defun shen.x.features.add (V7321) (let W7322 (shen.x.features.current) (let W7323 (set shen.x.features.*features* (adjoin V7321 W7322)) W7322))) +(defun shen.x.features.add (V7342) (let W7343 (shen.x.features.current) (let W7344 (set shen.x.features.*features* (adjoin V7342 W7343)) W7343))) diff --git a/klambda/extension-launcher.kl b/klambda/extension-launcher.kl index 012ad2d..160d4fb 100644 --- a/klambda/extension-launcher.kl +++ b/klambda/extension-launcher.kl @@ -1,12 +1,12 @@ "Copyright (c) 2019 Bruno Deferrari. BSD 3-Clause License: http://opensource.org/licenses/BSD-3-Clause" -(defun shen.x.launcher.quiet-load (V7337) (let W7338 (read-file V7337) (map (lambda Z7339 (eval Z7339)) W7338))) +(defun shen.x.launcher.quiet-load (V7374) (let W7375 (read-file V7374) (map (lambda Z7376 (eval Z7376)) W7375))) (defun shen.x.launcher.version-string () (shen.app (version) (cn " " (shen.app (cons port (cons (cons (language) (cons (port) ())) (cons implementation (cons (cons (implementation) (cons (release) ())) ())))) " " shen.r)) shen.a)) -(defun shen.x.launcher.help-text (V7340) (cn "Usage: " (shen.app V7340 " [--version] [--help] [] +(defun shen.x.launcher.help-text (V7377) (cn "Usage: " (shen.app V7377 " [--version] [--help] [] commands: repl @@ -31,27 +31,27 @@ commands: Launches the interactive REPL after evaluating all the previous expresions." shen.a))) -(defun shen.x.launcher.execute-all (V7341) (cond ((= () V7341) (cons success ())) ((cons? V7341) (do (thaw (hd V7341)) (shen.x.launcher.execute-all (tl V7341)))) (true (shen.f-error shen.x.launcher.execute-all)))) +(defun shen.x.launcher.execute-all (V7378) (cond ((= () V7378) (cons success ())) ((cons? V7378) (do (thaw (hd V7378)) (shen.x.launcher.execute-all (tl V7378)))) (true (shen.f-error shen.x.launcher.execute-all)))) -(defun shen.x.launcher.eval-string (V7342) (eval (head (read-from-string V7342)))) +(defun shen.x.launcher.eval-string (V7379) (eval (head (read-from-string V7379)))) -(defun shen.x.launcher.eval-flag-map (V7345) (cond ((= "-e" V7345) "--eval") ((= "-l" V7345) "--load") ((= "-q" V7345) "--quiet") ((= "-s" V7345) "--set") ((= "-r" V7345) "--repl") (true false))) +(defun shen.x.launcher.eval-flag-map (V7382) (cond ((= "-e" V7382) "--eval") ((= "-l" V7382) "--load") ((= "-q" V7382) "--quiet") ((= "-s" V7382) "--set") ((= "-r" V7382) "--repl") (true false))) -(defun shen.x.launcher.eval-command-h (V7350 V7351) (cond ((= () V7350) (shen.x.launcher.execute-all (reverse V7351))) ((and (cons? V7350) (and (= "--eval" (hd V7350)) (cons? (tl V7350)))) (shen.x.launcher.eval-command-h (tl (tl V7350)) (cons (freeze (pr (shen.app (shen.x.launcher.eval-string (hd (tl V7350))) " -" shen.a) (stoutput))) V7351))) ((and (cons? V7350) (and (= "--load" (hd V7350)) (cons? (tl V7350)))) (shen.x.launcher.eval-command-h (tl (tl V7350)) (cons (freeze (load (hd (tl V7350)))) V7351))) ((and (cons? V7350) (= "--quiet" (hd V7350))) (shen.x.launcher.eval-command-h (tl V7350) (cons (freeze (set *hush* true)) V7351))) ((and (cons? V7350) (and (= "--set" (hd V7350)) (and (cons? (tl V7350)) (cons? (tl (tl V7350)))))) (shen.x.launcher.eval-command-h (tl (tl (tl V7350))) (cons (freeze (set (shen.x.launcher.eval-string (hd (tl V7350))) (shen.x.launcher.eval-string (hd (tl (tl V7350)))))) V7351))) ((and (cons? V7350) (= "--repl" (hd V7350))) (do (shen.x.launcher.eval-command-h () V7351) (cons launch-repl (tl V7350)))) (true (let Freeze7353 (freeze (cond ((cons? V7350) (cons error (cons (cn "Invalid eval argument: " (shen.app (hd V7350) "" shen.a)) ()))) (true (shen.f-error shen.x.launcher.eval-command-h)))) (if (cons? V7350) (let Result7354 (let W7352 (shen.x.launcher.eval-flag-map (hd V7350)) (if (= false W7352) (fail) (shen.x.launcher.eval-command-h (cons W7352 (tl V7350)) V7351))) (if (= Result7354 (fail)) (thaw Freeze7353) Result7354)) (thaw Freeze7353)))))) +(defun shen.x.launcher.eval-command-h (V7387 V7388) (cond ((= () V7387) (shen.x.launcher.execute-all (reverse V7388))) ((and (cons? V7387) (and (= "--eval" (hd V7387)) (cons? (tl V7387)))) (shen.x.launcher.eval-command-h (tl (tl V7387)) (cons (freeze (pr (shen.app (shen.x.launcher.eval-string (hd (tl V7387))) " +" shen.a) (stoutput))) V7388))) ((and (cons? V7387) (and (= "--load" (hd V7387)) (cons? (tl V7387)))) (shen.x.launcher.eval-command-h (tl (tl V7387)) (cons (freeze (load (hd (tl V7387)))) V7388))) ((and (cons? V7387) (= "--quiet" (hd V7387))) (shen.x.launcher.eval-command-h (tl V7387) (cons (freeze (set *hush* true)) V7388))) ((and (cons? V7387) (and (= "--set" (hd V7387)) (and (cons? (tl V7387)) (cons? (tl (tl V7387)))))) (shen.x.launcher.eval-command-h (tl (tl (tl V7387))) (cons (freeze (set (shen.x.launcher.eval-string (hd (tl V7387))) (shen.x.launcher.eval-string (hd (tl (tl V7387)))))) V7388))) ((and (cons? V7387) (= "--repl" (hd V7387))) (do (shen.x.launcher.eval-command-h () V7388) (cons launch-repl (tl V7387)))) (true (let Freeze7390 (freeze (cond ((cons? V7387) (cons error (cons (cn "Invalid eval argument: " (shen.app (hd V7387) "" shen.a)) ()))) (true (shen.f-error shen.x.launcher.eval-command-h)))) (if (cons? V7387) (let Result7391 (let W7389 (shen.x.launcher.eval-flag-map (hd V7387)) (if (= false W7389) (fail) (shen.x.launcher.eval-command-h (cons W7389 (tl V7387)) V7388))) (if (= Result7391 (fail)) (thaw Freeze7390) Result7391)) (thaw Freeze7390)))))) -(defun shen.x.launcher.eval-command (V7355) (shen.x.launcher.eval-command-h V7355 ())) +(defun shen.x.launcher.eval-command (V7392) (shen.x.launcher.eval-command-h V7392 ())) -(defun shen.x.launcher.script-command (V7356 V7357) (do (set *argv* (cons V7356 V7357)) (do (shen.x.launcher.quiet-load V7356) (cons success ())))) +(defun shen.x.launcher.script-command (V7393 V7394) (do (set *argv* (cons V7393 V7394)) (do (shen.x.launcher.quiet-load V7393) (cons success ())))) -(defun shen.x.launcher.launch-shen (V7358) (cond ((and (cons? V7358) (= () (tl V7358))) (cons launch-repl ())) ((and (cons? V7358) (and (cons? (tl V7358)) (= "--help" (hd (tl V7358))))) (cons show-help (cons (shen.x.launcher.help-text (hd V7358)) ()))) ((and (cons? V7358) (and (cons? (tl V7358)) (= "--version" (hd (tl V7358))))) (cons success (cons (shen.x.launcher.version-string) ()))) ((and (cons? V7358) (and (cons? (tl V7358)) (= "repl" (hd (tl V7358))))) (cons launch-repl (tl (tl V7358)))) ((and (cons? V7358) (and (cons? (tl V7358)) (and (= "script" (hd (tl V7358))) (cons? (tl (tl V7358)))))) (shen.x.launcher.script-command (hd (tl (tl V7358))) (tl (tl (tl V7358))))) ((and (cons? V7358) (and (cons? (tl V7358)) (= "eval" (hd (tl V7358))))) (shen.x.launcher.eval-command (tl (tl V7358)))) ((and (cons? V7358) (cons? (tl V7358))) (cons unknown-arguments V7358)) (true (shen.f-error shen.x.launcher.launch-shen)))) +(defun shen.x.launcher.launch-shen (V7395) (cond ((and (cons? V7395) (= () (tl V7395))) (cons launch-repl ())) ((and (cons? V7395) (and (cons? (tl V7395)) (= "--help" (hd (tl V7395))))) (cons show-help (cons (shen.x.launcher.help-text (hd V7395)) ()))) ((and (cons? V7395) (and (cons? (tl V7395)) (= "--version" (hd (tl V7395))))) (cons success (cons (shen.x.launcher.version-string) ()))) ((and (cons? V7395) (and (cons? (tl V7395)) (= "repl" (hd (tl V7395))))) (cons launch-repl (tl (tl V7395)))) ((and (cons? V7395) (and (cons? (tl V7395)) (and (= "script" (hd (tl V7395))) (cons? (tl (tl V7395)))))) (shen.x.launcher.script-command (hd (tl (tl V7395))) (tl (tl (tl V7395))))) ((and (cons? V7395) (and (cons? (tl V7395)) (= "eval" (hd (tl V7395))))) (shen.x.launcher.eval-command (tl (tl V7395)))) ((and (cons? V7395) (cons? (tl V7395))) (cons unknown-arguments V7395)) (true (shen.f-error shen.x.launcher.launch-shen)))) -(defun shen.x.launcher.default-handle-result (V7361) (cond ((and (cons? V7361) (and (= success (hd V7361)) (= () (tl V7361)))) shen.x.launcher.done) ((and (cons? V7361) (and (= success (hd V7361)) (and (cons? (tl V7361)) (= () (tl (tl V7361)))))) (pr (shen.app (hd (tl V7361)) " -" shen.a) (stoutput))) ((and (cons? V7361) (and (= error (hd V7361)) (and (cons? (tl V7361)) (= () (tl (tl V7361)))))) (pr (cn "ERROR: " (shen.app (hd (tl V7361)) " -" shen.a)) (stoutput))) ((and (cons? V7361) (= launch-repl (hd V7361))) (shen.repl)) ((and (cons? V7361) (and (= show-help (hd V7361)) (and (cons? (tl V7361)) (= () (tl (tl V7361)))))) (pr (shen.app (hd (tl V7361)) " -" shen.a) (stoutput))) ((and (cons? V7361) (and (= unknown-arguments (hd V7361)) (and (cons? (tl V7361)) (cons? (tl (tl V7361)))))) (pr (cn "ERROR: Invalid argument: " (shen.app (hd (tl (tl V7361))) (cn " -Try `" (shen.app (hd (tl V7361)) " --help' for more information. +(defun shen.x.launcher.default-handle-result (V7398) (cond ((and (cons? V7398) (and (= success (hd V7398)) (= () (tl V7398)))) shen.x.launcher.done) ((and (cons? V7398) (and (= success (hd V7398)) (and (cons? (tl V7398)) (= () (tl (tl V7398)))))) (pr (shen.app (hd (tl V7398)) " +" shen.a) (stoutput))) ((and (cons? V7398) (and (= error (hd V7398)) (and (cons? (tl V7398)) (= () (tl (tl V7398)))))) (pr (cn "ERROR: " (shen.app (hd (tl V7398)) " +" shen.a)) (stoutput))) ((and (cons? V7398) (= launch-repl (hd V7398))) (shen.repl)) ((and (cons? V7398) (and (= show-help (hd V7398)) (and (cons? (tl V7398)) (= () (tl (tl V7398)))))) (pr (shen.app (hd (tl V7398)) " +" shen.a) (stoutput))) ((and (cons? V7398) (and (= unknown-arguments (hd V7398)) (and (cons? (tl V7398)) (cons? (tl (tl V7398)))))) (pr (cn "ERROR: Invalid argument: " (shen.app (hd (tl (tl V7398))) (cn " +Try `" (shen.app (hd (tl V7398)) " --help' for more information. " shen.a)) shen.a)) (stoutput))) (true (shen.f-error shen.x.launcher.default-handle-result)))) -(defun shen.x.launcher.main (V7362) (shen.x.launcher.default-handle-result (shen.x.launcher.launch-shen V7362))) +(defun shen.x.launcher.main (V7399) (shen.x.launcher.default-handle-result (shen.x.launcher.launch-shen V7399))) diff --git a/klambda/extension-namespaces.kl b/klambda/extension-namespaces.kl index 0c6c59b..ba970e5 100644 --- a/klambda/extension-namespaces.kl +++ b/klambda/extension-namespaces.kl @@ -1,31 +1,31 @@ "Copyright (c) 2026 Bruno Deferrari. All rights reserved. BSD 3-Clause License: http://opensource.org/licenses/BSD-3-Clause" -(defun shen.x.namespaces.initialise () (shen.register-source-form shen.x.namespace (lambda Z7531 (shen.x.namespaces.expand Z7531)))) +(defun shen.x.namespaces.initialise () (shen.register-source-form shen.x.namespace (lambda Z7622 (shen.x.namespaces.expand Z7622)))) -(defun shen.x.namespaces.expand (V7532) (cond ((and (cons? V7532) (and (= shen.x.namespace (hd V7532)) (and (cons? (tl V7532)) (shen.x.namespaces.name? (hd (tl V7532)))))) (shen.x.namespaces.header (hd (tl V7532)) (tl (tl V7532)) () ())) (true (simple-error (cn "invalid namespace: " (shen.app V7532 " +(defun shen.x.namespaces.expand (V7623) (cond ((and (cons? V7623) (and (= shen.x.namespace (hd V7623)) (and (cons? (tl V7623)) (shen.x.namespaces.name? (hd (tl V7623)))))) (shen.x.namespaces.header (hd (tl V7623)) (tl (tl V7623)) () ())) (true (simple-error (cn "invalid namespace: " (shen.app V7623 " " shen.s)))))) -(defun shen.x.namespaces.header (V7537 V7538 V7539 V7540) (cond ((and (cons? V7538) (and (cons? (hd V7538)) (and (= use (hd (hd V7538))) (and (cons? (tl (hd V7538))) (= () (tl (tl (hd V7538)))))))) (shen.x.namespaces.header V7537 (tl V7538) (shen.x.namespaces.add-use (hd (tl (hd V7538))) (hd (tl (hd V7538))) V7539) V7540)) ((and (cons? V7538) (and (cons? (hd V7538)) (and (= use (hd (hd V7538))) (and (cons? (tl (hd V7538))) (and (cons? (tl (tl (hd V7538)))) (and (= => (hd (tl (tl (hd V7538))))) (and (cons? (tl (tl (tl (hd V7538))))) (= () (tl (tl (tl (tl (hd V7538))))))))))))) (shen.x.namespaces.header V7537 (tl V7538) (shen.x.namespaces.add-use (hd (tl (hd V7538))) (hd (tl (tl (tl (hd V7538))))) V7539) V7540)) ((and (cons? V7538) (and (cons? (hd V7538)) (and (= externals (hd (hd V7538))) (and (cons? (tl (hd V7538))) (= () (tl (tl (hd V7538)))))))) (shen.x.namespaces.header V7537 (tl V7538) V7539 (union (shen.x.namespaces.external-symbols (eval (hd (tl (hd V7538))))) V7540))) ((and (cons? V7538) (and (cons? (hd V7538)) (element? (hd (hd V7538)) (cons use (cons externals ()))))) (simple-error (cn "invalid namespace directive: " (shen.app (hd V7538) " -" shen.s)))) (true (let W7541 (shen.x.namespaces.qualify-list (shen.x.namespaces.body-forms V7538) (str V7537) V7539 V7540) (do (shen.record-external V7537 V7540) (do (shen.record-internal V7537 () (snd W7541)) (fst W7541))))))) +(defun shen.x.namespaces.header (V7628 V7629 V7630 V7631) (cond ((and (cons? V7629) (and (cons? (hd V7629)) (and (= use (hd (hd V7629))) (and (cons? (tl (hd V7629))) (= () (tl (tl (hd V7629)))))))) (shen.x.namespaces.header V7628 (tl V7629) (shen.x.namespaces.add-use (hd (tl (hd V7629))) (hd (tl (hd V7629))) V7630) V7631)) ((and (cons? V7629) (and (cons? (hd V7629)) (and (= use (hd (hd V7629))) (and (cons? (tl (hd V7629))) (and (cons? (tl (tl (hd V7629)))) (and (= => (hd (tl (tl (hd V7629))))) (and (cons? (tl (tl (tl (hd V7629))))) (= () (tl (tl (tl (tl (hd V7629))))))))))))) (shen.x.namespaces.header V7628 (tl V7629) (shen.x.namespaces.add-use (hd (tl (hd V7629))) (hd (tl (tl (tl (hd V7629))))) V7630) V7631)) ((and (cons? V7629) (and (cons? (hd V7629)) (and (= externals (hd (hd V7629))) (and (cons? (tl (hd V7629))) (= () (tl (tl (hd V7629)))))))) (shen.x.namespaces.header V7628 (tl V7629) V7630 (union (shen.x.namespaces.external-symbols (eval (hd (tl (hd V7629))))) V7631))) ((and (cons? V7629) (and (cons? (hd V7629)) (element? (hd (hd V7629)) (cons use (cons externals ()))))) (simple-error (cn "invalid namespace directive: " (shen.app (hd V7629) " +" shen.s)))) (true (let W7632 (shen.x.namespaces.qualify-list (shen.x.namespaces.body-forms V7629) (str V7628) V7630 V7631) (do (shen.record-external V7628 V7631) (do (shen.record-internal V7628 () (snd W7632)) (fst W7632))))))) -(defun shen.x.namespaces.add-use (V7544 V7545 V7546) (cond ((and (shen.x.namespaces.name? V7544) (and (shen.x.namespaces.name? V7545) (empty? (assoc V7545 V7546)))) (cons (cons V7545 V7544) V7546)) (true (simple-error (cn "invalid or duplicate namespace use: " (shen.app V7544 (cn " => " (shen.app V7545 " +(defun shen.x.namespaces.add-use (V7635 V7636 V7637) (cond ((and (shen.x.namespaces.name? V7635) (and (shen.x.namespaces.name? V7636) (empty? (assoc V7636 V7637)))) (cons (cons V7636 V7635) V7637)) (true (simple-error (cn "invalid or duplicate namespace use: " (shen.app V7635 (cn " => " (shen.app V7636 " " shen.s)) shen.s)))))) -(defun shen.x.namespaces.body-forms (V7549) (cond ((and (cons? V7549) (and (cons? (hd V7549)) (element? (hd (hd V7549)) (cons use (cons externals ()))))) (simple-error (cn "namespace directive after body: " (shen.app (hd (hd V7549)) " -" shen.s)))) ((cons? V7549) (cons (hd V7549) (shen.x.namespaces.body-forms (tl V7549)))) ((= () V7549) ()) (true (shen.f-error shen.x.namespaces.body-forms)))) +(defun shen.x.namespaces.body-forms (V7640) (cond ((and (cons? V7640) (and (cons? (hd V7640)) (element? (hd (hd V7640)) (cons use (cons externals ()))))) (simple-error (cn "namespace directive after body: " (shen.app (hd (hd V7640)) " +" shen.s)))) ((cons? V7640) (cons (hd V7640) (shen.x.namespaces.body-forms (tl V7640)))) ((= () V7640) ()) (true (shen.f-error shen.x.namespaces.body-forms)))) -(defun shen.x.namespaces.name? (V7550) (and (symbol? V7550) (not (variable? V7550)))) +(defun shen.x.namespaces.name? (V7641) (and (symbol? V7641) (not (variable? V7641)))) -(defun shen.x.namespaces.external-symbols (V7551) (cond ((= () V7551) ()) ((and (cons? V7551) (shen.x.namespaces.name? (hd V7551))) (cons (hd V7551) (shen.x.namespaces.external-symbols (tl V7551)))) (true (simple-error (cn "externals expects a list of non-variable symbols: " (shen.app V7551 " +(defun shen.x.namespaces.external-symbols (V7642) (cond ((= () V7642) ()) ((and (cons? V7642) (shen.x.namespaces.name? (hd V7642))) (cons (hd V7642) (shen.x.namespaces.external-symbols (tl V7642)))) (true (simple-error (cn "externals expects a list of non-variable symbols: " (shen.app V7642 " " shen.s)))))) -(defun shen.x.namespaces.qualify (V7564 V7565 V7566 V7567) (cond ((and (cons? V7564) (and (= with-externals (hd V7564)) (and (cons? (tl V7564)) (and (cons? (tl (tl V7564))) (= () (tl (tl (tl V7564)))))))) (shen.x.namespaces.qualify (hd (tl (tl V7564))) V7565 V7566 (union (shen.x.namespaces.external-symbols (eval (hd (tl V7564)))) V7567))) ((and (cons? V7564) (= with-externals (hd V7564))) (simple-error (cn "invalid with-externals: " (shen.app (tl V7564) " -" shen.s)))) ((cons? V7564) (shen.x.namespaces.qualify-list V7564 V7565 V7566 V7567)) ((shen.internal? V7564 V7565 V7567) (let W7568 (shen.x.namespaces.import-name V7564 V7566) (if (cons? W7568) (@p (tl W7568) ()) (@p (shen.intern-in-package V7565 V7564) (cons V7564 ()))))) (true (@p V7564 ())))) +(defun shen.x.namespaces.qualify (V7655 V7656 V7657 V7658) (cond ((and (cons? V7655) (and (= with-externals (hd V7655)) (and (cons? (tl V7655)) (and (cons? (tl (tl V7655))) (= () (tl (tl (tl V7655)))))))) (shen.x.namespaces.qualify (hd (tl (tl V7655))) V7656 V7657 (union (shen.x.namespaces.external-symbols (eval (hd (tl V7655)))) V7658))) ((and (cons? V7655) (= with-externals (hd V7655))) (simple-error (cn "invalid with-externals: " (shen.app (tl V7655) " +" shen.s)))) ((cons? V7655) (shen.x.namespaces.qualify-list V7655 V7656 V7657 V7658)) ((shen.internal? V7655 V7656 V7658) (let W7659 (shen.x.namespaces.import-name V7655 V7657) (if (cons? W7659) (@p (tl W7659) ()) (@p (shen.intern-in-package V7656 V7655) (cons V7655 ()))))) (true (@p V7655 ())))) -(defun shen.x.namespaces.qualify-list (V7569 V7570 V7571 V7572) (cond ((cons? V7569) (let W7573 (shen.x.namespaces.qualify (hd V7569) V7570 V7571 V7572) (let W7574 (shen.x.namespaces.qualify-list (tl V7569) V7570 V7571 V7572) (@p (cons (fst W7573) (fst W7574)) (union (snd W7573) (snd W7574)))))) (true (shen.x.namespaces.qualify V7569 V7570 V7571 V7572)))) +(defun shen.x.namespaces.qualify-list (V7660 V7661 V7662 V7663) (cond ((cons? V7660) (let W7664 (shen.x.namespaces.qualify (hd V7660) V7661 V7662 V7663) (let W7665 (shen.x.namespaces.qualify-list (tl V7660) V7661 V7662 V7663) (@p (cons (fst W7664) (fst W7665)) (union (snd W7664) (snd W7665)))))) (true (shen.x.namespaces.qualify V7660 V7661 V7662 V7663)))) -(defun shen.x.namespaces.import-name (V7577 V7578) (cond ((= () V7578) ()) ((and (cons? V7578) (cons? (hd V7578))) (let W7579 (shen.x.namespaces.import-name V7577 (tl V7578)) (let W7580 (shen.x.namespaces.member-after (str (hd (hd V7578))) (str V7577)) (if (and (string? W7580) (or (empty? W7579) (shen.internal-to-P? (str (hd W7579)) (str (hd (hd V7578)))))) (cons (hd (hd V7578)) (shen.intern-in-package (str (tl (hd V7578))) (intern W7580))) W7579)))) (true (shen.f-error shen.x.namespaces.import-name)))) +(defun shen.x.namespaces.import-name (V7668 V7669) (cond ((= () V7669) ()) ((and (cons? V7669) (cons? (hd V7669))) (let W7670 (shen.x.namespaces.import-name V7668 (tl V7669)) (let W7671 (shen.x.namespaces.member-after (str (hd (hd V7669))) (str V7668)) (if (and (string? W7671) (or (empty? W7670) (shen.internal-to-P? (str (hd W7670)) (str (hd (hd V7669)))))) (cons (hd (hd V7669)) (shen.intern-in-package (str (tl (hd V7669))) (intern W7671))) W7670)))) (true (shen.f-error shen.x.namespaces.import-name)))) -(defun shen.x.namespaces.member-after (V7586 V7587) (cond ((and (= "" V7586) (and (shen.+string? V7587) (and (= "." (hdstr V7587)) (not (= (tlstr V7587) ""))))) (tlstr V7587)) ((and (shen.+string? V7586) (and (shen.+string? V7587) (= (hdstr V7586) (hdstr V7587)))) (shen.x.namespaces.member-after (tlstr V7586) (tlstr V7587))) (true false))) +(defun shen.x.namespaces.member-after (V7677 V7678) (cond ((and (= "" V7677) (and (shen.+string? V7678) (and (= "." (hdstr V7678)) (not (= (tlstr V7678) ""))))) (tlstr V7678)) ((and (shen.+string? V7677) (and (shen.+string? V7678) (= (hdstr V7677) (hdstr V7678)))) (shen.x.namespaces.member-after (tlstr V7677) (tlstr V7678))) (true false))) diff --git a/klambda/extension-programmable-pattern-matching.kl b/klambda/extension-programmable-pattern-matching.kl index baf912e..c33345c 100644 --- a/klambda/extension-programmable-pattern-matching.kl +++ b/klambda/extension-programmable-pattern-matching.kl @@ -1,36 +1,36 @@ "Copyright (c) 2019 Bruno Deferrari. All rights reserved. BSD 3-Clause License: http://opensource.org/licenses/BSD-3-Clause" -(defun shen.x.programmable-pattern-matching.apply-pattern-handlers (V7404 V7405 V7406 V7407 V7408) (cond ((= () V7404) (fail)) (true (let Freeze7409 (freeze (cond ((cons? V7404) (shen.x.programmable-pattern-matching.apply-pattern-handlers (tl V7404) V7405 V7406 V7407 V7408)) (true (shen.f-error shen.x.programmable-pattern-matching.apply-pattern-handlers)))) (if (cons? V7404) (let Result7410 (((((hd V7404) V7405) V7406) V7407) V7408) (if (= Result7410 (fail)) (thaw Freeze7409) Result7410)) (thaw Freeze7409)))))) +(defun shen.x.programmable-pattern-matching.apply-pattern-handlers (V7441 V7442 V7443 V7444 V7445) (cond ((= () V7441) (fail)) (true (let Freeze7446 (freeze (cond ((cons? V7441) (shen.x.programmable-pattern-matching.apply-pattern-handlers (tl V7441) V7442 V7443 V7444 V7445)) (true (shen.f-error shen.x.programmable-pattern-matching.apply-pattern-handlers)))) (if (cons? V7441) (let Result7447 (((((hd V7441) V7442) V7443) V7444) V7445) (if (= Result7447 (fail)) (thaw Freeze7446) Result7447)) (thaw Freeze7446)))))) (defun shen.x.programmable-pattern-matching.make-stack () (address-> (absvector 1) 0 ())) -(defun shen.x.programmable-pattern-matching.push (V7411 V7412) (address-> V7411 0 (cons V7412 (<-address V7411 0)))) +(defun shen.x.programmable-pattern-matching.push (V7448 V7449) (address-> V7448 0 (cons V7449 (<-address V7448 0)))) -(defun shen.x.programmable-pattern-matching.pop-all (V7413) (let W7414 (<-address V7413 0) (let W7415 (address-> V7413 0 ()) W7414))) +(defun shen.x.programmable-pattern-matching.pop-all (V7450) (let W7451 (<-address V7450 0) (let W7452 (address-> V7450 0 ()) W7451))) -(defun shen.x.programmable-pattern-matching.surface-pattern (V7416) (cond ((and (cons? V7416) (and (= cons (hd V7416)) (and (cons? (tl V7416)) (and (cons? (tl (tl V7416))) (= () (tl (tl (tl V7416)))))))) (cons (shen.x.programmable-pattern-matching.surface-pattern (hd (tl V7416))) (shen.x.programmable-pattern-matching.surface-pattern-tail (hd (tl (tl V7416)))))) (true (let W7417 (shen.x.programmable-pattern-matching.surface-application V7416) (if (= W7417 (fail)) V7416 W7417))))) +(defun shen.x.programmable-pattern-matching.surface-pattern (V7453) (cond ((and (cons? V7453) (and (= cons (hd V7453)) (and (cons? (tl V7453)) (and (cons? (tl (tl V7453))) (= () (tl (tl (tl V7453)))))))) (cons (shen.x.programmable-pattern-matching.surface-pattern (hd (tl V7453))) (shen.x.programmable-pattern-matching.surface-pattern-tail (hd (tl (tl V7453)))))) (true (let W7454 (shen.x.programmable-pattern-matching.surface-application V7453) (if (= W7454 (fail)) V7453 W7454))))) -(defun shen.x.programmable-pattern-matching.surface-pattern-tail (V7418) (cond ((= () V7418) ()) ((and (cons? V7418) (and (= cons (hd V7418)) (and (cons? (tl V7418)) (and (cons? (tl (tl V7418))) (= () (tl (tl (tl V7418)))))))) (cons (shen.x.programmable-pattern-matching.surface-pattern (hd (tl V7418))) (shen.x.programmable-pattern-matching.surface-pattern-tail (hd (tl (tl V7418)))))) (true V7418))) +(defun shen.x.programmable-pattern-matching.surface-pattern-tail (V7455) (cond ((= () V7455) ()) ((and (cons? V7455) (and (= cons (hd V7455)) (and (cons? (tl V7455)) (and (cons? (tl (tl V7455))) (= () (tl (tl (tl V7455)))))))) (cons (shen.x.programmable-pattern-matching.surface-pattern (hd (tl V7455))) (shen.x.programmable-pattern-matching.surface-pattern-tail (hd (tl (tl V7455)))))) (true V7455))) -(defun shen.x.programmable-pattern-matching.surface-application (V7421) (cond ((and (cons? V7421) (and (cons? (hd V7421)) (and (= fn (hd (hd V7421))) (and (cons? (tl (hd V7421))) (and (= () (tl (tl (hd V7421)))) (and (cons? (tl V7421)) (= () (tl (tl V7421))))))))) (cons (hd (tl (hd V7421))) (cons (shen.x.programmable-pattern-matching.surface-pattern (hd (tl V7421))) ()))) ((and (cons? V7421) (and (cons? (tl V7421)) (= () (tl (tl V7421))))) (let W7422 (shen.x.programmable-pattern-matching.surface-application (hd V7421)) (if (= W7422 (fail)) (fail) (append W7422 (cons (shen.x.programmable-pattern-matching.surface-pattern (hd (tl V7421))) ()))))) (true (fail)))) +(defun shen.x.programmable-pattern-matching.surface-application (V7458) (cond ((and (cons? V7458) (and (cons? (hd V7458)) (and (= fn (hd (hd V7458))) (and (cons? (tl (hd V7458))) (and (= () (tl (tl (hd V7458)))) (and (cons? (tl V7458)) (= () (tl (tl V7458))))))))) (cons (hd (tl (hd V7458))) (cons (shen.x.programmable-pattern-matching.surface-pattern (hd (tl V7458))) ()))) ((and (cons? V7458) (and (cons? (tl V7458)) (= () (tl (tl V7458))))) (let W7459 (shen.x.programmable-pattern-matching.surface-application (hd V7458)) (if (= W7459 (fail)) (fail) (append W7459 (cons (shen.x.programmable-pattern-matching.surface-pattern (hd (tl V7458))) ()))))) (true (fail)))) -(defun shen.x.programmable-pattern-matching.compile-pattern (V7423 V7424 V7425) (let W7426 (shen.x.programmable-pattern-matching.surface-pattern V7423) (let W7427 (shen.x.programmable-pattern-matching.make-stack) (let W7428 Self$$7907$$ (let W7429 (lambda Z7430 shen.x.programmable-pattern-matching.ignored) (let W7431 (lambda Z7432 (lambda Z7433 (shen.x.programmable-pattern-matching.push W7427 Z7432))) (let W7434 (shen.x.programmable-pattern-matching.apply-pattern-handlers V7424 W7428 W7429 W7431 W7426) (if (= W7434 (fail)) (thaw V7425) (cons @p (cons shen.custom-pattern (cons (shen.x.programmable-pattern-matching.compile-pattern-h W7426 (reverse (shen.x.programmable-pattern-matching.pop-all W7427))) ()))))))))))) +(defun shen.x.programmable-pattern-matching.compile-pattern (V7460 V7461 V7462) (let W7463 (shen.x.programmable-pattern-matching.surface-pattern V7460) (let W7464 (shen.x.programmable-pattern-matching.make-stack) (let W7465 Self$$7907$$ (let W7466 (lambda Z7467 shen.x.programmable-pattern-matching.ignored) (let W7468 (lambda Z7469 (lambda Z7470 (shen.x.programmable-pattern-matching.push W7464 Z7469))) (let W7471 (shen.x.programmable-pattern-matching.apply-pattern-handlers V7461 W7465 W7466 W7468 W7463) (if (= W7471 (fail)) (thaw V7462) (cons @p (cons shen.custom-pattern (cons (shen.x.programmable-pattern-matching.compile-pattern-h W7463 (reverse (shen.x.programmable-pattern-matching.pop-all W7464))) ()))))))))))) -(defun shen.x.programmable-pattern-matching.compile-pattern-h (V7435 V7436) (cond ((cons? V7435) (let W7437 (map (lambda Z7438 (if (element? Z7438 V7436) (shen.compile-pattern-fragment Z7438) Z7438)) (tl V7435)) (cons (hd V7435) W7437))) (true (shen.f-error shen.x.programmable-pattern-matching.compile-pattern-h)))) +(defun shen.x.programmable-pattern-matching.compile-pattern-h (V7472 V7473) (cond ((cons? V7472) (let W7474 (map (lambda Z7475 (if (element? Z7475 V7473) (shen.compile-pattern-fragment Z7475) Z7475)) (tl V7472)) (cons (hd V7472) W7474))) (true (shen.f-error shen.x.programmable-pattern-matching.compile-pattern-h)))) -(defun shen.x.programmable-pattern-matching.reduce (V7439 V7440) (cond ((tuple? V7439) (let W7441 (shen.x.programmable-pattern-matching.surface-pattern (fst V7439)) (let W7442 (shen.x.programmable-pattern-matching.make-stack) (let W7443 (shen.x.programmable-pattern-matching.make-stack) (let W7444 (lambda Z7445 (shen.x.programmable-pattern-matching.push W7442 Z7445)) (let W7446 (lambda Z7447 (lambda Z7448 (shen.x.programmable-pattern-matching.push W7443 (@p Z7447 Z7448)))) (let W7449 (shen.x.programmable-pattern-matching.apply-pattern-handlers V7440 (snd V7439) W7444 W7446 W7441) (if (= W7449 (fail)) (fail) (@p (reverse (shen.x.programmable-pattern-matching.pop-all W7442)) (reverse (shen.x.programmable-pattern-matching.pop-all W7443))))))))))) (true (shen.f-error shen.x.programmable-pattern-matching.reduce)))) +(defun shen.x.programmable-pattern-matching.reduce (V7476 V7477) (cond ((tuple? V7476) (let W7478 (shen.x.programmable-pattern-matching.surface-pattern (fst V7476)) (let W7479 (shen.x.programmable-pattern-matching.make-stack) (let W7480 (shen.x.programmable-pattern-matching.make-stack) (let W7481 (lambda Z7482 (shen.x.programmable-pattern-matching.push W7479 Z7482)) (let W7483 (lambda Z7484 (lambda Z7485 (shen.x.programmable-pattern-matching.push W7480 (@p Z7484 Z7485)))) (let W7486 (shen.x.programmable-pattern-matching.apply-pattern-handlers V7477 (snd V7476) W7481 W7483 W7478) (if (= W7486 (fail)) (fail) (@p (reverse (shen.x.programmable-pattern-matching.pop-all W7479)) (reverse (shen.x.programmable-pattern-matching.pop-all W7480))))))))))) (true (shen.f-error shen.x.programmable-pattern-matching.reduce)))) -(defun shen.x.programmable-pattern-matching.initialise () (do (declare shen.x.programmable-pattern-matching.register-handler (cons symbol (cons --> (cons symbol ())))) (do (declare shen.x.programmable-pattern-matching.unregister-handler (cons symbol (cons --> (cons symbol ())))) (do (set shen.*custom-pattern-compiler* (lambda Z7450 (lambda Z7451 (shen.x.programmable-pattern-matching.compile-pattern Z7450 (value shen.x.programmable-pattern-matching.*pattern-handlers*) Z7451)))) (do (set shen.*custom-pattern-reducer* (lambda Z7452 (shen.x.programmable-pattern-matching.reduce Z7452 (value shen.x.programmable-pattern-matching.*pattern-handlers*)))) (do (set shen.x.programmable-pattern-matching.*pattern-handlers* ()) (do (set shen.x.programmable-pattern-matching.*pattern-handlers-reg* ()) shen.x.programmable-pattern-matching.done))))))) +(defun shen.x.programmable-pattern-matching.initialise () (do (shen.declare-with-signature shen.x.programmable-pattern-matching.register-handler (cons symbol (cons --> (cons symbol ()))) (freeze (lambda V7518 (lambda B7514 (lambda L7515 (lambda Key7516 (lambda C7517 (is! V7518 (cons symbol (cons --> (cons symbol ()))) B7514 L7515 Key7516 C7517)))))))) (do (shen.declare-with-signature shen.x.programmable-pattern-matching.unregister-handler (cons symbol (cons --> (cons symbol ()))) (freeze (lambda V7523 (lambda B7519 (lambda L7520 (lambda Key7521 (lambda C7522 (is! V7523 (cons symbol (cons --> (cons symbol ()))) B7519 L7520 Key7521 C7522)))))))) (do (set shen.*custom-pattern-compiler* (lambda Z7487 (lambda Z7488 (shen.x.programmable-pattern-matching.compile-pattern Z7487 (value shen.x.programmable-pattern-matching.*pattern-handlers*) Z7488)))) (do (set shen.*custom-pattern-reducer* (lambda Z7489 (shen.x.programmable-pattern-matching.reduce Z7489 (value shen.x.programmable-pattern-matching.*pattern-handlers*)))) (do (set shen.x.programmable-pattern-matching.*pattern-handlers* ()) (do (set shen.x.programmable-pattern-matching.*pattern-handlers-reg* ()) shen.x.programmable-pattern-matching.done))))))) -(defun shen.x.programmable-pattern-matching.register-handler (V7453) (cond ((element? V7453 (value shen.x.programmable-pattern-matching.*pattern-handlers-reg*)) V7453) (true (do (set shen.x.programmable-pattern-matching.*pattern-handlers-reg* (cons V7453 (value shen.x.programmable-pattern-matching.*pattern-handlers-reg*))) (do (set shen.x.programmable-pattern-matching.*pattern-handlers* (cons (fn V7453) (value shen.x.programmable-pattern-matching.*pattern-handlers*))) V7453))))) +(defun shen.x.programmable-pattern-matching.register-handler (V7490) (cond ((element? V7490 (value shen.x.programmable-pattern-matching.*pattern-handlers-reg*)) V7490) (true (do (set shen.x.programmable-pattern-matching.*pattern-handlers-reg* (cons V7490 (value shen.x.programmable-pattern-matching.*pattern-handlers-reg*))) (do (set shen.x.programmable-pattern-matching.*pattern-handlers* (cons (fn V7490) (value shen.x.programmable-pattern-matching.*pattern-handlers*))) V7490))))) -(defun shen.x.programmable-pattern-matching.findpos (V7454 V7455) (shen.x.programmable-pattern-matching.findpos-h V7454 V7455 1)) +(defun shen.x.programmable-pattern-matching.findpos (V7491 V7492) (shen.x.programmable-pattern-matching.findpos-h V7491 V7492 1)) -(defun shen.x.programmable-pattern-matching.findpos-h (V7463 V7464 V7465) (cond ((= () V7464) (simple-error (shen.app V7463 " is not a pattern handler -" shen.a))) ((and (cons? V7464) (= V7463 (hd V7464))) V7465) ((cons? V7464) (shen.x.programmable-pattern-matching.findpos-h V7463 (tl V7464) (+ V7465 1))) (true (shen.f-error shen.x.programmable-pattern-matching.findpos-h)))) +(defun shen.x.programmable-pattern-matching.findpos-h (V7500 V7501 V7502) (cond ((= () V7501) (simple-error (shen.app V7500 " is not a pattern handler +" shen.a))) ((and (cons? V7501) (= V7500 (hd V7501))) V7502) ((cons? V7501) (shen.x.programmable-pattern-matching.findpos-h V7500 (tl V7501) (+ V7502 1))) (true (shen.f-error shen.x.programmable-pattern-matching.findpos-h)))) -(defun shen.x.programmable-pattern-matching.remove-nth (V7470 V7471) (cond ((not (and (integer? V7470) (> V7470 0))) V7471) ((= () V7471) ()) ((and (= 1 V7470) (cons? V7471)) (tl V7471)) ((cons? V7471) (cons (hd V7471) (shen.x.programmable-pattern-matching.remove-nth (- V7470 1) (tl V7471)))) (true (shen.f-error shen.x.programmable-pattern-matching.remove-nth)))) +(defun shen.x.programmable-pattern-matching.remove-nth (V7507 V7508) (cond ((not (and (integer? V7507) (> V7507 0))) V7508) ((= () V7508) ()) ((and (= 1 V7507) (cons? V7508)) (tl V7508)) ((cons? V7508) (cons (hd V7508) (shen.x.programmable-pattern-matching.remove-nth (- V7507 1) (tl V7508)))) (true (shen.f-error shen.x.programmable-pattern-matching.remove-nth)))) -(defun shen.x.programmable-pattern-matching.unregister-handler (V7472) (let W7473 (value shen.x.programmable-pattern-matching.*pattern-handlers-reg*) (let W7474 (shen.x.programmable-pattern-matching.findpos V7472 W7473) (let W7475 (set shen.x.programmable-pattern-matching.*pattern-handlers-reg* (remove V7472 W7473)) (let W7476 (set shen.x.programmable-pattern-matching.*pattern-handlers* (shen.x.programmable-pattern-matching.remove-nth W7474 (value shen.x.programmable-pattern-matching.*pattern-handlers*))) V7472))))) +(defun shen.x.programmable-pattern-matching.unregister-handler (V7509) (let W7510 (value shen.x.programmable-pattern-matching.*pattern-handlers-reg*) (let W7511 (shen.x.programmable-pattern-matching.findpos V7509 W7510) (let W7512 (set shen.x.programmable-pattern-matching.*pattern-handlers-reg* (remove V7509 W7510)) (let W7513 (set shen.x.programmable-pattern-matching.*pattern-handlers* (shen.x.programmable-pattern-matching.remove-nth W7511 (value shen.x.programmable-pattern-matching.*pattern-handlers*))) V7509))))) diff --git a/klambda/extension-type-annotations.kl b/klambda/extension-type-annotations.kl index 54a121e..6c20f7a 100644 --- a/klambda/extension-type-annotations.kl +++ b/klambda/extension-type-annotations.kl @@ -1,17 +1,17 @@ "Copyright (c) 2026 Bruno Deferrari. All rights reserved. BSD 3-Clause License: http://opensource.org/licenses/BSD-3-Clause" -(defun shen.x.type-annotations.annotate-kl (V7605) (cond ((and (cons? V7605) (and (= defun (hd V7605)) (and (cons? (tl V7605)) (and (cons? (tl (tl V7605))) (and (cons? (tl (tl (tl V7605)))) (= () (tl (tl (tl (tl V7605)))))))))) (let W7606 (shen.x.type-annotations.function-type (hd (tl V7605))) (let W7607 (shen.x.type-annotations.type-table W7606 (hd (tl (tl V7605)))) (cons defun (cons (hd (tl V7605)) (cons (hd (tl (tl V7605))) (cons (shen.x.type-annotations.annotate (hd (tl (tl V7605))) W7607 (hd (tl (tl (tl V7605))))) ()))))))) (true (shen.x.type-annotations.annotate () () V7605)))) +(defun shen.x.type-annotations.annotate-kl (V7696) (cond ((and (cons? V7696) (and (= defun (hd V7696)) (and (cons? (tl V7696)) (and (cons? (tl (tl V7696))) (and (cons? (tl (tl (tl V7696)))) (= () (tl (tl (tl (tl V7696)))))))))) (let W7697 (shen.x.type-annotations.function-type (hd (tl V7696))) (let W7698 (shen.x.type-annotations.type-table W7697 (hd (tl (tl V7696)))) (cons defun (cons (hd (tl V7696)) (cons (hd (tl (tl V7696))) (cons (shen.x.type-annotations.annotate (hd (tl (tl V7696))) W7698 (hd (tl (tl (tl V7696))))) ()))))))) (true (shen.x.type-annotations.annotate () () V7696)))) -(defun shen.x.type-annotations.function-type (V7612) (cond ((cons? V7612) false) ((not (symbol? V7612)) false) (true (let W7613 (((((lambda Z7614 (lambda Z7615 (lambda Z7616 (lambda Z7617 (let W7618 (shen.newpv Z7614) (shen.gc Z7614 (do (shen.incinfs) (shen.lookupsig (receive (shen.deref V7612 Z7614)) W7618 Z7614 Z7615 Z7616 (freeze (return W7618 Z7614 Z7615 Z7616 Z7617)))))))))) (shen.prolog-vector)) (@v true (@v 0 (vector 0)))) 0) (freeze true)) (if (= W7613 false) false (fst (shen.x.type-annotations.reify-type W7613 ()))))))) +(defun shen.x.type-annotations.function-type (V7703) (cond ((cons? V7703) false) ((not (symbol? V7703)) false) (true (let W7704 (((((lambda Z7705 (lambda Z7706 (lambda Z7707 (lambda Z7708 (let W7709 (shen.newpv Z7705) (shen.gc Z7705 (do (shen.incinfs) (shen.lookupsig (receive (shen.deref V7703 Z7705)) W7709 Z7705 Z7706 Z7707 (freeze (return W7709 Z7705 Z7706 Z7707 Z7708)))))))))) (shen.prolog-vector)) (@v true (@v 0 (vector 0)))) 0) (freeze true)) (if (= W7704 false) false (fst (shen.x.type-annotations.reify-type W7704 ()))))))) -(defun shen.x.type-annotations.reify-type (V7619 V7620) (cond ((cons? V7619) (let W7621 (shen.x.type-annotations.reify-type (hd V7619) V7620) (let W7622 (shen.x.type-annotations.reify-type (tl V7619) (snd W7621)) (@p (cons (fst W7621) (fst W7622)) (snd W7622))))) ((shen.pvar? V7619) (let W7623 (assoc V7619 V7620) (if (empty? W7623) (let W7624 (gensym A) (@p W7624 (cons (cons V7619 W7624) V7620))) (@p (tl W7623) V7620)))) (true (@p V7619 V7620)))) +(defun shen.x.type-annotations.reify-type (V7710 V7711) (cond ((cons? V7710) (let W7712 (shen.x.type-annotations.reify-type (hd V7710) V7711) (let W7713 (shen.x.type-annotations.reify-type (tl V7710) (snd W7712)) (@p (cons (fst W7712) (fst W7713)) (snd W7713))))) ((shen.pvar? V7710) (let W7714 (assoc V7710 V7711) (if (empty? W7714) (let W7715 (gensym A) (@p W7715 (cons (cons V7710 W7715) V7711))) (@p (tl W7714) V7711)))) (true (@p V7710 V7711)))) -(defun shen.x.type-annotations.type-table (V7629 V7630) (cond ((and (cons? V7629) (and (cons? (tl V7629)) (and (= --> (hd (tl V7629))) (and (cons? (tl (tl V7629))) (and (= () (tl (tl (tl V7629)))) (cons? V7630)))))) (if (variable? (hd V7629)) (shen.x.type-annotations.type-table (hd (tl (tl V7629))) (tl V7630)) (cons (cons (hd V7630) (hd V7629)) (shen.x.type-annotations.type-table (hd (tl (tl V7629))) (tl V7630))))) (true ()))) +(defun shen.x.type-annotations.type-table (V7720 V7721) (cond ((and (cons? V7720) (and (cons? (tl V7720)) (and (= --> (hd (tl V7720))) (and (cons? (tl (tl V7720))) (and (= () (tl (tl (tl V7720)))) (cons? V7721)))))) (if (variable? (hd V7720)) (shen.x.type-annotations.type-table (hd (tl (tl V7720))) (tl V7721)) (cons (cons (hd V7721) (hd V7720)) (shen.x.type-annotations.type-table (hd (tl (tl V7720))) (tl V7721))))) (true ()))) -(defun shen.x.type-annotations.annotate (V7631 V7632 V7633) (cond ((and (cons? V7633) (and (= type (hd V7633)) (and (cons? (tl V7633)) (and (cons? (tl (tl V7633))) (= () (tl (tl (tl V7633)))))))) V7633) ((and (cons? V7633) (and (= let (hd V7633)) (and (cons? (tl V7633)) (and (cons? (tl (tl V7633))) (and (cons? (tl (tl (tl V7633)))) (= () (tl (tl (tl (tl V7633)))))))))) (cons let (cons (hd (tl V7633)) (cons (shen.x.type-annotations.annotate V7631 V7632 (hd (tl (tl V7633)))) (cons (shen.x.type-annotations.annotate (cons (hd (tl V7633)) V7631) V7632 (hd (tl (tl (tl V7633))))) ()))))) ((and (cons? V7633) (and (= lambda (hd V7633)) (and (cons? (tl V7633)) (and (cons? (tl (tl V7633))) (= () (tl (tl (tl V7633)))))))) (cons lambda (cons (hd (tl V7633)) (cons (shen.x.type-annotations.annotate (cons (hd (tl V7633)) V7631) V7632 (hd (tl (tl V7633)))) ())))) ((and (cons? V7633) (= cond (hd V7633))) (cons cond (shen.x.type-annotations.annotate-cases V7631 V7632 (tl V7633)))) ((cons? V7633) (let W7634 (shen.x.type-annotations.function-type (hd V7633)) (let W7635 (shen.x.type-annotations.type-table W7634 (tl V7633)) (cons (hd V7633) (map (lambda Z7636 (shen.x.type-annotations.annotate V7631 (append V7632 W7635) Z7636)) (tl V7633)))))) (true (let W7637 (assoc V7633 V7632) (if (cons? W7637) (cons type (cons V7633 (cons (tl W7637) ()))) (if (element? V7633 V7631) V7633 (shen.x.type-annotations.atom-type V7633))))))) +(defun shen.x.type-annotations.annotate (V7722 V7723 V7724) (cond ((and (cons? V7724) (and (= type (hd V7724)) (and (cons? (tl V7724)) (and (cons? (tl (tl V7724))) (= () (tl (tl (tl V7724)))))))) V7724) ((and (cons? V7724) (and (= let (hd V7724)) (and (cons? (tl V7724)) (and (cons? (tl (tl V7724))) (and (cons? (tl (tl (tl V7724)))) (= () (tl (tl (tl (tl V7724)))))))))) (cons let (cons (hd (tl V7724)) (cons (shen.x.type-annotations.annotate V7722 V7723 (hd (tl (tl V7724)))) (cons (shen.x.type-annotations.annotate (cons (hd (tl V7724)) V7722) V7723 (hd (tl (tl (tl V7724))))) ()))))) ((and (cons? V7724) (and (= lambda (hd V7724)) (and (cons? (tl V7724)) (and (cons? (tl (tl V7724))) (= () (tl (tl (tl V7724)))))))) (cons lambda (cons (hd (tl V7724)) (cons (shen.x.type-annotations.annotate (cons (hd (tl V7724)) V7722) V7723 (hd (tl (tl V7724)))) ())))) ((and (cons? V7724) (= cond (hd V7724))) (cons cond (shen.x.type-annotations.annotate-cases V7722 V7723 (tl V7724)))) ((cons? V7724) (let W7725 (shen.x.type-annotations.function-type (hd V7724)) (let W7726 (shen.x.type-annotations.type-table W7725 (tl V7724)) (cons (hd V7724) (map (lambda Z7727 (shen.x.type-annotations.annotate V7722 (append V7723 W7726) Z7727)) (tl V7724)))))) (true (let W7728 (assoc V7724 V7723) (if (cons? W7728) (cons type (cons V7724 (cons (tl W7728) ()))) (if (element? V7724 V7722) V7724 (shen.x.type-annotations.atom-type V7724))))))) -(defun shen.x.type-annotations.annotate-cases (V7646 V7647 V7648) (cond ((= () V7648) ()) ((and (cons? V7648) (and (cons? (hd V7648)) (and (cons? (tl (hd V7648))) (= () (tl (tl (hd V7648))))))) (cons (cons (shen.x.type-annotations.annotate V7646 V7647 (hd (hd V7648))) (cons (shen.x.type-annotations.annotate V7646 V7647 (hd (tl (hd V7648)))) ())) (shen.x.type-annotations.annotate-cases V7646 V7647 (tl V7648)))) (true V7648))) +(defun shen.x.type-annotations.annotate-cases (V7737 V7738 V7739) (cond ((= () V7739) ()) ((and (cons? V7739) (and (cons? (hd V7739)) (and (cons? (tl (hd V7739))) (= () (tl (tl (hd V7739))))))) (cons (cons (shen.x.type-annotations.annotate V7737 V7738 (hd (hd V7739))) (cons (shen.x.type-annotations.annotate V7737 V7738 (hd (tl (hd V7739)))) ())) (shen.x.type-annotations.annotate-cases V7737 V7738 (tl V7739)))) (true V7739))) -(defun shen.x.type-annotations.atom-type (V7649) (if (string? V7649) (cons type (cons V7649 (cons string ()))) (if (number? V7649) (cons type (cons V7649 (cons number ()))) (if (boolean? V7649) (cons type (cons V7649 (cons boolean ()))) (if (symbol? V7649) (cons type (cons V7649 (cons symbol ()))) V7649))))) +(defun shen.x.type-annotations.atom-type (V7740) (if (string? V7740) (cons type (cons V7740 (cons string ()))) (if (number? V7740) (cons type (cons V7740 (cons number ()))) (if (boolean? V7740) (cons type (cons V7740 (cons boolean ()))) (if (symbol? V7740) (cons type (cons V7740 (cons symbol ()))) V7740))))) diff --git a/klambda/init.kl b/klambda/init.kl index df89781..96abcff 100644 --- a/klambda/init.kl +++ b/klambda/init.kl @@ -1,6 +1,6 @@ -(defun shen.initialise-environment () (do (set shen.*history* ()) (do (set shen.*tc* false) (do (set *property-vector* (shen.dict 20000)) (do (set *macros* (cons (cons shen.macros (lambda X (shen.macros X))) ())) (do (set shen.*source-form-handlers* ()) (do (set shen.*gensym* 0) (do (set shen.*tracking* ()) (do (set shen.*profiled* ()) (do (set shen.*special* (cons @p (cons @s (cons @v (cons cons (cons lambda (cons let (cons where (cons set (cons open (cons shen.input-h+ (cons type ())))))))))))) (do (set shen.*extraspecial* ()) (do (set shen.*spy* false) (do (set shen.*datatypes* ()) (do (set shen.*alldatatypes* ()) (do (set shen.*shen-type-theory-enabled?* true) (do (set shen.*package* null) (do (set shen.*synonyms* ()) (do (set shen.*occurs* true) (do (set shen.*factorise?* false) (do (set shen.*maxinferences* 1000000) (do (set *maximum-print-sequence-size* 20) (do (set shen.*call* 0) (do (set shen.*infs* 0) (do (set *hush* false) (do (set shen.*optimise* false) (do (set *version* "43.2") (do (set shen.*names* ()) (do (set shen.*step* false) (do (set shen.*it* "") (do (set shen.*residue* ()) (do (set *absolute* ()) (do (set shen.*prolog-memory* 1000) (do (set shen.*loading?* false) (do (set shen.*userdefs* ()) (do (set shen.*demodulation-function* (lambda X X)) (do (set shen.*custom-pattern-compiler* false) (do (set shen.*custom-pattern-reducer* false) (do (if (not (bound? *home-directory*)) (set *home-directory* "") shen.skip) (do (if (not (bound? *sterror*)) (set *sterror* (value *stoutput*)) shen.skip) (do (prolog-memory 10000) (do (set shen.*loading?* false) (do (shen.initialise-arity-table (cons abort (cons 0 (cons absolute (cons 1 (cons absvector? (cons 1 (cons absvector (cons 1 (cons address-> (cons 3 (cons adjoin (cons 2 (cons and (cons 2 (cons append (cons 2 (cons arity (cons 1 (cons assoc (cons 2 (cons atom? (cons 1 (cons boolean? (cons 1 (cons bootstrap (cons 1 (cons bound? (cons 1 (cons bind (cons 6 (cons call (cons 5 (cons cd (cons 1 (cons char-stream? (cons 1 (cons compile (cons 2 (cons concat (cons 2 (cons cons (cons 2 (cons cons? (cons 1 (cons cn (cons 2 (cons close (cons 1 (cons datatypes (cons 0 (cons declare (cons 2 (cons destroy (cons 1 (cons difference (cons 2 (cons do (cons 2 (cons element? (cons 2 (cons empty? (cons 1 (cons enable-type-theory (cons 1 (cons external (cons 1 (cons error-to-string (cons 1 (cons eval (cons 1 (cons eval-kl (cons 1 (cons explode (cons 1 (cons external (cons 1 (cons factorise (cons 1 (cons factorise? (cons 0 (cons fail-if (cons 2 (cons fail (cons 0 (cons fix (cons 2 (cons findall (cons 7 (cons foreign (cons 1 (cons fork (cons 5 (cons freeze (cons 1 (cons fresh (cons 0 (cons fst (cons 1 (cons fn (cons 1 (cons function (cons 1 (cons gensym (cons 1 (cons get (cons 3 (cons get-time (cons 1 (cons address-> (cons 3 (cons <-address (cons 2 (cons <-vector (cons 2 (cons > (cons 2 (cons >= (cons 2 (cons = (cons 2 (cons hash (cons 2 (cons hd (cons 1 (cons hdv (cons 1 (cons hdstr (cons 1 (cons head (cons 1 (cons hush? (cons 0 (cons hush (cons 1 (cons if (cons 3 (cons include (cons 1 (cons included (cons 0 (cons in-package (cons 1 (cons integer? (cons 1 (cons internal (cons 1 (cons intern (cons 1 (cons inferences (cons 0 (cons input (cons 1 (cons input+ (cons 2 (cons implementation (cons 0 (cons include-all-but (cons 1 (cons intersection (cons 2 (cons internal (cons 1 (cons it (cons 0 (cons is (cons 6 (cons is! (cons 6 (cons language (cons 0 (cons length (cons 1 (cons limit (cons 1 (cons lineread (cons 1 (cons list (cons 1 (cons load (cons 1 (cons < (cons 2 (cons <= (cons 2 (cons vector (cons 1 (cons macroexpand (cons 1 (cons map (cons 2 (cons mapcan (cons 2 (cons maxinferences (cons 1 (cons nl (cons 1 (cons not (cons 1 (cons nth (cons 2 (cons n->string (cons 1 (cons number? (cons 1 (cons occurs-check (cons 1 (cons occurrences (cons 2 (cons occurs? (cons 0 (cons occurs-check (cons 1 (cons open (cons 2 (cons optimise (cons 1 (cons optimise? (cons 0 (cons or (cons 2 (cons os (cons 0 (cons package (cons 3 (cons package? (cons 1 (cons port (cons 0 (cons porters (cons 0 (cons pos (cons 2 (cons preclude-all-but (cons 1 (cons print (cons 1 (cons profile (cons 1 (cons shen.print-prolog-vector (cons 1 (cons shen.print-freshterm (cons 1 (cons shen.printF (cons 1 (cons prolog-memory (cons 1 (cons profile-results (cons 1 (cons pr (cons 2 (cons ps (cons 1 (cons preclude (cons 1 (cons preclude-all-but (cons 1 (cons protect (cons 1 (cons put (cons 4 (cons read-file-as-string (cons 1 (cons read-file-as-bytelist (cons 1 (cons read-file (cons 1 (cons read (cons 1 (cons read-byte (cons 1 (cons read-from-string (cons 1 (cons read-from-string-unprocessed (cons 1 (cons read-unit-string (cons 1 (cons receive (cons 1 (cons release (cons 0 (cons shen.register-source-form (cons 2 (cons shen.unregister-source-form (cons 1 (cons remove (cons 2 (cons reverse (cons 1 (cons set (cons 2 (cons simple-error (cons 1 (cons snd (cons 1 (cons specialise (cons 2 (cons spy (cons 1 (cons spy? (cons 0 (cons step (cons 1 (cons step? (cons 0 (cons stinput (cons 0 (cons stoutput (cons 0 (cons str (cons 1 (cons string->n (cons 1 (cons string->symbol (cons 1 (cons string? (cons 1 (cons subst (cons 3 (cons sum (cons 1 (cons symbol? (cons 1 (cons systemf (cons 1 (cons tail (cons 1 (cons tl (cons 1 (cons tc (cons 1 (cons tc? (cons 0 (cons thaw (cons 1 (cons tlstr (cons 1 (cons track (cons 1 (cons tracked (cons 0 (cons trap-error (cons 2 (cons tuple? (cons 1 (cons type (cons 2 (cons return (cons 5 (cons unabsolute (cons 1 (cons undefmacro (cons 1 (cons unput (cons 3 (cons unprofile (cons 1 (cons union (cons 2 (cons untrack (cons 1 (cons undefmacro (cons 1 (cons update-lambda-table (cons 2 (cons userdefs (cons 0 (cons vector (cons 1 (cons vector? (cons 1 (cons vector-> (cons 3 (cons value (cons 1 (cons variable? (cons 1 (cons var? (cons 5 (cons version (cons 0 (cons when (cons 5 (cons write-byte (cons 2 (cons write-string (cons 2 (cons write-to-file (cons 2 (cons y-or-n? (cons 1 (cons + (cons 2 (cons * (cons 2 (cons / (cons 2 (cons - (cons 2 (cons == (cons 2 (cons (cons 1 (cons (cons 1 (cons (cons 1 (cons @p (cons 2 (cons @v (cons 2 (cons @s (cons 2 ()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) (do (put shen shen.external-symbols (cons ! (cons } (cons { (cons --> (cons <-- (cons && (cons (intern ":") (cons (intern ";") (cons (intern ":=") (cons (intern ",") (cons _ (cons *language* (cons *implementation* (cons *stinput* (cons *sterror* (cons *stoutput* (cons *home-directory* (cons *version* (cons *maximum-print-sequence-size* (cons *macros* (cons *os* (cons *release* (cons *property-vector* (cons @v (cons @p (cons @s (cons *port* (cons *porters* (cons *hush* (cons <- (cons -> (cons (cons == (cons = (cons >= (cons > (cons ==> (cons /. (cons (cons (cons $ (cons - (cons / (cons * (cons + (cons <= (cons < (cons >> (cons (vector 0) (cons y-or-n? (cons write-string (cons write-to-file (cons write-byte (cons where (cons when (cons warn (cons version (cons verified (cons variable? (cons var? (cons value (cons vector-> (cons <-vector (cons vector (cons vector? (cons userdefs (cons u! (cons update-lambda-table (cons unspecialise (cons untrack (cons unit (cons unix (cons union (cons unput (cons unprofile (cons undefmacro (cons unabsolute (cons return (cons type (cons tuple? (cons true (cons trap-error (cons tracked (cons track (cons time (cons thaw (cons tc? (cons tc (cons tl (cons tlstr (cons tlv (cons tail (cons systemf (cons synonyms (cons system-S? (cons symbol (cons symbol? (cons string->symbol (cons sum (cons subst (cons string? (cons string->n (cons stream (cons string (cons stinput (cons sterror (cons stoutput (cons step (cons sqts (cons spy (cons specialise (cons snd (cons simple-error (cons set (cons save (cons str (cons run (cons reverse (cons retract (cons remove (cons release (cons read (cons receive (cons read-file (cons read-file-as-bytelist (cons read-file-as-string (cons read-byte (cons read-from-string (cons read-from-string-unprocessed (cons read-unit-string (cons package? (cons put (cons preclude (cons preclude-all-but (cons ps (cons prolog? (cons protect (cons profile-results (cons profile (cons prolog-memory (cons print (cons pr (cons pos (cons porters (cons port (cons package (cons output (cons out (cons os (cons or (cons optimise (cons optimise? (cons open (cons occurrences (cons occurs-check (cons occurs? (cons n->string (cons number? (cons number (cons null (cons nth (cons not (cons nl (cons mode (cons macroexpand (cons maxinferences (cons mapcan (cons map (cons make-string (cons load (cons loaded (cons list (cons lineread (cons limit (cons length (cons let (cons lazy (cons lambda (cons language (cons is (cons intersection (cons inferences (cons intern (cons integer? (cons input (cons input+ (cons inline (cons included (cons include (cons include-all-but (cons it (cons is (cons is! (cons in (cons in-package (cons internal (cons implementation (cons if (cons hush? (cons hush (cons head (cons hd (cons hdv (cons hdstr (cons hash (cons get (cons get-time (cons gensym (cons fn (cons function (cons fst (cons freeze (cons fresh (cons fork (cons foreign (cons fix (cons file (cons fail (cons fail-if (cons factorise (cons factorise? (cons findall (cons false (cons enable-type-theory (cons explode (cons external (cons exception (cons eval-kl (cons eval (cons error-to-string (cons error (cons empty? (cons element? (cons do (cons difference (cons destroy (cons defun (cons define (cons defmacro (cons defcc (cons defprolog (cons declare (cons datatype (cons datatypes (cons ctxt (cons cn (cons cons? (cons cons (cons cond (cons concat (cons compile (cons cd (cons cases (cons call (cons char-stream? (cons close (cons bind (cons bound? (cons boolean? (cons boolean (cons bootstrap (cons (intern "bar!") (cons spy? (cons step? (cons atom? (cons asserta (cons assertz (cons assoc (cons arity (cons append (cons and (cons adjoin (cons <-address (cons address-> (cons absvector? (cons absvector (cons absolute (cons abort ())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) (value *property-vector*)) (set shen.*empty-absvector* (absvector 0))))))))))))))))))))))))))))))))))))))))))))) +(defun shen.initialise-environment () (do (set shen.*history* ()) (do (set shen.*tc* false) (do (set *property-vector* (shen.dict 20000)) (do (set *macros* (cons (cons shen.macros (lambda X (shen.macros X))) ())) (do (set shen.*source-form-handlers* ()) (do (set shen.*gensym* 0) (do (set shen.*tracking* ()) (do (set shen.*profiled* ()) (do (set shen.*special* (cons @p (cons @s (cons @v (cons cons (cons lambda (cons let (cons where (cons set (cons open (cons shen.input-h+ (cons type ())))))))))))) (do (set shen.*extraspecial* ()) (do (set shen.*spy* false) (do (set shen.*datatypes* ()) (do (set shen.*alldatatypes* ()) (do (set shen.*shen-type-theory-enabled?* true) (do (set shen.*package* null) (do (set shen.*synonyms* ()) (do (set shen.*occurs* true) (do (set shen.*factorise?* false) (do (set shen.*maxinferences* 1000000) (do (set *maximum-print-sequence-size* 20) (do (set shen.*call* 0) (do (set shen.*infs* 0) (do (set *hush* false) (do (set shen.*optimise* false) (do (set *version* "43.4") (do (set shen.*names* ()) (do (set shen.*step* false) (do (set shen.*it* "") (do (set shen.*residue* ()) (do (set *absolute* ()) (do (set shen.*prolog-memory* 1000) (do (set shen.*loading?* false) (do (set shen.*userdefs* ()) (do (set shen.*demodulation-function* (lambda X X)) (do (set shen.*custom-pattern-compiler* false) (do (set shen.*custom-pattern-reducer* false) (do (if (not (bound? *home-directory*)) (set *home-directory* "") shen.skip) (do (if (not (bound? *sterror*)) (set *sterror* (value *stoutput*)) shen.skip) (do (prolog-memory 10000) (do (set shen.*loading?* false) (do (shen.initialise-arity-table (cons abort (cons 0 (cons absolute (cons 1 (cons absvector? (cons 1 (cons absvector (cons 1 (cons address-> (cons 3 (cons adjoin (cons 2 (cons and (cons 2 (cons append (cons 2 (cons arity (cons 1 (cons assoc (cons 2 (cons atom? (cons 1 (cons boolean? (cons 1 (cons bootstrap (cons 1 (cons bound? (cons 1 (cons bind (cons 6 (cons call (cons 5 (cons cd (cons 1 (cons char-stream? (cons 1 (cons compile (cons 2 (cons concat (cons 2 (cons cons (cons 2 (cons cons? (cons 1 (cons cn (cons 2 (cons close (cons 1 (cons datatypes (cons 0 (cons declare (cons 2 (cons destroy (cons 1 (cons difference (cons 2 (cons do (cons 2 (cons element? (cons 2 (cons empty? (cons 1 (cons enable-type-theory (cons 1 (cons external (cons 1 (cons error-to-string (cons 1 (cons eval (cons 1 (cons eval-kl (cons 1 (cons explode (cons 1 (cons external (cons 1 (cons factorise (cons 1 (cons factorise? (cons 0 (cons fail-if (cons 2 (cons fail (cons 0 (cons fix (cons 2 (cons findall (cons 7 (cons foreign (cons 1 (cons fork (cons 5 (cons freeze (cons 1 (cons fresh (cons 0 (cons fst (cons 1 (cons fn (cons 1 (cons function (cons 1 (cons gensym (cons 1 (cons get (cons 3 (cons get-time (cons 1 (cons address-> (cons 3 (cons <-address (cons 2 (cons <-vector (cons 2 (cons > (cons 2 (cons >= (cons 2 (cons = (cons 2 (cons hash (cons 2 (cons hd (cons 1 (cons hdv (cons 1 (cons hdstr (cons 1 (cons head (cons 1 (cons hush? (cons 0 (cons hush (cons 1 (cons if (cons 3 (cons include (cons 1 (cons included (cons 0 (cons in-package (cons 1 (cons integer? (cons 1 (cons internal (cons 1 (cons intern (cons 1 (cons inferences (cons 0 (cons input (cons 1 (cons input+ (cons 2 (cons implementation (cons 0 (cons include-all-but (cons 1 (cons intersection (cons 2 (cons internal (cons 1 (cons it (cons 0 (cons is (cons 6 (cons is! (cons 6 (cons language (cons 0 (cons length (cons 1 (cons limit (cons 1 (cons lineread (cons 1 (cons list (cons 1 (cons load (cons 1 (cons < (cons 2 (cons <= (cons 2 (cons vector (cons 1 (cons macroexpand (cons 1 (cons map (cons 2 (cons mapcan (cons 2 (cons maxinferences (cons 1 (cons nl (cons 1 (cons not (cons 1 (cons nth (cons 2 (cons n->string (cons 1 (cons number? (cons 1 (cons occurs-check (cons 1 (cons occurrences (cons 2 (cons occurs? (cons 0 (cons occurs-check (cons 1 (cons open (cons 2 (cons optimise (cons 1 (cons optimise? (cons 0 (cons or (cons 2 (cons os (cons 0 (cons package (cons 3 (cons package? (cons 1 (cons port (cons 0 (cons porters (cons 0 (cons pos (cons 2 (cons preclude-all-but (cons 1 (cons print (cons 1 (cons profile (cons 1 (cons shen.print-prolog-vector (cons 1 (cons shen.print-freshterm (cons 1 (cons shen.printF (cons 1 (cons prolog-memory (cons 1 (cons profile-results (cons 1 (cons pr (cons 2 (cons ps (cons 1 (cons preclude (cons 1 (cons preclude-all-but (cons 1 (cons protect (cons 1 (cons put (cons 4 (cons read-file-as-string (cons 1 (cons read-file-as-bytelist (cons 1 (cons read-file (cons 1 (cons read (cons 1 (cons read-byte (cons 1 (cons read-from-string (cons 1 (cons read-from-string-unprocessed (cons 1 (cons read-unit-string (cons 1 (cons receive (cons 1 (cons release (cons 0 (cons shen.register-source-form (cons 2 (cons shen.unregister-source-form (cons 1 (cons remove (cons 2 (cons reverse (cons 1 (cons set (cons 2 (cons simple-error (cons 1 (cons snd (cons 1 (cons specialise (cons 2 (cons spy (cons 1 (cons spy? (cons 0 (cons step (cons 1 (cons step? (cons 0 (cons stinput (cons 0 (cons stoutput (cons 0 (cons str (cons 1 (cons string->n (cons 1 (cons string->symbol (cons 1 (cons string? (cons 1 (cons subst (cons 3 (cons sum (cons 1 (cons symbol? (cons 1 (cons systemf (cons 1 (cons tail (cons 1 (cons tl (cons 1 (cons tc (cons 1 (cons tc? (cons 0 (cons thaw (cons 1 (cons tlstr (cons 1 (cons track (cons 1 (cons tracked (cons 0 (cons trap-error (cons 2 (cons tuple? (cons 1 (cons type (cons 2 (cons return (cons 5 (cons unabsolute (cons 1 (cons undefmacro (cons 1 (cons unput (cons 3 (cons unprofile (cons 1 (cons union (cons 2 (cons untrack (cons 1 (cons undefmacro (cons 1 (cons update-lambda-table (cons 2 (cons userdefs (cons 0 (cons vector (cons 1 (cons vector? (cons 1 (cons vector-> (cons 3 (cons value (cons 1 (cons variable? (cons 1 (cons var? (cons 5 (cons version (cons 0 (cons when (cons 5 (cons write-byte (cons 2 (cons write-string (cons 2 (cons write-to-file (cons 2 (cons y-or-n? (cons 1 (cons + (cons 2 (cons * (cons 2 (cons / (cons 2 (cons - (cons 2 (cons == (cons 2 (cons (cons 1 (cons (cons 1 (cons (cons 1 (cons @p (cons 2 (cons @v (cons 2 (cons @s (cons 2 ()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) (do (put shen shen.external-symbols (cons ! (cons } (cons { (cons --> (cons <-- (cons && (cons (intern ":") (cons (intern ";") (cons (intern ":=") (cons (intern ",") (cons _ (cons *language* (cons *implementation* (cons *stinput* (cons *sterror* (cons *stoutput* (cons *home-directory* (cons *version* (cons *maximum-print-sequence-size* (cons *macros* (cons *os* (cons *release* (cons *property-vector* (cons @v (cons @p (cons @s (cons *port* (cons *porters* (cons *hush* (cons <- (cons -> (cons (cons == (cons = (cons >= (cons > (cons ==> (cons /. (cons (cons (cons $ (cons - (cons / (cons * (cons + (cons <= (cons < (cons >> (cons (vector 0) (cons y-or-n? (cons write-string (cons write-to-file (cons write-byte (cons where (cons when (cons warn (cons version (cons verified (cons variable? (cons var? (cons value (cons vector-> (cons <-vector (cons vector (cons vector? (cons userdefs (cons u! (cons update-lambda-table (cons unspecialise (cons untrack (cons unit (cons unix (cons union (cons unput (cons unprofile (cons undefmacro (cons unabsolute (cons return (cons type (cons tuple? (cons true (cons trap-error (cons tracked (cons track (cons time (cons thaw (cons tc? (cons tc (cons tl (cons tlstr (cons tlv (cons tail (cons systemf (cons synonyms (cons system-S? (cons symbol (cons symbol? (cons string->symbol (cons sum (cons subst (cons string? (cons string->n (cons stream (cons string (cons stinput (cons sterror (cons stoutput (cons step (cons sqts (cons spy (cons specialise (cons snd (cons simple-error (cons set (cons save (cons str (cons run (cons reverse (cons retract (cons remove (cons release (cons read (cons receive (cons read-file (cons read-file-as-bytelist (cons read-file-as-string (cons read-byte (cons read-from-string (cons read-from-string-unprocessed (cons read-unit-string (cons package? (cons put (cons preclude (cons preclude-all-but (cons ps (cons prolog? (cons protect (cons profile-results (cons profile (cons prolog-memory (cons print (cons pr (cons pos (cons porters (cons port (cons package (cons output (cons out (cons os (cons or (cons optimise (cons optimise? (cons open (cons occurrences (cons occurs-check (cons occurs? (cons n->string (cons number? (cons number (cons null (cons nth (cons not (cons nl (cons mode (cons macroexpand (cons maxinferences (cons mapcan (cons map (cons make-string (cons load (cons loaded (cons list (cons lineread (cons limit (cons length (cons let (cons lazy (cons lambda (cons language (cons is (cons intersection (cons inferences (cons intern (cons integer? (cons input (cons input+ (cons inline (cons included (cons include (cons include-all-but (cons it (cons is (cons is! (cons in (cons in-package (cons internal (cons implementation (cons if (cons hush? (cons hush (cons head (cons hd (cons hdv (cons hdstr (cons hash (cons get (cons get-time (cons gensym (cons fn (cons function (cons fst (cons freeze (cons fresh (cons fork (cons foreign (cons fix (cons file (cons fail (cons fail-if (cons factorise (cons factorise? (cons findall (cons false (cons enable-type-theory (cons explode (cons external (cons exception (cons eval-kl (cons eval (cons error-to-string (cons error (cons empty? (cons element? (cons do (cons difference (cons destroy (cons defun (cons define (cons defmacro (cons defcc (cons defprolog (cons declare (cons datatype (cons datatypes (cons ctxt (cons cn (cons cons? (cons cons (cons cond (cons concat (cons compile (cons cd (cons cases (cons call (cons char-stream? (cons close (cons bind (cons bound? (cons boolean? (cons boolean (cons bootstrap (cons (intern "bar!") (cons spy? (cons step? (cons atom? (cons asserta (cons assertz (cons assoc (cons arity (cons append (cons and (cons adjoin (cons <-address (cons address-> (cons absvector? (cons absvector (cons absolute (cons abort ())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) (value *property-vector*)) (set shen.*empty-absvector* (absvector 0))))))))))))))))))))))))))))))))))))))))))))) -(defun shen.initialise-signedfuncs () (do (set shen.*sigf* ()) (do (set shen.*sigf* (shen.assoc-> shen.register-source-form (lambda V6073 (lambda B6069 (lambda L6070 (lambda Key6071 (lambda C6072 (let A (shen.newpv B6069) (shen.gc B6069 (let B (shen.newpv B6069) (shen.gc B6069 (is! V6073 (cons symbol (cons --> (cons (cons (cons A (cons --> (cons (cons list (cons B ())) ()))) (cons --> (cons symbol ()))) ()))) B6069 L6070 Key6071 C6072)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> shen.unregister-source-form (lambda V6078 (lambda B6074 (lambda L6075 (lambda Key6076 (lambda C6077 (is! V6078 (cons symbol (cons --> (cons symbol ()))) B6074 L6075 Key6076 C6077)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> abort (lambda V6083 (lambda B6079 (lambda L6080 (lambda Key6081 (lambda C6082 (let A (shen.newpv B6079) (shen.gc B6079 (is! V6083 (cons --> (cons A ())) B6079 L6080 Key6081 C6082)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> absolute (lambda V6088 (lambda B6084 (lambda L6085 (lambda Key6086 (lambda C6087 (is! V6088 (cons string (cons --> (cons (cons list (cons string ())) ()))) B6084 L6085 Key6086 C6087)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> absvector? (lambda V6093 (lambda B6089 (lambda L6090 (lambda Key6091 (lambda C6092 (let A (shen.newpv B6089) (shen.gc B6089 (is! V6093 (cons A (cons --> (cons boolean ()))) B6089 L6090 Key6091 C6092)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> adjoin (lambda V6099 (lambda B6095 (lambda L6096 (lambda Key6097 (lambda C6098 (let A (shen.newpv B6095) (shen.gc B6095 (is! V6099 (cons A (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons A ())) ()))) ()))) B6095 L6096 Key6097 C6098)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> and (lambda V6104 (lambda B6100 (lambda L6101 (lambda Key6102 (lambda C6103 (is! V6104 (cons boolean (cons --> (cons (cons boolean (cons --> (cons boolean ()))) ()))) B6100 L6101 Key6102 C6103)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> shen.app (lambda V6109 (lambda B6105 (lambda L6106 (lambda Key6107 (lambda C6108 (let A (shen.newpv B6105) (shen.gc B6105 (is! V6109 (cons A (cons --> (cons (cons string (cons --> (cons (cons symbol (cons --> (cons string ()))) ()))) ()))) B6105 L6106 Key6107 C6108)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> append (lambda V6116 (lambda B6112 (lambda L6113 (lambda Key6114 (lambda C6115 (let A (shen.newpv B6112) (shen.gc B6112 (is! V6116 (cons (cons list (cons A ())) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons A ())) ()))) ()))) B6112 L6113 Key6114 C6115)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> arity (lambda V6121 (lambda B6117 (lambda L6118 (lambda Key6119 (lambda C6120 (let A (shen.newpv B6117) (shen.gc B6117 (is! V6121 (cons A (cons --> (cons number ()))) B6117 L6118 Key6119 C6120)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> assoc (lambda V6127 (lambda B6123 (lambda L6124 (lambda Key6125 (lambda C6126 (let A (shen.newpv B6123) (shen.gc B6123 (is! V6127 (cons A (cons --> (cons (cons (cons list (cons (cons list (cons A ())) ())) (cons --> (cons (cons list (cons A ())) ()))) ()))) B6123 L6124 Key6125 C6126)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> atom? (lambda V6132 (lambda B6128 (lambda L6129 (lambda Key6130 (lambda C6131 (let A (shen.newpv B6128) (shen.gc B6128 (is! V6132 (cons A (cons --> (cons boolean ()))) B6128 L6129 Key6130 C6131)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> boolean? (lambda V6137 (lambda B6133 (lambda L6134 (lambda Key6135 (lambda C6136 (let A (shen.newpv B6133) (shen.gc B6133 (is! V6137 (cons A (cons --> (cons boolean ()))) B6133 L6134 Key6135 C6136)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> bootstrap (lambda V6142 (lambda B6138 (lambda L6139 (lambda Key6140 (lambda C6141 (is! V6142 (cons string (cons --> (cons string ()))) B6138 L6139 Key6140 C6141)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> bound? (lambda V6147 (lambda B6143 (lambda L6144 (lambda Key6145 (lambda C6146 (is! V6147 (cons symbol (cons --> (cons boolean ()))) B6143 L6144 Key6145 C6146)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> shen.ccons? (lambda V6152 (lambda B6148 (lambda L6149 (lambda Key6150 (lambda C6151 (let A (shen.newpv B6148) (shen.gc B6148 (is! V6152 (cons (cons list (cons A ())) (cons --> (cons boolean ()))) B6148 L6149 Key6150 C6151)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> cd (lambda V6157 (lambda B6153 (lambda L6154 (lambda Key6155 (lambda C6156 (is! V6157 (cons string (cons --> (cons string ()))) B6153 L6154 Key6155 C6156)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> close (lambda V6163 (lambda B6159 (lambda L6160 (lambda Key6161 (lambda C6162 (let A (shen.newpv B6159) (shen.gc B6159 (let B (shen.newpv B6159) (shen.gc B6159 (is! V6163 (cons (cons stream (cons A ())) (cons --> (cons (cons list (cons B ())) ()))) B6159 L6160 Key6161 C6162)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> cn (lambda V6168 (lambda B6164 (lambda L6165 (lambda Key6166 (lambda C6167 (is! V6168 (cons string (cons --> (cons (cons string (cons --> (cons string ()))) ()))) B6164 L6165 Key6166 C6167)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> char-stream? (lambda V6173 (lambda B6169 (lambda L6170 (lambda Key6171 (lambda C6172 (let A (shen.newpv B6169) (shen.gc B6169 (is! V6173 (cons (cons stream (cons A ())) (cons --> (cons boolean ()))) B6169 L6170 Key6171 C6172)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> compile (lambda V6180 (lambda B6176 (lambda L6177 (lambda Key6178 (lambda C6179 (let A (shen.newpv B6176) (shen.gc B6176 (let B (shen.newpv B6176) (shen.gc B6176 (is! V6180 (cons (cons (cons list (cons A ())) (cons --> (cons (cons str (cons (cons list (cons A ())) (cons B ()))) ()))) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons B ()))) ()))) B6176 L6177 Key6178 C6179)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> cons? (lambda V6185 (lambda B6181 (lambda L6182 (lambda Key6183 (lambda C6184 (let A (shen.newpv B6181) (shen.gc B6181 (is! V6185 (cons A (cons --> (cons boolean ()))) B6181 L6182 Key6183 C6184)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> datatypes (lambda V6190 (lambda B6186 (lambda L6187 (lambda Key6188 (lambda C6189 (is! V6190 (cons --> (cons (cons list (cons symbol ())) ())) B6186 L6187 Key6188 C6189)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> destroy (lambda V6195 (lambda B6191 (lambda L6192 (lambda Key6193 (lambda C6194 (is! V6195 (cons symbol (cons --> (cons symbol ()))) B6191 L6192 Key6193 C6194)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> difference (lambda V6202 (lambda B6198 (lambda L6199 (lambda Key6200 (lambda C6201 (let A (shen.newpv B6198) (shen.gc B6198 (is! V6202 (cons (cons list (cons A ())) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons A ())) ()))) ()))) B6198 L6199 Key6200 C6201)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> do (lambda V6207 (lambda B6203 (lambda L6204 (lambda Key6205 (lambda C6206 (let A (shen.newpv B6203) (shen.gc B6203 (let B (shen.newpv B6203) (shen.gc B6203 (is! V6207 (cons A (cons --> (cons (cons B (cons --> (cons B ()))) ()))) B6203 L6204 Key6205 C6206)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> (lambda V6214 (lambda B6210 (lambda L6211 (lambda Key6212 (lambda C6213 (let A (shen.newpv B6210) (shen.gc B6210 (let B (shen.newpv B6210) (shen.gc B6210 (is! V6214 (cons (cons list (cons A ())) (cons --> (cons (cons str (cons (cons list (cons A ())) (cons (cons list (cons B ())) ()))) ()))) B6210 L6211 Key6212 C6213)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> (lambda V6221 (lambda B6217 (lambda L6218 (lambda Key6219 (lambda C6220 (let B (shen.newpv B6217) (shen.gc B6217 (let A (shen.newpv B6217) (shen.gc B6217 (is! V6221 (cons (cons list (cons A ())) (cons --> (cons (cons str (cons (cons list (cons B ())) (cons (cons list (cons A ())) ()))) ()))) B6217 L6218 Key6219 C6220)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> (lambda V6228 (lambda B6224 (lambda L6225 (lambda Key6226 (lambda C6227 (let A (shen.newpv B6224) (shen.gc B6224 (let B (shen.newpv B6224) (shen.gc B6224 (is! V6228 (cons (cons list (cons A ())) (cons --> (cons (cons str (cons (cons list (cons A ())) (cons (cons list (cons B ())) ()))) ()))) B6224 L6225 Key6226 C6227)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> shen.parse-failure? (lambda V6233 (lambda B6229 (lambda L6230 (lambda Key6231 (lambda C6232 (let A (shen.newpv B6229) (shen.gc B6229 (let B (shen.newpv B6229) (shen.gc B6229 (is! V6233 (cons (cons str (cons (cons list (cons A ())) (cons B ()))) (cons --> (cons boolean ()))) B6229 L6230 Key6231 C6232)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> shen.parse-failure (lambda V6238 (lambda B6234 (lambda L6235 (lambda Key6236 (lambda C6237 (let A (shen.newpv B6234) (shen.gc B6234 (let B (shen.newpv B6234) (shen.gc B6234 (is! V6238 (cons --> (cons (cons str (cons (cons list (cons A ())) (cons B ()))) ())) B6234 L6235 Key6236 C6237)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> shen.<-out (lambda V6243 (lambda B6239 (lambda L6240 (lambda Key6241 (lambda C6242 (let A (shen.newpv B6239) (shen.gc B6239 (let B (shen.newpv B6239) (shen.gc B6239 (is! V6243 (cons (cons str (cons (cons list (cons A ())) (cons B ()))) (cons --> (cons B ()))) B6239 L6240 Key6241 C6242)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> shen.in-> (lambda V6249 (lambda B6245 (lambda L6246 (lambda Key6247 (lambda C6248 (let B (shen.newpv B6245) (shen.gc B6245 (let A (shen.newpv B6245) (shen.gc B6245 (is! V6249 (cons (cons str (cons (cons list (cons A ())) (cons B ()))) (cons --> (cons (cons list (cons A ())) ()))) B6245 L6246 Key6247 C6248)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> shen.comb (lambda V6255 (lambda B6251 (lambda L6252 (lambda Key6253 (lambda C6254 (let A (shen.newpv B6251) (shen.gc B6251 (let B (shen.newpv B6251) (shen.gc B6251 (is! V6255 (cons (cons list (cons A ())) (cons --> (cons (cons B (cons --> (cons (cons str (cons (cons list (cons A ())) (cons B ()))) ()))) ()))) B6251 L6252 Key6253 C6254)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> element? (lambda V6260 (lambda B6256 (lambda L6257 (lambda Key6258 (lambda C6259 (let A (shen.newpv B6256) (shen.gc B6256 (is! V6260 (cons A (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons boolean ()))) ()))) B6256 L6257 Key6258 C6259)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> empty? (lambda V6265 (lambda B6261 (lambda L6262 (lambda Key6263 (lambda C6264 (let A (shen.newpv B6261) (shen.gc B6261 (is! V6265 (cons A (cons --> (cons boolean ()))) B6261 L6262 Key6263 C6264)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> enable-type-theory (lambda V6270 (lambda B6266 (lambda L6267 (lambda Key6268 (lambda C6269 (is! V6270 (cons symbol (cons --> (cons boolean ()))) B6266 L6267 Key6268 C6269)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> external (lambda V6275 (lambda B6271 (lambda L6272 (lambda Key6273 (lambda C6274 (is! V6275 (cons symbol (cons --> (cons (cons list (cons symbol ())) ()))) B6271 L6272 Key6273 C6274)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> error-to-string (lambda V6280 (lambda B6276 (lambda L6277 (lambda Key6278 (lambda C6279 (is! V6280 (cons exception (cons --> (cons string ()))) B6276 L6277 Key6278 C6279)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> explode (lambda V6285 (lambda B6281 (lambda L6282 (lambda Key6283 (lambda C6284 (let A (shen.newpv B6281) (shen.gc B6281 (is! V6285 (cons A (cons --> (cons (cons list (cons string ())) ()))) B6281 L6282 Key6283 C6284)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> factorise (lambda V6290 (lambda B6286 (lambda L6287 (lambda Key6288 (lambda C6289 (is! V6290 (cons symbol (cons --> (cons symbol ()))) B6286 L6287 Key6288 C6289)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> factorise? (lambda V6295 (lambda B6291 (lambda L6292 (lambda Key6293 (lambda C6294 (is! V6295 (cons --> (cons boolean ())) B6291 L6292 Key6293 C6294)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> fail (lambda V6300 (lambda B6296 (lambda L6297 (lambda Key6298 (lambda C6299 (is! V6300 (cons --> (cons symbol ())) B6296 L6297 Key6298 C6299)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> fix (lambda V6306 (lambda B6302 (lambda L6303 (lambda Key6304 (lambda C6305 (let A (shen.newpv B6302) (shen.gc B6302 (is! V6306 (cons (cons A (cons --> (cons A ()))) (cons --> (cons (cons A (cons --> (cons A ()))) ()))) B6302 L6303 Key6304 C6305)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> freeze (lambda V6311 (lambda B6307 (lambda L6308 (lambda Key6309 (lambda C6310 (let A (shen.newpv B6307) (shen.gc B6307 (is! V6311 (cons A (cons --> (cons (cons lazy (cons A ())) ()))) B6307 L6308 Key6309 C6310)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> fst (lambda V6316 (lambda B6312 (lambda L6313 (lambda Key6314 (lambda C6315 (let B (shen.newpv B6312) (shen.gc B6312 (let A (shen.newpv B6312) (shen.gc B6312 (is! V6316 (cons (cons A (cons * (cons B ()))) (cons --> (cons A ()))) B6312 L6313 Key6314 C6315)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> gensym (lambda V6321 (lambda B6317 (lambda L6318 (lambda Key6319 (lambda C6320 (is! V6321 (cons symbol (cons --> (cons symbol ()))) B6317 L6318 Key6319 C6320)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> shen.hds=? (lambda V6327 (lambda B6323 (lambda L6324 (lambda Key6325 (lambda C6326 (let A (shen.newpv B6323) (shen.gc B6323 (is! V6327 (cons (cons list (cons A ())) (cons --> (cons (cons A (cons --> (cons boolean ()))) ()))) B6323 L6324 Key6325 C6326)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> hush (lambda V6332 (lambda B6328 (lambda L6329 (lambda Key6330 (lambda C6331 (is! V6332 (cons symbol (cons --> (cons boolean ()))) B6328 L6329 Key6330 C6331)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> hush? (lambda V6337 (lambda B6333 (lambda L6334 (lambda Key6335 (lambda C6336 (is! V6337 (cons --> (cons boolean ())) B6333 L6334 Key6335 C6336)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> <-vector (lambda V6343 (lambda B6339 (lambda L6340 (lambda Key6341 (lambda C6342 (let A (shen.newpv B6339) (shen.gc B6339 (is! V6343 (cons (cons vector (cons A ())) (cons --> (cons (cons number (cons --> (cons A ()))) ()))) B6339 L6340 Key6341 C6342)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> vector-> (lambda V6349 (lambda B6345 (lambda L6346 (lambda Key6347 (lambda C6348 (let A (shen.newpv B6345) (shen.gc B6345 (is! V6349 (cons (cons vector (cons A ())) (cons --> (cons (cons number (cons --> (cons (cons A (cons --> (cons (cons vector (cons A ())) ()))) ()))) ()))) B6345 L6346 Key6347 C6348)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> vector (lambda V6354 (lambda B6350 (lambda L6351 (lambda Key6352 (lambda C6353 (let A (shen.newpv B6350) (shen.gc B6350 (is! V6354 (cons number (cons --> (cons (cons vector (cons A ())) ()))) B6350 L6351 Key6352 C6353)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> get-time (lambda V6359 (lambda B6355 (lambda L6356 (lambda Key6357 (lambda C6358 (is! V6359 (cons symbol (cons --> (cons number ()))) B6355 L6356 Key6357 C6358)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> hash (lambda V6364 (lambda B6360 (lambda L6361 (lambda Key6362 (lambda C6363 (let A (shen.newpv B6360) (shen.gc B6360 (is! V6364 (cons A (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B6360 L6361 Key6362 C6363)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> head (lambda V6369 (lambda B6365 (lambda L6366 (lambda Key6367 (lambda C6368 (let A (shen.newpv B6365) (shen.gc B6365 (is! V6369 (cons (cons list (cons A ())) (cons --> (cons A ()))) B6365 L6366 Key6367 C6368)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> hdv (lambda V6374 (lambda B6370 (lambda L6371 (lambda Key6372 (lambda C6373 (let A (shen.newpv B6370) (shen.gc B6370 (is! V6374 (cons (cons vector (cons A ())) (cons --> (cons A ()))) B6370 L6371 Key6372 C6373)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> hdstr (lambda V6379 (lambda B6375 (lambda L6376 (lambda Key6377 (lambda C6378 (is! V6379 (cons string (cons --> (cons string ()))) B6375 L6376 Key6377 C6378)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> if (lambda V6384 (lambda B6380 (lambda L6381 (lambda Key6382 (lambda C6383 (let A (shen.newpv B6380) (shen.gc B6380 (is! V6384 (cons boolean (cons --> (cons (cons A (cons --> (cons (cons A (cons --> (cons A ()))) ()))) ()))) B6380 L6381 Key6382 C6383)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> in-package (lambda V6389 (lambda B6385 (lambda L6386 (lambda Key6387 (lambda C6388 (is! V6389 (cons symbol (cons --> (cons symbol ()))) B6385 L6386 Key6387 C6388)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> it (lambda V6394 (lambda B6390 (lambda L6391 (lambda Key6392 (lambda C6393 (is! V6394 (cons --> (cons string ())) B6390 L6391 Key6392 C6393)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> implementation (lambda V6399 (lambda B6395 (lambda L6396 (lambda Key6397 (lambda C6398 (is! V6399 (cons --> (cons string ())) B6395 L6396 Key6397 C6398)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> include (lambda V6405 (lambda B6401 (lambda L6402 (lambda Key6403 (lambda C6404 (is! V6405 (cons (cons list (cons symbol ())) (cons --> (cons (cons list (cons symbol ())) ()))) B6401 L6402 Key6403 C6404)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> include-all-but (lambda V6411 (lambda B6407 (lambda L6408 (lambda Key6409 (lambda C6410 (is! V6411 (cons (cons list (cons symbol ())) (cons --> (cons (cons list (cons symbol ())) ()))) B6407 L6408 Key6409 C6410)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> included (lambda V6416 (lambda B6412 (lambda L6413 (lambda Key6414 (lambda C6415 (is! V6416 (cons --> (cons (cons list (cons symbol ())) ())) B6412 L6413 Key6414 C6415)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> inferences (lambda V6421 (lambda B6417 (lambda L6418 (lambda Key6419 (lambda C6420 (is! V6421 (cons --> (cons number ())) B6417 L6418 Key6419 C6420)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> shen.insert (lambda V6426 (lambda B6422 (lambda L6423 (lambda Key6424 (lambda C6425 (let A (shen.newpv B6422) (shen.gc B6422 (is! V6426 (cons A (cons --> (cons (cons string (cons --> (cons string ()))) ()))) B6422 L6423 Key6424 C6425)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> integer? (lambda V6431 (lambda B6427 (lambda L6428 (lambda Key6429 (lambda C6430 (let A (shen.newpv B6427) (shen.gc B6427 (is! V6431 (cons A (cons --> (cons boolean ()))) B6427 L6428 Key6429 C6430)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> internal (lambda V6436 (lambda B6432 (lambda L6433 (lambda Key6434 (lambda C6435 (is! V6436 (cons symbol (cons --> (cons (cons list (cons symbol ())) ()))) B6432 L6433 Key6434 C6435)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> intersection (lambda V6443 (lambda B6439 (lambda L6440 (lambda Key6441 (lambda C6442 (let A (shen.newpv B6439) (shen.gc B6439 (is! V6443 (cons (cons list (cons A ())) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons A ())) ()))) ()))) B6439 L6440 Key6441 C6442)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> language (lambda V6448 (lambda B6444 (lambda L6445 (lambda Key6446 (lambda C6447 (is! V6448 (cons --> (cons string ())) B6444 L6445 Key6446 C6447)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> length (lambda V6453 (lambda B6449 (lambda L6450 (lambda Key6451 (lambda C6452 (let A (shen.newpv B6449) (shen.gc B6449 (is! V6453 (cons (cons list (cons A ())) (cons --> (cons number ()))) B6449 L6450 Key6451 C6452)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> limit (lambda V6458 (lambda B6454 (lambda L6455 (lambda Key6456 (lambda C6457 (let A (shen.newpv B6454) (shen.gc B6454 (is! V6458 (cons (cons vector (cons A ())) (cons --> (cons number ()))) B6454 L6455 Key6456 C6457)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> lineread (lambda V6464 (lambda B6460 (lambda L6461 (lambda Key6462 (lambda C6463 (is! V6464 (cons (cons stream (cons in ())) (cons --> (cons (cons list (cons unit ())) ()))) B6460 L6461 Key6462 C6463)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> load (lambda V6469 (lambda B6465 (lambda L6466 (lambda Key6467 (lambda C6468 (is! V6469 (cons string (cons --> (cons symbol ()))) B6465 L6466 Key6467 C6468)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> map (lambda V6476 (lambda B6472 (lambda L6473 (lambda Key6474 (lambda C6475 (let A (shen.newpv B6472) (shen.gc B6472 (let B (shen.newpv B6472) (shen.gc B6472 (is! V6476 (cons (cons A (cons --> (cons B ()))) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons B ())) ()))) ()))) B6472 L6473 Key6474 C6475)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> mapcan (lambda V6483 (lambda B6479 (lambda L6480 (lambda Key6481 (lambda C6482 (let A (shen.newpv B6479) (shen.gc B6479 (let B (shen.newpv B6479) (shen.gc B6479 (is! V6483 (cons (cons A (cons --> (cons (cons list (cons B ())) ()))) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons B ())) ()))) ()))) B6479 L6480 Key6481 C6482)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> maxinferences (lambda V6488 (lambda B6484 (lambda L6485 (lambda Key6486 (lambda C6487 (is! V6488 (cons number (cons --> (cons number ()))) B6484 L6485 Key6486 C6487)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> n->string (lambda V6493 (lambda B6489 (lambda L6490 (lambda Key6491 (lambda C6492 (is! V6493 (cons number (cons --> (cons string ()))) B6489 L6490 Key6491 C6492)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> nl (lambda V6498 (lambda B6494 (lambda L6495 (lambda Key6496 (lambda C6497 (is! V6498 (cons number (cons --> (cons number ()))) B6494 L6495 Key6496 C6497)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> not (lambda V6503 (lambda B6499 (lambda L6500 (lambda Key6501 (lambda C6502 (is! V6503 (cons boolean (cons --> (cons boolean ()))) B6499 L6500 Key6501 C6502)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> nth (lambda V6508 (lambda B6504 (lambda L6505 (lambda Key6506 (lambda C6507 (let A (shen.newpv B6504) (shen.gc B6504 (is! V6508 (cons number (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons A ()))) ()))) B6504 L6505 Key6506 C6507)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> number? (lambda V6513 (lambda B6509 (lambda L6510 (lambda Key6511 (lambda C6512 (let A (shen.newpv B6509) (shen.gc B6509 (is! V6513 (cons A (cons --> (cons boolean ()))) B6509 L6510 Key6511 C6512)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> occurrences (lambda V6518 (lambda B6514 (lambda L6515 (lambda Key6516 (lambda C6517 (let A (shen.newpv B6514) (shen.gc B6514 (let B (shen.newpv B6514) (shen.gc B6514 (is! V6518 (cons A (cons --> (cons (cons B (cons --> (cons number ()))) ()))) B6514 L6515 Key6516 C6517)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> occurs-check (lambda V6523 (lambda B6519 (lambda L6520 (lambda Key6521 (lambda C6522 (is! V6523 (cons symbol (cons --> (cons boolean ()))) B6519 L6520 Key6521 C6522)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> occurs? (lambda V6528 (lambda B6524 (lambda L6525 (lambda Key6526 (lambda C6527 (is! V6528 (cons --> (cons boolean ())) B6524 L6525 Key6526 C6527)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> optimise (lambda V6533 (lambda B6529 (lambda L6530 (lambda Key6531 (lambda C6532 (is! V6533 (cons symbol (cons --> (cons boolean ()))) B6529 L6530 Key6531 C6532)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> optimise? (lambda V6538 (lambda B6534 (lambda L6535 (lambda Key6536 (lambda C6537 (is! V6538 (cons --> (cons boolean ())) B6534 L6535 Key6536 C6537)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> or (lambda V6543 (lambda B6539 (lambda L6540 (lambda Key6541 (lambda C6542 (is! V6543 (cons boolean (cons --> (cons (cons boolean (cons --> (cons boolean ()))) ()))) B6539 L6540 Key6541 C6542)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> os (lambda V6548 (lambda B6544 (lambda L6545 (lambda Key6546 (lambda C6547 (is! V6548 (cons --> (cons string ())) B6544 L6545 Key6546 C6547)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> package? (lambda V6553 (lambda B6549 (lambda L6550 (lambda Key6551 (lambda C6552 (is! V6553 (cons symbol (cons --> (cons boolean ()))) B6549 L6550 Key6551 C6552)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> port (lambda V6558 (lambda B6554 (lambda L6555 (lambda Key6556 (lambda C6557 (is! V6558 (cons --> (cons string ())) B6554 L6555 Key6556 C6557)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> porters (lambda V6563 (lambda B6559 (lambda L6560 (lambda Key6561 (lambda C6562 (is! V6563 (cons --> (cons string ())) B6559 L6560 Key6561 C6562)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> pos (lambda V6568 (lambda B6564 (lambda L6565 (lambda Key6566 (lambda C6567 (is! V6568 (cons string (cons --> (cons (cons number (cons --> (cons string ()))) ()))) B6564 L6565 Key6566 C6567)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> pr (lambda V6573 (lambda B6569 (lambda L6570 (lambda Key6571 (lambda C6572 (is! V6573 (cons string (cons --> (cons (cons (cons stream (cons out ())) (cons --> (cons string ()))) ()))) B6569 L6570 Key6571 C6572)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> print (lambda V6578 (lambda B6574 (lambda L6575 (lambda Key6576 (lambda C6577 (let A (shen.newpv B6574) (shen.gc B6574 (is! V6578 (cons A (cons --> (cons A ()))) B6574 L6575 Key6576 C6577)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> profile (lambda V6583 (lambda B6579 (lambda L6580 (lambda Key6581 (lambda C6582 (is! V6583 (cons symbol (cons --> (cons symbol ()))) B6579 L6580 Key6581 C6582)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> preclude (lambda V6589 (lambda B6585 (lambda L6586 (lambda Key6587 (lambda C6588 (is! V6589 (cons (cons list (cons symbol ())) (cons --> (cons (cons list (cons symbol ())) ()))) B6585 L6586 Key6587 C6588)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> shen.proc-nl (lambda V6594 (lambda B6590 (lambda L6591 (lambda Key6592 (lambda C6593 (is! V6594 (cons string (cons --> (cons string ()))) B6590 L6591 Key6592 C6593)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> profile-results (lambda V6599 (lambda B6595 (lambda L6596 (lambda Key6597 (lambda C6598 (is! V6599 (cons symbol (cons --> (cons (cons symbol (cons * (cons number ()))) ()))) B6595 L6596 Key6597 C6598)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> protect (lambda V6604 (lambda B6600 (lambda L6601 (lambda Key6602 (lambda C6603 (let A (shen.newpv B6600) (shen.gc B6600 (is! V6604 (cons A (cons --> (cons A ()))) B6600 L6601 Key6602 C6603)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> preclude-all-but (lambda V6610 (lambda B6606 (lambda L6607 (lambda Key6608 (lambda C6609 (is! V6610 (cons (cons list (cons symbol ())) (cons --> (cons (cons list (cons symbol ())) ()))) B6606 L6607 Key6608 C6609)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> shen.prhush (lambda V6615 (lambda B6611 (lambda L6612 (lambda Key6613 (lambda C6614 (is! V6615 (cons string (cons --> (cons (cons (cons stream (cons out ())) (cons --> (cons string ()))) ()))) B6611 L6612 Key6613 C6614)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> prolog-memory (lambda V6620 (lambda B6616 (lambda L6617 (lambda Key6618 (lambda C6619 (is! V6620 (cons number (cons --> (cons number ()))) B6616 L6617 Key6618 C6619)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> ps (lambda V6625 (lambda B6621 (lambda L6622 (lambda Key6623 (lambda C6624 (is! V6625 (cons symbol (cons --> (cons (cons list (cons unit ())) ()))) B6621 L6622 Key6623 C6624)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> read (lambda V6630 (lambda B6626 (lambda L6627 (lambda Key6628 (lambda C6629 (is! V6630 (cons (cons stream (cons in ())) (cons --> (cons unit ()))) B6626 L6627 Key6628 C6629)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> read-unit-string (lambda V6635 (lambda B6631 (lambda L6632 (lambda Key6633 (lambda C6634 (is! V6635 (cons (cons stream (cons in ())) (cons --> (cons string ()))) B6631 L6632 Key6633 C6634)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> read-byte (lambda V6640 (lambda B6636 (lambda L6637 (lambda Key6638 (lambda C6639 (is! V6640 (cons (cons stream (cons in ())) (cons --> (cons number ()))) B6636 L6637 Key6638 C6639)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> read-file-as-bytelist (lambda V6645 (lambda B6641 (lambda L6642 (lambda Key6643 (lambda C6644 (is! V6645 (cons string (cons --> (cons (cons list (cons number ())) ()))) B6641 L6642 Key6643 C6644)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> read-file-as-string (lambda V6650 (lambda B6646 (lambda L6647 (lambda Key6648 (lambda C6649 (is! V6650 (cons string (cons --> (cons string ()))) B6646 L6647 Key6648 C6649)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> read-file (lambda V6655 (lambda B6651 (lambda L6652 (lambda Key6653 (lambda C6654 (is! V6655 (cons string (cons --> (cons (cons list (cons unit ())) ()))) B6651 L6652 Key6653 C6654)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> read-from-string (lambda V6660 (lambda B6656 (lambda L6657 (lambda Key6658 (lambda C6659 (is! V6660 (cons string (cons --> (cons (cons list (cons unit ())) ()))) B6656 L6657 Key6658 C6659)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> read-from-string-unprocessed (lambda V6665 (lambda B6661 (lambda L6662 (lambda Key6663 (lambda C6664 (is! V6665 (cons string (cons --> (cons (cons list (cons unit ())) ()))) B6661 L6662 Key6663 C6664)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> release (lambda V6670 (lambda B6666 (lambda L6667 (lambda Key6668 (lambda C6669 (is! V6670 (cons --> (cons string ())) B6666 L6667 Key6668 C6669)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> remove (lambda V6676 (lambda B6672 (lambda L6673 (lambda Key6674 (lambda C6675 (let A (shen.newpv B6672) (shen.gc B6672 (is! V6676 (cons A (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons A ())) ()))) ()))) B6672 L6673 Key6674 C6675)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> reverse (lambda V6682 (lambda B6678 (lambda L6679 (lambda Key6680 (lambda C6681 (let A (shen.newpv B6678) (shen.gc B6678 (is! V6682 (cons (cons list (cons A ())) (cons --> (cons (cons list (cons A ())) ()))) B6678 L6679 Key6680 C6681)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> simple-error (lambda V6687 (lambda B6683 (lambda L6684 (lambda Key6685 (lambda C6686 (let A (shen.newpv B6683) (shen.gc B6683 (is! V6687 (cons string (cons --> (cons A ()))) B6683 L6684 Key6685 C6686)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> snd (lambda V6692 (lambda B6688 (lambda L6689 (lambda Key6690 (lambda C6691 (let A (shen.newpv B6688) (shen.gc B6688 (let B (shen.newpv B6688) (shen.gc B6688 (is! V6692 (cons (cons A (cons * (cons B ()))) (cons --> (cons B ()))) B6688 L6689 Key6690 C6691)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> specialise (lambda V6697 (lambda B6693 (lambda L6694 (lambda Key6695 (lambda C6696 (is! V6697 (cons symbol (cons --> (cons (cons number (cons --> (cons symbol ()))) ()))) B6693 L6694 Key6695 C6696)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> spy (lambda V6702 (lambda B6698 (lambda L6699 (lambda Key6700 (lambda C6701 (is! V6702 (cons symbol (cons --> (cons boolean ()))) B6698 L6699 Key6700 C6701)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> spy? (lambda V6707 (lambda B6703 (lambda L6704 (lambda Key6705 (lambda C6706 (is! V6707 (cons --> (cons boolean ())) B6703 L6704 Key6705 C6706)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> step (lambda V6712 (lambda B6708 (lambda L6709 (lambda Key6710 (lambda C6711 (is! V6712 (cons symbol (cons --> (cons boolean ()))) B6708 L6709 Key6710 C6711)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> step? (lambda V6717 (lambda B6713 (lambda L6714 (lambda Key6715 (lambda C6716 (is! V6717 (cons --> (cons boolean ())) B6713 L6714 Key6715 C6716)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> stinput (lambda V6722 (lambda B6718 (lambda L6719 (lambda Key6720 (lambda C6721 (is! V6722 (cons --> (cons (cons stream (cons in ())) ())) B6718 L6719 Key6720 C6721)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> sterror (lambda V6727 (lambda B6723 (lambda L6724 (lambda Key6725 (lambda C6726 (is! V6727 (cons --> (cons (cons stream (cons out ())) ())) B6723 L6724 Key6725 C6726)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> stoutput (lambda V6732 (lambda B6728 (lambda L6729 (lambda Key6730 (lambda C6731 (is! V6732 (cons --> (cons (cons stream (cons out ())) ())) B6728 L6729 Key6730 C6731)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> string? (lambda V6737 (lambda B6733 (lambda L6734 (lambda Key6735 (lambda C6736 (let A (shen.newpv B6733) (shen.gc B6733 (is! V6737 (cons A (cons --> (cons boolean ()))) B6733 L6734 Key6735 C6736)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> str (lambda V6742 (lambda B6738 (lambda L6739 (lambda Key6740 (lambda C6741 (let A (shen.newpv B6738) (shen.gc B6738 (is! V6742 (cons A (cons --> (cons string ()))) B6738 L6739 Key6740 C6741)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> string->n (lambda V6747 (lambda B6743 (lambda L6744 (lambda Key6745 (lambda C6746 (is! V6747 (cons string (cons --> (cons number ()))) B6743 L6744 Key6745 C6746)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> string->symbol (lambda V6752 (lambda B6748 (lambda L6749 (lambda Key6750 (lambda C6751 (is! V6752 (cons string (cons --> (cons symbol ()))) B6748 L6749 Key6750 C6751)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> sum (lambda V6757 (lambda B6753 (lambda L6754 (lambda Key6755 (lambda C6756 (is! V6757 (cons (cons list (cons number ())) (cons --> (cons number ()))) B6753 L6754 Key6755 C6756)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> symbol? (lambda V6762 (lambda B6758 (lambda L6759 (lambda Key6760 (lambda C6761 (let A (shen.newpv B6758) (shen.gc B6758 (is! V6762 (cons A (cons --> (cons boolean ()))) B6758 L6759 Key6760 C6761)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> systemf (lambda V6767 (lambda B6763 (lambda L6764 (lambda Key6765 (lambda C6766 (is! V6767 (cons symbol (cons --> (cons symbol ()))) B6763 L6764 Key6765 C6766)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> system-S? (lambda V6772 (lambda B6768 (lambda L6769 (lambda Key6770 (lambda C6771 (is! V6772 (cons --> (cons boolean ())) B6768 L6769 Key6770 C6771)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> tail (lambda V6778 (lambda B6774 (lambda L6775 (lambda Key6776 (lambda C6777 (let A (shen.newpv B6774) (shen.gc B6774 (is! V6778 (cons (cons list (cons A ())) (cons --> (cons (cons list (cons A ())) ()))) B6774 L6775 Key6776 C6777)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> tlstr (lambda V6783 (lambda B6779 (lambda L6780 (lambda Key6781 (lambda C6782 (is! V6783 (cons string (cons --> (cons string ()))) B6779 L6780 Key6781 C6782)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> tlv (lambda V6789 (lambda B6785 (lambda L6786 (lambda Key6787 (lambda C6788 (let A (shen.newpv B6785) (shen.gc B6785 (is! V6789 (cons (cons vector (cons A ())) (cons --> (cons (cons vector (cons A ())) ()))) B6785 L6786 Key6787 C6788)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> tc (lambda V6794 (lambda B6790 (lambda L6791 (lambda Key6792 (lambda C6793 (is! V6794 (cons symbol (cons --> (cons boolean ()))) B6790 L6791 Key6792 C6793)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> tc? (lambda V6799 (lambda B6795 (lambda L6796 (lambda Key6797 (lambda C6798 (is! V6799 (cons --> (cons boolean ())) B6795 L6796 Key6797 C6798)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> thaw (lambda V6804 (lambda B6800 (lambda L6801 (lambda Key6802 (lambda C6803 (let A (shen.newpv B6800) (shen.gc B6800 (is! V6804 (cons (cons lazy (cons A ())) (cons --> (cons A ()))) B6800 L6801 Key6802 C6803)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> track (lambda V6809 (lambda B6805 (lambda L6806 (lambda Key6807 (lambda C6808 (is! V6809 (cons symbol (cons --> (cons symbol ()))) B6805 L6806 Key6807 C6808)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> tracked (lambda V6814 (lambda B6810 (lambda L6811 (lambda Key6812 (lambda C6813 (is! V6814 (cons --> (cons (cons list (cons symbol ())) ())) B6810 L6811 Key6812 C6813)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> trap-error (lambda V6819 (lambda B6815 (lambda L6816 (lambda Key6817 (lambda C6818 (let A (shen.newpv B6815) (shen.gc B6815 (is! V6819 (cons A (cons --> (cons (cons (cons exception (cons --> (cons A ()))) (cons --> (cons A ()))) ()))) B6815 L6816 Key6817 C6818)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> tuple? (lambda V6824 (lambda B6820 (lambda L6821 (lambda Key6822 (lambda C6823 (let A (shen.newpv B6820) (shen.gc B6820 (is! V6824 (cons A (cons --> (cons boolean ()))) B6820 L6821 Key6822 C6823)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> unabsolute (lambda V6829 (lambda B6825 (lambda L6826 (lambda Key6827 (lambda C6828 (is! V6829 (cons string (cons --> (cons (cons list (cons string ())) ()))) B6825 L6826 Key6827 C6828)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> undefmacro (lambda V6834 (lambda B6830 (lambda L6831 (lambda Key6832 (lambda C6833 (is! V6834 (cons symbol (cons --> (cons symbol ()))) B6830 L6831 Key6832 C6833)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> union (lambda V6841 (lambda B6837 (lambda L6838 (lambda Key6839 (lambda C6840 (let A (shen.newpv B6837) (shen.gc B6837 (is! V6841 (cons (cons list (cons A ())) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons A ())) ()))) ()))) B6837 L6838 Key6839 C6840)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> unprofile (lambda V6846 (lambda B6842 (lambda L6843 (lambda Key6844 (lambda C6845 (is! V6846 (cons symbol (cons --> (cons symbol ()))) B6842 L6843 Key6844 C6845)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> untrack (lambda V6851 (lambda B6847 (lambda L6848 (lambda Key6849 (lambda C6850 (is! V6851 (cons symbol (cons --> (cons symbol ()))) B6847 L6848 Key6849 C6850)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> userdefs (lambda V6856 (lambda B6852 (lambda L6853 (lambda Key6854 (lambda C6855 (is! V6856 (cons --> (cons (cons list (cons symbol ())) ())) B6852 L6853 Key6854 C6855)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> variable? (lambda V6861 (lambda B6857 (lambda L6858 (lambda Key6859 (lambda C6860 (let A (shen.newpv B6857) (shen.gc B6857 (is! V6861 (cons A (cons --> (cons boolean ()))) B6857 L6858 Key6859 C6860)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> vector? (lambda V6866 (lambda B6862 (lambda L6863 (lambda Key6864 (lambda C6865 (let A (shen.newpv B6862) (shen.gc B6862 (is! V6866 (cons A (cons --> (cons boolean ()))) B6862 L6863 Key6864 C6865)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> version (lambda V6871 (lambda B6867 (lambda L6868 (lambda Key6869 (lambda C6870 (is! V6871 (cons --> (cons string ())) B6867 L6868 Key6869 C6870)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> write-to-file (lambda V6876 (lambda B6872 (lambda L6873 (lambda Key6874 (lambda C6875 (let A (shen.newpv B6872) (shen.gc B6872 (is! V6876 (cons string (cons --> (cons (cons A (cons --> (cons A ()))) ()))) B6872 L6873 Key6874 C6875)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> write-byte (lambda V6881 (lambda B6877 (lambda L6878 (lambda Key6879 (lambda C6880 (is! V6881 (cons number (cons --> (cons (cons (cons stream (cons out ())) (cons --> (cons number ()))) ()))) B6877 L6878 Key6879 C6880)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> write-string (lambda V6886 (lambda B6882 (lambda L6883 (lambda Key6884 (lambda C6885 (is! V6886 (cons string (cons --> (cons (cons (cons stream (cons out ())) (cons --> (cons string ()))) ()))) B6882 L6883 Key6884 C6885)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> y-or-n? (lambda V6891 (lambda B6887 (lambda L6888 (lambda Key6889 (lambda C6890 (is! V6891 (cons string (cons --> (cons boolean ()))) B6887 L6888 Key6889 C6890)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> > (lambda V6896 (lambda B6892 (lambda L6893 (lambda Key6894 (lambda C6895 (is! V6896 (cons number (cons --> (cons (cons number (cons --> (cons boolean ()))) ()))) B6892 L6893 Key6894 C6895)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> < (lambda V6901 (lambda B6897 (lambda L6898 (lambda Key6899 (lambda C6900 (is! V6901 (cons number (cons --> (cons (cons number (cons --> (cons boolean ()))) ()))) B6897 L6898 Key6899 C6900)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> >= (lambda V6906 (lambda B6902 (lambda L6903 (lambda Key6904 (lambda C6905 (is! V6906 (cons number (cons --> (cons (cons number (cons --> (cons boolean ()))) ()))) B6902 L6903 Key6904 C6905)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> <= (lambda V6911 (lambda B6907 (lambda L6908 (lambda Key6909 (lambda C6910 (is! V6911 (cons number (cons --> (cons (cons number (cons --> (cons boolean ()))) ()))) B6907 L6908 Key6909 C6910)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> = (lambda V6916 (lambda B6912 (lambda L6913 (lambda Key6914 (lambda C6915 (let A (shen.newpv B6912) (shen.gc B6912 (is! V6916 (cons A (cons --> (cons (cons A (cons --> (cons boolean ()))) ()))) B6912 L6913 Key6914 C6915)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> + (lambda V6921 (lambda B6917 (lambda L6918 (lambda Key6919 (lambda C6920 (is! V6921 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B6917 L6918 Key6919 C6920)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> / (lambda V6926 (lambda B6922 (lambda L6923 (lambda Key6924 (lambda C6925 (is! V6926 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B6922 L6923 Key6924 C6925)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> - (lambda V6931 (lambda B6927 (lambda L6928 (lambda Key6929 (lambda C6930 (is! V6931 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B6927 L6928 Key6929 C6930)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> * (lambda V6936 (lambda B6932 (lambda L6933 (lambda Key6934 (lambda C6935 (is! V6936 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B6932 L6933 Key6934 C6935)))))) (value shen.*sigf*))) (set shen.*sigf* (shen.assoc-> == (lambda V6941 (lambda B6937 (lambda L6938 (lambda Key6939 (lambda C6940 (let A (shen.newpv B6937) (shen.gc B6937 (let B (shen.newpv B6937) (shen.gc B6937 (is! V6941 (cons A (cons --> (cons (cons B (cons --> (cons boolean ()))) ()))) B6937 L6938 Key6939 C6940)))))))))) (value shen.*sigf*))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) +(defun shen.initialise-signedfuncs () (do (set shen.*sigf* ()) (do (set shen.*sigf* (shen.assoc-> shen.register-source-form (lambda V6094 (lambda B6090 (lambda L6091 (lambda Key6092 (lambda C6093 (let A (shen.newpv B6090) (shen.gc B6090 (let B (shen.newpv B6090) (shen.gc B6090 (is! V6094 (cons symbol (cons --> (cons (cons (cons A (cons --> (cons (cons list (cons B ())) ()))) (cons --> (cons symbol ()))) ()))) B6090 L6091 Key6092 C6093)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> shen.unregister-source-form (lambda V6099 (lambda B6095 (lambda L6096 (lambda Key6097 (lambda C6098 (is! V6099 (cons symbol (cons --> (cons symbol ()))) B6095 L6096 Key6097 C6098)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> abort (lambda V6104 (lambda B6100 (lambda L6101 (lambda Key6102 (lambda C6103 (let A (shen.newpv B6100) (shen.gc B6100 (is! V6104 (cons --> (cons A ())) B6100 L6101 Key6102 C6103)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> absolute (lambda V6109 (lambda B6105 (lambda L6106 (lambda Key6107 (lambda C6108 (is! V6109 (cons string (cons --> (cons (cons list (cons string ())) ()))) B6105 L6106 Key6107 C6108)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> absvector? (lambda V6114 (lambda B6110 (lambda L6111 (lambda Key6112 (lambda C6113 (let A (shen.newpv B6110) (shen.gc B6110 (is! V6114 (cons A (cons --> (cons boolean ()))) B6110 L6111 Key6112 C6113)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> adjoin (lambda V6120 (lambda B6116 (lambda L6117 (lambda Key6118 (lambda C6119 (let A (shen.newpv B6116) (shen.gc B6116 (is! V6120 (cons A (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons A ())) ()))) ()))) B6116 L6117 Key6118 C6119)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> and (lambda V6125 (lambda B6121 (lambda L6122 (lambda Key6123 (lambda C6124 (is! V6125 (cons boolean (cons --> (cons (cons boolean (cons --> (cons boolean ()))) ()))) B6121 L6122 Key6123 C6124)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> shen.app (lambda V6130 (lambda B6126 (lambda L6127 (lambda Key6128 (lambda C6129 (let A (shen.newpv B6126) (shen.gc B6126 (is! V6130 (cons A (cons --> (cons (cons string (cons --> (cons (cons symbol (cons --> (cons string ()))) ()))) ()))) B6126 L6127 Key6128 C6129)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> append (lambda V6137 (lambda B6133 (lambda L6134 (lambda Key6135 (lambda C6136 (let A (shen.newpv B6133) (shen.gc B6133 (is! V6137 (cons (cons list (cons A ())) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons A ())) ()))) ()))) B6133 L6134 Key6135 C6136)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> arity (lambda V6142 (lambda B6138 (lambda L6139 (lambda Key6140 (lambda C6141 (let A (shen.newpv B6138) (shen.gc B6138 (is! V6142 (cons A (cons --> (cons number ()))) B6138 L6139 Key6140 C6141)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> assoc (lambda V6148 (lambda B6144 (lambda L6145 (lambda Key6146 (lambda C6147 (let A (shen.newpv B6144) (shen.gc B6144 (is! V6148 (cons A (cons --> (cons (cons (cons list (cons (cons list (cons A ())) ())) (cons --> (cons (cons list (cons A ())) ()))) ()))) B6144 L6145 Key6146 C6147)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> atom? (lambda V6153 (lambda B6149 (lambda L6150 (lambda Key6151 (lambda C6152 (let A (shen.newpv B6149) (shen.gc B6149 (is! V6153 (cons A (cons --> (cons boolean ()))) B6149 L6150 Key6151 C6152)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> boolean? (lambda V6158 (lambda B6154 (lambda L6155 (lambda Key6156 (lambda C6157 (let A (shen.newpv B6154) (shen.gc B6154 (is! V6158 (cons A (cons --> (cons boolean ()))) B6154 L6155 Key6156 C6157)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> bootstrap (lambda V6163 (lambda B6159 (lambda L6160 (lambda Key6161 (lambda C6162 (is! V6163 (cons string (cons --> (cons string ()))) B6159 L6160 Key6161 C6162)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> bound? (lambda V6168 (lambda B6164 (lambda L6165 (lambda Key6166 (lambda C6167 (is! V6168 (cons symbol (cons --> (cons boolean ()))) B6164 L6165 Key6166 C6167)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> shen.ccons? (lambda V6173 (lambda B6169 (lambda L6170 (lambda Key6171 (lambda C6172 (let A (shen.newpv B6169) (shen.gc B6169 (is! V6173 (cons (cons list (cons A ())) (cons --> (cons boolean ()))) B6169 L6170 Key6171 C6172)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> cd (lambda V6178 (lambda B6174 (lambda L6175 (lambda Key6176 (lambda C6177 (is! V6178 (cons string (cons --> (cons string ()))) B6174 L6175 Key6176 C6177)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> close (lambda V6184 (lambda B6180 (lambda L6181 (lambda Key6182 (lambda C6183 (let A (shen.newpv B6180) (shen.gc B6180 (let B (shen.newpv B6180) (shen.gc B6180 (is! V6184 (cons (cons stream (cons A ())) (cons --> (cons (cons list (cons B ())) ()))) B6180 L6181 Key6182 C6183)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> cn (lambda V6189 (lambda B6185 (lambda L6186 (lambda Key6187 (lambda C6188 (is! V6189 (cons string (cons --> (cons (cons string (cons --> (cons string ()))) ()))) B6185 L6186 Key6187 C6188)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> char-stream? (lambda V6194 (lambda B6190 (lambda L6191 (lambda Key6192 (lambda C6193 (let A (shen.newpv B6190) (shen.gc B6190 (is! V6194 (cons (cons stream (cons A ())) (cons --> (cons boolean ()))) B6190 L6191 Key6192 C6193)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> compile (lambda V6201 (lambda B6197 (lambda L6198 (lambda Key6199 (lambda C6200 (let A (shen.newpv B6197) (shen.gc B6197 (let B (shen.newpv B6197) (shen.gc B6197 (is! V6201 (cons (cons (cons list (cons A ())) (cons --> (cons (cons str (cons (cons list (cons A ())) (cons B ()))) ()))) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons B ()))) ()))) B6197 L6198 Key6199 C6200)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> cons? (lambda V6206 (lambda B6202 (lambda L6203 (lambda Key6204 (lambda C6205 (let A (shen.newpv B6202) (shen.gc B6202 (is! V6206 (cons A (cons --> (cons boolean ()))) B6202 L6203 Key6204 C6205)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> datatypes (lambda V6211 (lambda B6207 (lambda L6208 (lambda Key6209 (lambda C6210 (is! V6211 (cons --> (cons (cons list (cons symbol ())) ())) B6207 L6208 Key6209 C6210)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> destroy (lambda V6216 (lambda B6212 (lambda L6213 (lambda Key6214 (lambda C6215 (is! V6216 (cons symbol (cons --> (cons symbol ()))) B6212 L6213 Key6214 C6215)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> difference (lambda V6223 (lambda B6219 (lambda L6220 (lambda Key6221 (lambda C6222 (let A (shen.newpv B6219) (shen.gc B6219 (is! V6223 (cons (cons list (cons A ())) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons A ())) ()))) ()))) B6219 L6220 Key6221 C6222)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> do (lambda V6228 (lambda B6224 (lambda L6225 (lambda Key6226 (lambda C6227 (let A (shen.newpv B6224) (shen.gc B6224 (let B (shen.newpv B6224) (shen.gc B6224 (is! V6228 (cons A (cons --> (cons (cons B (cons --> (cons B ()))) ()))) B6224 L6225 Key6226 C6227)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> (lambda V6235 (lambda B6231 (lambda L6232 (lambda Key6233 (lambda C6234 (let A (shen.newpv B6231) (shen.gc B6231 (let B (shen.newpv B6231) (shen.gc B6231 (is! V6235 (cons (cons list (cons A ())) (cons --> (cons (cons str (cons (cons list (cons A ())) (cons (cons list (cons B ())) ()))) ()))) B6231 L6232 Key6233 C6234)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> (lambda V6242 (lambda B6238 (lambda L6239 (lambda Key6240 (lambda C6241 (let B (shen.newpv B6238) (shen.gc B6238 (let A (shen.newpv B6238) (shen.gc B6238 (is! V6242 (cons (cons list (cons A ())) (cons --> (cons (cons str (cons (cons list (cons B ())) (cons (cons list (cons A ())) ()))) ()))) B6238 L6239 Key6240 C6241)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> (lambda V6249 (lambda B6245 (lambda L6246 (lambda Key6247 (lambda C6248 (let A (shen.newpv B6245) (shen.gc B6245 (let B (shen.newpv B6245) (shen.gc B6245 (is! V6249 (cons (cons list (cons A ())) (cons --> (cons (cons str (cons (cons list (cons A ())) (cons (cons list (cons B ())) ()))) ()))) B6245 L6246 Key6247 C6248)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> shen.parse-failure? (lambda V6254 (lambda B6250 (lambda L6251 (lambda Key6252 (lambda C6253 (let A (shen.newpv B6250) (shen.gc B6250 (let B (shen.newpv B6250) (shen.gc B6250 (is! V6254 (cons (cons str (cons (cons list (cons A ())) (cons B ()))) (cons --> (cons boolean ()))) B6250 L6251 Key6252 C6253)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> shen.parse-failure (lambda V6259 (lambda B6255 (lambda L6256 (lambda Key6257 (lambda C6258 (let A (shen.newpv B6255) (shen.gc B6255 (let B (shen.newpv B6255) (shen.gc B6255 (is! V6259 (cons --> (cons (cons str (cons (cons list (cons A ())) (cons B ()))) ())) B6255 L6256 Key6257 C6258)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> shen.<-out (lambda V6264 (lambda B6260 (lambda L6261 (lambda Key6262 (lambda C6263 (let A (shen.newpv B6260) (shen.gc B6260 (let B (shen.newpv B6260) (shen.gc B6260 (is! V6264 (cons (cons str (cons (cons list (cons A ())) (cons B ()))) (cons --> (cons B ()))) B6260 L6261 Key6262 C6263)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> shen.in-> (lambda V6270 (lambda B6266 (lambda L6267 (lambda Key6268 (lambda C6269 (let B (shen.newpv B6266) (shen.gc B6266 (let A (shen.newpv B6266) (shen.gc B6266 (is! V6270 (cons (cons str (cons (cons list (cons A ())) (cons B ()))) (cons --> (cons (cons list (cons A ())) ()))) B6266 L6267 Key6268 C6269)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> shen.comb (lambda V6276 (lambda B6272 (lambda L6273 (lambda Key6274 (lambda C6275 (let A (shen.newpv B6272) (shen.gc B6272 (let B (shen.newpv B6272) (shen.gc B6272 (is! V6276 (cons (cons list (cons A ())) (cons --> (cons (cons B (cons --> (cons (cons str (cons (cons list (cons A ())) (cons B ()))) ()))) ()))) B6272 L6273 Key6274 C6275)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> element? (lambda V6281 (lambda B6277 (lambda L6278 (lambda Key6279 (lambda C6280 (let A (shen.newpv B6277) (shen.gc B6277 (is! V6281 (cons A (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons boolean ()))) ()))) B6277 L6278 Key6279 C6280)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> empty? (lambda V6286 (lambda B6282 (lambda L6283 (lambda Key6284 (lambda C6285 (let A (shen.newpv B6282) (shen.gc B6282 (is! V6286 (cons A (cons --> (cons boolean ()))) B6282 L6283 Key6284 C6285)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> enable-type-theory (lambda V6291 (lambda B6287 (lambda L6288 (lambda Key6289 (lambda C6290 (is! V6291 (cons symbol (cons --> (cons boolean ()))) B6287 L6288 Key6289 C6290)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> external (lambda V6296 (lambda B6292 (lambda L6293 (lambda Key6294 (lambda C6295 (is! V6296 (cons symbol (cons --> (cons (cons list (cons symbol ())) ()))) B6292 L6293 Key6294 C6295)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> error-to-string (lambda V6301 (lambda B6297 (lambda L6298 (lambda Key6299 (lambda C6300 (is! V6301 (cons exception (cons --> (cons string ()))) B6297 L6298 Key6299 C6300)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> explode (lambda V6306 (lambda B6302 (lambda L6303 (lambda Key6304 (lambda C6305 (let A (shen.newpv B6302) (shen.gc B6302 (is! V6306 (cons A (cons --> (cons (cons list (cons string ())) ()))) B6302 L6303 Key6304 C6305)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> factorise (lambda V6311 (lambda B6307 (lambda L6308 (lambda Key6309 (lambda C6310 (is! V6311 (cons symbol (cons --> (cons symbol ()))) B6307 L6308 Key6309 C6310)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> factorise? (lambda V6316 (lambda B6312 (lambda L6313 (lambda Key6314 (lambda C6315 (is! V6316 (cons --> (cons boolean ())) B6312 L6313 Key6314 C6315)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> fail (lambda V6321 (lambda B6317 (lambda L6318 (lambda Key6319 (lambda C6320 (is! V6321 (cons --> (cons symbol ())) B6317 L6318 Key6319 C6320)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> fix (lambda V6327 (lambda B6323 (lambda L6324 (lambda Key6325 (lambda C6326 (let A (shen.newpv B6323) (shen.gc B6323 (is! V6327 (cons (cons A (cons --> (cons A ()))) (cons --> (cons (cons A (cons --> (cons A ()))) ()))) B6323 L6324 Key6325 C6326)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> freeze (lambda V6332 (lambda B6328 (lambda L6329 (lambda Key6330 (lambda C6331 (let A (shen.newpv B6328) (shen.gc B6328 (is! V6332 (cons A (cons --> (cons (cons lazy (cons A ())) ()))) B6328 L6329 Key6330 C6331)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> fst (lambda V6337 (lambda B6333 (lambda L6334 (lambda Key6335 (lambda C6336 (let B (shen.newpv B6333) (shen.gc B6333 (let A (shen.newpv B6333) (shen.gc B6333 (is! V6337 (cons (cons A (cons * (cons B ()))) (cons --> (cons A ()))) B6333 L6334 Key6335 C6336)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> gensym (lambda V6342 (lambda B6338 (lambda L6339 (lambda Key6340 (lambda C6341 (is! V6342 (cons symbol (cons --> (cons symbol ()))) B6338 L6339 Key6340 C6341)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> shen.hds=? (lambda V6348 (lambda B6344 (lambda L6345 (lambda Key6346 (lambda C6347 (let A (shen.newpv B6344) (shen.gc B6344 (is! V6348 (cons (cons list (cons A ())) (cons --> (cons (cons A (cons --> (cons boolean ()))) ()))) B6344 L6345 Key6346 C6347)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> hush (lambda V6353 (lambda B6349 (lambda L6350 (lambda Key6351 (lambda C6352 (is! V6353 (cons symbol (cons --> (cons boolean ()))) B6349 L6350 Key6351 C6352)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> hush? (lambda V6358 (lambda B6354 (lambda L6355 (lambda Key6356 (lambda C6357 (is! V6358 (cons --> (cons boolean ())) B6354 L6355 Key6356 C6357)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> <-vector (lambda V6364 (lambda B6360 (lambda L6361 (lambda Key6362 (lambda C6363 (let A (shen.newpv B6360) (shen.gc B6360 (is! V6364 (cons (cons vector (cons A ())) (cons --> (cons (cons number (cons --> (cons A ()))) ()))) B6360 L6361 Key6362 C6363)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> vector-> (lambda V6370 (lambda B6366 (lambda L6367 (lambda Key6368 (lambda C6369 (let A (shen.newpv B6366) (shen.gc B6366 (is! V6370 (cons (cons vector (cons A ())) (cons --> (cons (cons number (cons --> (cons (cons A (cons --> (cons (cons vector (cons A ())) ()))) ()))) ()))) B6366 L6367 Key6368 C6369)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> vector (lambda V6375 (lambda B6371 (lambda L6372 (lambda Key6373 (lambda C6374 (let A (shen.newpv B6371) (shen.gc B6371 (is! V6375 (cons number (cons --> (cons (cons vector (cons A ())) ()))) B6371 L6372 Key6373 C6374)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> get-time (lambda V6380 (lambda B6376 (lambda L6377 (lambda Key6378 (lambda C6379 (is! V6380 (cons symbol (cons --> (cons number ()))) B6376 L6377 Key6378 C6379)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> hash (lambda V6385 (lambda B6381 (lambda L6382 (lambda Key6383 (lambda C6384 (let A (shen.newpv B6381) (shen.gc B6381 (is! V6385 (cons A (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B6381 L6382 Key6383 C6384)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> head (lambda V6390 (lambda B6386 (lambda L6387 (lambda Key6388 (lambda C6389 (let A (shen.newpv B6386) (shen.gc B6386 (is! V6390 (cons (cons list (cons A ())) (cons --> (cons A ()))) B6386 L6387 Key6388 C6389)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> hdv (lambda V6395 (lambda B6391 (lambda L6392 (lambda Key6393 (lambda C6394 (let A (shen.newpv B6391) (shen.gc B6391 (is! V6395 (cons (cons vector (cons A ())) (cons --> (cons A ()))) B6391 L6392 Key6393 C6394)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> hdstr (lambda V6400 (lambda B6396 (lambda L6397 (lambda Key6398 (lambda C6399 (is! V6400 (cons string (cons --> (cons string ()))) B6396 L6397 Key6398 C6399)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> if (lambda V6405 (lambda B6401 (lambda L6402 (lambda Key6403 (lambda C6404 (let A (shen.newpv B6401) (shen.gc B6401 (is! V6405 (cons boolean (cons --> (cons (cons A (cons --> (cons (cons A (cons --> (cons A ()))) ()))) ()))) B6401 L6402 Key6403 C6404)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> in-package (lambda V6410 (lambda B6406 (lambda L6407 (lambda Key6408 (lambda C6409 (is! V6410 (cons symbol (cons --> (cons symbol ()))) B6406 L6407 Key6408 C6409)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> it (lambda V6415 (lambda B6411 (lambda L6412 (lambda Key6413 (lambda C6414 (is! V6415 (cons --> (cons string ())) B6411 L6412 Key6413 C6414)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> implementation (lambda V6420 (lambda B6416 (lambda L6417 (lambda Key6418 (lambda C6419 (is! V6420 (cons --> (cons string ())) B6416 L6417 Key6418 C6419)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> include (lambda V6426 (lambda B6422 (lambda L6423 (lambda Key6424 (lambda C6425 (is! V6426 (cons (cons list (cons symbol ())) (cons --> (cons (cons list (cons symbol ())) ()))) B6422 L6423 Key6424 C6425)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> include-all-but (lambda V6432 (lambda B6428 (lambda L6429 (lambda Key6430 (lambda C6431 (is! V6432 (cons (cons list (cons symbol ())) (cons --> (cons (cons list (cons symbol ())) ()))) B6428 L6429 Key6430 C6431)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> included (lambda V6437 (lambda B6433 (lambda L6434 (lambda Key6435 (lambda C6436 (is! V6437 (cons --> (cons (cons list (cons symbol ())) ())) B6433 L6434 Key6435 C6436)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> inferences (lambda V6442 (lambda B6438 (lambda L6439 (lambda Key6440 (lambda C6441 (is! V6442 (cons --> (cons number ())) B6438 L6439 Key6440 C6441)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> shen.insert (lambda V6447 (lambda B6443 (lambda L6444 (lambda Key6445 (lambda C6446 (let A (shen.newpv B6443) (shen.gc B6443 (is! V6447 (cons A (cons --> (cons (cons string (cons --> (cons string ()))) ()))) B6443 L6444 Key6445 C6446)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> integer? (lambda V6452 (lambda B6448 (lambda L6449 (lambda Key6450 (lambda C6451 (let A (shen.newpv B6448) (shen.gc B6448 (is! V6452 (cons A (cons --> (cons boolean ()))) B6448 L6449 Key6450 C6451)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> internal (lambda V6457 (lambda B6453 (lambda L6454 (lambda Key6455 (lambda C6456 (is! V6457 (cons symbol (cons --> (cons (cons list (cons symbol ())) ()))) B6453 L6454 Key6455 C6456)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> intersection (lambda V6464 (lambda B6460 (lambda L6461 (lambda Key6462 (lambda C6463 (let A (shen.newpv B6460) (shen.gc B6460 (is! V6464 (cons (cons list (cons A ())) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons A ())) ()))) ()))) B6460 L6461 Key6462 C6463)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> language (lambda V6469 (lambda B6465 (lambda L6466 (lambda Key6467 (lambda C6468 (is! V6469 (cons --> (cons string ())) B6465 L6466 Key6467 C6468)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> length (lambda V6474 (lambda B6470 (lambda L6471 (lambda Key6472 (lambda C6473 (let A (shen.newpv B6470) (shen.gc B6470 (is! V6474 (cons (cons list (cons A ())) (cons --> (cons number ()))) B6470 L6471 Key6472 C6473)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> limit (lambda V6479 (lambda B6475 (lambda L6476 (lambda Key6477 (lambda C6478 (let A (shen.newpv B6475) (shen.gc B6475 (is! V6479 (cons (cons vector (cons A ())) (cons --> (cons number ()))) B6475 L6476 Key6477 C6478)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> lineread (lambda V6485 (lambda B6481 (lambda L6482 (lambda Key6483 (lambda C6484 (is! V6485 (cons (cons stream (cons in ())) (cons --> (cons (cons list (cons unit ())) ()))) B6481 L6482 Key6483 C6484)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> load (lambda V6490 (lambda B6486 (lambda L6487 (lambda Key6488 (lambda C6489 (is! V6490 (cons string (cons --> (cons symbol ()))) B6486 L6487 Key6488 C6489)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> map (lambda V6497 (lambda B6493 (lambda L6494 (lambda Key6495 (lambda C6496 (let A (shen.newpv B6493) (shen.gc B6493 (let B (shen.newpv B6493) (shen.gc B6493 (is! V6497 (cons (cons A (cons --> (cons B ()))) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons B ())) ()))) ()))) B6493 L6494 Key6495 C6496)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> mapcan (lambda V6504 (lambda B6500 (lambda L6501 (lambda Key6502 (lambda C6503 (let A (shen.newpv B6500) (shen.gc B6500 (let B (shen.newpv B6500) (shen.gc B6500 (is! V6504 (cons (cons A (cons --> (cons (cons list (cons B ())) ()))) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons B ())) ()))) ()))) B6500 L6501 Key6502 C6503)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> maxinferences (lambda V6509 (lambda B6505 (lambda L6506 (lambda Key6507 (lambda C6508 (is! V6509 (cons number (cons --> (cons number ()))) B6505 L6506 Key6507 C6508)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> n->string (lambda V6514 (lambda B6510 (lambda L6511 (lambda Key6512 (lambda C6513 (is! V6514 (cons number (cons --> (cons string ()))) B6510 L6511 Key6512 C6513)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> nl (lambda V6519 (lambda B6515 (lambda L6516 (lambda Key6517 (lambda C6518 (is! V6519 (cons number (cons --> (cons number ()))) B6515 L6516 Key6517 C6518)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> not (lambda V6524 (lambda B6520 (lambda L6521 (lambda Key6522 (lambda C6523 (is! V6524 (cons boolean (cons --> (cons boolean ()))) B6520 L6521 Key6522 C6523)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> nth (lambda V6529 (lambda B6525 (lambda L6526 (lambda Key6527 (lambda C6528 (let A (shen.newpv B6525) (shen.gc B6525 (is! V6529 (cons number (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons A ()))) ()))) B6525 L6526 Key6527 C6528)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> number? (lambda V6534 (lambda B6530 (lambda L6531 (lambda Key6532 (lambda C6533 (let A (shen.newpv B6530) (shen.gc B6530 (is! V6534 (cons A (cons --> (cons boolean ()))) B6530 L6531 Key6532 C6533)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> occurrences (lambda V6539 (lambda B6535 (lambda L6536 (lambda Key6537 (lambda C6538 (let A (shen.newpv B6535) (shen.gc B6535 (let B (shen.newpv B6535) (shen.gc B6535 (is! V6539 (cons A (cons --> (cons (cons B (cons --> (cons number ()))) ()))) B6535 L6536 Key6537 C6538)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> occurs-check (lambda V6544 (lambda B6540 (lambda L6541 (lambda Key6542 (lambda C6543 (is! V6544 (cons symbol (cons --> (cons boolean ()))) B6540 L6541 Key6542 C6543)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> occurs? (lambda V6549 (lambda B6545 (lambda L6546 (lambda Key6547 (lambda C6548 (is! V6549 (cons --> (cons boolean ())) B6545 L6546 Key6547 C6548)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> optimise (lambda V6554 (lambda B6550 (lambda L6551 (lambda Key6552 (lambda C6553 (is! V6554 (cons symbol (cons --> (cons boolean ()))) B6550 L6551 Key6552 C6553)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> optimise? (lambda V6559 (lambda B6555 (lambda L6556 (lambda Key6557 (lambda C6558 (is! V6559 (cons --> (cons boolean ())) B6555 L6556 Key6557 C6558)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> or (lambda V6564 (lambda B6560 (lambda L6561 (lambda Key6562 (lambda C6563 (is! V6564 (cons boolean (cons --> (cons (cons boolean (cons --> (cons boolean ()))) ()))) B6560 L6561 Key6562 C6563)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> os (lambda V6569 (lambda B6565 (lambda L6566 (lambda Key6567 (lambda C6568 (is! V6569 (cons --> (cons string ())) B6565 L6566 Key6567 C6568)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> package? (lambda V6574 (lambda B6570 (lambda L6571 (lambda Key6572 (lambda C6573 (is! V6574 (cons symbol (cons --> (cons boolean ()))) B6570 L6571 Key6572 C6573)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> port (lambda V6579 (lambda B6575 (lambda L6576 (lambda Key6577 (lambda C6578 (is! V6579 (cons --> (cons string ())) B6575 L6576 Key6577 C6578)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> porters (lambda V6584 (lambda B6580 (lambda L6581 (lambda Key6582 (lambda C6583 (is! V6584 (cons --> (cons string ())) B6580 L6581 Key6582 C6583)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> pos (lambda V6589 (lambda B6585 (lambda L6586 (lambda Key6587 (lambda C6588 (is! V6589 (cons string (cons --> (cons (cons number (cons --> (cons string ()))) ()))) B6585 L6586 Key6587 C6588)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> pr (lambda V6594 (lambda B6590 (lambda L6591 (lambda Key6592 (lambda C6593 (is! V6594 (cons string (cons --> (cons (cons (cons stream (cons out ())) (cons --> (cons string ()))) ()))) B6590 L6591 Key6592 C6593)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> print (lambda V6599 (lambda B6595 (lambda L6596 (lambda Key6597 (lambda C6598 (let A (shen.newpv B6595) (shen.gc B6595 (is! V6599 (cons A (cons --> (cons A ()))) B6595 L6596 Key6597 C6598)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> profile (lambda V6604 (lambda B6600 (lambda L6601 (lambda Key6602 (lambda C6603 (is! V6604 (cons symbol (cons --> (cons symbol ()))) B6600 L6601 Key6602 C6603)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> preclude (lambda V6610 (lambda B6606 (lambda L6607 (lambda Key6608 (lambda C6609 (is! V6610 (cons (cons list (cons symbol ())) (cons --> (cons (cons list (cons symbol ())) ()))) B6606 L6607 Key6608 C6609)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> shen.proc-nl (lambda V6615 (lambda B6611 (lambda L6612 (lambda Key6613 (lambda C6614 (is! V6615 (cons string (cons --> (cons string ()))) B6611 L6612 Key6613 C6614)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> profile-results (lambda V6620 (lambda B6616 (lambda L6617 (lambda Key6618 (lambda C6619 (is! V6620 (cons symbol (cons --> (cons (cons symbol (cons * (cons number ()))) ()))) B6616 L6617 Key6618 C6619)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> protect (lambda V6625 (lambda B6621 (lambda L6622 (lambda Key6623 (lambda C6624 (let A (shen.newpv B6621) (shen.gc B6621 (is! V6625 (cons A (cons --> (cons A ()))) B6621 L6622 Key6623 C6624)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> preclude-all-but (lambda V6631 (lambda B6627 (lambda L6628 (lambda Key6629 (lambda C6630 (is! V6631 (cons (cons list (cons symbol ())) (cons --> (cons (cons list (cons symbol ())) ()))) B6627 L6628 Key6629 C6630)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> shen.prhush (lambda V6636 (lambda B6632 (lambda L6633 (lambda Key6634 (lambda C6635 (is! V6636 (cons string (cons --> (cons (cons (cons stream (cons out ())) (cons --> (cons string ()))) ()))) B6632 L6633 Key6634 C6635)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> prolog-memory (lambda V6641 (lambda B6637 (lambda L6638 (lambda Key6639 (lambda C6640 (is! V6641 (cons number (cons --> (cons number ()))) B6637 L6638 Key6639 C6640)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> ps (lambda V6646 (lambda B6642 (lambda L6643 (lambda Key6644 (lambda C6645 (is! V6646 (cons symbol (cons --> (cons (cons list (cons unit ())) ()))) B6642 L6643 Key6644 C6645)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> read (lambda V6651 (lambda B6647 (lambda L6648 (lambda Key6649 (lambda C6650 (is! V6651 (cons (cons stream (cons in ())) (cons --> (cons unit ()))) B6647 L6648 Key6649 C6650)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> read-unit-string (lambda V6656 (lambda B6652 (lambda L6653 (lambda Key6654 (lambda C6655 (is! V6656 (cons (cons stream (cons in ())) (cons --> (cons string ()))) B6652 L6653 Key6654 C6655)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> read-byte (lambda V6661 (lambda B6657 (lambda L6658 (lambda Key6659 (lambda C6660 (is! V6661 (cons (cons stream (cons in ())) (cons --> (cons number ()))) B6657 L6658 Key6659 C6660)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> read-file-as-bytelist (lambda V6666 (lambda B6662 (lambda L6663 (lambda Key6664 (lambda C6665 (is! V6666 (cons string (cons --> (cons (cons list (cons number ())) ()))) B6662 L6663 Key6664 C6665)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> read-file-as-string (lambda V6671 (lambda B6667 (lambda L6668 (lambda Key6669 (lambda C6670 (is! V6671 (cons string (cons --> (cons string ()))) B6667 L6668 Key6669 C6670)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> read-file (lambda V6676 (lambda B6672 (lambda L6673 (lambda Key6674 (lambda C6675 (is! V6676 (cons string (cons --> (cons (cons list (cons unit ())) ()))) B6672 L6673 Key6674 C6675)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> read-from-string (lambda V6681 (lambda B6677 (lambda L6678 (lambda Key6679 (lambda C6680 (is! V6681 (cons string (cons --> (cons (cons list (cons unit ())) ()))) B6677 L6678 Key6679 C6680)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> read-from-string-unprocessed (lambda V6686 (lambda B6682 (lambda L6683 (lambda Key6684 (lambda C6685 (is! V6686 (cons string (cons --> (cons (cons list (cons unit ())) ()))) B6682 L6683 Key6684 C6685)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> release (lambda V6691 (lambda B6687 (lambda L6688 (lambda Key6689 (lambda C6690 (is! V6691 (cons --> (cons string ())) B6687 L6688 Key6689 C6690)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> remove (lambda V6697 (lambda B6693 (lambda L6694 (lambda Key6695 (lambda C6696 (let A (shen.newpv B6693) (shen.gc B6693 (is! V6697 (cons A (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons A ())) ()))) ()))) B6693 L6694 Key6695 C6696)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> reverse (lambda V6703 (lambda B6699 (lambda L6700 (lambda Key6701 (lambda C6702 (let A (shen.newpv B6699) (shen.gc B6699 (is! V6703 (cons (cons list (cons A ())) (cons --> (cons (cons list (cons A ())) ()))) B6699 L6700 Key6701 C6702)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> simple-error (lambda V6708 (lambda B6704 (lambda L6705 (lambda Key6706 (lambda C6707 (let A (shen.newpv B6704) (shen.gc B6704 (is! V6708 (cons string (cons --> (cons A ()))) B6704 L6705 Key6706 C6707)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> snd (lambda V6713 (lambda B6709 (lambda L6710 (lambda Key6711 (lambda C6712 (let A (shen.newpv B6709) (shen.gc B6709 (let B (shen.newpv B6709) (shen.gc B6709 (is! V6713 (cons (cons A (cons * (cons B ()))) (cons --> (cons B ()))) B6709 L6710 Key6711 C6712)))))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> specialise (lambda V6718 (lambda B6714 (lambda L6715 (lambda Key6716 (lambda C6717 (is! V6718 (cons symbol (cons --> (cons (cons number (cons --> (cons symbol ()))) ()))) B6714 L6715 Key6716 C6717)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> spy (lambda V6723 (lambda B6719 (lambda L6720 (lambda Key6721 (lambda C6722 (is! V6723 (cons symbol (cons --> (cons boolean ()))) B6719 L6720 Key6721 C6722)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> spy? (lambda V6728 (lambda B6724 (lambda L6725 (lambda Key6726 (lambda C6727 (is! V6728 (cons --> (cons boolean ())) B6724 L6725 Key6726 C6727)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> step (lambda V6733 (lambda B6729 (lambda L6730 (lambda Key6731 (lambda C6732 (is! V6733 (cons symbol (cons --> (cons boolean ()))) B6729 L6730 Key6731 C6732)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> step? (lambda V6738 (lambda B6734 (lambda L6735 (lambda Key6736 (lambda C6737 (is! V6738 (cons --> (cons boolean ())) B6734 L6735 Key6736 C6737)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> stinput (lambda V6743 (lambda B6739 (lambda L6740 (lambda Key6741 (lambda C6742 (is! V6743 (cons --> (cons (cons stream (cons in ())) ())) B6739 L6740 Key6741 C6742)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> sterror (lambda V6748 (lambda B6744 (lambda L6745 (lambda Key6746 (lambda C6747 (is! V6748 (cons --> (cons (cons stream (cons out ())) ())) B6744 L6745 Key6746 C6747)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> stoutput (lambda V6753 (lambda B6749 (lambda L6750 (lambda Key6751 (lambda C6752 (is! V6753 (cons --> (cons (cons stream (cons out ())) ())) B6749 L6750 Key6751 C6752)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> string? (lambda V6758 (lambda B6754 (lambda L6755 (lambda Key6756 (lambda C6757 (let A (shen.newpv B6754) (shen.gc B6754 (is! V6758 (cons A (cons --> (cons boolean ()))) B6754 L6755 Key6756 C6757)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> str (lambda V6763 (lambda B6759 (lambda L6760 (lambda Key6761 (lambda C6762 (let A (shen.newpv B6759) (shen.gc B6759 (is! V6763 (cons A (cons --> (cons string ()))) B6759 L6760 Key6761 C6762)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> string->n (lambda V6768 (lambda B6764 (lambda L6765 (lambda Key6766 (lambda C6767 (is! V6768 (cons string (cons --> (cons number ()))) B6764 L6765 Key6766 C6767)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> string->symbol (lambda V6773 (lambda B6769 (lambda L6770 (lambda Key6771 (lambda C6772 (is! V6773 (cons string (cons --> (cons symbol ()))) B6769 L6770 Key6771 C6772)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> sum (lambda V6778 (lambda B6774 (lambda L6775 (lambda Key6776 (lambda C6777 (is! V6778 (cons (cons list (cons number ())) (cons --> (cons number ()))) B6774 L6775 Key6776 C6777)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> symbol? (lambda V6783 (lambda B6779 (lambda L6780 (lambda Key6781 (lambda C6782 (let A (shen.newpv B6779) (shen.gc B6779 (is! V6783 (cons A (cons --> (cons boolean ()))) B6779 L6780 Key6781 C6782)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> systemf (lambda V6788 (lambda B6784 (lambda L6785 (lambda Key6786 (lambda C6787 (is! V6788 (cons symbol (cons --> (cons symbol ()))) B6784 L6785 Key6786 C6787)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> system-S? (lambda V6793 (lambda B6789 (lambda L6790 (lambda Key6791 (lambda C6792 (is! V6793 (cons --> (cons boolean ())) B6789 L6790 Key6791 C6792)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> tail (lambda V6799 (lambda B6795 (lambda L6796 (lambda Key6797 (lambda C6798 (let A (shen.newpv B6795) (shen.gc B6795 (is! V6799 (cons (cons list (cons A ())) (cons --> (cons (cons list (cons A ())) ()))) B6795 L6796 Key6797 C6798)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> tlstr (lambda V6804 (lambda B6800 (lambda L6801 (lambda Key6802 (lambda C6803 (is! V6804 (cons string (cons --> (cons string ()))) B6800 L6801 Key6802 C6803)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> tlv (lambda V6810 (lambda B6806 (lambda L6807 (lambda Key6808 (lambda C6809 (let A (shen.newpv B6806) (shen.gc B6806 (is! V6810 (cons (cons vector (cons A ())) (cons --> (cons (cons vector (cons A ())) ()))) B6806 L6807 Key6808 C6809)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> tc (lambda V6815 (lambda B6811 (lambda L6812 (lambda Key6813 (lambda C6814 (is! V6815 (cons symbol (cons --> (cons boolean ()))) B6811 L6812 Key6813 C6814)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> tc? (lambda V6820 (lambda B6816 (lambda L6817 (lambda Key6818 (lambda C6819 (is! V6820 (cons --> (cons boolean ())) B6816 L6817 Key6818 C6819)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> thaw (lambda V6825 (lambda B6821 (lambda L6822 (lambda Key6823 (lambda C6824 (let A (shen.newpv B6821) (shen.gc B6821 (is! V6825 (cons (cons lazy (cons A ())) (cons --> (cons A ()))) B6821 L6822 Key6823 C6824)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> track (lambda V6830 (lambda B6826 (lambda L6827 (lambda Key6828 (lambda C6829 (is! V6830 (cons symbol (cons --> (cons symbol ()))) B6826 L6827 Key6828 C6829)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> tracked (lambda V6835 (lambda B6831 (lambda L6832 (lambda Key6833 (lambda C6834 (is! V6835 (cons --> (cons (cons list (cons symbol ())) ())) B6831 L6832 Key6833 C6834)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> trap-error (lambda V6840 (lambda B6836 (lambda L6837 (lambda Key6838 (lambda C6839 (let A (shen.newpv B6836) (shen.gc B6836 (is! V6840 (cons A (cons --> (cons (cons (cons exception (cons --> (cons A ()))) (cons --> (cons A ()))) ()))) B6836 L6837 Key6838 C6839)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> tuple? (lambda V6845 (lambda B6841 (lambda L6842 (lambda Key6843 (lambda C6844 (let A (shen.newpv B6841) (shen.gc B6841 (is! V6845 (cons A (cons --> (cons boolean ()))) B6841 L6842 Key6843 C6844)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> unabsolute (lambda V6850 (lambda B6846 (lambda L6847 (lambda Key6848 (lambda C6849 (is! V6850 (cons string (cons --> (cons (cons list (cons string ())) ()))) B6846 L6847 Key6848 C6849)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> undefmacro (lambda V6855 (lambda B6851 (lambda L6852 (lambda Key6853 (lambda C6854 (is! V6855 (cons symbol (cons --> (cons symbol ()))) B6851 L6852 Key6853 C6854)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> union (lambda V6862 (lambda B6858 (lambda L6859 (lambda Key6860 (lambda C6861 (let A (shen.newpv B6858) (shen.gc B6858 (is! V6862 (cons (cons list (cons A ())) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons A ())) ()))) ()))) B6858 L6859 Key6860 C6861)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> unprofile (lambda V6867 (lambda B6863 (lambda L6864 (lambda Key6865 (lambda C6866 (is! V6867 (cons symbol (cons --> (cons symbol ()))) B6863 L6864 Key6865 C6866)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> untrack (lambda V6872 (lambda B6868 (lambda L6869 (lambda Key6870 (lambda C6871 (is! V6872 (cons symbol (cons --> (cons symbol ()))) B6868 L6869 Key6870 C6871)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> userdefs (lambda V6877 (lambda B6873 (lambda L6874 (lambda Key6875 (lambda C6876 (is! V6877 (cons --> (cons (cons list (cons symbol ())) ())) B6873 L6874 Key6875 C6876)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> variable? (lambda V6882 (lambda B6878 (lambda L6879 (lambda Key6880 (lambda C6881 (let A (shen.newpv B6878) (shen.gc B6878 (is! V6882 (cons A (cons --> (cons boolean ()))) B6878 L6879 Key6880 C6881)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> vector? (lambda V6887 (lambda B6883 (lambda L6884 (lambda Key6885 (lambda C6886 (let A (shen.newpv B6883) (shen.gc B6883 (is! V6887 (cons A (cons --> (cons boolean ()))) B6883 L6884 Key6885 C6886)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> version (lambda V6892 (lambda B6888 (lambda L6889 (lambda Key6890 (lambda C6891 (is! V6892 (cons --> (cons string ())) B6888 L6889 Key6890 C6891)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> write-to-file (lambda V6897 (lambda B6893 (lambda L6894 (lambda Key6895 (lambda C6896 (let A (shen.newpv B6893) (shen.gc B6893 (is! V6897 (cons string (cons --> (cons (cons A (cons --> (cons A ()))) ()))) B6893 L6894 Key6895 C6896)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> write-byte (lambda V6902 (lambda B6898 (lambda L6899 (lambda Key6900 (lambda C6901 (is! V6902 (cons number (cons --> (cons (cons (cons stream (cons out ())) (cons --> (cons number ()))) ()))) B6898 L6899 Key6900 C6901)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> write-string (lambda V6907 (lambda B6903 (lambda L6904 (lambda Key6905 (lambda C6906 (is! V6907 (cons string (cons --> (cons (cons (cons stream (cons out ())) (cons --> (cons string ()))) ()))) B6903 L6904 Key6905 C6906)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> y-or-n? (lambda V6912 (lambda B6908 (lambda L6909 (lambda Key6910 (lambda C6911 (is! V6912 (cons string (cons --> (cons boolean ()))) B6908 L6909 Key6910 C6911)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> > (lambda V6917 (lambda B6913 (lambda L6914 (lambda Key6915 (lambda C6916 (is! V6917 (cons number (cons --> (cons (cons number (cons --> (cons boolean ()))) ()))) B6913 L6914 Key6915 C6916)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> < (lambda V6922 (lambda B6918 (lambda L6919 (lambda Key6920 (lambda C6921 (is! V6922 (cons number (cons --> (cons (cons number (cons --> (cons boolean ()))) ()))) B6918 L6919 Key6920 C6921)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> >= (lambda V6927 (lambda B6923 (lambda L6924 (lambda Key6925 (lambda C6926 (is! V6927 (cons number (cons --> (cons (cons number (cons --> (cons boolean ()))) ()))) B6923 L6924 Key6925 C6926)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> <= (lambda V6932 (lambda B6928 (lambda L6929 (lambda Key6930 (lambda C6931 (is! V6932 (cons number (cons --> (cons (cons number (cons --> (cons boolean ()))) ()))) B6928 L6929 Key6930 C6931)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> = (lambda V6937 (lambda B6933 (lambda L6934 (lambda Key6935 (lambda C6936 (let A (shen.newpv B6933) (shen.gc B6933 (is! V6937 (cons A (cons --> (cons (cons A (cons --> (cons boolean ()))) ()))) B6933 L6934 Key6935 C6936)))))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> + (lambda V6942 (lambda B6938 (lambda L6939 (lambda Key6940 (lambda C6941 (is! V6942 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B6938 L6939 Key6940 C6941)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> / (lambda V6947 (lambda B6943 (lambda L6944 (lambda Key6945 (lambda C6946 (is! V6947 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B6943 L6944 Key6945 C6946)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> - (lambda V6952 (lambda B6948 (lambda L6949 (lambda Key6950 (lambda C6951 (is! V6952 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B6948 L6949 Key6950 C6951)))))) (value shen.*sigf*))) (do (set shen.*sigf* (shen.assoc-> * (lambda V6957 (lambda B6953 (lambda L6954 (lambda Key6955 (lambda C6956 (is! V6957 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B6953 L6954 Key6955 C6956)))))) (value shen.*sigf*))) (set shen.*sigf* (shen.assoc-> == (lambda V6962 (lambda B6958 (lambda L6959 (lambda Key6960 (lambda C6961 (let A (shen.newpv B6958) (shen.gc B6958 (let B (shen.newpv B6958) (shen.gc B6958 (is! V6962 (cons A (cons --> (cons (cons B (cons --> (cons boolean ()))) ()))) B6958 L6959 Key6960 C6961)))))))))) (value shen.*sigf*))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) (defun shen.initialise-lambda-forms () (do (shen.set-lambda-form-entry (cons shen.tuple (lambda Y954 (shen.tuple Y954)))) (do (shen.set-lambda-form-entry (cons shen.pvar (lambda Y955 (shen.pvar Y955)))) (do (shen.set-lambda-form-entry (cons shen.dictionary (lambda Y956 (shen.dictionary Y956)))) (do (shen.set-lambda-form-entry (cons shen.print-prolog-vector (lambda Y957 (shen.print-prolog-vector Y957)))) (do (shen.set-lambda-form-entry (cons shen.print-freshterm (lambda Y958 (shen.print-freshterm Y958)))) (do (shen.set-lambda-form-entry (cons shen.printF (lambda Y959 (shen.printF Y959)))) (do (shen.set-lambda-form-entry (cons absolute (lambda Y960 (absolute Y960)))) (do (shen.set-lambda-form-entry (cons absvector? (lambda Y961 (absvector? Y961)))) (do (shen.set-lambda-form-entry (cons absvector (lambda Y962 (absvector Y962)))) (do (shen.set-lambda-form-entry (cons address-> (lambda Y963 (lambda Y964 (lambda Y965 (address-> Y963 Y964 Y965)))))) (do (shen.set-lambda-form-entry (cons adjoin (lambda Y966 (lambda Y967 (adjoin Y966 Y967))))) (do (shen.set-lambda-form-entry (cons and (lambda Y968 (lambda Y969 (and Y968 Y969))))) (do (shen.set-lambda-form-entry (cons append (lambda Y970 (lambda Y971 (append Y970 Y971))))) (do (shen.set-lambda-form-entry (cons arity (lambda Y972 (arity Y972)))) (do (shen.set-lambda-form-entry (cons assoc (lambda Y973 (lambda Y974 (assoc Y973 Y974))))) (do (shen.set-lambda-form-entry (cons atom? (lambda Y975 (atom? Y975)))) (do (shen.set-lambda-form-entry (cons boolean? (lambda Y976 (boolean? Y976)))) (do (shen.set-lambda-form-entry (cons bootstrap (lambda Y977 (bootstrap Y977)))) (do (shen.set-lambda-form-entry (cons bound? (lambda Y978 (bound? Y978)))) (do (shen.set-lambda-form-entry (cons bind (lambda Y979 (lambda Y980 (lambda Y981 (lambda Y982 (lambda Y983 (lambda Y984 (bind Y979 Y980 Y981 Y982 Y983 Y984))))))))) (do (shen.set-lambda-form-entry (cons call (lambda Y985 (lambda Y986 (lambda Y987 (lambda Y988 (lambda Y989 (call Y985 Y986 Y987 Y988 Y989)))))))) (do (shen.set-lambda-form-entry (cons cd (lambda Y990 (cd Y990)))) (do (shen.set-lambda-form-entry (cons char-stream? (lambda Y991 (char-stream? Y991)))) (do (shen.set-lambda-form-entry (cons compile (lambda Y992 (lambda Y993 (compile Y992 Y993))))) (do (shen.set-lambda-form-entry (cons concat (lambda Y994 (lambda Y995 (concat Y994 Y995))))) (do (shen.set-lambda-form-entry (cons cons (lambda Y996 (lambda Y997 (cons Y996 Y997))))) (do (shen.set-lambda-form-entry (cons cons? (lambda Y998 (cons? Y998)))) (do (shen.set-lambda-form-entry (cons cn (lambda Y999 (lambda Y1000 (cn Y999 Y1000))))) (do (shen.set-lambda-form-entry (cons close (lambda Y1001 (close Y1001)))) (do (shen.set-lambda-form-entry (cons declare (lambda Y1002 (lambda Y1003 (declare Y1002 Y1003))))) (do (shen.set-lambda-form-entry (cons destroy (lambda Y1004 (destroy Y1004)))) (do (shen.set-lambda-form-entry (cons difference (lambda Y1005 (lambda Y1006 (difference Y1005 Y1006))))) (do (shen.set-lambda-form-entry (cons do (lambda Y1007 (lambda Y1008 (do Y1007 Y1008))))) (do (shen.set-lambda-form-entry (cons element? (lambda Y1009 (lambda Y1010 (element? Y1009 Y1010))))) (do (shen.set-lambda-form-entry (cons empty? (lambda Y1011 (empty? Y1011)))) (do (shen.set-lambda-form-entry (cons enable-type-theory (lambda Y1012 (enable-type-theory Y1012)))) (do (shen.set-lambda-form-entry (cons external (lambda Y1013 (external Y1013)))) (do (shen.set-lambda-form-entry (cons error-to-string (lambda Y1014 (error-to-string Y1014)))) (do (shen.set-lambda-form-entry (cons eval (lambda Y1015 (eval Y1015)))) (do (shen.set-lambda-form-entry (cons eval-kl (lambda Y1016 (eval-kl Y1016)))) (do (shen.set-lambda-form-entry (cons explode (lambda Y1017 (explode Y1017)))) (do (shen.set-lambda-form-entry (cons external (lambda Y1018 (external Y1018)))) (do (shen.set-lambda-form-entry (cons factorise (lambda Y1019 (factorise Y1019)))) (do (shen.set-lambda-form-entry (cons fail-if (lambda Y1020 (lambda Y1021 (fail-if Y1020 Y1021))))) (do (shen.set-lambda-form-entry (cons fix (lambda Y1022 (lambda Y1023 (fix Y1022 Y1023))))) (do (shen.set-lambda-form-entry (cons findall (lambda Y1024 (lambda Y1025 (lambda Y1026 (lambda Y1027 (lambda Y1028 (lambda Y1029 (lambda Y1030 (findall Y1024 Y1025 Y1026 Y1027 Y1028 Y1029 Y1030)))))))))) (do (shen.set-lambda-form-entry (cons fork (lambda Y1031 (lambda Y1032 (lambda Y1033 (lambda Y1034 (lambda Y1035 (fork Y1031 Y1032 Y1033 Y1034 Y1035)))))))) (do (shen.set-lambda-form-entry (cons freeze (lambda Y1036 (freeze Y1036)))) (do (shen.set-lambda-form-entry (cons fst (lambda Y1037 (fst Y1037)))) (do (shen.set-lambda-form-entry (cons fn (lambda Y1038 (fn Y1038)))) (do (shen.set-lambda-form-entry (cons function (lambda Y1039 (function Y1039)))) (do (shen.set-lambda-form-entry (cons gensym (lambda Y1040 (gensym Y1040)))) (do (shen.set-lambda-form-entry (cons get (lambda Y1041 (lambda Y1042 (lambda Y1043 (get Y1041 Y1042 Y1043)))))) (do (shen.set-lambda-form-entry (cons get-time (lambda Y1044 (get-time Y1044)))) (do (shen.set-lambda-form-entry (cons address-> (lambda Y1045 (lambda Y1046 (lambda Y1047 (address-> Y1045 Y1046 Y1047)))))) (do (shen.set-lambda-form-entry (cons <-address (lambda Y1048 (lambda Y1049 (<-address Y1048 Y1049))))) (do (shen.set-lambda-form-entry (cons <-vector (lambda Y1050 (lambda Y1051 (<-vector Y1050 Y1051))))) (do (shen.set-lambda-form-entry (cons > (lambda Y1052 (lambda Y1053 (> Y1052 Y1053))))) (do (shen.set-lambda-form-entry (cons >= (lambda Y1054 (lambda Y1055 (>= Y1054 Y1055))))) (do (shen.set-lambda-form-entry (cons = (lambda Y1056 (lambda Y1057 (= Y1056 Y1057))))) (do (shen.set-lambda-form-entry (cons hash (lambda Y1058 (lambda Y1059 (hash Y1058 Y1059))))) (do (shen.set-lambda-form-entry (cons hd (lambda Y1060 (hd Y1060)))) (do (shen.set-lambda-form-entry (cons hdv (lambda Y1061 (hdv Y1061)))) (do (shen.set-lambda-form-entry (cons hdstr (lambda Y1062 (hdstr Y1062)))) (do (shen.set-lambda-form-entry (cons head (lambda Y1063 (head Y1063)))) (do (shen.set-lambda-form-entry (cons hush (lambda Y1064 (hush Y1064)))) (do (shen.set-lambda-form-entry (cons if (lambda Y1065 (lambda Y1066 (lambda Y1067 (if Y1065 Y1066 Y1067)))))) (do (shen.set-lambda-form-entry (cons include (lambda Y1068 (include Y1068)))) (do (shen.set-lambda-form-entry (cons in-package (lambda Y1069 (in-package Y1069)))) (do (shen.set-lambda-form-entry (cons integer? (lambda Y1070 (integer? Y1070)))) (do (shen.set-lambda-form-entry (cons internal (lambda Y1071 (internal Y1071)))) (do (shen.set-lambda-form-entry (cons intern (lambda Y1072 (intern Y1072)))) (do (shen.set-lambda-form-entry (cons input (lambda Y1073 (input Y1073)))) (do (shen.set-lambda-form-entry (cons input+ (lambda Y1074 (lambda Y1075 (input+ Y1074 Y1075))))) (do (shen.set-lambda-form-entry (cons include-all-but (lambda Y1076 (include-all-but Y1076)))) (do (shen.set-lambda-form-entry (cons intersection (lambda Y1077 (lambda Y1078 (intersection Y1077 Y1078))))) (do (shen.set-lambda-form-entry (cons internal (lambda Y1079 (internal Y1079)))) (do (shen.set-lambda-form-entry (cons is (lambda Y1080 (lambda Y1081 (lambda Y1082 (lambda Y1083 (lambda Y1084 (lambda Y1085 (is Y1080 Y1081 Y1082 Y1083 Y1084 Y1085))))))))) (do (shen.set-lambda-form-entry (cons is! (lambda Y1086 (lambda Y1087 (lambda Y1088 (lambda Y1089 (lambda Y1090 (lambda Y1091 (is! Y1086 Y1087 Y1088 Y1089 Y1090 Y1091))))))))) (do (shen.set-lambda-form-entry (cons length (lambda Y1092 (length Y1092)))) (do (shen.set-lambda-form-entry (cons limit (lambda Y1093 (limit Y1093)))) (do (shen.set-lambda-form-entry (cons lineread (lambda Y1094 (lineread Y1094)))) (do (shen.set-lambda-form-entry (cons load (lambda Y1095 (load Y1095)))) (do (shen.set-lambda-form-entry (cons < (lambda Y1096 (lambda Y1097 (< Y1096 Y1097))))) (do (shen.set-lambda-form-entry (cons <= (lambda Y1098 (lambda Y1099 (<= Y1098 Y1099))))) (do (shen.set-lambda-form-entry (cons vector (lambda Y1100 (vector Y1100)))) (do (shen.set-lambda-form-entry (cons macroexpand (lambda Y1101 (macroexpand Y1101)))) (do (shen.set-lambda-form-entry (cons map (lambda Y1102 (lambda Y1103 (map Y1102 Y1103))))) (do (shen.set-lambda-form-entry (cons mapcan (lambda Y1104 (lambda Y1105 (mapcan Y1104 Y1105))))) (do (shen.set-lambda-form-entry (cons maxinferences (lambda Y1106 (maxinferences Y1106)))) (do (shen.set-lambda-form-entry (cons nl (lambda Y1107 (nl Y1107)))) (do (shen.set-lambda-form-entry (cons not (lambda Y1108 (not Y1108)))) (do (shen.set-lambda-form-entry (cons nth (lambda Y1109 (lambda Y1110 (nth Y1109 Y1110))))) (do (shen.set-lambda-form-entry (cons n->string (lambda Y1111 (n->string Y1111)))) (do (shen.set-lambda-form-entry (cons number? (lambda Y1112 (number? Y1112)))) (do (shen.set-lambda-form-entry (cons occurs-check (lambda Y1113 (occurs-check Y1113)))) (do (shen.set-lambda-form-entry (cons occurrences (lambda Y1114 (lambda Y1115 (occurrences Y1114 Y1115))))) (do (shen.set-lambda-form-entry (cons occurs-check (lambda Y1116 (occurs-check Y1116)))) (do (shen.set-lambda-form-entry (cons open (lambda Y1117 (lambda Y1118 (open Y1117 Y1118))))) (do (shen.set-lambda-form-entry (cons optimise (lambda Y1119 (optimise Y1119)))) (do (shen.set-lambda-form-entry (cons or (lambda Y1120 (lambda Y1121 (or Y1120 Y1121))))) (do (shen.set-lambda-form-entry (cons package? (lambda Y1122 (package? Y1122)))) (do (shen.set-lambda-form-entry (cons pos (lambda Y1123 (lambda Y1124 (pos Y1123 Y1124))))) (do (shen.set-lambda-form-entry (cons preclude-all-but (lambda Y1125 (preclude-all-but Y1125)))) (do (shen.set-lambda-form-entry (cons print (lambda Y1126 (print Y1126)))) (do (shen.set-lambda-form-entry (cons profile (lambda Y1127 (profile Y1127)))) (do (shen.set-lambda-form-entry (cons shen.print-prolog-vector (lambda Y1128 (shen.print-prolog-vector Y1128)))) (do (shen.set-lambda-form-entry (cons shen.print-freshterm (lambda Y1129 (shen.print-freshterm Y1129)))) (do (shen.set-lambda-form-entry (cons shen.printF (lambda Y1130 (shen.printF Y1130)))) (do (shen.set-lambda-form-entry (cons prolog-memory (lambda Y1131 (prolog-memory Y1131)))) (do (shen.set-lambda-form-entry (cons profile-results (lambda Y1132 (profile-results Y1132)))) (do (shen.set-lambda-form-entry (cons pr (lambda Y1133 (lambda Y1134 (pr Y1133 Y1134))))) (do (shen.set-lambda-form-entry (cons ps (lambda Y1135 (ps Y1135)))) (do (shen.set-lambda-form-entry (cons preclude (lambda Y1136 (preclude Y1136)))) (do (shen.set-lambda-form-entry (cons preclude-all-but (lambda Y1137 (preclude-all-but Y1137)))) (do (shen.set-lambda-form-entry (cons protect (lambda Y1138 (protect Y1138)))) (do (shen.set-lambda-form-entry (cons put (lambda Y1139 (lambda Y1140 (lambda Y1141 (lambda Y1142 (put Y1139 Y1140 Y1141 Y1142))))))) (do (shen.set-lambda-form-entry (cons read-file-as-string (lambda Y1143 (read-file-as-string Y1143)))) (do (shen.set-lambda-form-entry (cons read-file-as-bytelist (lambda Y1144 (read-file-as-bytelist Y1144)))) (do (shen.set-lambda-form-entry (cons read-file (lambda Y1145 (read-file Y1145)))) (do (shen.set-lambda-form-entry (cons read (lambda Y1146 (read Y1146)))) (do (shen.set-lambda-form-entry (cons read-byte (lambda Y1147 (read-byte Y1147)))) (do (shen.set-lambda-form-entry (cons read-from-string (lambda Y1148 (read-from-string Y1148)))) (do (shen.set-lambda-form-entry (cons read-from-string-unprocessed (lambda Y1149 (read-from-string-unprocessed Y1149)))) (do (shen.set-lambda-form-entry (cons read-unit-string (lambda Y1150 (read-unit-string Y1150)))) (do (shen.set-lambda-form-entry (cons shen.register-source-form (lambda Y1151 (lambda Y1152 (shen.register-source-form Y1151 Y1152))))) (do (shen.set-lambda-form-entry (cons shen.unregister-source-form (lambda Y1153 (shen.unregister-source-form Y1153)))) (do (shen.set-lambda-form-entry (cons remove (lambda Y1154 (lambda Y1155 (remove Y1154 Y1155))))) (do (shen.set-lambda-form-entry (cons reverse (lambda Y1156 (reverse Y1156)))) (do (shen.set-lambda-form-entry (cons set (lambda Y1157 (lambda Y1158 (set Y1157 Y1158))))) (do (shen.set-lambda-form-entry (cons simple-error (lambda Y1159 (simple-error Y1159)))) (do (shen.set-lambda-form-entry (cons snd (lambda Y1160 (snd Y1160)))) (do (shen.set-lambda-form-entry (cons specialise (lambda Y1161 (lambda Y1162 (specialise Y1161 Y1162))))) (do (shen.set-lambda-form-entry (cons spy (lambda Y1163 (spy Y1163)))) (do (shen.set-lambda-form-entry (cons step (lambda Y1164 (step Y1164)))) (do (shen.set-lambda-form-entry (cons str (lambda Y1165 (str Y1165)))) (do (shen.set-lambda-form-entry (cons string->n (lambda Y1166 (string->n Y1166)))) (do (shen.set-lambda-form-entry (cons string->symbol (lambda Y1167 (string->symbol Y1167)))) (do (shen.set-lambda-form-entry (cons string? (lambda Y1168 (string? Y1168)))) (do (shen.set-lambda-form-entry (cons subst (lambda Y1169 (lambda Y1170 (lambda Y1171 (subst Y1169 Y1170 Y1171)))))) (do (shen.set-lambda-form-entry (cons sum (lambda Y1172 (sum Y1172)))) (do (shen.set-lambda-form-entry (cons symbol? (lambda Y1173 (symbol? Y1173)))) (do (shen.set-lambda-form-entry (cons systemf (lambda Y1174 (systemf Y1174)))) (do (shen.set-lambda-form-entry (cons tail (lambda Y1175 (tail Y1175)))) (do (shen.set-lambda-form-entry (cons tl (lambda Y1176 (tl Y1176)))) (do (shen.set-lambda-form-entry (cons tc (lambda Y1177 (tc Y1177)))) (do (shen.set-lambda-form-entry (cons thaw (lambda Y1178 (thaw Y1178)))) (do (shen.set-lambda-form-entry (cons tlstr (lambda Y1179 (tlstr Y1179)))) (do (shen.set-lambda-form-entry (cons track (lambda Y1180 (track Y1180)))) (do (shen.set-lambda-form-entry (cons trap-error (lambda Y1181 (lambda Y1182 (trap-error Y1181 Y1182))))) (do (shen.set-lambda-form-entry (cons tuple? (lambda Y1183 (tuple? Y1183)))) (do (shen.set-lambda-form-entry (cons type (lambda Y1184 (lambda Y1185 (type Y1184 Y1185))))) (do (shen.set-lambda-form-entry (cons return (lambda Y1186 (lambda Y1187 (lambda Y1188 (lambda Y1189 (lambda Y1190 (return Y1186 Y1187 Y1188 Y1189 Y1190)))))))) (do (shen.set-lambda-form-entry (cons unabsolute (lambda Y1191 (unabsolute Y1191)))) (do (shen.set-lambda-form-entry (cons undefmacro (lambda Y1192 (undefmacro Y1192)))) (do (shen.set-lambda-form-entry (cons unput (lambda Y1193 (lambda Y1194 (lambda Y1195 (unput Y1193 Y1194 Y1195)))))) (do (shen.set-lambda-form-entry (cons unprofile (lambda Y1196 (unprofile Y1196)))) (do (shen.set-lambda-form-entry (cons union (lambda Y1197 (lambda Y1198 (union Y1197 Y1198))))) (do (shen.set-lambda-form-entry (cons untrack (lambda Y1199 (untrack Y1199)))) (do (shen.set-lambda-form-entry (cons undefmacro (lambda Y1200 (undefmacro Y1200)))) (do (shen.set-lambda-form-entry (cons update-lambda-table (lambda Y1201 (lambda Y1202 (update-lambda-table Y1201 Y1202))))) (do (shen.set-lambda-form-entry (cons vector (lambda Y1203 (vector Y1203)))) (do (shen.set-lambda-form-entry (cons vector? (lambda Y1204 (vector? Y1204)))) (do (shen.set-lambda-form-entry (cons vector-> (lambda Y1205 (lambda Y1206 (lambda Y1207 (vector-> Y1205 Y1206 Y1207)))))) (do (shen.set-lambda-form-entry (cons value (lambda Y1208 (value Y1208)))) (do (shen.set-lambda-form-entry (cons variable? (lambda Y1209 (variable? Y1209)))) (do (shen.set-lambda-form-entry (cons var? (lambda Y1210 (lambda Y1211 (lambda Y1212 (lambda Y1213 (lambda Y1214 (var? Y1210 Y1211 Y1212 Y1213 Y1214)))))))) (do (shen.set-lambda-form-entry (cons when (lambda Y1215 (lambda Y1216 (lambda Y1217 (lambda Y1218 (lambda Y1219 (when Y1215 Y1216 Y1217 Y1218 Y1219)))))))) (do (shen.set-lambda-form-entry (cons write-byte (lambda Y1220 (lambda Y1221 (write-byte Y1220 Y1221))))) (do (shen.set-lambda-form-entry (cons write-string (lambda Y1222 (lambda Y1223 (write-string Y1222 Y1223))))) (do (shen.set-lambda-form-entry (cons write-to-file (lambda Y1224 (lambda Y1225 (write-to-file Y1224 Y1225))))) (do (shen.set-lambda-form-entry (cons y-or-n? (lambda Y1226 (y-or-n? Y1226)))) (do (shen.set-lambda-form-entry (cons + (lambda Y1227 (lambda Y1228 (+ Y1227 Y1228))))) (do (shen.set-lambda-form-entry (cons * (lambda Y1229 (lambda Y1230 (* Y1229 Y1230))))) (do (shen.set-lambda-form-entry (cons / (lambda Y1231 (lambda Y1232 (/ Y1231 Y1232))))) (do (shen.set-lambda-form-entry (cons - (lambda Y1233 (lambda Y1234 (- Y1233 Y1234))))) (do (shen.set-lambda-form-entry (cons == (lambda Y1235 (lambda Y1236 (== Y1235 Y1236))))) (do (shen.set-lambda-form-entry (cons (lambda Y1237 ( Y1237)))) (do (shen.set-lambda-form-entry (cons (lambda Y1238 ( Y1238)))) (do (shen.set-lambda-form-entry (cons (lambda Y1239 ( Y1239)))) (do (shen.set-lambda-form-entry (cons @p (lambda Y1240 (lambda Y1241 (@p Y1240 Y1241))))) (do (shen.set-lambda-form-entry (cons @v (lambda Y1242 (lambda Y1243 (@v Y1242 Y1243))))) (shen.set-lambda-form-entry (cons @s (lambda Y1244 (lambda Y1245 (@s Y1244 Y1245)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) diff --git a/klambda/macros.kl b/klambda/macros.kl index c94e9e2..add3cfa 100644 --- a/klambda/macros.kl +++ b/klambda/macros.kl @@ -1,69 +1,69 @@ -(defun macroexpand (V7129) (let W7130 (map (lambda Z7131 (tl Z7131)) (value *macros*)) (shen.macroexpand-h V7129 W7130 W7130 (value shen.*source-form-handlers*)))) +(defun macroexpand (V7150) (let W7151 (map (lambda Z7152 (tl Z7152)) (value *macros*)) (shen.macroexpand-h V7150 W7151 W7151 (value shen.*source-form-handlers*)))) -(defun shen.macroexpand-h (V7144 V7145 V7146 V7147) (if (= () V7145) V7144 (if (cons? V7145) (let W7148 (shen.source-macro-walk (hd V7145) V7144 V7147) (if (= V7144 W7148) (shen.macroexpand-h V7144 (tl V7145) V7146 V7147) (shen.macroexpand-h W7148 V7146 V7146 V7147))) (simple-error "implementation error in shen.macroexpand-h")))) +(defun shen.macroexpand-h (V7165 V7166 V7167 V7168) (if (= () V7166) V7165 (if (cons? V7166) (let W7169 (shen.source-macro-walk (hd V7166) V7165 V7168) (if (= V7165 W7169) (shen.macroexpand-h V7165 (tl V7166) V7167 V7168) (shen.macroexpand-h W7169 V7167 V7167 V7168))) (simple-error "implementation error in shen.macroexpand-h")))) -(defun shen.source-macro-walk (V7152 V7153 V7154) (if (= () V7154) (shen.walk V7152 V7153) (if (cons? (shen.source-form-handler V7153 V7154)) V7153 (if (cons? V7153) (V7152 (map (lambda Z7155 (shen.source-macro-walk V7152 Z7155 V7154)) V7153)) (V7152 V7153))))) +(defun shen.source-macro-walk (V7173 V7174 V7175) (if (= () V7175) (shen.walk V7173 V7174) (if (cons? (shen.source-form-handler V7174 V7175)) V7174 (if (cons? V7174) (V7173 (map (lambda Z7176 (shen.source-macro-walk V7173 Z7176 V7175)) V7174)) (V7173 V7174))))) -(defun shen.walk (V7156 V7157) (if (cons? V7157) (V7156 (map (lambda Z7158 (shen.walk V7156 Z7158)) V7157)) (V7156 V7157))) +(defun shen.walk (V7177 V7178) (if (cons? V7178) (V7177 (map (lambda Z7179 (shen.walk V7177 Z7179)) V7178)) (V7177 V7178))) -(defun shen.macros (V7159) (let GoTo7160 (freeze V7159) (if (cons? V7159) (let Select7174 (hd V7159) (let Select7175 (tl V7159) (if (and (= defmacro Select7174) (cons? Select7175)) (shen.process-def (hd Select7175) (tl Select7175)) (if (= defcc Select7174) (shen.yacc->shen Select7175) (if (and (= u! Select7174) (and (cons? Select7175) (= () (tl Select7175)))) (cons protect (cons (shen.make-uppercase (hd Select7175)) ())) (if (and (= error Select7174) (cons? Select7175)) (cons simple-error (cons (shen.mkstr (hd Select7175) (tl Select7175)) ())) (if (and (= output Select7174) (cons? Select7175)) (cons pr (cons (shen.mkstr (hd Select7175) (tl Select7175)) (cons (cons stoutput ()) ()))) (if (and (= pr Select7174) (and (cons? Select7175) (= () (tl Select7175)))) (cons pr (cons (hd Select7175) (cons (cons stoutput ()) ()))) (if (and (= make-string Select7174) (cons? Select7175)) (shen.mkstr (hd Select7175) (tl Select7175)) (if (and (= lineread Select7174) (= () Select7175)) (cons lineread (cons (cons stinput ()) ())) (if (and (= input Select7174) (= () Select7175)) (cons input (cons (cons stinput ()) ())) (if (and (= read Select7174) (= () Select7175)) (cons read (cons (cons stinput ()) ())) (if (and (= input+ Select7174) (cons? Select7175)) (shen.process-input+ V7159) (if (and (= read-byte Select7174) (= () Select7175)) (shen.process-read-byte) (if (= prolog? Select7174) (shen.call-prolog Select7175) (if (and (= defprolog Select7174) (cons? Select7175)) (shen.compile-prolog (hd Select7175) (tl Select7175)) (if (and (= datatype Select7174) (cons? Select7175)) (shen.process-datatype (hd Select7175) (tl Select7175)) (if (= @s Select7174) (shen.process-@s V7159) (if (= synonyms Select7174) (shen.process-synonyms Select7175) (if (and (= nl Select7174) (= () Select7175)) (cons nl (cons 1 ())) (if (= let Select7174) (shen.process-let V7159) (if (= /. Select7174) (shen.process-lambda V7159) (if (= cases Select7174) (shen.process-cases V7159) (if (and (= time Select7174) (and (cons? Select7175) (= () (tl Select7175)))) (shen.process-time (hd Select7175)) (if (and (= put Select7174) (and (cons? Select7175) (let Select7161 (tl Select7175) (and (cons? Select7161) (let Select7163 (tl Select7161) (and (cons? Select7163) (= () (tl Select7163)))))))) (let Select7162 (tl Select7175) (cons put (cons (hd Select7175) (cons (hd Select7162) (cons (hd (tl Select7162)) (cons (cons value (cons *property-vector* ())) ())))))) (if (and (= get Select7174) (and (cons? Select7175) (let Select7164 (tl Select7175) (and (cons? Select7164) (= () (tl Select7164)))))) (cons get (cons (hd Select7175) (cons (hd (tl Select7175)) (cons (cons value (cons *property-vector* ())) ())))) (if (and (= unput Select7174) (and (cons? Select7175) (let Select7165 (tl Select7175) (and (cons? Select7165) (= () (tl Select7165)))))) (cons unput (cons (hd Select7175) (cons (hd (tl Select7175)) (cons (cons value (cons *property-vector* ())) ())))) (if (and (= shen.@c Select7174) (and (cons? Select7175) (= () (tl Select7175)))) (shen.rcons_form (hd Select7175)) (let GoTo7167 (freeze (if (and (cons? Select7175) (let Select7166 (tl Select7175) (and (cons? Select7166) (and (cons? (tl Select7166)) (element? Select7174 (cons @p (cons @v (cons append (cons and (cons or (cons + (cons * (cons do ()))))))))))))) (cons Select7174 (cons (hd Select7175) (cons (shen.process-assoc (cons Select7174 (tl Select7175))) ()))) (thaw GoTo7160))) (if (= shen.@ch Select7174) (if (cons? Select7175) (let Select7172 (hd Select7175) (let Select7173 (tl Select7175) (if (and (cons? Select7172) (let Select7169 (tl Select7172) (and (cons? Select7169) (let Select7171 (tl Select7169) (and (cons? Select7171) (and (= () (tl Select7171)) (and (= () Select7173) (= (hd Select7169) (intern ":"))))))))) (let Select7170 (tl Select7172) (shen.cons-form-respect-modes (cons - (cons (cons (hd Select7172) (cons (hd Select7170) (cons (cons + (tl Select7170)) ()))) ())))) (if (= () Select7173) (shen.cons-form-respect-modes Select7172) (thaw GoTo7167))))) (thaw GoTo7167)) (thaw GoTo7167))))))))))))))))))))))))))))))) (thaw GoTo7160)))) +(defun shen.macros (V7180) (let GoTo7181 (freeze V7180) (if (cons? V7180) (let Select7195 (hd V7180) (let Select7196 (tl V7180) (if (and (= defmacro Select7195) (cons? Select7196)) (shen.process-def (hd Select7196) (tl Select7196)) (if (= defcc Select7195) (shen.yacc->shen Select7196) (if (and (= u! Select7195) (and (cons? Select7196) (= () (tl Select7196)))) (cons protect (cons (shen.make-uppercase (hd Select7196)) ())) (if (and (= error Select7195) (cons? Select7196)) (cons simple-error (cons (shen.mkstr (hd Select7196) (tl Select7196)) ())) (if (and (= output Select7195) (cons? Select7196)) (cons pr (cons (shen.mkstr (hd Select7196) (tl Select7196)) (cons (cons stoutput ()) ()))) (if (and (= pr Select7195) (and (cons? Select7196) (= () (tl Select7196)))) (cons pr (cons (hd Select7196) (cons (cons stoutput ()) ()))) (if (and (= make-string Select7195) (cons? Select7196)) (shen.mkstr (hd Select7196) (tl Select7196)) (if (and (= lineread Select7195) (= () Select7196)) (cons lineread (cons (cons stinput ()) ())) (if (and (= input Select7195) (= () Select7196)) (cons input (cons (cons stinput ()) ())) (if (and (= read Select7195) (= () Select7196)) (cons read (cons (cons stinput ()) ())) (if (and (= input+ Select7195) (cons? Select7196)) (shen.process-input+ V7180) (if (and (= read-byte Select7195) (= () Select7196)) (shen.process-read-byte) (if (= prolog? Select7195) (shen.call-prolog Select7196) (if (and (= defprolog Select7195) (cons? Select7196)) (shen.compile-prolog (hd Select7196) (tl Select7196)) (if (and (= datatype Select7195) (cons? Select7196)) (shen.process-datatype (hd Select7196) (tl Select7196)) (if (= @s Select7195) (shen.process-@s V7180) (if (= synonyms Select7195) (shen.process-synonyms Select7196) (if (and (= nl Select7195) (= () Select7196)) (cons nl (cons 1 ())) (if (= let Select7195) (shen.process-let V7180) (if (= /. Select7195) (shen.process-lambda V7180) (if (= cases Select7195) (shen.process-cases V7180) (if (and (= time Select7195) (and (cons? Select7196) (= () (tl Select7196)))) (shen.process-time (hd Select7196)) (if (and (= put Select7195) (and (cons? Select7196) (let Select7182 (tl Select7196) (and (cons? Select7182) (let Select7184 (tl Select7182) (and (cons? Select7184) (= () (tl Select7184)))))))) (let Select7183 (tl Select7196) (cons put (cons (hd Select7196) (cons (hd Select7183) (cons (hd (tl Select7183)) (cons (cons value (cons *property-vector* ())) ())))))) (if (and (= get Select7195) (and (cons? Select7196) (let Select7185 (tl Select7196) (and (cons? Select7185) (= () (tl Select7185)))))) (cons get (cons (hd Select7196) (cons (hd (tl Select7196)) (cons (cons value (cons *property-vector* ())) ())))) (if (and (= unput Select7195) (and (cons? Select7196) (let Select7186 (tl Select7196) (and (cons? Select7186) (= () (tl Select7186)))))) (cons unput (cons (hd Select7196) (cons (hd (tl Select7196)) (cons (cons value (cons *property-vector* ())) ())))) (if (and (= shen.@c Select7195) (and (cons? Select7196) (= () (tl Select7196)))) (shen.rcons_form (hd Select7196)) (let GoTo7188 (freeze (if (and (cons? Select7196) (let Select7187 (tl Select7196) (and (cons? Select7187) (and (cons? (tl Select7187)) (element? Select7195 (cons @p (cons @v (cons append (cons and (cons or (cons + (cons * (cons do ()))))))))))))) (cons Select7195 (cons (hd Select7196) (cons (shen.process-assoc (cons Select7195 (tl Select7196))) ()))) (thaw GoTo7181))) (if (= shen.@ch Select7195) (if (cons? Select7196) (let Select7193 (hd Select7196) (let Select7194 (tl Select7196) (if (and (cons? Select7193) (let Select7190 (tl Select7193) (and (cons? Select7190) (let Select7192 (tl Select7190) (and (cons? Select7192) (and (= () (tl Select7192)) (and (= () Select7194) (= (hd Select7190) (intern ":"))))))))) (let Select7191 (tl Select7193) (shen.cons-form-respect-modes (cons - (cons (cons (hd Select7193) (cons (hd Select7191) (cons (cons + (tl Select7191)) ()))) ())))) (if (= () Select7194) (shen.cons-form-respect-modes Select7193) (thaw GoTo7188))))) (thaw GoTo7188)) (thaw GoTo7188))))))))))))))))))))))))))))))) (thaw GoTo7181)))) -(defun shen.process-input+ (V7176) (let GoTo7177 (freeze (shen.f-error shen.process-input+)) (if (cons? V7176) (let Select7182 (tl V7176) (if (= input+ (hd V7176)) (if (cons? Select7182) (let Select7180 (hd Select7182) (let Select7181 (tl Select7182) (if (= () Select7181) (cons shen.input-h+ (cons (shen.rcons_form Select7180) (cons (cons stinput ()) ()))) (if (and (cons? Select7181) (= () (tl Select7181))) (cons shen.input-h+ (cons (shen.rcons_form Select7180) Select7181)) (thaw GoTo7177))))) (thaw GoTo7177)) (thaw GoTo7177))) (thaw GoTo7177)))) +(defun shen.process-input+ (V7197) (let GoTo7198 (freeze (shen.f-error shen.process-input+)) (if (cons? V7197) (let Select7203 (tl V7197) (if (= input+ (hd V7197)) (if (cons? Select7203) (let Select7201 (hd Select7203) (let Select7202 (tl Select7203) (if (= () Select7202) (cons shen.input-h+ (cons (shen.rcons_form Select7201) (cons (cons stinput ()) ()))) (if (and (cons? Select7202) (= () (tl Select7202))) (cons shen.input-h+ (cons (shen.rcons_form Select7201) Select7202)) (thaw GoTo7198))))) (thaw GoTo7198)) (thaw GoTo7198))) (thaw GoTo7198)))) -(defun shen.cons-form-respect-modes (V7183) (let GoTo7184 (freeze V7183) (if (cons? V7183) (let Select7185 (hd V7183) (let Select7186 (tl V7183) (if (and (= + Select7185) (and (cons? Select7186) (= () (tl Select7186)))) (cons + (cons (shen.cons-form-respect-modes (hd Select7186)) ())) (if (and (= - Select7185) (and (cons? Select7186) (= () (tl Select7186)))) (cons - (cons (shen.cons-form-respect-modes (hd Select7186)) ())) (if (and (= bar! Select7185) (and (cons? Select7186) (= () (tl Select7186)))) (hd Select7186) (cons cons (cons (shen.cons-form-respect-modes Select7185) (cons (shen.cons-form-respect-modes Select7186) ())))))))) (thaw GoTo7184)))) +(defun shen.cons-form-respect-modes (V7204) (let GoTo7205 (freeze V7204) (if (cons? V7204) (let Select7206 (hd V7204) (let Select7207 (tl V7204) (if (and (= + Select7206) (and (cons? Select7207) (= () (tl Select7207)))) (cons + (cons (shen.cons-form-respect-modes (hd Select7207)) ())) (if (and (= - Select7206) (and (cons? Select7207) (= () (tl Select7207)))) (cons - (cons (shen.cons-form-respect-modes (hd Select7207)) ())) (if (and (= bar! Select7206) (and (cons? Select7207) (= () (tl Select7207)))) (hd Select7207) (cons cons (cons (shen.cons-form-respect-modes Select7206) (cons (shen.cons-form-respect-modes Select7207) ())))))))) (thaw GoTo7205)))) -(defun shen.process-def (V7187 V7188) (let W7189 (cons X (cons -> (cons X ()))) (let W7190 (eval (cons define (cons V7187 (append V7188 W7189)))) (let W7191 (shen.record-macro V7187 (fn V7187)) V7187)))) +(defun shen.process-def (V7208 V7209) (let W7210 (cons X (cons -> (cons X ()))) (let W7211 (eval (cons define (cons V7208 (append V7209 W7210)))) (let W7212 (shen.record-macro V7208 (fn V7208)) V7208)))) -(defun shen.process-let (V7192) (if (and (cons? V7192) (let Select7193 (tl V7192) (and (= let (hd V7192)) (and (cons? Select7193) (let Select7195 (tl Select7193) (and (cons? Select7195) (let Select7196 (tl Select7195) (and (cons? Select7196) (cons? (tl Select7196)))))))))) (let Select7194 (tl V7192) (cons let (cons (hd Select7194) (cons (hd (tl Select7194)) (cons (cons let (tl (tl Select7194))) ()))))) V7192)) +(defun shen.process-let (V7213) (if (and (cons? V7213) (let Select7214 (tl V7213) (and (= let (hd V7213)) (and (cons? Select7214) (let Select7216 (tl Select7214) (and (cons? Select7216) (let Select7217 (tl Select7216) (and (cons? Select7217) (cons? (tl Select7217)))))))))) (let Select7215 (tl V7213) (cons let (cons (hd Select7215) (cons (hd (tl Select7215)) (cons (cons let (tl (tl Select7215))) ()))))) V7213)) -(defun shen.process-@s (V7197) (let GoTo7199 (freeze V7197) (if (cons? V7197) (let Select7206 (tl V7197) (if (= @s (hd V7197)) (if (cons? Select7206) (let Select7204 (hd Select7206) (let Select7205 (tl Select7206) (if (cons? Select7205) (let Select7203 (tl Select7205) (if (cons? Select7203) (cons @s (cons Select7204 (cons (shen.process-@s (cons @s Select7205)) ()))) (if (and (= () Select7203) (string? Select7204)) (let W7198 (explode Select7204) (if (> (length W7198) 1) (shen.process-@s (cons @s (append W7198 Select7205))) V7197)) (thaw GoTo7199)))) (thaw GoTo7199)))) (thaw GoTo7199)) (thaw GoTo7199))) (thaw GoTo7199)))) +(defun shen.process-@s (V7218) (let GoTo7220 (freeze V7218) (if (cons? V7218) (let Select7227 (tl V7218) (if (= @s (hd V7218)) (if (cons? Select7227) (let Select7225 (hd Select7227) (let Select7226 (tl Select7227) (if (cons? Select7226) (let Select7224 (tl Select7226) (if (cons? Select7224) (cons @s (cons Select7225 (cons (shen.process-@s (cons @s Select7226)) ()))) (if (and (= () Select7224) (string? Select7225)) (let W7219 (explode Select7225) (if (> (length W7219) 1) (shen.process-@s (cons @s (append W7219 Select7226))) V7218)) (thaw GoTo7220)))) (thaw GoTo7220)))) (thaw GoTo7220)) (thaw GoTo7220))) (thaw GoTo7220)))) -(defun shen.process-datatype (V7207 V7208) (let W7209 (shen.intern-type V7207) (let W7210 (compile (lambda Z7211 (shen. Z7211)) (cons W7209 V7208)) W7209))) +(defun shen.process-datatype (V7228 V7229) (let W7230 (shen.intern-type V7228) (let W7231 (compile (lambda Z7232 (shen. Z7232)) (cons W7230 V7229)) W7230))) -(defun shen.intern-type (V7212) (intern (cn (str V7212) "#type"))) +(defun shen.intern-type (V7233) (intern (cn (str V7233) "#type"))) -(defun shen.process-synonyms (V7213) (shen.synonyms-h (set shen.*synonyms* (append V7213 (value shen.*synonyms*))))) +(defun shen.process-synonyms (V7234) (shen.synonyms-h (set shen.*synonyms* (append V7234 (value shen.*synonyms*))))) -(defun shen.lambda-of-defun (V7216) (if (and (cons? V7216) (let Select7217 (tl V7216) (and (= defun (hd V7216)) (and (cons? Select7217) (let Select7219 (tl Select7217) (and (cons? Select7219) (let Select7220 (hd Select7219) (let Select7221 (tl Select7219) (and (cons? Select7220) (and (= () (tl Select7220)) (and (cons? Select7221) (= () (tl Select7221))))))))))))) (let Select7218 (tl V7216) (eval (cons /. (cons (hd (hd (tl Select7218))) (tl (tl Select7218)))))) (shen.f-error shen.lambda-of-defun))) +(defun shen.lambda-of-defun (V7237) (if (and (cons? V7237) (let Select7238 (tl V7237) (and (= defun (hd V7237)) (and (cons? Select7238) (let Select7240 (tl Select7238) (and (cons? Select7240) (let Select7241 (hd Select7240) (let Select7242 (tl Select7240) (and (cons? Select7241) (and (= () (tl Select7241)) (and (cons? Select7242) (= () (tl Select7242))))))))))))) (let Select7239 (tl V7237) (eval (cons /. (cons (hd (hd (tl Select7239))) (tl (tl Select7239)))))) (shen.f-error shen.lambda-of-defun))) -(defun shen.synonyms-h (V7222) (let W7223 (map (lambda Z7224 (shen.curry-type Z7224)) V7222) (let W7225 (shen.lambda-of-defun (shen.shendef->kldef shen.demod (shen.compile-synonyms W7223))) (let W7226 (set shen.*demodulation-function* W7225) synonyms)))) +(defun shen.synonyms-h (V7243) (let W7244 (map (lambda Z7245 (shen.curry-type Z7245)) V7243) (let W7246 (shen.lambda-of-defun (shen.shendef->kldef shen.demod (shen.compile-synonyms W7244))) (let W7247 (set shen.*demodulation-function* W7246) synonyms)))) -(defun shen.compile-synonyms (V7229) (if (= () V7229) (let W7230 (gensym X) (cons W7230 (cons -> (cons W7230 ())))) (if (and (cons? V7229) (cons? (tl V7229))) (let Select7231 (tl V7229) (cons (shen.rcons_form (hd V7229)) (cons -> (cons (shen.rcons_form (hd Select7231)) (shen.compile-synonyms (tl Select7231)))))) (simple-error "synonyms requires an even number of arguments +(defun shen.compile-synonyms (V7250) (if (= () V7250) (let W7251 (gensym X) (cons W7251 (cons -> (cons W7251 ())))) (if (and (cons? V7250) (cons? (tl V7250))) (let Select7252 (tl V7250) (cons (shen.rcons_form (hd V7250)) (cons -> (cons (shen.rcons_form (hd Select7252)) (shen.compile-synonyms (tl Select7252)))))) (simple-error "synonyms requires an even number of arguments ")))) -(defun shen.process-lambda (V7232) (let GoTo7233 (freeze V7232) (if (cons? V7232) (let Select7240 (tl V7232) (if (= /. (hd V7232)) (if (cons? Select7240) (let Select7238 (hd Select7240) (let Select7239 (tl Select7240) (if (cons? Select7239) (let Select7237 (tl Select7239) (if (cons? Select7237) (cons lambda (cons Select7238 (cons (shen.process-lambda (cons /. Select7239)) ()))) (if (= () Select7237) (if (variable? Select7238) (cons lambda Select7240) (simple-error (shen.app Select7238 " is not a variable -" shen.s))) (thaw GoTo7233)))) (thaw GoTo7233)))) (thaw GoTo7233)) (thaw GoTo7233))) (thaw GoTo7233)))) +(defun shen.process-lambda (V7253) (let GoTo7254 (freeze V7253) (if (cons? V7253) (let Select7261 (tl V7253) (if (= /. (hd V7253)) (if (cons? Select7261) (let Select7259 (hd Select7261) (let Select7260 (tl Select7261) (if (cons? Select7260) (let Select7258 (tl Select7260) (if (cons? Select7258) (cons lambda (cons Select7259 (cons (shen.process-lambda (cons /. Select7260)) ()))) (if (= () Select7258) (if (variable? Select7259) (cons lambda Select7261) (simple-error (shen.app Select7259 " is not a variable +" shen.s))) (thaw GoTo7254)))) (thaw GoTo7254)))) (thaw GoTo7254)) (thaw GoTo7254))) (thaw GoTo7254)))) -(defun shen.process-cases (V7243) (let GoTo7244 (freeze V7243) (if (cons? V7243) (let Select7252 (tl V7243) (if (= cases (hd V7243)) (if (cons? Select7252) (let Select7250 (hd Select7252) (let Select7251 (tl Select7252) (if (and (= true Select7250) (cons? Select7251)) (hd Select7251) (let GoTo7247 (freeze (if (= () Select7251) (simple-error "error: odd number of case elements -") (thaw GoTo7244))) (if (cons? Select7251) (let Select7248 (hd Select7251) (let Select7249 (tl Select7251) (if (= () Select7249) (cons if (cons Select7250 (cons Select7248 (cons (cons simple-error (cons "error: cases exhausted" ())) ())))) (cons if (cons Select7250 (cons Select7248 (cons (shen.process-cases (cons cases Select7249)) ()))))))) (thaw GoTo7247)))))) (thaw GoTo7244)) (thaw GoTo7244))) (thaw GoTo7244)))) +(defun shen.process-cases (V7264) (let GoTo7265 (freeze V7264) (if (cons? V7264) (let Select7273 (tl V7264) (if (= cases (hd V7264)) (if (cons? Select7273) (let Select7271 (hd Select7273) (let Select7272 (tl Select7273) (if (and (= true Select7271) (cons? Select7272)) (hd Select7272) (let GoTo7268 (freeze (if (= () Select7272) (simple-error "error: odd number of case elements +") (thaw GoTo7265))) (if (cons? Select7272) (let Select7269 (hd Select7272) (let Select7270 (tl Select7272) (if (= () Select7270) (cons if (cons Select7271 (cons Select7269 (cons (cons simple-error (cons "error: cases exhausted" ())) ())))) (cons if (cons Select7271 (cons Select7269 (cons (shen.process-cases (cons cases Select7270)) ()))))))) (thaw GoTo7268)))))) (thaw GoTo7265)) (thaw GoTo7265))) (thaw GoTo7265)))) -(defun shen.process-time (V7253) (cons let (cons Start (cons (cons get-time (cons run ())) (cons Result (cons V7253 (cons Finish (cons (cons get-time (cons run ())) (cons Time (cons (cons - (cons Finish (cons Start ()))) (cons Message (cons (cons pr (cons (cons cn (cons " +(defun shen.process-time (V7274) (cons let (cons Start (cons (cons get-time (cons run ())) (cons Result (cons V7274 (cons Finish (cons (cons get-time (cons run ())) (cons Time (cons (cons - (cons Finish (cons Start ()))) (cons Message (cons (cons pr (cons (cons cn (cons " run time: " (cons (cons cn (cons (cons str (cons Time ())) (cons " secs " ()))) ()))) (cons (cons stoutput ()) ()))) (cons Result ()))))))))))))) -(defun shen.process-assoc (V7254) (if (and (cons? V7254) (let Select7255 (tl V7254) (and (cons? Select7255) (let Select7258 (tl Select7255) (and (cons? Select7258) (cons? (tl Select7258))))))) (let Select7256 (hd V7254) (let Select7257 (tl V7254) (cons Select7256 (cons (hd Select7257) (cons (cons Select7256 (tl Select7257)) ()))))) V7254)) +(defun shen.process-assoc (V7275) (if (and (cons? V7275) (let Select7276 (tl V7275) (and (cons? Select7276) (let Select7279 (tl Select7276) (and (cons? Select7279) (cons? (tl Select7279))))))) (let Select7277 (hd V7275) (let Select7278 (tl V7275) (cons Select7277 (cons (hd Select7278) (cons (cons Select7277 (tl Select7278)) ()))))) V7275)) -(defun shen.make-uppercase (V7259) (intern (shen.mu-h (str V7259)))) +(defun shen.make-uppercase (V7280) (intern (shen.mu-h (str V7280)))) -(defun shen.mu-h (V7260) (if (= "" V7260) "" (if (shen.+string? V7260) (let W7261 (string->n (hdstr V7260)) (let W7262 (- W7261 32) (let W7263 (if (and (>= W7261 97) (<= W7261 122)) (n->string W7262) (hdstr V7260)) (@s W7263 (shen.mu-h (tlstr V7260)))))) (shen.f-error shen.mu-h)))) +(defun shen.mu-h (V7281) (if (= "" V7281) "" (if (shen.+string? V7281) (let W7282 (string->n (hdstr V7281)) (let W7283 (- W7282 32) (let W7284 (if (and (>= W7282 97) (<= W7282 122)) (n->string W7283) (hdstr V7281)) (@s W7284 (shen.mu-h (tlstr V7281)))))) (shen.f-error shen.mu-h)))) -(defun shen.record-macro (V7264 V7265) (set *macros* (shen.update-assoc V7264 V7265 (value *macros*)))) +(defun shen.record-macro (V7285 V7286) (set *macros* (shen.update-assoc V7285 V7286 (value *macros*)))) -(defun shen.update-assoc (V7275 V7276 V7277) (if (= () V7277) (cons (cons V7275 V7276) ()) (let GoTo7278 (freeze (simple-error "implementation error in shen.update-assoc")) (if (cons? V7277) (let Select7279 (hd V7277) (let Select7280 (tl V7277) (if (and (cons? Select7279) (= V7275 (hd Select7279))) (cons (cons (hd Select7279) V7276) Select7280) (cons Select7279 (shen.update-assoc V7275 V7276 Select7280))))) (thaw GoTo7278))))) +(defun shen.update-assoc (V7296 V7297 V7298) (if (= () V7298) (cons (cons V7296 V7297) ()) (let GoTo7299 (freeze (simple-error "implementation error in shen.update-assoc")) (if (cons? V7298) (let Select7300 (hd V7298) (let Select7301 (tl V7298) (if (and (cons? Select7300) (= V7296 (hd Select7300))) (cons (cons (hd Select7300) V7297) Select7301) (cons Select7300 (shen.update-assoc V7296 V7297 Select7301))))) (thaw GoTo7299))))) (defun shen.process-read-byte () (if (char-stream? (stinput)) (cons string->n (cons (cons read-unit-string (cons (cons stinput ()) ())) ())) (cons read-byte (cons (cons stinput ()) ())))) -(defun shen.call-prolog (V7281) (let W7282 (cons shen.prolog-vector ()) (let W7283 (cons @v (cons true (cons 0 (cons (cons vector (cons 0 ())) ())))) (let W7284 0 (let W7285 (cons freeze (cons true ())) (let W7286 (compile (lambda Z7287 (shen. Z7287)) V7281) (let W7288 (shen.received V7281) (let W7289 (gensym V) (let W7290 (gensym L) (let W7291 (gensym K) (let W7292 (gensym C) (let W7293 (cons lambda (cons W7289 (cons (cons lambda (cons W7290 (cons (cons lambda (cons W7291 (cons (cons lambda (cons W7292 (cons (shen.continue W7288 W7286 W7289 W7290 W7291 W7292) ()))) ()))) ()))) ()))) (cons W7293 (cons W7282 (cons W7283 (cons W7284 (cons W7285 ()))))))))))))))))) +(defun shen.call-prolog (V7302) (let W7303 (cons shen.prolog-vector ()) (let W7304 (cons @v (cons true (cons 0 (cons (cons vector (cons 0 ())) ())))) (let W7305 0 (let W7306 (cons freeze (cons true ())) (let W7307 (compile (lambda Z7308 (shen. Z7308)) V7302) (let W7309 (shen.received V7302) (let W7310 (gensym V) (let W7311 (gensym L) (let W7312 (gensym K) (let W7313 (gensym C) (let W7314 (cons lambda (cons W7310 (cons (cons lambda (cons W7311 (cons (cons lambda (cons W7312 (cons (cons lambda (cons W7313 (cons (shen.continue W7309 W7307 W7310 W7311 W7312 W7313) ()))) ()))) ()))) ()))) (cons W7314 (cons W7303 (cons W7304 (cons W7305 (cons W7306 ()))))))))))))))))) -(defun shen.received (V7296) (let GoTo7297 (freeze ()) (if (cons? V7296) (let Select7298 (hd V7296) (let Select7299 (tl V7296) (if (and (= receive Select7298) (and (cons? Select7299) (= () (tl Select7299)))) Select7299 (union (shen.received Select7298) (shen.received Select7299))))) (thaw GoTo7297)))) +(defun shen.received (V7317) (let GoTo7318 (freeze ()) (if (cons? V7317) (let Select7319 (hd V7317) (let Select7320 (tl V7317) (if (and (= receive Select7319) (and (cons? Select7320) (= () (tl Select7320)))) Select7320 (union (shen.received Select7319) (shen.received Select7320))))) (thaw GoTo7318)))) -(defun shen.prolog-vector () (let W7300 (absvector (value shen.*prolog-memory*)) (let W7301 (address-> W7300 0 shen.print-prolog-vector) (let W7302 (address-> W7300 1 2) W7302)))) +(defun shen.prolog-vector () (let W7321 (absvector (value shen.*prolog-memory*)) (let W7322 (address-> W7321 0 shen.print-prolog-vector) (let W7323 (address-> W7321 1 2) W7323)))) -(defun receive (V7303) V7303) +(defun receive (V7324) V7324) -(defun shen.rcons_form (V7304) (let GoTo7305 (freeze V7304) (if (cons? V7304) (let Select7306 (hd V7304) (let Select7307 (tl V7304) (if (and (= bar! Select7306) (and (cons? Select7307) (= () (tl Select7307)))) (hd Select7307) (cons cons (cons (shen.rcons_form Select7306) (cons (shen.rcons_form Select7307) ())))))) (thaw GoTo7305)))) +(defun shen.rcons_form (V7325) (let GoTo7326 (freeze V7325) (if (cons? V7325) (let Select7327 (hd V7325) (let Select7328 (tl V7325) (if (and (= bar! Select7327) (and (cons? Select7328) (= () (tl Select7328)))) (hd Select7328) (cons cons (cons (shen.rcons_form Select7327) (cons (shen.rcons_form Select7328) ())))))) (thaw GoTo7326)))) -(defun shen.tuple-up (V7308) (if (cons? V7308) (cons @p (cons (hd V7308) (cons (shen.tuple-up (tl V7308)) ()))) V7308)) +(defun shen.tuple-up (V7329) (if (cons? V7329) (cons @p (cons (hd V7329) (cons (shen.tuple-up (tl V7329)) ()))) V7329)) -(defun undefmacro (V7309) (do (set *macros* (remove (assoc V7309 (value *macros*)) (value *macros*))) V7309)) +(defun undefmacro (V7330) (do (set *macros* (remove (assoc V7330 (value *macros*)) (value *macros*))) V7330)) diff --git a/klambda/stlib.kl b/klambda/stlib.kl index 6fea7b9..82d72e3 100644 --- a/klambda/stlib.kl +++ b/klambda/stlib.kl @@ -3,135 +3,135 @@ (defun newv () (gensym X)) -(defun maths.maths-macro (V15) (let GoTo16 (freeze V15) (if (cons? V15) (let Select35 (hd V15) (let Select36 (tl V15) (if (and (= log10 Select35) (and (cons? Select36) (= () (tl Select36)))) (cons log10 (cons (hd Select36) (cons (cons tolerance ()) ()))) (if (and (= log2 Select35) (and (cons? Select36) (= () (tl Select36)))) (cons log2 (cons (hd Select36) (cons (cons tolerance ()) ()))) (if (and (= loge Select35) (and (cons? Select36) (= () (tl Select36)))) (cons loge (cons (hd Select36) (cons (cons tolerance ()) ()))) (if (and (= log Select35) (and (cons? Select36) (let Select17 (tl Select36) (and (cons? Select17) (= () (tl Select17)))))) (cons log (cons (hd Select36) (cons (hd (tl Select36)) (cons (cons tolerance ()) ())))) (if (and (= sin Select35) (and (cons? Select36) (= () (tl Select36)))) (cons sin (cons (hd Select36) (cons (cons tolerance ()) ()))) (if (and (= tan Select35) (and (cons? Select36) (= () (tl Select36)))) (cons tan (cons (hd Select36) (cons (cons tolerance ()) ()))) (if (and (= cos Select35) (and (cons? Select36) (= () (tl Select36)))) (cons cos (cons (hd Select36) (cons (cons tolerance ()) ()))) (if (and (= tanh Select35) (and (cons? Select36) (= () (tl Select36)))) (cons tanh (cons (hd Select36) (cons (cons tolerance ()) ()))) (if (and (= cosh Select35) (and (cons? Select36) (= () (tl Select36)))) (cons cosh (cons (hd Select36) (cons (cons tolerance ()) ()))) (if (and (= sinh Select35) (and (cons? Select36) (= () (tl Select36)))) (cons sinh (cons (hd Select36) (cons (cons tolerance ()) ()))) (if (and (= sech Select35) (and (cons? Select36) (= () (tl Select36)))) (cons sech (cons (hd Select36) (cons (cons tolerance ()) ()))) (if (and (= csch Select35) (and (cons? Select36) (= () (tl Select36)))) (cons csch (cons (hd Select36) (cons (cons tolerance ()) ()))) (if (and (= coth Select35) (and (cons? Select36) (= () (tl Select36)))) (cons coth (cons (hd Select36) (cons (cons tolerance ()) ()))) (if (and (= nthrt Select35) (and (cons? Select36) (let Select18 (tl Select36) (and (cons? Select18) (= () (tl Select18)))))) (cons nthrt (cons (hd Select36) (cons (hd (tl Select36)) (cons (cons tolerance ()) ())))) (if (and (= sqrt Select35) (and (cons? Select36) (= () (tl Select36)))) (cons sqrt (cons (hd Select36) (cons (cons tolerance ()) ()))) (if (and (= expt Select35) (and (cons? Select36) (let Select19 (tl Select36) (and (cons? Select19) (= () (tl Select19)))))) (cons expt (cons (hd Select36) (cons (hd (tl Select36)) (cons (cons tolerance ()) ())))) (if (and (= max Select35) (and (cons? Select36) (let Select20 (tl Select36) (and (cons? Select20) (cons? (tl Select20)))))) (cons max (cons (hd Select36) (cons (cons max (tl Select36)) ()))) (if (and (= min Select35) (and (cons? Select36) (let Select21 (tl Select36) (and (cons? Select21) (cons? (tl Select21)))))) (cons min (cons (hd Select36) (cons (cons min (tl Select36)) ()))) (if (and (= tolerance Select35) (and (cons? Select36) (= () (tl Select36)))) (cons maths.tolerance=n Select36) (if (= for Select35) (if (cons? Select36) (let Select33 (hd Select36) (let Select34 (tl Select36) (if (cons? Select34) (let Select32 (tl Select34) (if (= = (hd Select34)) (if (cons? Select32) (let Select30 (hd Select32) (let Select31 (tl Select32) (if (cons? Select31) (let Select28 (hd Select31) (let Select29 (tl Select31) (if (and (= stop Select28) (cons? Select29)) (cons maths.upto (cons Select30 (cons (hd Select29) (maths.process-options Select33 (tl Select29))))) (if (and (= to Select28) (cons? Select29)) (cons maths.upto (cons Select30 (cons (cons < (cons (hd Select29) ())) (maths.process-options Select33 (tl Select29))))) (thaw GoTo16))))) (thaw GoTo16)))) (thaw GoTo16)) (thaw GoTo16))) (thaw GoTo16)))) (thaw GoTo16)) (thaw GoTo16))))))))))))))))))))))) (thaw GoTo16)))) +(defun maths.maths-macro (V25) (let GoTo26 (freeze V25) (if (cons? V25) (let Select45 (hd V25) (let Select46 (tl V25) (if (and (= log10 Select45) (and (cons? Select46) (= () (tl Select46)))) (cons log10 (cons (hd Select46) (cons (cons tolerance ()) ()))) (if (and (= log2 Select45) (and (cons? Select46) (= () (tl Select46)))) (cons log2 (cons (hd Select46) (cons (cons tolerance ()) ()))) (if (and (= loge Select45) (and (cons? Select46) (= () (tl Select46)))) (cons loge (cons (hd Select46) (cons (cons tolerance ()) ()))) (if (and (= log Select45) (and (cons? Select46) (let Select27 (tl Select46) (and (cons? Select27) (= () (tl Select27)))))) (cons log (cons (hd Select46) (cons (hd (tl Select46)) (cons (cons tolerance ()) ())))) (if (and (= sin Select45) (and (cons? Select46) (= () (tl Select46)))) (cons sin (cons (hd Select46) (cons (cons tolerance ()) ()))) (if (and (= tan Select45) (and (cons? Select46) (= () (tl Select46)))) (cons tan (cons (hd Select46) (cons (cons tolerance ()) ()))) (if (and (= cos Select45) (and (cons? Select46) (= () (tl Select46)))) (cons cos (cons (hd Select46) (cons (cons tolerance ()) ()))) (if (and (= tanh Select45) (and (cons? Select46) (= () (tl Select46)))) (cons tanh (cons (hd Select46) (cons (cons tolerance ()) ()))) (if (and (= cosh Select45) (and (cons? Select46) (= () (tl Select46)))) (cons cosh (cons (hd Select46) (cons (cons tolerance ()) ()))) (if (and (= sinh Select45) (and (cons? Select46) (= () (tl Select46)))) (cons sinh (cons (hd Select46) (cons (cons tolerance ()) ()))) (if (and (= sech Select45) (and (cons? Select46) (= () (tl Select46)))) (cons sech (cons (hd Select46) (cons (cons tolerance ()) ()))) (if (and (= csch Select45) (and (cons? Select46) (= () (tl Select46)))) (cons csch (cons (hd Select46) (cons (cons tolerance ()) ()))) (if (and (= coth Select45) (and (cons? Select46) (= () (tl Select46)))) (cons coth (cons (hd Select46) (cons (cons tolerance ()) ()))) (if (and (= nthrt Select45) (and (cons? Select46) (let Select28 (tl Select46) (and (cons? Select28) (= () (tl Select28)))))) (cons nthrt (cons (hd Select46) (cons (hd (tl Select46)) (cons (cons tolerance ()) ())))) (if (and (= sqrt Select45) (and (cons? Select46) (= () (tl Select46)))) (cons sqrt (cons (hd Select46) (cons (cons tolerance ()) ()))) (if (and (= expt Select45) (and (cons? Select46) (let Select29 (tl Select46) (and (cons? Select29) (= () (tl Select29)))))) (cons expt (cons (hd Select46) (cons (hd (tl Select46)) (cons (cons tolerance ()) ())))) (if (and (= max Select45) (and (cons? Select46) (let Select30 (tl Select46) (and (cons? Select30) (cons? (tl Select30)))))) (cons max (cons (hd Select46) (cons (cons max (tl Select46)) ()))) (if (and (= min Select45) (and (cons? Select46) (let Select31 (tl Select46) (and (cons? Select31) (cons? (tl Select31)))))) (cons min (cons (hd Select46) (cons (cons min (tl Select46)) ()))) (if (and (= tolerance Select45) (and (cons? Select46) (= () (tl Select46)))) (cons maths.tolerance=n Select46) (if (= for Select45) (if (cons? Select46) (let Select43 (hd Select46) (let Select44 (tl Select46) (if (cons? Select44) (let Select42 (tl Select44) (if (= = (hd Select44)) (if (cons? Select42) (let Select40 (hd Select42) (let Select41 (tl Select42) (if (cons? Select41) (let Select38 (hd Select41) (let Select39 (tl Select41) (if (and (= stop Select38) (cons? Select39)) (cons maths.upto (cons Select40 (cons (hd Select39) (maths.process-options Select43 (tl Select39))))) (if (and (= to Select38) (cons? Select39)) (cons maths.upto (cons Select40 (cons (cons < (cons (hd Select39) ())) (maths.process-options Select43 (tl Select39))))) (thaw GoTo26))))) (thaw GoTo26)))) (thaw GoTo26)) (thaw GoTo26))) (thaw GoTo26)))) (thaw GoTo26)) (thaw GoTo26))))))))))))))))))))))) (thaw GoTo26)))) -(defun maths.process-options (V61 V62) (append (maths.step-option V62) (append (maths.constructor-option V62) (append (maths.end-option V62) (maths.process V61 V62))))) +(defun maths.process-options (V71 V72) (append (maths.step-option V72) (append (maths.constructor-option V72) (append (maths.end-option V72) (maths.process V71 V72))))) -(defun maths.step-option (V72) (if (= () V72) (cons (cons + (cons 1 ())) ()) (let GoTo73 (freeze (shen.f-error maths.step-option)) (if (cons? V72) (let Select74 (tl V72) (if (and (= step (hd V72)) (cons? Select74)) (cons (hd Select74) ()) (maths.step-option Select74))) (thaw GoTo73))))) +(defun maths.step-option (V82) (if (= () V82) (cons (cons + (cons 1 ())) ()) (let GoTo83 (freeze (shen.f-error maths.step-option)) (if (cons? V82) (let Select84 (tl V82) (if (and (= step (hd V82)) (cons? Select84)) (cons (hd Select84) ()) (maths.step-option Select84))) (thaw GoTo83))))) -(defun maths.constructor-option (V80) (if (= () V80) (cons (cons fn (cons do ())) ()) (let GoTo81 (freeze (shen.f-error maths.constructor-option)) (if (cons? V80) (let Select82 (tl V80) (if (and (= constructor (hd V80)) (cons? Select82)) (cons (hd Select82) ()) (maths.constructor-option Select82))) (thaw GoTo81))))) +(defun maths.constructor-option (V90) (if (= () V90) (cons (cons fn (cons do ())) ()) (let GoTo91 (freeze (shen.f-error maths.constructor-option)) (if (cons? V90) (let Select92 (tl V90) (if (and (= constructor (hd V90)) (cons? Select92)) (cons (hd Select92) ()) (maths.constructor-option Select92))) (thaw GoTo91))))) -(defun maths.end-option (V88) (if (= () V88) (cons done ()) (let GoTo89 (freeze (shen.f-error maths.end-option)) (if (cons? V88) (let Select90 (tl V88) (if (and (= end (hd V88)) (cons? Select90)) (cons (hd Select90) ()) (maths.end-option Select90))) (thaw GoTo89))))) +(defun maths.end-option (V98) (if (= () V98) (cons done ()) (let GoTo99 (freeze (shen.f-error maths.end-option)) (if (cons? V98) (let Select100 (tl V98) (if (and (= end (hd V98)) (cons? Select100)) (cons (hd Select100) ()) (maths.end-option Select100))) (thaw GoTo99))))) -(defun maths.process (V94 V95) (let GoTo96 (freeze (shen.f-error maths.process)) (if (cons? V95) (let Select97 (tl V95) (if (= () Select97) (cons (cons /. (cons V94 V95)) ()) (maths.process V94 Select97))) (thaw GoTo96)))) +(defun maths.process (V104 V105) (let GoTo106 (freeze (shen.f-error maths.process)) (if (cons? V105) (let Select107 (tl V105) (if (= () Select107) (cons (cons /. (cons V104 V105)) ()) (maths.process V104 Select107))) (thaw GoTo106)))) -(defun set-tolerance (V324) (set maths.*tolerance* V324)) +(defun set-tolerance (V334) (set maths.*tolerance* V334)) (defun tolerance () (value maths.*tolerance*)) -(defun sq (V326) (* V326 V326)) +(defun sq (V346) (* V346 V346)) -(defun cube (V328) (* V328 (* V328 V328))) +(defun cube (V353) (* V353 (* V353 V353))) -(defun for (V330 V331 V332 V333 V334) (maths.for-h (V333 V330) V331 V332 V333 V334 (V332 V330))) +(defun for (V360 V361 V362 V363 V364) (maths.for-h (V363 V360) V361 V362 V363 V364 (V362 V360))) -(defun maths.for-h (V344 V345 V346 V347 V348 V349) (cond ((not (V345 V344)) V349) (true (maths.for-h (V347 V344) V345 V346 V347 V348 ((V348 V349) (V346 V344)))))) +(defun maths.for-h (V385 V386 V387 V388 V389 V390) (cond ((not (V386 V385)) V390) (true (maths.for-h (V388 V385) V386 V387 V388 V389 ((V389 V390) (V387 V385)))))) -(defun maths.lazyfor-and (V368 V369 V370 V371) (cond ((not (V369 V368)) true) ((V370 V368) (maths.lazyfor-and (V371 V368) V369 V370 V371)) (true false))) +(defun maths.lazyfor-and (V421 V422 V423 V424) (cond ((not (V422 V421)) true) ((V423 V421) (maths.lazyfor-and (V424 V421) V422 V423 V424)) (true false))) -(defun maths.lazyfor-or (V378 V379 V380 V381) (cond ((not (V379 V378)) false) ((V380 V378) true) (true (maths.lazyfor-or (V381 V378) V379 V380 V381)))) +(defun maths.lazyfor-or (V438 V439 V440 V441) (cond ((not (V439 V438)) false) ((V440 V438) true) (true (maths.lazyfor-or (V441 V438) V439 V440 V441)))) -(defun max (V388 V389) (cond ((> V389 V388) V389) (true V388))) +(defun max (V455 V456) (cond ((> V456 V455) V456) (true V455))) -(defun min (V394 V395) (cond ((< V395 V394) V395) (true V394))) +(defun min (V466 V467) (cond ((< V467 V466) V467) (true V466))) -(defun expt (V398 V399 V400) (if (= V399 0) 1 (if (positive? V399) (maths.expt-h V398 (maths.n->r V399 1) V400) (/ 1 (maths.expt-h V398 (maths.n->r (~ V399) 1) V400))))) +(defun expt (V475 V476 V477) (if (= V476 0) 1 (if (positive? V476) (maths.expt-h V475 (maths.n->r V476 1) V477) (/ 1 (maths.expt-h V475 (maths.n->r (~ V476) 1) V477))))) -(defun maths.n->r (V404 V405) (cond ((integer? V404) (@p V404 V405)) (true (maths.n->r (* V404 10) (* V405 10))))) +(defun maths.n->r (V486 V487) (cond ((integer? V486) (@p V486 V487)) (true (maths.n->r (* V486 10) (* V487 10))))) -(defun maths.expt-h (V409 V410 V411) (cond ((tuple? V410) (power (nthrt V409 (snd V410) V411) (fst V410))) (true (shen.f-error maths.expt-h)))) +(defun maths.expt-h (V496 V497 V498) (cond ((tuple? V497) (power (nthrt V496 (snd V497) V498) (fst V497))) (true (shen.f-error maths.expt-h)))) -(defun gcd (V416 V417) (if (and (integer? V416) (integer? V417)) (let W418 (abs V416) (let W419 (abs V417) (if (> W418 W419) (maths.gcd-help (- W418 W419) W419) (maths.gcd-help W418 (- W419 W418))))) (simple-error "gcd expects integer inputs"))) +(defun gcd (V509 V510) (if (and (integer? V509) (integer? V510)) (let W511 (abs V509) (let W512 (abs V510) (if (> W511 W512) (maths.gcd-help (- W511 W512) W512) (maths.gcd-help W511 (- W512 W511))))) (simple-error "gcd expects integer inputs"))) -(defun maths.gcd-help (V422 V423) (if (> V422 V423) (maths.gcd-loop V422 V423 V423) (maths.gcd-loop V422 V423 V422))) +(defun maths.gcd-help (V520 V521) (if (> V520 V521) (maths.gcd-loop V520 V521 V521) (maths.gcd-loop V520 V521 V520))) -(defun maths.gcd-loop (V430 V431 V432) (cond ((= 1 V432) 1) ((and (integer? (/ V430 V432)) (integer? (/ V431 V432))) V432) (true (maths.gcd-loop V430 V431 (- V432 1))))) +(defun maths.gcd-loop (V533 V534 V535) (cond ((= 1 V535) 1) ((and (integer? (/ V533 V535)) (integer? (/ V534 V535))) V535) (true (maths.gcd-loop V533 V534 (- V535 1))))) -(defun lcd (V436 V437) (cond ((and (even? V436) (even? V437)) 2) (true (maths.lcd-loop V436 V437 (if (> V436 V437) V437 V436) 3)))) +(defun lcd (V544 V545) (cond ((and (even? V544) (even? V545)) 2) (true (maths.lcd-loop V544 V545 (if (> V544 V545) V545 V544) 3)))) -(defun maths.lcd-loop (V443 V444 V445 V446) (cond ((> V446 V445) 1) ((and (integer? (/ V443 V446)) (integer? (/ V444 V446))) V446) (true (maths.lcd-loop V443 V444 V445 (+ 2 V446))))) +(defun maths.lcd-loop (V556 V557 V558 V559) (cond ((> V559 V558) 1) ((and (integer? (/ V556 V559)) (integer? (/ V557 V559))) V559) (true (maths.lcd-loop V556 V557 V558 (+ 2 V559))))) -(defun isqrt (V451) (maths.isqrt-loop V451 0)) +(defun isqrt (V569) (maths.isqrt-loop V569 0)) -(defun maths.isqrt-loop (V453 V454) (cond ((= (* V454 V454) V453) V454) ((> (* V454 V454) V453) (- V454 1)) (true (maths.isqrt-loop V453 (+ V454 1))))) +(defun maths.isqrt-loop (V576 V577) (cond ((= (* V577 V577) V576) V577) ((> (* V577 V577) V576) (- V577 1)) (true (maths.isqrt-loop V576 (+ V577 1))))) -(defun div (V457 V458) (floor (/ V457 V458))) +(defun div (V585 V586) (floor (/ V585 V586))) -(defun modf (V461) (let W462 (floor V461) (@p W462 (- V461 W462)))) +(defun modf (V594) (let W595 (floor V594) (@p W595 (- V594 W595)))) -(defun floor (V464) (cond ((negative? V464) (~ (ceiling (~ V464)))) (true (maths.rounding-loop floor V464 15 0)))) +(defun floor (V602) (cond ((negative? V602) (~ (ceiling (~ V602)))) (true (maths.rounding-loop floor V602 15 0)))) -(defun maths.rounding-loop (V469 V470 V471 V472) (cond ((and (= 0 V471) (= V470 V472)) V472) ((and (= 0 V471) (> V472 V470)) (if (= V469 floor) (- V472 1) (if (= V469 ceiling) V472 (if (= V469 round) (let W473 (- V472 V470) (let W474 (- V470 (- V472 1)) (if (> W473 W474) (- V472 1) V472))) (simple-error "error: cases exhausted"))))) ((> V470 V472) (maths.rounding-loop V469 V470 V471 (+ V472 (power 10 V471)))) (true (maths.rounding-loop V469 V470 (- V471 1) (- V472 (power 10 V471)))))) +(defun maths.rounding-loop (V612 V613 V614 V615) (cond ((and (= 0 V614) (= V613 V615)) V615) ((and (= 0 V614) (> V615 V613)) (if (= V612 floor) (- V615 1) (if (= V612 ceiling) V615 (if (= V612 round) (let W616 (- V615 V613) (let W617 (- V613 (- V615 1)) (if (> W616 W617) (- V615 1) V615))) (simple-error "error: cases exhausted"))))) ((> V613 V615) (maths.rounding-loop V612 V613 V614 (+ V615 (power 10 V614)))) (true (maths.rounding-loop V612 V613 (- V614 1) (- V615 (power 10 V614)))))) -(defun maths.float->pair (V480) (let W481 (floor V480) (@p W481 (- V480 W481)))) +(defun maths.float->pair (V628) (let W629 (floor V628) (@p W629 (- V628 W629)))) -(defun ceiling (V483) (cond ((negative? V483) (~ (floor (~ V483)))) (true (maths.rounding-loop ceiling V483 15 0)))) +(defun ceiling (V636) (cond ((negative? V636) (~ (floor (~ V636)))) (true (maths.rounding-loop ceiling V636 15 0)))) -(defun round (V485) (cond ((negative? V485) (~ (round (~ V485)))) (true (maths.rounding-loop round V485 15 0)))) +(defun round (V643) (cond ((negative? V643) (~ (round (~ V643)))) (true (maths.rounding-loop round V643 15 0)))) -(defun mod (V487 V488) (let W489 (/ V487 V488) (let W490 (floor W489) (if (and (integer? V487) (integer? V488)) (round (* V488 (- W489 W490))) (* V488 (- W489 W490)))))) +(defun mod (V650 V651) (let W652 (/ V650 V651) (let W653 (floor W652) (if (and (integer? V650) (integer? V651)) (round (* V651 (- W652 W653))) (* V651 (- W652 W653)))))) -(defun lcm (V493) (let W494 (maths.greatest V493) (maths.lcm-h W494 W494 V493))) +(defun lcm (V661) (let W662 (maths.greatest V661) (maths.lcm-h W662 W662 V661))) -(defun maths.greatest (V498) (cond ((and (cons? V498) (= () (tl V498))) (hd V498)) ((and (cons? V498) (and (cons? (tl V498)) (> (hd V498) (hd (tl V498))))) (maths.greatest (cons (hd V498) (tl (tl V498))))) ((and (cons? V498) (cons? (tl V498))) (maths.greatest (tl V498))) (true (shen.f-error maths.greatest)))) +(defun maths.greatest (V671) (cond ((and (cons? V671) (= () (tl V671))) (hd V671)) ((and (cons? V671) (and (cons? (tl V671)) (> (hd V671) (hd (tl V671))))) (maths.greatest (cons (hd V671) (tl (tl V671))))) ((and (cons? V671) (cons? (tl V671))) (maths.greatest (tl V671))) (true (shen.f-error maths.greatest)))) -(defun maths.lcm-h (V502 V503 V504) (cond ((maths.lcm? V502 V504) V502) (true (maths.lcm-h (+ V502 V503) V503 V504)))) +(defun maths.lcm-h (V680 V681 V682) (cond ((maths.lcm? V680 V682) V680) (true (maths.lcm-h (+ V680 V681) V681 V682)))) -(defun maths.lcm? (V510 V511) (cond ((= () V511) true) ((cons? V511) (and (integer? (/ V510 (hd V511))) (maths.lcm? V510 (tl V511)))) (true (shen.f-error maths.lcm?)))) +(defun maths.lcm? (V693 V694) (cond ((= () V694) true) ((cons? V694) (and (integer? (/ V693 (hd V694))) (maths.lcm? V693 (tl V694)))) (true (shen.f-error maths.lcm?)))) -(defun random (V514 V515) (let W516 (maths.bbs (value maths.*seed*)) (let W517 (set maths.*seed* W516) (let W518 (min V514 V515) (+ W518 (mod W517 (abs (+ 1 (- V515 V514))))))))) +(defun random (V702 V703) (let W704 (maths.bbs (value maths.*seed*)) (let W705 (set maths.*seed* W704) (let W706 (min V702 V703) (+ W706 (mod W705 (abs (+ 1 (- V703 V702))))))))) -(defun min (V523 V524) (cond ((> V523 V524) V524) (true V523))) +(defun min (V716 V717) (cond ((> V716 V717) V717) (true V716))) (defun reseed () (set maths.*seed* (get-time unix))) -(defun maths.bbs (V527) (let W528 (* 1201 1213) (mod (* V527 V527) W528))) +(defun maths.bbs (V730) (let W731 (* 1201 1213) (mod (* V730 V730) W731))) -(defun ~ (V530) (- 0 V530)) +(defun ~ (V738) (- 0 V738)) -(defun positive? (V532) (> V532 0)) +(defun positive? (V745) (> V745 0)) -(defun negative? (V534) (< V534 0)) +(defun negative? (V752) (< V752 0)) -(defun natural? (V536) (cond ((= 0 V536) true) (true (and (integer? V536) (positive? V536))))) +(defun natural? (V759) (cond ((= 0 V759) true) (true (and (integer? V759) (positive? V759))))) -(defun converge (V538 V539 V540) (maths.converge-help V539 (V539 V538) V538 V540)) +(defun converge (V766 V767 V768) (maths.converge-help V767 (V767 V766) V766 V768)) -(defun maths.converge-help (V547 V548 V549 V550) (cond (((V550 V549) V548) V548) (true (maths.converge-help V547 (V547 V548) V548 V550)))) +(defun maths.converge-help (V785 V786 V787 V788) (cond (((V788 V787) V786) V786) (true (maths.converge-help V785 (V785 V786) V786 V788)))) -(defun nthrt (V559 V560 V561) (cond ((positive? V559) (converge V559 (lambda Z562 (maths.compute-nthrt V559 Z562 V560 V561)) (approx V561))) (true (simple-error (cn "nthrt: negA must be a positive numberneg%" ""))))) +(defun nthrt (V808 V809 V810) (cond ((positive? V808) (converge V808 (lambda Z811 (maths.compute-nthrt V808 Z811 V809 V810)) (approx V810))) (true (simple-error (cn "nthrt: negA must be a positive numberneg%" ""))))) -(defun sqrt (V566 V567) (nthrt V566 2 V567)) +(defun sqrt (V820 V821) (nthrt V820 2 V821)) -(defun maths.compute-nthrt (V570 V571 V572 V573) (let W574 (/ 1 V572) (let W575 (* (- V572 1) V571) (let W576 (expt V571 (- V572 1) V573) (let W577 (/ V570 W576) (let W578 (+ W575 W577) (* W574 W578))))))) +(defun maths.compute-nthrt (V829 V830 V831 V832) (let W833 (/ 1 V831) (let W834 (* (- V831 1) V830) (let W835 (expt V830 (- V831 1) V832) (let W836 (/ V829 W835) (let W837 (+ W834 W836) (* W833 W837))))))) -(defun approx (V583) (lambda Z584 (lambda Z585 (let W586 (- Z584 Z585) (>= V583 (abs W586)))))) +(defun approx (V847) (lambda Z848 (lambda Z849 (let W850 (- Z848 Z849) (>= V847 (abs W850)))))) -(defun abs (V588) (if (>= V588 0) V588 (- 0 V588))) +(defun abs (V857) (if (>= V857 0) V857 (- 0 V857))) -(defun series (V590 V591 V592 V593) (maths.series-h (+ V590 1) V592 V591 (V591 V590) V593)) +(defun series (V864 V865 V866 V867) (maths.series-h (+ V864 1) V866 V865 (V865 V864) V867)) -(defun maths.series-h (V599 V600 V601 V602 V603) (let W604 ((V603 (V601 V599)) V602) (if (<= (abs (- V602 W604)) V600) W604 (maths.series-h (+ V599 1) V600 V601 W604 V603)))) +(defun maths.series-h (V879 V880 V881 V882 V883) (let W884 ((V883 (V881 V879)) V882) (if (<= (abs (- V882 W884)) V880) W884 (maths.series-h (+ V879 1) V880 V881 W884 V883)))) -(defun product (V612 V613 V614) (series V612 V613 V614 (lambda Z615 (lambda Z616 (* Z615 Z616))))) +(defun product (V898 V899 V900) (series V898 V899 V900 (lambda Z901 (lambda Z902 (* Z901 Z902))))) -(defun summation (V622 V623 V624) (series V622 V623 V624 (lambda Z625 (lambda Z626 (+ Z625 Z626))))) +(defun summation (V914 V915 V916) (series V914 V915 V916 (lambda Z917 (lambda Z918 (+ Z917 Z918))))) -(defun odd? (V630) (and (integer? V630) (not (integer? (/ V630 2))))) +(defun odd? (V928) (and (integer? V928) (not (integer? (/ V928 2))))) -(defun even? (V632) (and (integer? V632) (integer? (/ V632 2)))) +(defun even? (V935) (and (integer? V935) (integer? (/ V935 2)))) -(defun maths.compute-sine (V634 V635) (let W636 (+ (* 2 V635) 1) (let W637 (* (power -1 V635) (power V634 W636)) (let W638 (factorial W636) (/ W637 W638))))) +(defun maths.compute-sine (V942 V943) (let W944 (+ (* 2 V943) 1) (let W945 (* (power -1 V943) (power V942 W944)) (let W946 (factorial W944) (/ W945 W946))))) -(defun maths.compute-cos (V642 V643) (let W644 (* 2 V643) (let W645 (* (power -1 V643) (power V642 W644)) (let W646 (factorial W644) (/ W645 W646))))) +(defun maths.compute-cos (V955 V956) (let W957 (* 2 V956) (let W958 (* (power -1 V956) (power V955 W957)) (let W959 (factorial W957) (/ W958 W959))))) -(defun cos (V651 V652) (let W653 (radians V651) (summation 0 (lambda Z654 (maths.compute-cos W653 Z654)) V652))) +(defun cos (V969 V970) (let W971 (radians V969) (summation 0 (lambda Z972 (maths.compute-cos W971 Z972)) V970))) -(defun sin (V658 V659) (let W660 (radians V658) (summation 0 (lambda Z661 (maths.compute-sine W660 Z661)) V659))) +(defun sin (V981 V982) (let W983 (radians V981) (summation 0 (lambda Z984 (maths.compute-sine W983 Z984)) V982))) -(defun tan (V664 V665) (/ (sin V664 V665) (cos V664 V665))) +(defun tan (V992 V993) (/ (sin V992 V993) (cos V992 V993))) -(defun radians (V669) (* (/ V669 180) (pi))) +(defun radians (V1002) (* (/ V1002 180) (pi))) (defun g () 1.6180339887498) @@ -189,468 +189,468 @@ (defun tan330 () -0.5773502691905) -(defun coth (V672 V673) (let W674 (e) (let W675 (expt W674 (~ (* 2 V672)) V673) (/ (+ 1 W675) (- 1 W675))))) +(defun coth (V1150 V1151) (let W1152 (e) (let W1153 (expt W1152 (~ (* 2 V1150)) V1151) (/ (+ 1 W1153) (- 1 W1153))))) -(defun sinh (V679 V680) (let W681 (e) (let W682 (expt W681 V679 V680) (let W683 (expt W681 (~ V679) V680) (let W684 (- W682 W683) (/ W684 2)))))) +(defun sinh (V1162 V1163) (let W1164 (e) (let W1165 (expt W1164 V1162 V1163) (let W1166 (expt W1164 (~ V1162) V1163) (let W1167 (- W1165 W1166) (/ W1167 2)))))) -(defun cosh (V687 V688) (let W689 (e) (let W690 (expt W689 V687 V688) (let W691 (expt W689 (~ V687) V688) (let W692 (+ W690 W691) (/ W692 2)))))) +(defun cosh (V1175 V1176) (let W1177 (e) (let W1178 (expt W1177 V1175 V1176) (let W1179 (expt W1177 (~ V1175) V1176) (let W1180 (+ W1178 W1179) (/ W1180 2)))))) -(defun tanh (V695 V696) (/ (sinh V695 V696) (cosh V695 V696))) +(defun tanh (V1188 V1189) (/ (sinh V1188 V1189) (cosh V1188 V1189))) -(defun sech (V700 V701) (/ 1 (cosh V700 V701))) +(defun sech (V1198 V1199) (/ 1 (cosh V1198 V1199))) -(defun csch (V704 V705) (/ 1 (sinh V704 V705))) +(defun csch (V1207 V1208) (/ 1 (sinh V1207 V1208))) -(defun power (V710 V711) (cond ((= 0 V711) 1) (true (* V710 (power V710 (- V711 1)))))) +(defun power (V1218 V1219) (cond ((= 0 V1219) 1) (true (* V1218 (power V1218 (- V1219 1)))))) -(defun factorial (V714) (cond ((= 0 V714) 1) (true (* V714 (factorial (- V714 1)))))) +(defun factorial (V1227) (cond ((= 0 V1227) 1) (true (* V1227 (factorial (- V1227 1)))))) -(defun prime? (V716) (cond ((= 2 V716) true) ((even? V716) false) (true (maths.prime-h V716 (isqrt V716) 3)))) +(defun prime? (V1234) (cond ((= 2 V1234) true) ((even? V1234) false) (true (maths.prime-h V1234 (isqrt V1234) 3)))) -(defun maths.prime-h (V719 V720 V721) (cond ((> V721 V720) true) ((integer? (/ V719 V721)) false) (true (maths.prime-h V719 V720 (+ V721 2))))) +(defun maths.prime-h (V1242 V1243 V1244) (cond ((> V1244 V1243) true) ((integer? (/ V1242 V1244)) false) (true (maths.prime-h V1242 V1243 (+ V1244 2))))) -(defun maths.sign (V727) (cond ((= 0 V727) 0) ((positive? V727) 1) (true -1))) +(defun maths.sign (V1255) (cond ((= 0 V1255) 0) ((positive? V1255) 1) (true -1))) -(defun log (V729 V730 V731) (/ (log10 V729 V731) (log10 V730 V731))) +(defun log (V1262 V1263 V1264) (/ (log10 V1262 V1264) (log10 V1263 V1264))) -(defun loge (V736 V737) (log V736 (e) V737)) +(defun loge (V1274 V1275) (log V1274 (e) V1275)) -(defun log2 (V740 V741) (log V740 2 V741)) +(defun log2 (V1283 V1284) (log V1283 2 V1284)) -(defun log10 (V744 V745) (if (>= V744 1) (maths.log10+ V744 V745) (~ (maths.log10+ (/ 1 V744) V745)))) +(defun log10 (V1292 V1293) (if (>= V1292 1) (maths.log10+ V1292 V1293) (~ (maths.log10+ (/ 1 V1292) V1293)))) -(defun maths.log10+ (V748 V749) (cond ((<= (abs V748) V749) 0) ((>= V748 10) (+ 1 (maths.log10+ (/ V748 10) V749))) (true (* 0.1 (maths.log10+ (power V748 10) (* 10 V749)))))) +(defun maths.log10+ (V1301 V1302) (cond ((<= (abs V1301) V1302) 0) ((>= V1301 10) (+ 1 (maths.log10+ (/ V1301 10) V1302))) (true (* 0.1 (maths.log10+ (power V1301 10) (* 10 V1302)))))) -(defun maths.upto (V756 V757 V758 V759 V760 V761) (cond ((V757 V756) V760) (true ((V759 (V761 V756)) (maths.upto (V758 V756) V757 V758 V759 V760 V761))))) +(defun maths.upto (V1314 V1315 V1316 V1317 V1318 V1319) (cond ((V1315 V1314) V1318) (true ((V1317 (V1319 V1314)) (maths.upto (V1316 V1314) V1315 V1316 V1317 V1318 V1319))))) -(defun r# (V775 V776) (cond ((and (integer? V775) (integer? V776)) (let W777 (absvector 3) (let W778 (address-> W777 0 rational.print-rational) (let W779 (address-> W777 1 V775) (let W780 (address-> W777 2 V776) W777))))) (true (simple-error (cn "numerator " (shen.app V775 (cn " and divisor " (shen.app V776 " must be integers +(defun r# (V1348 V1349) (cond ((and (integer? V1348) (integer? V1349)) (let W1350 (absvector 3) (let W1351 (address-> W1350 0 rational.print-rational) (let W1352 (address-> W1350 1 V1348) (let W1353 (address-> W1350 2 V1349) W1350))))) (true (simple-error (cn "numerator " (shen.app V1348 (cn " and divisor " (shen.app V1349 " must be integers " shen.s)) shen.s)))))) -(defun rational.print-rational (V786) (shen.app (<-address V786 1) (cn "/" (shen.app (<-address V786 2) "" shen.s)) shen.s)) +(defun rational.print-rational (V1359) (shen.app (<-address V1359 1) (cn "/" (shen.app (<-address V1359 2) "" shen.s)) shen.s)) -(defun rational? (V789) (trap-error (and (absvector? V789) (and (= (<-address V789 0) rational.print-rational) (and (integer? (<-address V789 1)) (integer? (<-address V789 2))))) (lambda Z790 false))) +(defun rational? (V1362) (trap-error (and (absvector? V1362) (and (= (<-address V1362 0) rational.print-rational) (and (integer? (<-address V1362 1)) (integer? (<-address V1362 2))))) (lambda Z1363 false))) -(defun numerator (V792) (<-address V792 1)) +(defun numerator (V1365) (<-address V1365 1)) -(defun denominator (V794) (<-address V794 2)) +(defun denominator (V1367) (<-address V1367 2)) -(defun r-op1 (V836 V837) (n->r (V836 (r->n V837)))) +(defun r-op1 (V1429 V1430) (n->r (V1429 (r->n V1430)))) -(defun r-op2 (V840 V841 V842) (n->r ((V840 (r->n V841)) (r->n V842)))) +(defun r-op2 (V1439 V1440 V1441) (n->r ((V1439 (r->n V1440)) (r->n V1441)))) -(defun r->n (V847) (/ (numerator V847) (denominator V847))) +(defun r->n (V1452) (/ (numerator V1452) (denominator V1452))) -(defun r->pair (V850) (@p (numerator V850) (denominator V850))) +(defun r->pair (V1460) (@p (numerator V1460) (denominator V1460))) -(defun n->r (V853) (let W854 (maths.n->r V853 1) (r# (fst W854) (snd W854)))) +(defun n->r (V1468) (let W1469 (maths.n->r V1468 1) (r# (fst W1469) (snd W1469)))) -(defun r-reduce (V857) (rational.r-reduce-help (numerator V857) (denominator V857))) +(defun r-reduce (V1477) (rational.r-reduce-help (numerator V1477) (denominator V1477))) -(defun rational.r-reduce-help (V860 V861) (let W862 (lcd V860 V861) (if (= W862 1) (r# V860 V861) (rational.r-reduce-help (/ V860 W862) (/ V861 W862))))) +(defun rational.r-reduce-help (V1485 V1486) (let W1487 (lcd V1485 V1486) (if (= W1487 1) (r# V1485 V1486) (rational.r-reduce-help (/ V1485 W1487) (/ V1486 W1487))))) -(defun r= (V866 V867) (let W868 (numerator V866) (let W869 (denominator V866) (let W870 (numerator V867) (let W871 (denominator V867) (= (* W868 W871) (* W869 W870))))))) +(defun r= (V1496 V1497) (let W1498 (numerator V1496) (let W1499 (denominator V1496) (let W1500 (numerator V1497) (let W1501 (denominator V1497) (= (* W1498 W1501) (* W1499 W1500))))))) -(defun r< (V875 V876) (let W877 (numerator V875) (let W878 (denominator V875) (let W879 (numerator V876) (let W880 (denominator V876) (< (* W877 W880) (* W878 W879))))))) +(defun r< (V1510 V1511) (let W1512 (numerator V1510) (let W1513 (denominator V1510) (let W1514 (numerator V1511) (let W1515 (denominator V1511) (< (* W1512 W1515) (* W1513 W1514))))))) -(defun r> (V884 V885) (not (or (r= V884 V885) (r< V884 V885)))) +(defun r> (V1524 V1525) (not (or (r= V1524 V1525) (r< V1524 V1525)))) -(defun r>= (V888 V889) (or (r= V888 V889) (r> V888 V889))) +(defun r>= (V1533 V1534) (or (r= V1533 V1534) (r> V1533 V1534))) -(defun r<= (V892 V893) (or (r= V892 V893) (r< V892 V893))) +(defun r<= (V1542 V1543) (or (r= V1542 V1543) (r< V1542 V1543))) -(defun r+ (V896 V897) (let W898 (numerator V896) (let W899 (denominator V896) (let W900 (numerator V897) (let W901 (denominator V897) (r# (+ (* W898 W901) (* W899 W900)) (* W899 W901))))))) +(defun r+ (V1551 V1552) (let W1553 (numerator V1551) (let W1554 (denominator V1551) (let W1555 (numerator V1552) (let W1556 (denominator V1552) (r# (+ (* W1553 W1556) (* W1554 W1555)) (* W1554 W1556))))))) -(defun r- (V906 V907) (let W908 (numerator V906) (let W909 (denominator V906) (let W910 (numerator V907) (let W911 (denominator V907) (r# (- (* W908 W911) (* W909 W910)) (* W909 W911))))))) +(defun r- (V1566 V1567) (let W1568 (numerator V1566) (let W1569 (denominator V1566) (let W1570 (numerator V1567) (let W1571 (denominator V1567) (r# (- (* W1568 W1571) (* W1569 W1570)) (* W1569 W1571))))))) -(defun r* (V916 V917) (let W918 (numerator V916) (let W919 (denominator V916) (let W920 (numerator V917) (let W921 (denominator V917) (r# (* W918 W920) (* W919 W921))))))) +(defun r* (V1581 V1582) (let W1583 (numerator V1581) (let W1584 (denominator V1581) (let W1585 (numerator V1582) (let W1586 (denominator V1582) (r# (* W1583 W1585) (* W1584 W1586))))))) -(defun +-inverse (V925) (let W926 (numerator V925) (let W927 (denominator V925) (r# (~ W926) W927)))) +(defun +-inverse (V1595) (let W1596 (numerator V1595) (let W1597 (denominator V1595) (r# (~ W1596) W1597)))) -(defun *-inverse (V929) (let W930 (numerator V929) (let W931 (denominator V929) (r# W931 W930)))) +(defun *-inverse (V1604) (let W1605 (numerator V1604) (let W1606 (denominator V1604) (r# W1606 W1605)))) -(defun r/ (V933 V934) (r* V933 (*-inverse V934))) +(defun r/ (V1613 V1614) (r* V1613 (*-inverse V1614))) -(defun r-expt (V939 V940) (cond ((natural? V940) (let W941 (numerator V939) (let W942 (denominator V939) (r# (power W941 V940) (power W942 V940))))) ((and (integer? V940) (negative? V940)) (let W943 (numerator V939) (let W944 (denominator V939) (r# (power W944 (~ V940)) (power W943 (~ V940)))))) (true (simple-error (cn "cannot exponentiate a rational by a non-integer " (shen.app V940 " +(defun r-expt (V1624 V1625) (cond ((natural? V1625) (let W1626 (numerator V1624) (let W1627 (denominator V1624) (r# (power W1626 V1625) (power W1627 V1625))))) ((and (integer? V1625) (negative? V1625)) (let W1628 (numerator V1624) (let W1629 (denominator V1624) (r# (power W1629 (~ V1625)) (power W1628 (~ V1625)))))) (true (simple-error (cn "cannot exponentiate a rational by a non-integer " (shen.app V1625 " " shen.a)))))) -(defun r-approx (V949 V950) (rational.approx-r-h (r->n V949) V950 0)) +(defun r-approx (V1639 V1640) (rational.approx-r-h (r->n V1639) V1640 0)) -(defun rational.approx-r-h (V953 V954 V955) (cond ((> (/ V955 V954) V953) (r# V955 V954)) (true (rational.approx-r-h V953 V954 (+ V955 1))))) +(defun rational.approx-r-h (V1648 V1649 V1650) (cond ((> (/ V1650 V1649) V1648) (r# V1650 V1649)) (true (rational.approx-r-h V1648 V1649 (+ V1650 1))))) -(defun c# (V965 V966) (cond ((and (number? V965) (number? V966)) (let W967 (absvector 3) (let W968 (address-> W967 0 complex.print-complex) (let W969 (address-> W967 1 V965) (let W970 (address-> W967 2 V966) W967))))) (true (simple-error (cn "real " (shen.app V965 (cn " and imaginary " (shen.app V966 " must be numbers +(defun c# (V1665 V1666) (cond ((and (number? V1665) (number? V1666)) (let W1667 (absvector 3) (let W1668 (address-> W1667 0 complex.print-complex) (let W1669 (address-> W1667 1 V1665) (let W1670 (address-> W1667 2 V1666) W1667))))) (true (simple-error (cn "real " (shen.app V1665 (cn " and imaginary " (shen.app V1666 " must be numbers " shen.a)) shen.a)))))) -(defun complex.print-complex (V976) (shen.insert (<-address V976 2) (shen.insert (<-address V976 1) (shen.proc-nl (cn "(c" "# ~A ~A)"))))) +(defun complex.print-complex (V1676) (shen.insert (<-address V1676 2) (shen.insert (<-address V1676 1) (shen.proc-nl (cn "(c" "# ~A ~A)"))))) -(defun complex? (V980) (trap-error (and (absvector? V980) (and (= (<-address V980 0) complex.print-complex) (and (number? (<-address V980 1)) (number? (<-address V980 2))))) (lambda Z981 false))) +(defun complex? (V1680) (trap-error (and (absvector? V1680) (and (= (<-address V1680 0) complex.print-complex) (and (number? (<-address V1680 1)) (number? (<-address V1680 2))))) (lambda Z1681 false))) -(defun real (V983) (<-address V983 1)) +(defun real (V1683) (<-address V1683 1)) -(defun imaginary (V985) (<-address V985 2)) +(defun imaginary (V1685) (<-address V1685 2)) -(defun c+ (V997 V998) (let W999 (real V997) (let W1000 (imaginary V997) (let W1001 (real V998) (let W1002 (imaginary V998) (c# (+ W999 W1001) (+ W1000 W1002))))))) +(defun c+ (V1717 V1718) (let W1719 (real V1717) (let W1720 (imaginary V1717) (let W1721 (real V1718) (let W1722 (imaginary V1718) (c# (+ W1719 W1721) (+ W1720 W1722))))))) -(defun c- (V1006 V1007) (let W1008 (real V1006) (let W1009 (imaginary V1006) (let W1010 (real V1007) (let W1011 (imaginary V1007) (c# (- W1008 W1010) (- W1009 W1011))))))) +(defun c- (V1731 V1732) (let W1733 (real V1731) (let W1734 (imaginary V1731) (let W1735 (real V1732) (let W1736 (imaginary V1732) (c# (- W1733 W1735) (- W1734 W1736))))))) -(defun c* (V1015 V1016) (let W1017 (real V1015) (let W1018 (imaginary V1015) (let W1019 (real V1016) (let W1020 (imaginary V1016) (c# (- (* W1017 W1019) (* W1018 W1020)) (+ (* W1018 W1019) (* W1017 W1020)))))))) +(defun c* (V1745 V1746) (let W1747 (real V1745) (let W1748 (imaginary V1745) (let W1749 (real V1746) (let W1750 (imaginary V1746) (c# (- (* W1747 W1749) (* W1748 W1750)) (+ (* W1748 W1749) (* W1747 W1750)))))))) -(defun c/ (V1026 V1027) (let W1028 (real V1026) (let W1029 (imaginary V1026) (let W1030 (real V1027) (let W1031 (imaginary V1027) (c# (/ (+ (* W1028 W1030) (* W1029 W1031)) (+ (* W1030 W1030) (* W1031 W1031))) (/ (- (* W1029 W1030) (* W1028 W1031)) (+ (* W1030 W1030) (* W1031 W1031))))))))) +(defun c/ (V1761 V1762) (let W1763 (real V1761) (let W1764 (imaginary V1761) (let W1765 (real V1762) (let W1766 (imaginary V1762) (c# (/ (+ (* W1763 W1765) (* W1764 W1766)) (+ (* W1765 W1765) (* W1766 W1766))) (/ (- (* W1764 W1765) (* W1763 W1766)) (+ (* W1765 W1765) (* W1766 W1766))))))))) -(defun n# (V1052 V1053) (cond ((and (natural? V1052) (and (natural? V1053) (> V1053 0))) (let W1054 (absvector 4) (let W1055 (address-> W1054 0 numerals.print-numeral) (let W1056 (address-> W1054 1 (numerals.n->numeral V1052 V1053)) (let W1057 (address-> W1054 2 V1053) (let W1058 (address-> W1054 3 V1052) W1054)))))) (true (simple-error (cn "N = " (shen.app V1052 (cn ", Radix = " (shen.app V1053 "; N and Radix must be natural numbers where Radix > 0 +(defun n# (V1792 V1793) (cond ((and (natural? V1792) (and (natural? V1793) (> V1793 0))) (let W1794 (absvector 4) (let W1795 (address-> W1794 0 numerals.print-numeral) (let W1796 (address-> W1794 1 (numerals.n->numeral V1792 V1793)) (let W1797 (address-> W1794 2 V1793) (let W1798 (address-> W1794 3 V1792) W1794)))))) (true (simple-error (cn "N = " (shen.app V1792 (cn ", Radix = " (shen.app V1793 "; N and Radix must be natural numbers where Radix > 0 " shen.a)) shen.a)))))) -(defun radix (V1065) (<-address V1065 2)) +(defun radix (V1805) (<-address V1805 2)) -(defun numerals.numerals (V1067) (<-address V1067 1)) +(defun numerals.numerals (V1807) (<-address V1807 1)) -(defun n#->n (V1069) (<-address V1069 3)) +(defun n#->n (V1809) (<-address V1809 3)) -(defun n#->ns (V1071) (<-address V1071 1)) +(defun n#->ns (V1836) (<-address V1836 1)) -(defun numerals.print-numeral (V1073) (let W1074 (radix V1073) (let W1075 (numerals.numerals V1073) (@s (numerals.numeric->string W1075 W1074) (@s "#" (str W1074)))))) +(defun numerals.print-numeral (V1838) (let W1839 (radix V1838) (let W1840 (numerals.numerals V1838) (@s (numerals.numeric->string W1840 W1839) (@s "#" (str W1839)))))) -(defun numerals.numeric->string (V1080 V1081) (cond ((= () V1080) "") ((cons? V1080) (let W1082 (if (< (hd V1080) 10) (str (hd V1080)) (if (> V1081 36) (cn (str (hd V1080)) " ") (n->string (+ (hd V1080) 55)))) (cn W1082 (numerals.numeric->string (tl V1080) V1081)))) (true (shen.f-error numerals.numeric->string)))) +(defun numerals.numeric->string (V1845 V1846) (cond ((= () V1845) "") ((cons? V1845) (let W1847 (if (< (hd V1845) 10) (str (hd V1845)) (if (> V1846 36) (cn (str (hd V1845)) " ") (n->string (+ (hd V1845) 55)))) (cn W1847 (numerals.numeric->string (tl V1845) V1846)))) (true (shen.f-error numerals.numeric->string)))) -(defun numeral? (V1085) (and (absvector? V1085) (= numerals.print-numeral (<-address V1085 0)))) +(defun numeral? (V1850) (and (absvector? V1850) (= numerals.print-numeral (<-address V1850 0)))) -(defun numerals.numeral-macro (V1124) (cond ((and (cons? V1124) (and (= n-op2 (hd V1124)) (and (cons? (tl V1124)) (and (cons? (tl (tl V1124))) (and (cons? (tl (tl (tl V1124)))) (= () (tl (tl (tl (tl V1124)))))))))) (cons n-op2 (cons (hd (tl V1124)) (cons (hd (tl (tl V1124))) (cons (hd (tl (tl (tl V1124)))) (cons (cons radix (cons (hd (tl (tl V1124))) ())) ())))))) ((and (cons? V1124) (and (= n-op1 (hd V1124)) (and (cons? (tl V1124)) (and (cons? (tl (tl V1124))) (= () (tl (tl (tl V1124)))))))) (cons n-op1 (cons (hd (tl V1124)) (cons (hd (tl (tl V1124))) (cons (cons radix (tl (tl V1124))) ()))))) ((and (cons? V1124) (and (= n+ (hd V1124)) (and (cons? (tl V1124)) (and (cons? (tl (tl V1124))) (= () (tl (tl (tl V1124)))))))) (cons n+ (cons (hd (tl V1124)) (cons (hd (tl (tl V1124))) (cons (cons radix (cons (hd (tl V1124)) ())) ()))))) ((and (cons? V1124) (and (= n- (hd V1124)) (and (cons? (tl V1124)) (and (cons? (tl (tl V1124))) (= () (tl (tl (tl V1124)))))))) (cons n- (cons (hd (tl V1124)) (cons (hd (tl (tl V1124))) (cons (cons radix (cons (hd (tl V1124)) ())) ()))))) ((and (cons? V1124) (and (= n* (hd V1124)) (and (cons? (tl V1124)) (and (cons? (tl (tl V1124))) (= () (tl (tl (tl V1124)))))))) (cons n* (cons (hd (tl V1124)) (cons (hd (tl (tl V1124))) (cons (cons radix (cons (hd (tl V1124)) ())) ()))))) ((and (cons? V1124) (and (= n/ (hd V1124)) (and (cons? (tl V1124)) (and (cons? (tl (tl V1124))) (= () (tl (tl (tl V1124)))))))) (cons n/ (cons (hd (tl V1124)) (cons (hd (tl (tl V1124))) (cons (cons radix (cons (hd (tl V1124)) ())) ()))))) (true V1124))) +(defun numerals.numeral-macro (V1889) (cond ((and (cons? V1889) (and (= n-op2 (hd V1889)) (and (cons? (tl V1889)) (and (cons? (tl (tl V1889))) (and (cons? (tl (tl (tl V1889)))) (= () (tl (tl (tl (tl V1889)))))))))) (cons n-op2 (cons (hd (tl V1889)) (cons (hd (tl (tl V1889))) (cons (hd (tl (tl (tl V1889)))) (cons (cons radix (cons (hd (tl (tl V1889))) ())) ())))))) ((and (cons? V1889) (and (= n-op1 (hd V1889)) (and (cons? (tl V1889)) (and (cons? (tl (tl V1889))) (= () (tl (tl (tl V1889)))))))) (cons n-op1 (cons (hd (tl V1889)) (cons (hd (tl (tl V1889))) (cons (cons radix (tl (tl V1889))) ()))))) ((and (cons? V1889) (and (= n+ (hd V1889)) (and (cons? (tl V1889)) (and (cons? (tl (tl V1889))) (= () (tl (tl (tl V1889)))))))) (cons n+ (cons (hd (tl V1889)) (cons (hd (tl (tl V1889))) (cons (cons radix (cons (hd (tl V1889)) ())) ()))))) ((and (cons? V1889) (and (= n- (hd V1889)) (and (cons? (tl V1889)) (and (cons? (tl (tl V1889))) (= () (tl (tl (tl V1889)))))))) (cons n- (cons (hd (tl V1889)) (cons (hd (tl (tl V1889))) (cons (cons radix (cons (hd (tl V1889)) ())) ()))))) ((and (cons? V1889) (and (= n* (hd V1889)) (and (cons? (tl V1889)) (and (cons? (tl (tl V1889))) (= () (tl (tl (tl V1889)))))))) (cons n* (cons (hd (tl V1889)) (cons (hd (tl (tl V1889))) (cons (cons radix (cons (hd (tl V1889)) ())) ()))))) ((and (cons? V1889) (and (= n/ (hd V1889)) (and (cons? (tl V1889)) (and (cons? (tl (tl V1889))) (= () (tl (tl (tl V1889)))))))) (cons n/ (cons (hd (tl V1889)) (cons (hd (tl (tl V1889))) (cons (cons radix (cons (hd (tl V1889)) ())) ()))))) (true V1889))) -(defun n-op2 (V1139 V1140 V1141 V1142) (n# ((V1139 (n#->n V1140)) (n#->n V1141)) V1142)) +(defun n-op2 (V1904 V1905 V1906 V1907) (n# ((V1904 (n#->n V1905)) (n#->n V1906)) V1907)) -(defun n-op1 (V1148 V1149 V1150) (n# (V1148 (n#->n V1149)) V1150)) +(defun n-op1 (V1919 V1920 V1921) (n# (V1919 (n#->n V1920)) V1921)) -(defun n+ (V1156 V1157 V1158) (n-op2 (lambda Z1159 (lambda Z1160 (+ Z1159 Z1160))) V1156 V1157 V1158)) +(defun n+ (V1933 V1934 V1935) (n-op2 (lambda Z1936 (lambda Z1937 (+ Z1936 Z1937))) V1933 V1934 V1935)) -(defun n* (V1166 V1167 V1168) (n-op2 (lambda Z1169 (lambda Z1170 (* Z1169 Z1170))) V1166 V1167 V1168)) +(defun n* (V1948 V1949 V1950) (n-op2 (lambda Z1951 (lambda Z1952 (* Z1951 Z1952))) V1948 V1949 V1950)) -(defun n- (V1176 V1177 V1178) (n-op2 (lambda Z1179 (lambda Z1180 (- Z1179 Z1180))) V1176 V1177 V1178)) +(defun n- (V1963 V1964 V1965) (n-op2 (lambda Z1966 (lambda Z1967 (- Z1966 Z1967))) V1963 V1964 V1965)) -(defun n/ (V1186 V1187 V1188) (n-op2 (lambda Z1189 (lambda Z1190 (/ Z1189 Z1190))) V1186 V1187 V1188)) +(defun n/ (V1978 V1979 V1980) (n-op2 (lambda Z1981 (lambda Z1982 (/ Z1981 Z1982))) V1978 V1979 V1980)) -(defun binary (V1194) (n# V1194 2)) +(defun binary (V1991) (n# V1991 2)) -(defun hex (V1196) (n# V1196 16)) +(defun hex (V1998) (n# V1998 16)) -(defun octal (V1198) (n# V1198 8)) +(defun octal (V2005) (n# V2005 8)) -(defun duodecimal (V1200) (n# V1200 12)) +(defun duodecimal (V2012) (n# V2012 12)) -(defun numerals.n->numeral (V1202 V1203) (cond ((> V1203 V1202) (cons V1202 ())) (true (let W1204 (numerals.largest-expt V1202 V1203 0) (let W1205 (power V1203 W1204) (let W1206 (div V1202 W1205) (let W1207 (cons W1206 (numerals.n-zeros W1204)) (let W1208 (- V1202 (* W1206 W1205)) (numerals.add W1207 (numerals.n->numeral W1208 V1203) V1203))))))))) +(defun numerals.n->numeral (V2019 V2020) (cond ((> V2020 V2019) (cons V2019 ())) (true (let W2021 (numerals.largest-expt V2019 V2020 0) (let W2022 (power V2020 W2021) (let W2023 (div V2019 W2022) (let W2024 (cons W2023 (numerals.n-zeros W2021)) (let W2025 (- V2019 (* W2023 W2022)) (numerals.add W2024 (numerals.n->numeral W2025 V2020) V2020))))))))) -(defun numerals.largest-expt (V1211 V1212 V1213) (cond ((> (power V1212 V1213) V1211) (- V1213 1)) (true (numerals.largest-expt V1211 V1212 (+ V1213 1))))) +(defun numerals.largest-expt (V2033 V2034 V2035) (cond ((> (power V2034 V2035) V2033) (- V2035 1)) (true (numerals.largest-expt V2033 V2034 (+ V2035 1))))) -(defun numerals.n-zeros (V1217) (cond ((= 0 V1217) ()) (true (cons 0 (numerals.n-zeros (- V1217 1)))))) +(defun numerals.n-zeros (V2044) (cond ((= 0 V2044) ()) (true (cons 0 (numerals.n-zeros (- V2044 1)))))) -(defun numerals.add (V1219 V1220 V1221) (reverse (numerals.add-h (reverse V1219) (reverse V1220) V1221 0))) +(defun numerals.add (V2051 V2052 V2053) (reverse (numerals.add-h (reverse V2051) (reverse V2052) V2053 0))) -(defun numerals.add-h (V1230 V1231 V1232 V1233) (cond ((and (= () V1230) (and (= () V1231) (= 0 V1233))) ()) ((and (= () V1230) (= () V1231)) (cons V1233 ())) ((= () V1230) (numerals.add-h (cons 0 ()) V1231 V1232 V1233)) ((= () V1231) (numerals.add-h V1230 (cons 0 ()) V1232 V1233)) ((and (cons? V1230) (cons? V1231)) (let W1234 (+ (hd V1230) (+ (hd V1231) V1233)) (if (< W1234 V1232) (cons W1234 (numerals.add-h (tl V1230) (tl V1231) V1232 0)) (cons (- V1232 W1234) (numerals.add-h (tl V1230) (tl V1231) V1232 1))))) (true (shen.f-error numerals.add-h)))) +(defun numerals.add-h (V2069 V2070 V2071 V2072) (cond ((and (= () V2069) (and (= () V2070) (= 0 V2072))) ()) ((and (= () V2069) (= () V2070)) (cons V2072 ())) ((= () V2069) (numerals.add-h (cons 0 ()) V2070 V2071 V2072)) ((= () V2070) (numerals.add-h V2069 (cons 0 ()) V2071 V2072)) ((and (cons? V2069) (cons? V2070)) (let W2073 (+ (hd V2069) (+ (hd V2070) V2072)) (if (< W2073 V2071) (cons W2073 (numerals.add-h (tl V2069) (tl V2070) V2071 0)) (cons (- V2071 W2073) (numerals.add-h (tl V2069) (tl V2070) V2071 1))))) (true (shen.f-error numerals.add-h)))) -(defun assoc-if (V1349 V1350) (cond ((= () V1350) ()) ((and (cons? V1350) (and (cons? (hd V1350)) (V1349 (hd (hd V1350))))) (hd V1350)) ((cons? V1350) (assoc-if V1349 (tl V1350))) (true (shen.f-error assoc-if)))) +(defun assoc-if (V2195 V2196) (cond ((= () V2196) ()) ((and (cons? V2196) (and (cons? (hd V2196)) (V2195 (hd (hd V2196))))) (hd V2196)) ((cons? V2196) (assoc-if V2195 (tl V2196))) (true (shen.f-error assoc-if)))) -(defun assoc-if-not (V1358 V1359) (cond ((= () V1359) ()) ((and (cons? V1359) (and (cons? (hd V1359)) (not (V1358 (hd (hd V1359)))))) (hd V1359)) ((cons? V1359) (assoc-if V1358 (tl V1359))) (true (shen.f-error assoc-if-not)))) +(defun assoc-if-not (V2211 V2212) (cond ((= () V2212) ()) ((and (cons? V2212) (and (cons? (hd V2212)) (not (V2211 (hd (hd V2212)))))) (hd V2212)) ((cons? V2212) (assoc-if V2211 (tl V2212))) (true (shen.f-error assoc-if-not)))) -(defun drop (V1364 V1365) (cond ((= 0 V1364) V1365) ((cons? V1365) (drop (- V1364 1) (tl V1365))) (true (shen.f-error drop)))) +(defun drop (V2224 V2225) (cond ((= 0 V2224) V2225) ((cons? V2225) (drop (- V2224 1) (tl V2225))) (true (shen.f-error drop)))) -(defun drop-last (V1369 V1370) (reverse (drop V1369 (reverse V1370)))) +(defun drop-last (V2235 V2236) (reverse (drop V2235 (reverse V2236)))) -(defun index (V1373 V1374) (list.index-h V1373 V1374 1)) +(defun index (V2245 V2246) (list.index-h V2245 V2246 1)) -(defun list.index-h (V1386 V1387 V1388) (cond ((= () V1387) -1) ((and (cons? V1387) (= V1386 (hd V1387))) V1388) ((cons? V1387) (list.index-h V1386 (tl V1387) (+ V1388 1))) (true (shen.f-error list.index-h)))) +(defun list.index-h (V2264 V2265 V2266) (cond ((= () V2265) -1) ((and (cons? V2265) (= V2264 (hd V2265))) V2266) ((cons? V2265) (list.index-h V2264 (tl V2265) (+ V2266 1))) (true (shen.f-error list.index-h)))) -(defun index-last (V1393 V1394) (let W1395 (length V1394) (let W1396 (index V1393 (reverse V1394)) (if (= W1396 -1) W1396 (+ (- W1395 W1396) 1))))) +(defun index-last (V2278 V2279) (let W2280 (length V2279) (let W2281 (index V2278 (reverse V2279)) (if (= W2281 -1) W2281 (+ (- W2280 W2281) 1))))) -(defun insert (V1401 V1402 V1403) (cond ((= () V1403) (simple-error (cn "cannot insert " (shen.app V1402 " into list: index out of range -" shen.s)))) ((= 1 V1401) (cons V1402 V1403)) ((cons? V1403) (cons (hd V1403) (insert (- V1401 1) V1402 (tl V1403)))) (true (shen.f-error insert)))) +(defun insert (V2292 V2293 V2294) (cond ((= () V2294) (simple-error (cn "cannot insert " (shen.app V2293 " into list: index out of range +" shen.s)))) ((= 1 V2292) (cons V2293 V2294)) ((cons? V2294) (cons (hd V2294) (insert (- V2292 1) V2293 (tl V2294)))) (true (shen.f-error insert)))) -(defun remove-duplicates (V1409) (cond ((= () V1409) ()) ((and (cons? V1409) (element? (hd V1409) (tl V1409))) (remove-duplicates (tl V1409))) ((cons? V1409) (cons (hd V1409) (remove-duplicates (tl V1409)))) (true (shen.f-error remove-duplicates)))) +(defun remove-duplicates (V2307) (cond ((= () V2307) ()) ((and (cons? V2307) (element? (hd V2307) (tl V2307))) (remove-duplicates (tl V2307))) ((cons? V2307) (cons (hd V2307) (remove-duplicates (tl V2307)))) (true (shen.f-error remove-duplicates)))) -(defun trim-left-if (V1417 V1418) (cond ((= () V1418) ()) ((and (cons? V1418) (V1417 (hd V1418))) (trim-left-if V1417 (tl V1418))) (true V1418))) +(defun trim-left-if (V2321 V2322) (cond ((= () V2322) ()) ((and (cons? V2322) (V2321 (hd V2322))) (trim-left-if V2321 (tl V2322))) (true V2322))) -(defun trim-right-if (V1421 V1422) (reverse (trim-left-if V1421 (reverse V1422)))) +(defun trim-right-if (V2332 V2333) (reverse (trim-left-if V2332 (reverse V2333)))) -(defun trim-if (V1425 V1426) (trim-right-if V1425 (trim-left-if V1425 V1426))) +(defun trim-if (V2343 V2344) (trim-right-if V2343 (trim-left-if V2343 V2344))) -(defun trim-left (V1433 V1434) (cond ((= () V1434) ()) ((and (cons? V1434) (element? (hd V1434) V1433)) (trim-left V1433 (tl V1434))) (true V1434))) +(defun trim-left (V2358 V2359) (cond ((= () V2359) ()) ((and (cons? V2359) (element? (hd V2359) V2358)) (trim-left V2358 (tl V2359))) (true V2359))) -(defun trim-right (V1437 V1438) (reverse (trim-left V1437 (reverse V1438)))) +(defun trim-right (V2369 V2370) (reverse (trim-left V2369 (reverse V2370)))) -(defun trim (V1441 V1442) (trim-right V1441 (trim-left V1441 V1442))) +(defun trim (V2380 V2381) (trim-right V2380 (trim-left V2380 V2381))) -(defun prefix? (V1452 V1453) (cond ((= () V1452) true) ((and (cons? V1452) (and (cons? V1453) (= (hd V1452) (hd V1453)))) (prefix? (tl V1452) (tl V1453))) (true false))) +(defun prefix? (V2398 V2399) (cond ((= () V2398) true) ((and (cons? V2398) (and (cons? V2399) (= (hd V2398) (hd V2399)))) (prefix? (tl V2398) (tl V2399))) (true false))) -(defun infix? (V1462 V1463) (cond ((prefix? V1462 V1463) true) ((= () V1463) false) ((cons? V1463) (infix? V1462 (tl V1463))) (true (shen.f-error infix?)))) +(defun infix? (V2414 V2415) (cond ((prefix? V2414 V2415) true) ((= () V2415) false) ((cons? V2415) (infix? V2414 (tl V2415))) (true (shen.f-error infix?)))) -(defun suffix? (V1466 V1467) (prefix? (reverse V1466) (reverse V1467))) +(defun suffix? (V2424 V2425) (prefix? (reverse V2424) (reverse V2425))) -(defun subset? (V1477 V1478) (cond ((= () V1477) true) ((and (cons? V1477) (element? (hd V1477) V1478)) (subset? (tl V1477) V1478)) (true false))) +(defun subset? (V2441 V2442) (cond ((= () V2441) true) ((and (cons? V2441) (element? (hd V2441) V2442)) (subset? (tl V2441) V2442)) (true false))) -(defun set=? (V1481 V1482) (and (subset? V1481 V1482) (subset? V1482 V1481))) +(defun set=? (V2451 V2452) (and (subset? V2451 V2452) (subset? V2452 V2451))) -(defun set? (V1487) (cond ((= () V1487) true) ((and (cons? V1487) (element? (hd V1487) (tl V1487))) false) ((cons? V1487) (set? (tl V1487))) (true (shen.f-error set?)))) +(defun set? (V2463) (cond ((= () V2463) true) ((and (cons? V2463) (element? (hd V2463) (tl V2463))) false) ((cons? V2463) (set? (tl V2463))) (true (shen.f-error set?)))) -(defun n-times (V1490 V1491) (list.n-times-h V1491 V1490 ())) +(defun n-times (V2471 V2472) (list.n-times-h V2472 V2471 ())) -(defun list.n-times-h (V1494 V1495 V1496) (cond ((= 0 V1494) V1496) (true (list.n-times-h (- V1494 1) V1495 (cons V1495 V1496))))) +(defun list.n-times-h (V2481 V2482 V2483) (cond ((= 0 V2481) V2483) (true (list.n-times-h (- V2481 1) V2482 (cons V2482 V2483))))) -(defun subbag? (V1501 V1502) (every? (lambda Z1503 (= (count Z1503 V1501) (count Z1503 V1502))) V1501)) +(defun subbag? (V2495 V2496) (every? (lambda Z2497 (= (count Z2497 V2495) (count Z2497 V2496))) V2495)) -(defun bag=? (V1507 V1508) (and (subbag? V1507 V1508) (subbag? V1508 V1507))) +(defun bag=? (V2507 V2508) (and (subbag? V2507 V2508) (subbag? V2508 V2507))) -(defun mapc (V1513 V1514) (cond ((= () V1514) ()) ((cons? V1514) (mapc (do (V1513 (hd V1514)) V1513) (tl V1514))) (true (shen.f-error mapc)))) +(defun mapc (V2519 V2520) (cond ((= () V2520) ()) ((cons? V2520) (mapc (do (V2519 (hd V2520)) V2519) (tl V2520))) (true (shen.f-error mapc)))) -(defun permute (V1518) (cond ((= () V1518) (cons () ())) (true (mapcan (lambda Z1519 (map (lambda Z1520 (cons Z1519 Z1520)) (permute (remove Z1519 V1518)))) V1518)))) +(defun permute (V2532) (cond ((= () V2532) (cons () ())) (true (mapcan (lambda Z2533 (map (lambda Z2534 (cons Z2533 Z2534)) (permute (remove Z2533 V2532)))) V2532)))) -(defun count-if (V1522 V1523) (length (mapcan (lambda Z1524 (if (V1522 Z1524) (cons Z1524 ()) ())) V1523))) +(defun count-if (V2542 V2543) (length (mapcan (lambda Z2544 (if (V2542 Z2544) (cons Z2544 ()) ())) V2543))) -(defun count (V1528 V1529) (count-if (lambda Z1530 (= V1528 Z1530)) V1529)) +(defun count (V2554 V2555) (count-if (lambda Z2556 (= V2554 Z2556)) V2555)) -(defun some? (V1538 V1539) (cond ((= () V1539) false) ((and (cons? V1539) (V1538 (hd V1539))) true) ((cons? V1539) (some? V1538 (tl V1539))) (true (shen.f-error some?)))) +(defun some? (V2570 V2571) (cond ((= () V2571) false) ((and (cons? V2571) (V2570 (hd V2571))) true) ((cons? V2571) (some? V2570 (tl V2571))) (true (shen.f-error some?)))) -(defun every? (V1548 V1549) (cond ((= () V1549) true) ((and (cons? V1549) (V1548 (hd V1549))) (every? V1548 (tl V1549))) (true false))) +(defun every? (V2586 V2587) (cond ((= () V2587) true) ((and (cons? V2587) (V2586 (hd V2587))) (every? V2586 (tl V2587))) (true false))) -(defun sort (V1556 V1557) (cond ((= () V1557) ()) ((and (cons? V1557) (= () (tl V1557))) V1557) ((cons? V1557) (let W1558 (mapcan (lambda Z1559 (if ((V1556 Z1559) (hd V1557)) (cons Z1559 ()) ())) (tl V1557)) (let W1560 (mapcan (lambda Z1561 (if (not ((V1556 Z1561) (hd V1557))) (cons Z1561 ()) ())) (tl V1557)) (append (sort V1556 W1558) (append (cons (hd V1557) ()) (sort V1556 W1560)))))) (true (shen.f-error sort)))) +(defun sort (V2600 V2601) (cond ((= () V2601) ()) ((and (cons? V2601) (= () (tl V2601))) V2601) ((cons? V2601) (let W2602 (mapcan (lambda Z2603 (if ((V2600 Z2603) (hd V2601)) (cons Z2603 ()) ())) (tl V2601)) (let W2604 (mapcan (lambda Z2605 (if (not ((V2600 Z2605) (hd V2601))) (cons Z2605 ()) ())) (tl V2601)) (append (sort V2600 W2602) (append (cons (hd V2601) ()) (sort V2600 W2604)))))) (true (shen.f-error sort)))) -(defun find (V1573 V1574) (cond ((= () V1574) (simple-error "find has found no element -")) ((and (cons? V1574) (V1573 (hd V1574))) (hd V1574)) ((cons? V1574) (find V1573 (tl V1574))) (true (shen.f-error find)))) +(defun find (V2625 V2626) (cond ((= () V2626) (simple-error "find has found no element +")) ((and (cons? V2626) (V2625 (hd V2626))) (hd V2626)) ((cons? V2626) (find V2625 (tl V2626))) (true (shen.f-error find)))) -(defun foldr (V1579 V1580 V1581) (cond ((= () V1581) V1580) ((cons? V1581) (foldr V1579 ((V1579 (hd V1581)) V1580) (tl V1581))) (true (shen.f-error foldr)))) +(defun foldr (V2638 V2639 V2640) (cond ((= () V2640) V2639) ((cons? V2640) (foldr V2638 ((V2638 (hd V2640)) V2639) (tl V2640))) (true (shen.f-error foldr)))) -(defun foldl (V1588 V1589 V1590) (cond ((= () V1590) V1589) ((cons? V1590) (foldl V1588 ((V1588 V1589) (hd V1590)) (tl V1590))) (true (shen.f-error foldl)))) +(defun foldl (V2657 V2658 V2659) (cond ((= () V2659) V2658) ((cons? V2659) (foldl V2657 ((V2657 V2658) (hd V2659)) (tl V2659))) (true (shen.f-error foldl)))) -(defun mapf (V1600 V1601 V1602) (cond ((= () V1601) ()) ((cons? V1601) ((V1602 (V1600 (hd V1601))) (mapf V1600 (tl V1601) V1602))) (true (shen.f-error mapf)))) +(defun mapf (V2679 V2680 V2681) (cond ((= () V2680) ()) ((cons? V2680) ((V2681 (V2679 (hd V2680))) (mapf V2679 (tl V2680) V2681))) (true (shen.f-error mapf)))) -(defun filter (V1609 V1610) (cond ((= () V1610) ()) ((cons? V1610) (if (V1609 (hd V1610)) (cons (hd V1610) (filter V1609 (tl V1610))) (filter V1609 (tl V1610)))) (true (shen.f-error filter)))) +(defun filter (V2699 V2700) (cond ((= () V2700) ()) ((cons? V2700) (if (V2699 (hd V2700)) (cons (hd V2700) (filter V2699 (tl V2700))) (filter V2699 (tl V2700)))) (true (shen.f-error filter)))) -(defun remove-if (V1616 V1617) (cond ((= () V1617) ()) ((cons? V1617) (if (V1616 (hd V1617)) (remove-if V1616 (tl V1617)) (cons (hd V1617) (remove-if V1616 (tl V1617))))) (true (shen.f-error remove-if)))) +(defun remove-if (V2713 V2714) (cond ((= () V2714) ()) ((cons? V2714) (if (V2713 (hd V2714)) (remove-if V2713 (tl V2714)) (cons (hd V2714) (remove-if V2713 (tl V2714))))) (true (shen.f-error remove-if)))) -(defun list.reduce (V1621 V1622 V1623) (cond ((= () V1623) V1622) ((cons? V1623) (list.reduce V1621 ((V1621 V1622) (hd V1623)) (tl V1623))) (true (shen.f-error list.reduce)))) +(defun list.reduce (V2725 V2726 V2727) (cond ((= () V2727) V2726) ((cons? V2727) (list.reduce V2725 ((V2725 V2726) (hd V2727)) (tl V2727))) (true (shen.f-error list.reduce)))) -(defun take (V1633 V1634) (cond ((= 0 V1633) ()) ((= () V1634) ()) ((cons? V1634) (cons (hd V1634) (take (- V1633 1) (tl V1634)))) (true (shen.f-error take)))) +(defun take (V2747 V2748) (cond ((= 0 V2747) ()) ((= () V2748) ()) ((cons? V2748) (cons (hd V2748) (take (- V2747 1) (tl V2748)))) (true (shen.f-error take)))) -(defun take-last (V1639 V1640) (reverse (take V1639 (reverse V1640)))) +(defun take-last (V2759 V2760) (reverse (take V2759 (reverse V2760)))) -(defun cartprod (V1645 V1646) (cond ((= () V1645) ()) ((cons? V1645) (append (map (lambda Z1647 (cons (hd V1645) (cons Z1647 ()))) V1646) (cartprod (tl V1645) V1646))) (true (shen.f-error cartprod)))) +(defun cartprod (V2771 V2772) (cond ((= () V2771) ()) ((cons? V2771) (append (map (lambda Z2773 (cons (hd V2771) (cons Z2773 ()))) V2772) (cartprod (tl V2771) V2772))) (true (shen.f-error cartprod)))) -(defun powerset (V1651) (cond ((= () V1651) (cons () ())) ((cons? V1651) (let W1652 (powerset (tl V1651)) (append W1652 (map (lambda Z1653 (cons (hd V1651) Z1653)) W1652)))) (true (shen.f-error powerset)))) +(defun powerset (V2784) (cond ((= () V2784) (cons () ())) ((cons? V2784) (let W2785 (powerset (tl V2784)) (append W2785 (map (lambda Z2786 (cons (hd V2784) Z2786)) W2785)))) (true (shen.f-error powerset)))) -(defun partition (V1661 V1662) (cond ((= () V1662) ()) ((cons? V1662) (let W1663 (mapcan (lambda Z1664 (if ((V1661 (hd V1662)) Z1664) (cons Z1664 ()) ())) V1662) (let W1665 (difference V1662 W1663) (cons W1663 (partition V1661 W1665))))) (true (simple-error "partition equires a list")))) +(defun partition (V2800 V2801) (cond ((= () V2801) ()) ((cons? V2801) (let W2802 (mapcan (lambda Z2803 (if ((V2800 (hd V2801)) Z2803) (cons Z2803 ()) ())) V2801) (let W2804 (difference V2801 W2802) (cons W2802 (partition V2800 W2804))))) (true (simple-error "partition equires a list")))) -(defun transitive-closure (V1668) (let W1669 (list.transitive-pass V1668 V1668) (if (= W1669 V1668) W1669 (list.transitive-pass W1669 W1669)))) +(defun transitive-closure (V2815) (let W2816 (list.transitive-pass V2815 V2815) (if (= W2816 V2815) W2816 (list.transitive-pass W2816 W2816)))) -(defun list.transitive-pass (V1671 V1672) (cond ((= () V1671) V1672) ((and (cons? V1671) (tuple? (hd V1671))) (let W1673 (list.find-trans (fst (hd V1671)) (snd (hd V1671)) V1672) (union W1673 (list.transitive-pass (tl V1671) V1672)))) (true (shen.f-error list.transitive-pass)))) +(defun list.transitive-pass (V2826 V2827) (cond ((= () V2826) V2827) ((and (cons? V2826) (tuple? (hd V2826))) (let W2828 (list.find-trans (fst (hd V2826)) (snd (hd V2826)) V2827) (union W2828 (list.transitive-pass (tl V2826) V2827)))) (true (shen.f-error list.transitive-pass)))) -(defun list.find-trans (V1684 V1685 V1686) (cond ((= () V1686) ()) ((and (cons? V1686) (and (tuple? (hd V1686)) (= V1685 (fst (hd V1686))))) (cons (@p V1684 (snd (hd V1686))) (list.find-trans V1684 (fst (hd V1686)) (tl V1686)))) ((cons? V1686) (list.find-trans V1684 V1685 (tl V1686))) (true (shen.f-error list.find-trans)))) +(defun list.find-trans (V2849 V2850 V2851) (cond ((= () V2851) ()) ((and (cons? V2851) (and (tuple? (hd V2851)) (= V2850 (fst (hd V2851))))) (cons (@p V2849 (snd (hd V2851))) (list.find-trans V2849 (fst (hd V2851)) (tl V2851)))) ((cons? V2851) (list.find-trans V2849 V2850 (tl V2851))) (true (shen.f-error list.find-trans)))) -(defun x->ascii (V1693) (map (lambda Z1694 (string->n Z1694)) (explode V1693))) +(defun x->ascii (V2868) (map (lambda Z2869 (string->n Z2869)) (explode V2868))) -(defun splice (V1696 V1697 V1698) (cond ((= 1 V1696) (append V1697 V1698)) ((cons? V1698) (cons (hd V1698) (splice (- V1696 1) V1697 (tl V1698)))) (true (shen.f-error splice)))) +(defun splice (V2877 V2878 V2879) (cond ((= 1 V2877) (append V2878 V2879)) ((cons? V2879) (cons (hd V2879) (splice (- V2877 1) V2878 (tl V2879)))) (true (shen.f-error splice)))) -(defun string-macros (V1704) (cond ((and (cons? V1704) (and (= s-op1 (hd V1704)) (and (cons? (tl V1704)) (and (cons? (tl (tl V1704))) (= () (tl (tl (tl V1704)))))))) (cons s-op1 (cons (hd (tl V1704)) (cons (hd (tl (tl V1704))) (cons (cons /. (cons X (cons X ()))) ()))))) ((and (cons? V1704) (and (= s-op2 (hd V1704)) (and (cons? (tl V1704)) (and (cons? (tl (tl V1704))) (and (cons? (tl (tl (tl V1704)))) (= () (tl (tl (tl (tl V1704)))))))))) (cons s-op2 (cons (hd (tl V1704)) (cons (hd (tl (tl V1704))) (cons (hd (tl (tl (tl V1704)))) (cons (cons /. (cons X (cons X ()))) ())))))) (true V1704))) +(defun string-macros (V2892) (cond ((and (cons? V2892) (and (= s-op1 (hd V2892)) (and (cons? (tl V2892)) (and (cons? (tl (tl V2892))) (= () (tl (tl (tl V2892)))))))) (cons s-op1 (cons (hd (tl V2892)) (cons (hd (tl (tl V2892))) (cons (cons /. (cons X (cons X ()))) ()))))) ((and (cons? V2892) (and (= s-op2 (hd V2892)) (and (cons? (tl V2892)) (and (cons? (tl (tl V2892))) (and (cons? (tl (tl (tl V2892)))) (= () (tl (tl (tl (tl V2892)))))))))) (cons s-op2 (cons (hd (tl V2892)) (cons (hd (tl (tl V2892))) (cons (hd (tl (tl (tl V2892)))) (cons (cons /. (cons X (cons X ()))) ())))))) (true V2892))) -(defun string->list (V1800) (cond ((= "" V1800) ()) (true (string.s->l-h V1800 1 (pos V1800 0) ())))) +(defun string->list (V2988) (cond ((= "" V2988) ()) (true (string.s->l-h V2988 1 (pos V2988 0) ())))) -(defun string.s->l-h (V1802 V1803 V1804 V1805) (cond ((= "" V1804) (reverse V1805)) (true (string.s->l-h V1802 (+ V1803 1) (trap-error (pos V1802 V1803) (lambda Z1806 "")) (cons V1804 V1805))))) +(defun string.s->l-h (V2995 V2996 V2997 V2998) (cond ((= "" V2997) (reverse V2998)) (true (string.s->l-h V2995 (+ V2996 1) (trap-error (pos V2995 V2996) (lambda Z2999 "")) (cons V2997 V2998))))) -(defun list->string (V1813) (cond ((= () V1813) "") ((cons? V1813) (cn (hd V1813) (list->string (tl V1813)))) (true (shen.f-error list->string)))) +(defun list->string (V3012) (cond ((= () V3012) "") ((cons? V3012) (cn (hd V3012) (list->string (tl V3012)))) (true (shen.f-error list->string)))) -(defun s-op1 (V1816 V1817 V1818) (V1818 (V1816 (string->list V1817)))) +(defun s-op1 (V3020 V3021 V3022) (V3022 (V3020 (string->list V3021)))) -(defun s-op2 (V1822 V1823 V1824 V1825) (V1825 ((V1822 (string->list V1823)) (string->list V1824)))) +(defun s-op2 (V3035 V3036 V3037 V3038) (V3038 ((V3035 (string->list V3036)) (string->list V3037)))) -(defun string.count (V1836 V1837) (cond ((= "" V1837) 0) ((and (shen.+string? V1837) (= V1836 (hdstr V1837))) (+ 1 (string.count (hdstr V1837) (tlstr V1837)))) ((shen.+string? V1837) (string.count V1836 (tlstr V1837))) (true (shen.f-error string.count)))) +(defun string.count (V3059 V3060) (cond ((= "" V3060) 0) ((and (shen.+string? V3060) (= V3059 (hdstr V3060))) (+ 1 (string.count (hdstr V3060) (tlstr V3060)))) ((shen.+string? V3060) (string.count V3059 (tlstr V3060))) (true (shen.f-error string.count)))) -(defun string.reverse (V1843) (s-op1 (lambda Z1844 (reverse Z1844)) V1843 (lambda Z1845 (list->string Z1845)))) +(defun string.reverse (V3071) (s-op1 (lambda Z3072 (reverse Z3072)) V3071 (lambda Z3073 (list->string Z3073)))) -(defun string.element? (V1847 V1848) (s-op1 (lambda Z1849 (element? V1847 Z1849)) V1848 (lambda Z1850 Z1850))) +(defun string.element? (V3080 V3081) (s-op1 (lambda Z3082 (element? V3080 Z3082)) V3081 (lambda Z3083 Z3083))) -(defun string.prefix? (V1855 V1856) (s-op2 (lambda Z1857 (lambda Z1858 (prefix? Z1857 Z1858))) V1855 V1856 (lambda Z1859 Z1859))) +(defun string.prefix? (V3093 V3094) (s-op2 (lambda Z3095 (lambda Z3096 (prefix? Z3095 Z3096))) V3093 V3094 (lambda Z3097 Z3097))) -(defun string.infix? (V1864 V1865) (s-op2 (lambda Z1866 (lambda Z1867 (infix? Z1866 Z1867))) V1864 V1865 (lambda Z1868 Z1868))) +(defun string.infix? (V3107 V3108) (s-op2 (lambda Z3109 (lambda Z3110 (infix? Z3109 Z3110))) V3107 V3108 (lambda Z3111 Z3111))) -(defun string.suffix? (V1873 V1874) (s-op2 (lambda Z1875 (lambda Z1876 (suffix? Z1875 Z1876))) V1873 V1874 (lambda Z1877 Z1877))) +(defun string.suffix? (V3121 V3122) (s-op2 (lambda Z3123 (lambda Z3124 (suffix? Z3123 Z3124))) V3121 V3122 (lambda Z3125 Z3125))) -(defun string.subset? (V1882 V1883) (s-op2 (lambda Z1884 (lambda Z1885 (subset? Z1884 Z1885))) V1882 V1883 (lambda Z1886 Z1886))) +(defun string.subset? (V3135 V3136) (s-op2 (lambda Z3137 (lambda Z3138 (subset? Z3137 Z3138))) V3135 V3136 (lambda Z3139 Z3139))) -(defun string.set=? (V1891 V1892) (s-op2 (lambda Z1893 (lambda Z1894 (set=? Z1893 Z1894))) V1891 V1892 (lambda Z1895 Z1895))) +(defun string.set=? (V3149 V3150) (s-op2 (lambda Z3151 (lambda Z3152 (set=? Z3151 Z3152))) V3149 V3150 (lambda Z3153 Z3153))) -(defun string.set? (V1899) (s-op1 (lambda Z1900 (set? Z1900)) V1899 (lambda Z1901 Z1901))) +(defun string.set? (V3162) (s-op1 (lambda Z3163 (set? Z3163)) V3162 (lambda Z3164 Z3164))) -(defun file-extension (V1903 V1904) (cn (strip-extension V1903) V1904)) +(defun file-extension (V3171 V3172) (cn (strip-extension V3171) V3172)) -(defun strip-extension (V1909) (cond ((= "" V1909) "") ((and (shen.+string? V1909) (= "." (hdstr V1909))) "") ((shen.+string? V1909) (@s (hdstr V1909) (strip-extension (tlstr V1909)))) (true (shen.f-error strip-extension)))) +(defun strip-extension (V3182) (cond ((= "" V3182) "") ((and (shen.+string? V3182) (= "." (hdstr V3182))) "") ((shen.+string? V3182) (@s (hdstr V3182) (strip-extension (tlstr V3182)))) (true (shen.f-error strip-extension)))) -(defun string.length (V1913) (s-op1 (lambda Z1914 (length Z1914)) V1913 (lambda Z1915 Z1915))) +(defun string.length (V3191) (s-op1 (lambda Z3192 (length Z3192)) V3191 (lambda Z3193 Z3193))) -(defun string.trim (V1919 V1920) (s-op1 (lambda Z1921 (trim V1919 Z1921)) V1920 (lambda Z1922 (list->string Z1922)))) +(defun string.trim (V3202 V3203) (s-op1 (lambda Z3204 (trim V3202 Z3204)) V3203 (lambda Z3205 (list->string Z3205)))) -(defun string.trim-if (V1927 V1928) (s-op1 (lambda Z1929 (trim-if V1927 Z1929)) V1928 (lambda Z1930 (list->string Z1930)))) +(defun string.trim-if (V3216 V3217) (s-op1 (lambda Z3218 (trim-if V3216 Z3218)) V3217 (lambda Z3219 (list->string Z3219)))) -(defun string.trim-right-if (V1935 V1936) (s-op1 (lambda Z1937 (trim-right-if V1935 Z1937)) V1936 (lambda Z1938 (list->string Z1938)))) +(defun string.trim-right-if (V3230 V3231) (s-op1 (lambda Z3232 (trim-right-if V3230 Z3232)) V3231 (lambda Z3233 (list->string Z3233)))) -(defun string.trim-left-if (V1943 V1944) (s-op1 (lambda Z1945 (trim-left-if V1943 Z1945)) V1944 (lambda Z1946 (list->string Z1946)))) +(defun string.trim-left-if (V3244 V3245) (s-op1 (lambda Z3246 (trim-left-if V3244 Z3246)) V3245 (lambda Z3247 (list->string Z3247)))) -(defun string.trim-right (V1951 V1952) (s-op1 (lambda Z1953 (trim-right V1951 Z1953)) V1952 (lambda Z1954 (list->string Z1954)))) +(defun string.trim-right (V3258 V3259) (s-op1 (lambda Z3260 (trim-right V3258 Z3260)) V3259 (lambda Z3261 (list->string Z3261)))) -(defun string.trim-left (V1959 V1960) (s-op1 (lambda Z1961 (trim-left V1959 Z1961)) V1960 (lambda Z1962 (list->string Z1962)))) +(defun string.trim-left (V3272 V3273) (s-op1 (lambda Z3274 (trim-left V3272 Z3274)) V3273 (lambda Z3275 (list->string Z3275)))) -(defun string.some? (V1967 V1968) (cond ((= "" V1968) false) ((shen.+string? V1968) (or (V1967 (hdstr V1968)) (string.some? V1967 (tlstr V1968)))) (true (shen.f-error string.some?)))) +(defun string.some? (V3286 V3287) (cond ((= "" V3287) false) ((shen.+string? V3287) (or (V3286 (hdstr V3287)) (string.some? V3286 (tlstr V3287)))) (true (shen.f-error string.some?)))) -(defun string.every? (V1973 V1974) (cond ((= "" V1974) true) ((shen.+string? V1974) (and (V1973 (hdstr V1974)) (string.every? V1973 (tlstr V1974)))) (true (shen.f-error string.every?)))) +(defun string.every? (V3298 V3299) (cond ((= "" V3299) true) ((shen.+string? V3299) (and (V3298 (hdstr V3299)) (string.every? V3298 (tlstr V3299)))) (true (shen.f-error string.every?)))) -(defun string.difference (V1980 V1981) (s-op2 (lambda Z1982 (lambda Z1983 (difference Z1982 Z1983))) V1980 V1981 (lambda Z1984 (list->string Z1984)))) +(defun string.difference (V3311 V3312) (s-op2 (lambda Z3313 (lambda Z3314 (difference Z3313 Z3314))) V3311 V3312 (lambda Z3315 (list->string Z3315)))) -(defun string.intersection (V1990 V1991) (s-op2 (lambda Z1992 (lambda Z1993 (intersection Z1992 Z1993))) V1990 V1991 (lambda Z1994 (list->string Z1994)))) +(defun string.intersection (V3326 V3327) (s-op2 (lambda Z3328 (lambda Z3329 (intersection Z3328 Z3329))) V3326 V3327 (lambda Z3330 (list->string Z3330)))) -(defun string.nth (V1997 V1998) (pos V1998 (+ V1997 1))) +(defun string.nth (V3338 V3339) (pos V3339 (+ V3338 1))) -(defun whitespace? (V2003) (cond ((shen.+string? V2003) (let W2004 (string->n (hdstr V2003)) (element? W2004 (cons 9 (cons 10 (cons 13 (cons 32 ()))))))) (true (shen.f-error whitespace?)))) +(defun whitespace? (V3349) (cond ((shen.+string? V3349) (let W3350 (string->n (hdstr V3349)) (element? W3350 (cons 9 (cons 10 (cons 13 (cons 32 ()))))))) (true (shen.f-error whitespace?)))) -(defun uppercase? (V2008) (cond ((shen.+string? V2008) (let W2009 (string->n (hdstr V2008)) (and (> W2009 64) (< W2009 91)))) (true (shen.f-error uppercase?)))) +(defun uppercase? (V3359) (cond ((shen.+string? V3359) (let W3360 (string->n (hdstr V3359)) (and (> W3360 64) (< W3360 91)))) (true (shen.f-error uppercase?)))) -(defun lowercase? (V2013) (cond ((shen.+string? V2013) (let W2014 (string->n (hdstr V2013)) (and (> W2014 96) (< W2014 123)))) (true (shen.f-error lowercase?)))) +(defun lowercase? (V3369) (cond ((shen.+string? V3369) (let W3370 (string->n (hdstr V3369)) (and (> W3370 96) (< W3370 123)))) (true (shen.f-error lowercase?)))) -(defun digit? (V2018) (cond ((shen.+string? V2018) (let W2019 (string->n (hdstr V2018)) (and (> W2019 47) (< W2019 58)))) (true (shen.f-error digit?)))) +(defun digit? (V3379) (cond ((shen.+string? V3379) (let W3380 (string->n (hdstr V3379)) (and (> W3380 47) (< W3380 58)))) (true (shen.f-error digit?)))) -(defun alpha? (V2025) (cond ((shen.+string? V2025) (let W2026 (string->n (hdstr V2025)) (or (and (> W2026 64) (< W2026 91)) (and (> W2026 96) (< W2026 123))))) (true false))) +(defun alpha? (V3391) (cond ((shen.+string? V3391) (let W3392 (string->n (hdstr V3391)) (or (and (> W3392 64) (< W3392 91)) (and (> W3392 96) (< W3392 123))))) (true false))) -(defun alphanum? (V2032) (cond ((shen.+string? V2032) (let W2033 (string->n (hdstr V2032)) (or (and (> W2033 64) (< W2033 91)) (or (and (> W2033 96) (< W2033 123)) (and (> W2033 47) (< W2033 58)))))) (true false))) +(defun alphanum? (V3403) (cond ((shen.+string? V3403) (let W3404 (string->n (hdstr V3403)) (or (and (> W3404 64) (< W3404 91)) (or (and (> W3404 96) (< W3404 123)) (and (> W3404 47) (< W3404 58)))))) (true false))) -(defun tokenise (V2035 V2036) (string.tokenise-h V2035 V2036 "")) +(defun tokenise (V3411 V3412) (string.tokenise-h V3411 V3412 "")) -(defun string.tokenise-h (V2041 V2042 V2043) (cond ((= "" V2042) (cons V2043 ())) ((and (shen.+string? V2042) (V2041 (hdstr V2042))) (cons V2043 (string.tokenise-h V2041 (tlstr V2042) ""))) ((shen.+string? V2042) (string.tokenise-h V2041 (tlstr V2042) (@s V2043 (hdstr V2042)))) (true (shen.f-error string.tokenise-h)))) +(defun string.tokenise-h (V3423 V3424 V3425) (cond ((= "" V3424) (cons V3425 ())) ((and (shen.+string? V3424) (V3423 (hdstr V3424))) (cons V3425 (string.tokenise-h V3423 (tlstr V3424) ""))) ((shen.+string? V3424) (string.tokenise-h V3423 (tlstr V3424) (@s V3425 (hdstr V3424)))) (true (shen.f-error string.tokenise-h)))) -(defun uppercase (V2048) (cond ((shen.+string? V2048) (if (lowercase? (hdstr V2048)) (@s (n->string (- (string->n (hdstr V2048)) 32)) (tlstr V2048)) V2048)) (true (shen.f-error uppercase)))) +(defun uppercase (V3436) (cond ((shen.+string? V3436) (if (lowercase? (hdstr V3436)) (@s (n->string (- (string->n (hdstr V3436)) 32)) (tlstr V3436)) V3436)) (true (shen.f-error uppercase)))) -(defun lowercase (V2051) (cond ((shen.+string? V2051) (if (uppercase? (hdstr V2051)) (@s (n->string (+ (string->n (hdstr V2051)) 32)) (tlstr V2051)) V2051)) (true (shen.f-error lowercase)))) +(defun lowercase (V3444) (cond ((shen.+string? V3444) (if (uppercase? (hdstr V3444)) (@s (n->string (+ (string->n (hdstr V3444)) 32)) (tlstr V3444)) V3444)) (true (shen.f-error lowercase)))) -(defun string.map (V2056 V2057) (cond ((= "" V2057) "") ((shen.+string? V2057) (@s (V2056 (hdstr V2057)) (string.map V2056 (tlstr V2057)))) (true (shen.f-error string.map)))) +(defun string.map (V3454 V3455) (cond ((= "" V3455) "") ((shen.+string? V3455) (@s (V3454 (hdstr V3455)) (string.map V3454 (tlstr V3455)))) (true (shen.f-error string.map)))) -(defun spell-number (V2062) (cond ((= 0 V2062) "zero") (true (string.scale (map (lambda Z2063 (string.digits Z2063)) (string.triples (explode V2062))))))) +(defun spell-number (V3466) (cond ((= 0 V3466) "zero") (true (string.scale (map (lambda Z3467 (string.digits Z3467)) (string.triples (explode V3466))))))) -(defun string.digit (V2065) (cond ((= "0" V2065) "") ((= "1" V2065) "one") ((= "2" V2065) "two") ((= "3" V2065) "three") ((= "4" V2065) "four") ((= "5" V2065) "five") ((= "6" V2065) "six") ((= "7" V2065) "seven") ((= "8" V2065) "eight") ((= "9" V2065) "nine") (true (shen.f-error string.digit)))) +(defun string.digit (V3474) (cond ((= "0" V3474) "") ((= "1" V3474) "one") ((= "2" V3474) "two") ((= "3" V3474) "three") ((= "4" V3474) "four") ((= "5" V3474) "five") ((= "6" V3474) "six") ((= "7" V3474) "seven") ((= "8" V3474) "eight") ((= "9" V3474) "nine") (true (shen.f-error string.digit)))) -(defun string.triples (V2067) (string.triples-h (reverse V2067) ())) +(defun string.triples (V3481) (string.triples-h (reverse V3481) ())) -(defun string.triples-h (V2069 V2070) (cond ((and (cons? V2069) (and (cons? (tl V2069)) (cons? (tl (tl V2069))))) (string.triples-h (tl (tl (tl V2069))) (cons (reverse (cons (hd V2069) (cons (hd (tl V2069)) (cons (hd (tl (tl V2069))) ())))) V2070))) (true (cons (reverse V2069) V2070)))) +(defun string.triples-h (V3489 V3490) (cond ((and (cons? V3489) (and (cons? (tl V3489)) (cons? (tl (tl V3489))))) (string.triples-h (tl (tl (tl V3489))) (cons (reverse (cons (hd V3489) (cons (hd (tl V3489)) (cons (hd (tl (tl V3489))) ())))) V3490))) (true (cons (reverse V3489) V3490)))) -(defun string.digits (V2076) (cond ((and (cons? V2076) (and (= "0" (hd V2076)) (and (cons? (tl V2076)) (and (= "0" (hd (tl V2076))) (and (cons? (tl (tl V2076))) (and (= "0" (hd (tl (tl V2076)))) (= () (tl (tl (tl V2076)))))))))) "") ((and (cons? V2076) (and (cons? (tl V2076)) (and (= "0" (hd (tl V2076))) (and (cons? (tl (tl V2076))) (and (= "0" (hd (tl (tl V2076)))) (= () (tl (tl (tl V2076))))))))) (@s (string.digit (hd V2076)) (@s " " "hundred"))) ((and (cons? V2076) (and (= "0" (hd V2076)) (and (cons? (tl V2076)) (and (= "0" (hd (tl V2076))) (and (cons? (tl (tl V2076))) (= () (tl (tl (tl V2076))))))))) (@s "a" (@s "n" (@s "d" (@s " " (string.digit (hd (tl (tl V2076))))))))) ((and (cons? V2076) (and (= "0" (hd V2076)) (and (cons? (tl V2076)) (and (cons? (tl (tl V2076))) (= () (tl (tl (tl V2076)))))))) (@s "a" (@s "n" (@s "d" (@s " " (string.tens (hd (tl V2076)) (hd (tl (tl V2076))))))))) ((and (cons? V2076) (and (cons? (tl V2076)) (and (= "0" (hd (tl V2076))) (and (cons? (tl (tl V2076))) (= () (tl (tl (tl V2076)))))))) (@s (string.digit (hd V2076)) (@s " " (@s "h" (@s "u" (@s "n" (@s "d" (@s "r" (@s "e" (@s "d" (@s " " (@s "a" (@s "n" (@s "d" (@s " " (string.digit (hd (tl (tl V2076))))))))))))))))))) ((and (cons? V2076) (and (cons? (tl V2076)) (and (cons? (tl (tl V2076))) (= () (tl (tl (tl V2076))))))) (@s (string.digit (hd V2076)) (@s " " (@s "h" (@s "u" (@s "n" (@s "d" (@s "r" (@s "e" (@s "d" (@s " " (@s "a" (@s "n" (@s "d" (@s " " (string.tens (hd (tl V2076)) (hd (tl (tl V2076))))))))))))))))))) ((and (cons? V2076) (and (cons? (tl V2076)) (= () (tl (tl V2076))))) (string.tens (hd V2076) (hd (tl V2076)))) ((and (cons? V2076) (= () (tl V2076))) (string.digit (hd V2076))) ((= () V2076) "") (true (shen.f-error string.digits)))) +(defun string.digits (V3503) (cond ((and (cons? V3503) (and (= "0" (hd V3503)) (and (cons? (tl V3503)) (and (= "0" (hd (tl V3503))) (and (cons? (tl (tl V3503))) (and (= "0" (hd (tl (tl V3503)))) (= () (tl (tl (tl V3503)))))))))) "") ((and (cons? V3503) (and (cons? (tl V3503)) (and (= "0" (hd (tl V3503))) (and (cons? (tl (tl V3503))) (and (= "0" (hd (tl (tl V3503)))) (= () (tl (tl (tl V3503))))))))) (@s (string.digit (hd V3503)) (@s " " "hundred"))) ((and (cons? V3503) (and (= "0" (hd V3503)) (and (cons? (tl V3503)) (and (= "0" (hd (tl V3503))) (and (cons? (tl (tl V3503))) (= () (tl (tl (tl V3503))))))))) (@s "a" (@s "n" (@s "d" (@s " " (string.digit (hd (tl (tl V3503))))))))) ((and (cons? V3503) (and (= "0" (hd V3503)) (and (cons? (tl V3503)) (and (cons? (tl (tl V3503))) (= () (tl (tl (tl V3503)))))))) (@s "a" (@s "n" (@s "d" (@s " " (string.tens (hd (tl V3503)) (hd (tl (tl V3503))))))))) ((and (cons? V3503) (and (cons? (tl V3503)) (and (= "0" (hd (tl V3503))) (and (cons? (tl (tl V3503))) (= () (tl (tl (tl V3503)))))))) (@s (string.digit (hd V3503)) (@s " " (@s "h" (@s "u" (@s "n" (@s "d" (@s "r" (@s "e" (@s "d" (@s " " (@s "a" (@s "n" (@s "d" (@s " " (string.digit (hd (tl (tl V3503))))))))))))))))))) ((and (cons? V3503) (and (cons? (tl V3503)) (and (cons? (tl (tl V3503))) (= () (tl (tl (tl V3503))))))) (@s (string.digit (hd V3503)) (@s " " (@s "h" (@s "u" (@s "n" (@s "d" (@s "r" (@s "e" (@s "d" (@s " " (@s "a" (@s "n" (@s "d" (@s " " (string.tens (hd (tl V3503)) (hd (tl (tl V3503))))))))))))))))))) ((and (cons? V3503) (and (cons? (tl V3503)) (= () (tl (tl V3503))))) (string.tens (hd V3503) (hd (tl V3503)))) ((and (cons? V3503) (= () (tl V3503))) (string.digit (hd V3503))) ((= () V3503) "") (true (shen.f-error string.digits)))) -(defun string.tens (V2084 V2085) (cond ((= "1" V2084) (if (= V2085 "0") "ten" (if (= V2085 "1") "eleven" (if (= V2085 "2") "twelve" (if (= V2085 "3") "thirteen" (if (= V2085 "4") "fourteen" (if (= V2085 "5") "fifteen" (if (= V2085 "6") "sixteen" (if (= V2085 "7") "seventeen" (if (= V2085 "8") "eighteen" (if (= V2085 "9") "nineteen" (simple-error "error: cases exhausted")))))))))))) ((= "2" V2084) (@s "t" (@s "w" (@s "e" (@s "n" (@s "t" (@s "y" (@s " " (string.digit V2085))))))))) ((= "3" V2084) (@s "t" (@s "h" (@s "i" (@s "r" (@s "t" (@s "y" (@s " " (string.digit V2085))))))))) ((= "4" V2084) (@s "f" (@s "o" (@s "r" (@s "t" (@s "y" (@s " " (string.digit V2085)))))))) ((= "5" V2084) (@s "f" (@s "i" (@s "f" (@s "t" (@s "y" (@s " " (string.digit V2085)))))))) ((= "6" V2084) (@s "s" (@s "i" (@s "x" (@s "t" (@s "y" (@s " " (string.digit V2085)))))))) ((= "7" V2084) (@s "s" (@s "e" (@s "v" (@s "e" (@s "n" (@s "t" (@s "y" (@s " " (string.digit V2085)))))))))) ((= "8" V2084) (@s "e" (@s "i" (@s "g" (@s "h" (@s "t" (@s "y" (@s " " (string.digit V2085))))))))) ((= "9" V2084) (@s "n" (@s "i" (@s "n" (@s "e" (@s "t" (@s "y" (@s " " (string.digit V2085))))))))) (true (shen.f-error string.tens)))) +(defun string.tens (V3516 V3517) (cond ((= "1" V3516) (if (= V3517 "0") "ten" (if (= V3517 "1") "eleven" (if (= V3517 "2") "twelve" (if (= V3517 "3") "thirteen" (if (= V3517 "4") "fourteen" (if (= V3517 "5") "fifteen" (if (= V3517 "6") "sixteen" (if (= V3517 "7") "seventeen" (if (= V3517 "8") "eighteen" (if (= V3517 "9") "nineteen" (simple-error "error: cases exhausted")))))))))))) ((= "2" V3516) (@s "t" (@s "w" (@s "e" (@s "n" (@s "t" (@s "y" (@s " " (string.digit V3517))))))))) ((= "3" V3516) (@s "t" (@s "h" (@s "i" (@s "r" (@s "t" (@s "y" (@s " " (string.digit V3517))))))))) ((= "4" V3516) (@s "f" (@s "o" (@s "r" (@s "t" (@s "y" (@s " " (string.digit V3517)))))))) ((= "5" V3516) (@s "f" (@s "i" (@s "f" (@s "t" (@s "y" (@s " " (string.digit V3517)))))))) ((= "6" V3516) (@s "s" (@s "i" (@s "x" (@s "t" (@s "y" (@s " " (string.digit V3517)))))))) ((= "7" V3516) (@s "s" (@s "e" (@s "v" (@s "e" (@s "n" (@s "t" (@s "y" (@s " " (string.digit V3517)))))))))) ((= "8" V3516) (@s "e" (@s "i" (@s "g" (@s "h" (@s "t" (@s "y" (@s " " (string.digit V3517))))))))) ((= "9" V3516) (@s "n" (@s "i" (@s "n" (@s "e" (@s "t" (@s "y" (@s " " (string.digit V3517))))))))) (true (shen.f-error string.tens)))) -(defun string.scale (V2088) (cond ((and (cons? V2088) (= () (tl V2088))) (hd V2088)) ((and (cons? V2088) (= "" (hd V2088))) (string.scale (tl V2088))) ((cons? V2088) (@s (hd V2088) (@s (string.units (length V2088)) (string.scale (tl V2088))))) (true (shen.f-error string.scale)))) +(defun string.scale (V3525) (cond ((and (cons? V3525) (= () (tl V3525))) (hd V3525)) ((and (cons? V3525) (= "" (hd V3525))) (string.scale (tl V3525))) ((cons? V3525) (@s (hd V3525) (@s (string.units (length V3525)) (string.scale (tl V3525))))) (true (shen.f-error string.scale)))) -(defun string.units (V2094) (cond ((= 2 V2094) " thousand ") ((= 3 V2094) " million ") ((= 4 V2094) " billion ") ((= 5 V2094) " trillion ") (true (simple-error "this number has a magnitude beyond our text representation")))) +(defun string.units (V3536) (cond ((= 2 V3536) " thousand ") ((= 3 V3536) " million ") ((= 4 V3536) " billion ") ((= 5 V3536) " trillion ") (true (simple-error "this number has a magnitude beyond our text representation")))) -(defun string>? (V2100 V2101) (cond ((= "" V2100) false) ((= "" V2101) true) ((and (shen.+string? V2100) (shen.+string? V2101)) (let W2102 (string->n (hdstr V2100)) (let W2103 (string->n (hdstr V2101)) (if (> W2102 W2103) true (if (< W2102 W2103) false (string>? (tlstr V2100) (tlstr V2101))))))) (true (shen.f-error string>?)))) +(defun string>? (V3547 V3548) (cond ((= "" V3547) false) ((= "" V3548) true) ((and (shen.+string? V3547) (shen.+string? V3548)) (let W3549 (string->n (hdstr V3547)) (let W3550 (string->n (hdstr V3548)) (if (> W3549 W3550) true (if (< W3549 W3550) false (string>? (tlstr V3547) (tlstr V3548))))))) (true (shen.f-error string>?)))) -(defun stringn (hdstr V2111)) (let W2114 (string->n (hdstr V2112)) (if (< W2113 W2114) true (if (> W2113 W2114) false (stringn (hdstr V3563)) (let W3566 (string->n (hdstr V3564)) (if (< W3565 W3566) true (if (> W3565 W3566) false (string=? (V2118 V2119) (or (= V2118 V2119) (string>? V2118 V2119))) +(defun string>=? (V3575 V3576) (or (= V3575 V3576) (string>? V3575 V3576))) -(defun string<=? (V2122 V2123) (or (= V2122 V2123) (stringstrings W2137 ()) (let W2139 (compile (lambda Z2140 (string. Z2140)) W2138) (let W2141 (file-extension V2135 V2136) (let W2142 (write-to-file W2141 W2139) W2141)))))) +(defun render-file (V3612 V3613) (let W3614 (read-file-as-bytelist V3612) (let W3615 (string.bytes->strings W3614 ()) (let W3616 (compile (lambda Z3617 (string. Z3617)) W3615) (let W3618 (file-extension V3612 V3613) (let W3619 (write-to-file W3618 W3616) W3618)))))) -(defun string.bytes->strings (V2145 V2146) (cond ((= () V2145) (reverse V2146)) ((cons? V2145) (string.bytes->strings (tl V2145) (cons (n->string (hd V2145)) V2146))) (true (shen.f-error string.bytes->strings)))) +(defun string.bytes->strings (V3622 V3623) (cond ((= () V3622) (reverse V3623)) ((cons? V3622) (string.bytes->strings (tl V3622) (cons (n->string (hd V3622)) V3623))) (true (shen.f-error string.bytes->strings)))) -(defun render (V2151) (compile (lambda Z2152 (string. Z2152)) (string->list V2151))) +(defun render (V3628) (compile (lambda Z3629 (string. Z3629)) (string->list V3628))) -(defun string.rendered? (V2158) (cond ((= "" V2158) true) ((and (shen.+string? V2158) (= "{" (hdstr V2158))) false) ((shen.+string? V2158) (string.rendered? (tlstr V2158))) (true (shen.f-error string.rendered?)))) +(defun string.rendered? (V3635) (cond ((= "" V3635) true) ((and (shen.+string? V3635) (= "{" (hdstr V3635))) false) ((shen.+string? V3635) (string.rendered? (tlstr V3635))) (true (shen.f-error string.rendered?)))) -(defun string. (V2165) (let W2166 (if (shen.hds=? V2165 "{") (let W2167 (tail V2165) (let W2168 (string. W2167) (if (shen.parse-failure? W2168) (shen.parse-failure) (let W2169 (shen.<-out W2168) (let W2170 (shen.in-> W2168) (let W2171 (string. W2170) (if (shen.parse-failure? W2171) (shen.parse-failure) (let W2172 (shen.in-> W2171) (let W2173 (string. W2172) (if (shen.parse-failure? W2173) (shen.parse-failure) (let W2174 (shen.<-out W2173) (let W2175 (shen.in-> W2173) (if (shen.hds=? W2175 "}") (let W2176 (tail W2175) (let W2177 (string. W2176) (if (shen.parse-failure? W2177) (shen.parse-failure) (let W2178 (shen.<-out W2177) (let W2179 (shen.in-> W2177) (shen.comb W2179 (cn (string.recapply (fn (intern W2169)) W2174) W2178))))))) (shen.parse-failure)))))))))))))) (shen.parse-failure)) (if (shen.parse-failure? W2166) (let W2180 (if (shen.hds=? V2165 "{") (let W2181 (tail V2165) (let W2182 (string. W2181) (if (shen.parse-failure? W2182) (shen.parse-failure) (let W2183 (shen.<-out W2182) (let W2184 (shen.in-> W2182) (if (shen.hds=? W2184 "}") (let W2185 (tail W2184) (let W2186 (string. W2185) (if (shen.parse-failure? W2186) (shen.parse-failure) (let W2187 (shen.<-out W2186) (let W2188 (shen.in-> W2186) (shen.comb W2188 (cn ((intern W2183)) W2187))))))) (shen.parse-failure))))))) (shen.parse-failure)) (if (shen.parse-failure? W2180) (let W2189 (let W2190 (string. V2165) (if (shen.parse-failure? W2190) (shen.parse-failure) (let W2191 (shen.<-out W2190) (let W2192 (shen.in-> W2190) (let W2193 (string. W2192) (if (shen.parse-failure? W2193) (shen.parse-failure) (let W2194 (shen.<-out W2193) (let W2195 (shen.in-> W2193) (shen.comb W2195 (cn W2191 W2194)))))))))) (if (shen.parse-failure? W2189) (let W2196 (let W2197 ( V2165) (if (shen.parse-failure? W2197) (shen.parse-failure) (let W2198 (shen.in-> W2197) (shen.comb W2198 "")))) (if (shen.parse-failure? W2196) (shen.parse-failure) W2196)) W2189)) W2180)) W2166))) +(defun string. (V3642) (let W3643 (if (shen.hds=? V3642 "{") (let W3644 (tail V3642) (let W3645 (string. W3644) (if (shen.parse-failure? W3645) (shen.parse-failure) (let W3646 (shen.<-out W3645) (let W3647 (shen.in-> W3645) (let W3648 (string. W3647) (if (shen.parse-failure? W3648) (shen.parse-failure) (let W3649 (shen.in-> W3648) (let W3650 (string. W3649) (if (shen.parse-failure? W3650) (shen.parse-failure) (let W3651 (shen.<-out W3650) (let W3652 (shen.in-> W3650) (if (shen.hds=? W3652 "}") (let W3653 (tail W3652) (let W3654 (string. W3653) (if (shen.parse-failure? W3654) (shen.parse-failure) (let W3655 (shen.<-out W3654) (let W3656 (shen.in-> W3654) (shen.comb W3656 (cn (string.recapply (fn (intern W3646)) W3651) W3655))))))) (shen.parse-failure)))))))))))))) (shen.parse-failure)) (if (shen.parse-failure? W3643) (let W3657 (if (shen.hds=? V3642 "{") (let W3658 (tail V3642) (let W3659 (string. W3658) (if (shen.parse-failure? W3659) (shen.parse-failure) (let W3660 (shen.<-out W3659) (let W3661 (shen.in-> W3659) (if (shen.hds=? W3661 "}") (let W3662 (tail W3661) (let W3663 (string. W3662) (if (shen.parse-failure? W3663) (shen.parse-failure) (let W3664 (shen.<-out W3663) (let W3665 (shen.in-> W3663) (shen.comb W3665 (cn ((intern W3660)) W3664))))))) (shen.parse-failure))))))) (shen.parse-failure)) (if (shen.parse-failure? W3657) (let W3666 (let W3667 (string. V3642) (if (shen.parse-failure? W3667) (shen.parse-failure) (let W3668 (shen.<-out W3667) (let W3669 (shen.in-> W3667) (let W3670 (string. W3669) (if (shen.parse-failure? W3670) (shen.parse-failure) (let W3671 (shen.<-out W3670) (let W3672 (shen.in-> W3670) (shen.comb W3672 (cn W3668 W3671)))))))))) (if (shen.parse-failure? W3666) (let W3673 (let W3674 ( V3642) (if (shen.parse-failure? W3674) (shen.parse-failure) (let W3675 (shen.in-> W3674) (shen.comb W3675 "")))) (if (shen.parse-failure? W3673) (shen.parse-failure) W3673)) W3666)) W3657)) W3643))) -(defun string. (V2202) (let W2203 (if (cons? V2202) (let W2204 (head V2202) (let W2205 (tail V2202) (if (and (not (= W2204 "}")) (not (= W2204 "\"))) (shen.comb W2205 W2204) (shen.parse-failure)))) (shen.parse-failure)) (if (shen.parse-failure? W2203) (shen.parse-failure) W2203))) +(defun string. (V3679) (let W3680 (if (cons? V3679) (let W3681 (head V3679) (let W3682 (tail V3679) (if (and (not (= W3681 "}")) (not (= W3681 "\"))) (shen.comb W3682 W3681) (shen.parse-failure)))) (shen.parse-failure)) (if (shen.parse-failure? W3680) (shen.parse-failure) W3680))) -(defun string.recapply (V2207 V2208) (cond ((= () V2208) V2207) ((cons? V2208) (string.recapply (V2207 (hd V2208)) (tl V2208))) (true (shen.f-error string.recapply)))) +(defun string.recapply (V3684 V3685) (cond ((= () V3685) V3684) ((cons? V3685) (string.recapply (V3684 (hd V3685)) (tl V3685))) (true (shen.f-error string.recapply)))) -(defun string. (V2214) (let W2215 (let W2216 (string. V2214) (if (shen.parse-failure? W2216) (shen.parse-failure) (let W2217 (shen.<-out W2216) (let W2218 (shen.in-> W2216) (if (shen.hds=? W2218 "\") (let W2219 (tail W2218) (let W2220 (string. W2219) (if (shen.parse-failure? W2220) (shen.parse-failure) (let W2221 (shen.<-out W2220) (let W2222 (shen.in-> W2220) (shen.comb W2222 (cons W2217 W2221))))))) (shen.parse-failure)))))) (if (shen.parse-failure? W2215) (let W2223 (let W2224 (string. V2214) (if (shen.parse-failure? W2224) (shen.parse-failure) (let W2225 (shen.<-out W2224) (let W2226 (shen.in-> W2224) (shen.comb W2226 (cons W2225 ())))))) (if (shen.parse-failure? W2223) (shen.parse-failure) W2223)) W2215))) +(defun string. (V3691) (let W3692 (let W3693 (string. V3691) (if (shen.parse-failure? W3693) (shen.parse-failure) (let W3694 (shen.<-out W3693) (let W3695 (shen.in-> W3693) (if (shen.hds=? W3695 "\") (let W3696 (tail W3695) (let W3697 (string. W3696) (if (shen.parse-failure? W3697) (shen.parse-failure) (let W3698 (shen.<-out W3697) (let W3699 (shen.in-> W3697) (shen.comb W3699 (cons W3694 W3698))))))) (shen.parse-failure)))))) (if (shen.parse-failure? W3692) (let W3700 (let W3701 (string. V3691) (if (shen.parse-failure? W3701) (shen.parse-failure) (let W3702 (shen.<-out W3701) (let W3703 (shen.in-> W3701) (shen.comb W3703 (cons W3702 ())))))) (if (shen.parse-failure? W3700) (shen.parse-failure) W3700)) W3692))) -(defun string. (V2229) (let W2230 (let W2231 (string. V2229) (if (shen.parse-failure? W2231) (shen.parse-failure) (let W2232 (shen.<-out W2231) (let W2233 (shen.in-> W2231) (shen.comb W2233 W2232))))) (if (shen.parse-failure? W2230) (shen.parse-failure) W2230))) +(defun string. (V3706) (let W3707 (let W3708 (string. V3706) (if (shen.parse-failure? W3708) (shen.parse-failure) (let W3709 (shen.<-out W3708) (let W3710 (shen.in-> W3708) (shen.comb W3710 W3709))))) (if (shen.parse-failure? W3707) (shen.parse-failure) W3707))) -(defun string. (V2237) (let W2238 (if (cons? V2237) (let W2239 (head V2237) (let W2240 (tail V2237) (if (and (not (= W2239 "}")) (not (= W2239 "\"))) (shen.comb W2240 W2239) (shen.parse-failure)))) (shen.parse-failure)) (if (shen.parse-failure? W2238) (shen.parse-failure) W2238))) +(defun string. (V3714) (let W3715 (if (cons? V3714) (let W3716 (head V3714) (let W3717 (tail V3714) (if (and (not (= W3716 "}")) (not (= W3716 "\"))) (shen.comb W3717 W3716) (shen.parse-failure)))) (shen.parse-failure)) (if (shen.parse-failure? W3715) (shen.parse-failure) W3715))) -(defun string. (V2244) (let W2245 (if (cons? V2244) (let W2246 (head V2244) (let W2247 (tail V2244) (if (whitespace? W2246) (shen.comb W2247 string.skip) (shen.parse-failure)))) (shen.parse-failure)) (if (shen.parse-failure? W2245) (shen.parse-failure) W2245))) +(defun string. (V3721) (let W3722 (if (cons? V3721) (let W3723 (head V3721) (let W3724 (tail V3721) (if (whitespace? W3723) (shen.comb W3724 string.skip) (shen.parse-failure)))) (shen.parse-failure)) (if (shen.parse-failure? W3722) (shen.parse-failure) W3722))) -(defun string. (V2250) (let W2251 (let W2252 (string. V2250) (if (shen.parse-failure? W2252) (shen.parse-failure) (let W2253 (shen.<-out W2252) (let W2254 (shen.in-> W2252) (let W2255 (string. W2254) (if (shen.parse-failure? W2255) (shen.parse-failure) (let W2256 (shen.<-out W2255) (let W2257 (shen.in-> W2255) (shen.comb W2257 (cn W2253 W2256)))))))))) (if (shen.parse-failure? W2251) (let W2258 (let W2259 ( V2250) (if (shen.parse-failure? W2259) (shen.parse-failure) (let W2260 (shen.in-> W2259) (shen.comb W2260 "")))) (if (shen.parse-failure? W2258) (shen.parse-failure) W2258)) W2251))) +(defun string. (V3727) (let W3728 (let W3729 (string. V3727) (if (shen.parse-failure? W3729) (shen.parse-failure) (let W3730 (shen.<-out W3729) (let W3731 (shen.in-> W3729) (let W3732 (string. W3731) (if (shen.parse-failure? W3732) (shen.parse-failure) (let W3733 (shen.<-out W3732) (let W3734 (shen.in-> W3732) (shen.comb W3734 (cn W3730 W3733)))))))))) (if (shen.parse-failure? W3728) (let W3735 (let W3736 ( V3727) (if (shen.parse-failure? W3736) (shen.parse-failure) (let W3737 (shen.in-> W3736) (shen.comb W3737 "")))) (if (shen.parse-failure? W3735) (shen.parse-failure) W3735)) W3728))) -(defun string. (V2264) (let W2265 (if (cons? V2264) (let W2266 (head V2264) (let W2267 (tail V2264) (if (and (not (= W2266 "}")) (and (not (= W2266 "\")) (not (whitespace? W2266)))) (shen.comb W2267 W2266) (shen.parse-failure)))) (shen.parse-failure)) (if (shen.parse-failure? W2265) (shen.parse-failure) W2265))) +(defun string. (V3741) (let W3742 (if (cons? V3741) (let W3743 (head V3741) (let W3744 (tail V3741) (if (and (not (= W3743 "}")) (and (not (= W3743 "\")) (not (whitespace? W3743)))) (shen.comb W3744 W3743) (shen.parse-failure)))) (shen.parse-failure)) (if (shen.parse-failure? W3742) (shen.parse-failure) W3742))) -(defun vector.vector-macros (V2269) (let GoTo2273 (freeze V2269) (if (cons? V2269) (let Select2315 (hd V2269) (let Select2316 (tl V2269) (let GoTo2300 (freeze (let GoTo2286 (freeze (if (= array Select2315) (if (cons? Select2316) (let Select2284 (hd Select2316) (let Select2285 (tl Select2316) (if (cons? Select2284) (let Select2283 (tl Select2284) (if (= cons (hd Select2284)) (if (cons? Select2283) (let Select2281 (hd Select2283) (let Select2282 (tl Select2283) (if (cons? Select2282) (let Select2280 (tl Select2282) (if (and (= () (hd Select2282)) (and (= () Select2280) (= () Select2285))) (cons vector (cons Select2281 ())) (if (and (= () Select2280) (= () Select2285)) (let W2271 (newv) (let W2272 (newv) (cons let (cons W2271 (cons (cons vector (cons Select2281 ())) (cons (cons do (cons (cons for (cons W2272 (cons = (cons 1 (cons to (cons Select2281 (cons (cons vector-> (cons W2271 (cons W2272 (cons (cons array Select2282) ())))) ()))))))) (cons W2271 ()))) ())))))) (thaw GoTo2273)))) (thaw GoTo2273)))) (thaw GoTo2273)) (thaw GoTo2273))) (thaw GoTo2273)))) (thaw GoTo2273)) (thaw GoTo2273))) (if (cons? Select2316) (let Select2298 (hd Select2316) (let Select2299 (tl Select2316) (if (cons? Select2298) (let Select2297 (tl Select2298) (if (= cons (hd Select2298)) (if (cons? Select2297) (let Select2295 (hd Select2297) (let Select2296 (tl Select2297) (if (cons? Select2296) (let Select2293 (hd Select2296) (let Select2294 (tl Select2296) (if (and (= () Select2293) (and (= () Select2294) (and (cons? Select2299) (let Select2291 (tl Select2299) (and (= := (hd Select2299)) (and (cons? Select2291) (= () (tl Select2291)))))))) (cons vector-> (cons Select2315 (cons Select2295 (tl Select2299)))) (if (and (= () Select2294) (and (cons? Select2299) (let Select2292 (tl Select2299) (and (= := (hd Select2299)) (and (cons? Select2292) (= () (tl Select2292))))))) (let W2270 (newv) (cons let (cons W2270 (cons (cons <-vector (cons Select2315 (cons Select2295 ()))) (cons (cons W2270 (cons Select2293 Select2299)) ()))))) (thaw GoTo2286))))) (thaw GoTo2286)))) (thaw GoTo2286)) (thaw GoTo2286))) (thaw GoTo2286)))) (thaw GoTo2286)))) (if (= := Select2315) (if (cons? Select2316) (let Select2313 (hd Select2316) (let Select2314 (tl Select2316) (if (cons? Select2314) (let Select2311 (hd Select2314) (let Select2312 (tl Select2314) (if (cons? Select2311) (let Select2310 (tl Select2311) (if (= cons (hd Select2311)) (if (cons? Select2310) (let Select2308 (hd Select2310) (let Select2309 (tl Select2310) (if (cons? Select2309) (let Select2307 (tl Select2309) (if (and (= () (hd Select2309)) (and (= () Select2307) (= () Select2312))) (cons <-vector (cons Select2313 (cons Select2308 ()))) (if (and (= () Select2307) (= () Select2312)) (cons := (cons (cons <-vector (cons Select2313 (cons Select2308 ()))) Select2309)) (thaw GoTo2300)))) (thaw GoTo2300)))) (thaw GoTo2300)) (thaw GoTo2300))) (thaw GoTo2300)))) (thaw GoTo2300)))) (thaw GoTo2300)) (thaw GoTo2300))))) (thaw GoTo2273)))) +(defun vector.vector-macros (V3746) (let GoTo3750 (freeze V3746) (if (cons? V3746) (let Select3792 (hd V3746) (let Select3793 (tl V3746) (let GoTo3777 (freeze (let GoTo3763 (freeze (if (= array Select3792) (if (cons? Select3793) (let Select3761 (hd Select3793) (let Select3762 (tl Select3793) (if (cons? Select3761) (let Select3760 (tl Select3761) (if (= cons (hd Select3761)) (if (cons? Select3760) (let Select3758 (hd Select3760) (let Select3759 (tl Select3760) (if (cons? Select3759) (let Select3757 (tl Select3759) (if (and (= () (hd Select3759)) (and (= () Select3757) (= () Select3762))) (cons vector (cons Select3758 ())) (if (and (= () Select3757) (= () Select3762)) (let W3748 (newv) (let W3749 (newv) (cons let (cons W3748 (cons (cons vector (cons Select3758 ())) (cons (cons do (cons (cons for (cons W3749 (cons = (cons 1 (cons to (cons Select3758 (cons (cons vector-> (cons W3748 (cons W3749 (cons (cons array Select3759) ())))) ()))))))) (cons W3748 ()))) ())))))) (thaw GoTo3750)))) (thaw GoTo3750)))) (thaw GoTo3750)) (thaw GoTo3750))) (thaw GoTo3750)))) (thaw GoTo3750)) (thaw GoTo3750))) (if (cons? Select3793) (let Select3775 (hd Select3793) (let Select3776 (tl Select3793) (if (cons? Select3775) (let Select3774 (tl Select3775) (if (= cons (hd Select3775)) (if (cons? Select3774) (let Select3772 (hd Select3774) (let Select3773 (tl Select3774) (if (cons? Select3773) (let Select3770 (hd Select3773) (let Select3771 (tl Select3773) (if (and (= () Select3770) (and (= () Select3771) (and (cons? Select3776) (let Select3768 (tl Select3776) (and (= := (hd Select3776)) (and (cons? Select3768) (= () (tl Select3768)))))))) (cons vector-> (cons Select3792 (cons Select3772 (tl Select3776)))) (if (and (= () Select3771) (and (cons? Select3776) (let Select3769 (tl Select3776) (and (= := (hd Select3776)) (and (cons? Select3769) (= () (tl Select3769))))))) (let W3747 (newv) (cons let (cons W3747 (cons (cons <-vector (cons Select3792 (cons Select3772 ()))) (cons (cons W3747 (cons Select3770 Select3776)) ()))))) (thaw GoTo3763))))) (thaw GoTo3763)))) (thaw GoTo3763)) (thaw GoTo3763))) (thaw GoTo3763)))) (thaw GoTo3763)))) (if (= := Select3792) (if (cons? Select3793) (let Select3790 (hd Select3793) (let Select3791 (tl Select3793) (if (cons? Select3791) (let Select3788 (hd Select3791) (let Select3789 (tl Select3791) (if (cons? Select3788) (let Select3787 (tl Select3788) (if (= cons (hd Select3788)) (if (cons? Select3787) (let Select3785 (hd Select3787) (let Select3786 (tl Select3787) (if (cons? Select3786) (let Select3784 (tl Select3786) (if (and (= () (hd Select3786)) (and (= () Select3784) (= () Select3789))) (cons <-vector (cons Select3790 (cons Select3785 ()))) (if (and (= () Select3784) (= () Select3789)) (cons := (cons (cons <-vector (cons Select3790 (cons Select3785 ()))) Select3786)) (thaw GoTo3777)))) (thaw GoTo3777)))) (thaw GoTo3777)) (thaw GoTo3777))) (thaw GoTo3777)))) (thaw GoTo3777)))) (thaw GoTo3777)) (thaw GoTo3777))))) (thaw GoTo3750)))) -(defun print.pprint-macro (V2396) (cond ((and (cons? V2396) (and (= pprint (hd V2396)) (and (cons? (tl V2396)) (= () (tl (tl V2396)))))) (cons pprint (cons (hd (tl V2396)) (cons (cons stoutput ()) ())))) ((and (cons? V2396) (and (= pps (hd V2396)) (and (cons? (tl V2396)) (= () (tl (tl V2396)))))) (cons pps (cons (hd (tl V2396)) (cons (cons stoutput ()) ())))) (true V2396))) +(defun print.pprint-macro (V3873) (cond ((and (cons? V3873) (and (= pprint (hd V3873)) (and (cons? (tl V3873)) (= () (tl (tl V3873)))))) (cons pprint (cons (hd (tl V3873)) (cons (cons stoutput ()) ())))) ((and (cons? V3873) (and (= pps (hd V3873)) (and (cons? (tl V3873)) (= () (tl (tl V3873)))))) (cons pps (cons (hd (tl V3873)) (cons (cons stoutput ()) ())))) (true V3873))) (defun linelength () (value print.*linelength*)) (defun indentation () (value print.*indentation*)) -(defun set-linelength (V2400) (cond ((and (positive? V2400) (integer? V2400)) (set print.*linelength* V2400)) (true (simple-error "line length must be a positive integer +(defun set-linelength (V3887) (cond ((and (positive? V3887) (integer? V3887)) (set print.*linelength* V3887)) (true (simple-error "line length must be a positive integer ")))) -(defun set-indentation (V2402) (cond ((and (positive? V2402) (integer? V2402)) (set print.*indentation* V2402)) (true (simple-error "indentation must be a positive integer +(defun set-indentation (V3894) (cond ((and (positive? V3894) (integer? V3894)) (set print.*indentation* V3894)) (true (simple-error "indentation must be a positive integer ")))) -(defun pps (V2404 V2405) (let W2406 (ps V2404) (let W2407 (shen.app W2406 "" shen.r) (let W2408 (pretty-string W2407) (let W2409 (pr W2408 V2405) (let W2410 (nl 1) V2404)))))) +(defun pps (V3901 V3902) (let W3903 (ps V3901) (let W3904 (shen.app W3903 "" shen.r) (let W3905 (pretty-string W3904) (let W3906 (pr W3905 V3902) (let W3907 (nl 1) V3901)))))) -(defun pprint (V2413 V2414) (let W2415 (shen.app V2413 "" shen.s) (let W2416 (pretty-string W2415) (let W2417 (pr W2416 V2414) (let W2418 (nl 1) V2413))))) +(defun pprint (V3915 V3916) (let W3917 (shen.app V3915 "" shen.s) (let W3918 (pretty-string W3917) (let W3919 (pr W3918 V3916) (let W3920 (nl 1) V3915))))) -(defun pretty-string (V2421) (print.pretty-string-h V2421 0 0)) +(defun pretty-string (V3930) (print.pretty-string-h V3930 0 0)) -(defun print.pretty-string-h (V2427 V2428 V2429) (cond ((= "" V2427) "") ((and (shen.+string? V2427) (= "[" (hdstr V2427))) (@s (print.indent V2428) (@s "[" (print.pretty-string-h (tlstr V2427) (+ V2428 1) 0)))) ((and (shen.+string? V2427) (= "(" (hdstr V2427))) (@s (print.indent V2428) (@s "(" (print.pretty-string-h (tlstr V2427) (+ V2428 1) 0)))) ((and (shen.+string? V2427) (= "]" (hdstr V2427))) (@s "]" (print.pretty-string-h (tlstr V2427) (- V2428 1) 0))) ((and (shen.+string? V2427) (= ")" (hdstr V2427))) (@s ")" (print.pretty-string-h (tlstr V2427) (- V2428 1) 0))) ((and (shen.+string? V2427) (and (= " " (hdstr V2427)) (> V2429 (linelength)))) (@s (print.indent V2428) (print.pretty-string-h (tlstr V2427) V2428 0))) ((shen.+string? V2427) (@s (hdstr V2427) (print.pretty-string-h (tlstr V2427) V2428 (+ V2429 1)))) (true (shen.f-error print.pretty-string-h)))) +(defun print.pretty-string-h (V3941 V3942 V3943) (cond ((= "" V3941) "") ((and (shen.+string? V3941) (= "[" (hdstr V3941))) (@s (print.indent V3942) (@s "[" (print.pretty-string-h (tlstr V3941) (+ V3942 1) 0)))) ((and (shen.+string? V3941) (= "(" (hdstr V3941))) (@s (print.indent V3942) (@s "(" (print.pretty-string-h (tlstr V3941) (+ V3942 1) 0)))) ((and (shen.+string? V3941) (= "]" (hdstr V3941))) (@s "]" (print.pretty-string-h (tlstr V3941) (- V3942 1) 0))) ((and (shen.+string? V3941) (= ")" (hdstr V3941))) (@s ")" (print.pretty-string-h (tlstr V3941) (- V3942 1) 0))) ((and (shen.+string? V3941) (and (= " " (hdstr V3941)) (> V3943 (linelength)))) (@s (print.indent V3942) (print.pretty-string-h (tlstr V3941) V3942 0))) ((shen.+string? V3941) (@s (hdstr V3941) (print.pretty-string-h (tlstr V3941) V3942 (+ V3943 1)))) (true (shen.f-error print.pretty-string-h)))) -(defun print.indent (V2442) (cond ((= 0 V2442) "") (true (@s " -" (print.indent-h V2442))))) +(defun print.indent (V3961) (cond ((= 0 V3961) "") (true (@s " +" (print.indent-h V3961))))) -(defun print.indent-h (V2444) (cond ((= 0 V2444) "") (true (cn (print.n-space (indentation)) (print.indent-h (- V2444 1)))))) +(defun print.indent-h (V3968) (cond ((= 0 V3968) "") (true (cn (print.n-space (indentation)) (print.indent-h (- V3968 1)))))) -(defun print.n-space (V2447) (cond ((= 0 V2447) "") (true (cn " " (print.n-space (- V2447 1)))))) +(defun print.n-space (V3976) (cond ((= 0 V3976) "") (true (cn " " (print.n-space (- V3976 1)))))) -(defun delete-file (V2450) (if (= (language) "Common Lisp") ((fn lisp.delete-file) V2450) (close (open V2450 out)))) +(defun delete-file (V3984) (if (= (language) "Common Lisp") ((fn lisp.delete-file) V3984) (close (open V3984 out)))) -(defun file.file-macro (V2478) (cond ((and (cons? V2478) (and (= errout (hd V2478)) (and (cons? (tl V2478)) (and (cons? (tl (tl V2478))) (and (cons? (tl (tl (tl V2478)))) (= () (tl (tl (tl (tl V2478)))))))))) (let W2479 (newv) (let W2480 (newv) (let W2481 (newv) (let W2482 (newv) (let W2483 (newv) (cons trap-error (cons (hd (tl V2478)) (cons (cons /. (cons W2483 (cons (cons let (cons W2479 (cons (cons error-to-string (cons W2483 ())) (cons W2480 (cons (cons trap-error (cons (cons reopen (tl (tl (tl V2478)))) (cons (cons /. (cons W2483 (cons (cons open (cons (hd (tl (tl (tl V2478)))) (cons out ()))) ()))) ()))) (cons W2481 (cons (cons pr (cons W2479 (cons W2480 ()))) (cons W2482 (cons (cons close (cons W2480 ())) (cons (hd (tl (tl V2478))) ())))))))))) ()))) ()))))))))) (true V2478))) +(defun file.file-macro (V4017) (cond ((and (cons? V4017) (and (= errout (hd V4017)) (and (cons? (tl V4017)) (and (cons? (tl (tl V4017))) (and (cons? (tl (tl (tl V4017)))) (= () (tl (tl (tl (tl V4017)))))))))) (let W4018 (newv) (let W4019 (newv) (let W4020 (newv) (let W4021 (newv) (let W4022 (newv) (cons trap-error (cons (hd (tl V4017)) (cons (cons /. (cons W4022 (cons (cons let (cons W4018 (cons (cons error-to-string (cons W4022 ())) (cons W4019 (cons (cons trap-error (cons (cons reopen (tl (tl (tl V4017)))) (cons (cons /. (cons W4022 (cons (cons open (cons (hd (tl (tl (tl V4017)))) (cons out ()))) ()))) ()))) (cons W4020 (cons (cons pr (cons W4018 (cons W4019 ()))) (cons W4021 (cons (cons close (cons W4019 ())) (cons (hd (tl (tl V4017))) ())))))))))) ()))) ()))))))))) (true V4017))) -(defun append-files (V2491 V2492) (let W2493 (append-files-with-open-stream V2491 V2492) (let W2494 (close W2493) V2492))) +(defun append-files (V4030 V4031) (let W4032 (append-files-with-open-stream V4030 V4031) (let W4033 (close W4032) V4031))) -(defun append-files-with-open-stream (V2497 V2498) (cond ((element? V2498 V2497) (simple-error (cn "cannot read and write to " (shen.app V2498 " at the same time -" shen.a)))) (true (let W2499 (open V2498 out) (let W2500 (mapc (lambda Z2501 (file.read&write (open Z2501 in) W2499)) V2497) W2499))))) +(defun append-files-with-open-stream (V4042 V4043) (cond ((element? V4043 V4042) (simple-error (cn "cannot read and write to " (shen.app V4043 " at the same time +" shen.a)))) (true (let W4044 (open V4043 out) (let W4045 (mapc (lambda Z4046 (file.read&write (open Z4046 in) W4044)) V4042) W4044))))) -(defun file.read&write (V2504 V2505) (file.read&write-h (read-byte V2504) V2504 V2505)) +(defun file.read&write (V4055 V4056) (file.read&write-h (read-byte V4055) V4055 V4056)) -(defun file.read&write-h (V2508 V2509 V2510) (cond ((= -1 V2508) -1) (true (file.read&write-h (read-byte V2509) V2509 (do (write-byte V2508 V2510) V2510))))) +(defun file.read&write-h (V4065 V4066 V4067) (cond ((= -1 V4065) -1) (true (file.read&write-h (read-byte V4066) V4066 (do (write-byte V4065 V4067) V4067))))) -(defun reopen (V2515) (let W2516 (read-file-as-bytelist V2515) (let W2517 (open V2515 out) (let W2518 (mapc (lambda Z2519 (write-byte Z2519 W2517)) W2516) W2517)))) +(defun reopen (V4078) (let W4079 (read-file-as-bytelist V4078) (let W4080 (open V4078 out) (let W4081 (mapc (lambda Z4082 (write-byte Z4082 W4080)) W4079) W4080)))) -(defun copy-file (V2521 V2522) (append-files (cons V2521 ()) V2522)) +(defun copy-file (V4089 V4090) (append-files (cons V4089 ()) V4090)) -(defun copy-file-with-open-stream (V2525 V2526) (append-files-with-open-stream (cons V2525 ()) V2526)) +(defun copy-file-with-open-stream (V4098 V4099) (append-files-with-open-stream (cons V4098 ()) V4099)) -(defun file-exists? (V2529) (trap-error (do (close (open V2529 in)) true) (lambda Z2530 false))) +(defun file-exists? (V4107) (trap-error (do (close (open V4107 in)) true) (lambda Z4108 false))) -(defun file-size (V2532) (let W2533 (open V2532 in) (let W2534 (file.file-size-loop W2533 0 (read-byte W2533)) (let W2535 (close W2533) W2534)))) +(defun file-size (V4115) (let W4116 (open V4115 in) (let W4117 (file.file-size-loop W4116 0 (read-byte W4116)) (let W4118 (close W4116) W4117)))) -(defun file.file-size-loop (V2541 V2542 V2543) (cond ((= -1 V2543) V2542) (true (file.file-size-loop V2541 (+ 1 V2542) (read-byte V2541))))) +(defun file.file-size-loop (V4129 V4130 V4131) (cond ((= -1 V4131) V4130) (true (file.file-size-loop V4129 (+ 1 V4130) (read-byte V4129))))) -(defun ascii (V2548 V2549 V2550) (let W2551 (read-file-as-bytelist V2550) (file.scan-bytes V2548 V2549 W2551 ""))) +(defun ascii (V4142 V4143 V4144) (let W4145 (read-file-as-bytelist V4144) (file.scan-bytes V4142 V4143 W4145 ""))) -(defun file.scan-bytes (V2557 V2558 V2559 V2560) (cond ((= () V2559) V2560) ((and (cons? V2559) (and (>= (hd V2559) V2557) (<= (hd V2559) V2558))) (file.scan-bytes V2557 V2558 (tl V2559) (cn V2560 (n->string (hd V2559))))) ((cons? V2559) (simple-error (cn "character has code " (shen.app (hd V2559) (cn ": parsed to here +(defun file.scan-bytes (V4156 V4157 V4158 V4159) (cond ((= () V4158) V4159) ((and (cons? V4158) (and (>= (hd V4158) V4156) (<= (hd V4158) V4157))) (file.scan-bytes V4156 V4157 (tl V4158) (cn V4159 (n->string (hd V4158))))) ((cons? V4158) (simple-error (cn "character has code " (shen.app (hd V4158) (cn ": parsed to here -" (shen.app V2560 "" shen.a)) shen.a)))) (true (shen.f-error file.scan-bytes)))) +" (shen.app V4159 "" shen.a)) shen.a)))) (true (shen.f-error file.scan-bytes)))) -(defun pairoff (V2581 V2582) (cond ((= () V2581) ()) ((= () V2582) ()) ((and (cons? V2581) (cons? V2582)) (cons (@p (hd V2581) (hd V2582)) (pairoff (tl V2581) (tl V2582)))) (true (shen.f-error pairoff)))) +(defun pairoff (V4186 V4187) (cond ((= () V4186) ()) ((= () V4187) ()) ((and (cons? V4186) (cons? V4187)) (cons (@p (hd V4186) (hd V4187)) (pairoff (tl V4186) (tl V4187)))) (true (shen.f-error pairoff)))) -(defun assocp (V2595 V2596) (cond ((= () V2596) (simple-error "pair not found -")) ((and (cons? V2596) (and (tuple? (hd V2596)) (= V2595 (fst (hd V2596))))) (hd V2596)) ((cons? V2596) (assocp V2595 (tl V2596))) (true (shen.f-error assocp)))) +(defun assocp (V4208 V4209) (cond ((= () V4209) (simple-error "pair not found +")) ((and (cons? V4209) (and (tuple? (hd V4209)) (= V4208 (fst (hd V4209))))) (hd V4209)) ((cons? V4209) (assocp V4208 (tl V4209))) (true (shen.f-error assocp)))) -(defun cartprodp (V2601 V2602) (cond ((= () V2601) ()) ((cons? V2601) (append (map (lambda Z2603 (@p (hd V2601) Z2603)) V2602) (cartprodp (tl V2601) V2602))) (true (shen.f-error cartprodp)))) +(defun cartprodp (V4223 V4224) (cond ((= () V4223) ()) ((cons? V4223) (append (map (lambda Z4225 (@p (hd V4223) Z4225)) V4224) (cartprodp (tl V4223) V4224))) (true (shen.f-error cartprodp)))) -(defun assocp-if (V2612 V2613) (cond ((= () V2613) (simple-error "pair not found -")) ((and (cons? V2613) (and (tuple? (hd V2613)) (V2612 (fst (hd V2613))))) (hd V2613)) ((cons? V2613) (assocp-if V2612 (tl V2613))) (true (shen.f-error assocp-if)))) +(defun assocp-if (V4242 V4243) (cond ((= () V4243) (simple-error "pair not found +")) ((and (cons? V4243) (and (tuple? (hd V4243)) (V4242 (fst (hd V4243))))) (hd V4243)) ((cons? V4243) (assocp-if V4242 (tl V4243))) (true (shen.f-error assocp-if)))) -(defun assocp-if-not (V2621 V2622) (cond ((= () V2622) (simple-error "pair not found -")) ((and (cons? V2622) (and (tuple? (hd V2622)) (not (V2621 (fst (hd V2622)))))) (hd V2622)) ((cons? V2622) (assocp-if-not V2621 (tl V2622))) (true (shen.f-error assocp-if-not)))) +(defun assocp-if-not (V4260 V4261) (cond ((= () V4261) (simple-error "pair not found +")) ((and (cons? V4261) (and (tuple? (hd V4261)) (not (V4260 (fst (hd V4261)))))) (hd V4261)) ((cons? V4261) (assocp-if-not V4260 (tl V4261))) (true (shen.f-error assocp-if-not)))) (defun stlib.initialise-environment () (do (set maths.*seed* 95795) (do (set maths.*tolerance* 1e-4) (do (set print.*indentation* 1) (do (set print.*linelength* 60) (do (preclude (cons print ())) (do stlib.void (do (put symbol shen.external-symbols (cons newv (cons concat* ())) (value *property-vector*)) (do (put symbol shen.internal-symbols () (value *property-vector*)) (do (put maths shen.external-symbols (cons expt (cons =r (cons gcd (cons lcd (cons isqrt (cons sqrt (cons nthrt (cons floor (cons ceiling (cons round (cons mod (cons lcm (cons random (cons min (cons max (cons reseed (cons ~ (cons positive? (cons negative? (cons natural? (cons converge (cons series (cons odd? (cons even? (cons cos (cons sin (cons tan (cons radians (cons pi (cons e (cons tan30 (cons cos30 (cons cos45 (cons sin45 (cons sqrt2 (cons tan60 (cons sin120 (cons tan120 (cons sin135 (cons cos135 (cons cos150 (cons tan150 (cons cos210 (cons tan210 (cons sin225 (cons cos225 (cons sin240 (cons tan240 (cons sin300 (cons tan300 (cons sin315 (cons cos315 (cons cos330 (cons tan330 (cons sinh (cons cosh (cons tanh (cons sech (cons csch (cons power (cons factorial (cons prime? (cons unix (cons div (cons modf (cons product (cons summation (cons set-tolerance (cons tolerance (cons coth (cons for (cons sq (cons cube (cons newv (cons abs (cons approx (cons log (cons log2 (cons loge (cons log10 (cons g (cons to (cons stop (cons step (cons constructor (cons end (cons done ()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) (value *property-vector*)) (do (put maths shen.internal-symbols (cons maths.maths (cons maths.*tolerance* (cons maths.for-h (cons maths.lazyfor-and (cons maths.lazyfor-or (cons maths.n->r (cons maths.expt-h (cons maths.gcd-help (cons maths.gcd-loop (cons maths.lcd-loop (cons maths.isqrt-loop (cons maths.float->pair (cons maths.rounding-loop (cons maths.greatest (cons maths.lcm-h (cons maths.lcm? (cons maths.*seed* (cons maths.bbs (cons maths.converge-help (cons maths.compute-nthrt (cons maths.series-h (cons maths.compute-cos (cons maths.compute-sine (cons maths.sin60 (cons maths.prime-h (cons maths.sign (cons maths.log10+ (cons maths.maths-macro (cons maths.tolerance=n (cons maths.upto (cons maths.process-options (cons maths.step-option (cons maths.constructor-option (cons maths.end-option (cons maths.process ()))))))))))))))))))))))))))))))))))) (value *property-vector*)) (do (put rational shen.external-symbols (cons r-reduce (cons r= (cons r< (cons r> (cons r>= (cons r<= (cons r+ (cons r- (cons r* (cons r/ (cons r-expr (cons +-inverse (cons *-inverse (cons r-expt (cons r->n (cons r->pair (cons n->r (cons maths.n->r (cons r-approx (cons maths.lcd-loop (cons r-op1 (cons r-op2 (cons expt (cons =r (cons gcd (cons lcd (cons isqrt (cons sqrt (cons nthrt (cons floor (cons ceiling (cons round (cons mod (cons lcm (cons random (cons min (cons max (cons reseed (cons ~ (cons positive? (cons negative? (cons natural? (cons converge (cons series (cons odd? (cons even? (cons cos (cons sin (cons tan (cons radians (cons pi (cons e (cons tan30 (cons cos30 (cons cos45 (cons sin45 (cons sqrt2 (cons tan60 (cons sin120 (cons tan120 (cons sin135 (cons cos135 (cons cos150 (cons tan150 (cons cos210 (cons tan210 (cons sin225 (cons cos225 (cons sin240 (cons tan240 (cons sin300 (cons tan300 (cons sin315 (cons cos315 (cons cos330 (cons tan330 (cons sinh (cons cosh (cons tanh (cons sech (cons csch (cons power (cons factorial (cons prime? (cons unix (cons div (cons modf (cons product (cons summation (cons set-tolerance (cons tolerance (cons coth (cons for (cons sq (cons cube (cons newv (cons abs (cons approx (cons log (cons log2 (cons loge (cons log10 (cons g (cons to (cons stop (cons step (cons constructor (cons end (cons done (cons r# (cons rational? (cons rational (cons numerator (cons denominator ())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) (value *property-vector*)) (do (put rational shen.internal-symbols (cons rational.r-reduce-help (cons rational.approx-r-h (cons rational.print-rational ()))) (value *property-vector*)) (do (put complex shen.external-symbols (cons c+ (cons c- (cons c* (cons c/ (cons expt (cons =r (cons gcd (cons lcd (cons isqrt (cons sqrt (cons nthrt (cons floor (cons ceiling (cons round (cons mod (cons lcm (cons random (cons min (cons max (cons reseed (cons ~ (cons positive? (cons negative? (cons natural? (cons converge (cons series (cons odd? (cons even? (cons cos (cons sin (cons tan (cons radians (cons pi (cons e (cons tan30 (cons cos30 (cons cos45 (cons sin45 (cons sqrt2 (cons tan60 (cons sin120 (cons tan120 (cons sin135 (cons cos135 (cons cos150 (cons tan150 (cons cos210 (cons tan210 (cons sin225 (cons cos225 (cons sin240 (cons tan240 (cons sin300 (cons tan300 (cons sin315 (cons cos315 (cons cos330 (cons tan330 (cons sinh (cons cosh (cons tanh (cons sech (cons csch (cons power (cons factorial (cons prime? (cons unix (cons div (cons modf (cons product (cons summation (cons set-tolerance (cons tolerance (cons coth (cons for (cons sq (cons cube (cons newv (cons abs (cons approx (cons log (cons log2 (cons loge (cons log10 (cons g (cons to (cons stop (cons step (cons constructor (cons end (cons done (cons c# (cons complex? (cons real (cons imaginary (cons complex ())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) (value *property-vector*)) (do (put complex shen.internal-symbols (cons complex.print-complex ()) (value *property-vector*)) (do (put numerals shen.external-symbols (cons hex (cons octal (cons duodecimal (cons binary (cons n-op2 (cons n-op1 (cons n+ (cons n- (cons n* (cons n/ (cons expt (cons =r (cons gcd (cons lcd (cons isqrt (cons sqrt (cons nthrt (cons floor (cons ceiling (cons round (cons mod (cons lcm (cons random (cons min (cons max (cons reseed (cons ~ (cons positive? (cons negative? (cons natural? (cons converge (cons series (cons odd? (cons even? (cons cos (cons sin (cons tan (cons radians (cons pi (cons e (cons tan30 (cons cos30 (cons cos45 (cons sin45 (cons sqrt2 (cons tan60 (cons sin120 (cons tan120 (cons sin135 (cons cos135 (cons cos150 (cons tan150 (cons cos210 (cons tan210 (cons sin225 (cons cos225 (cons sin240 (cons tan240 (cons sin300 (cons tan300 (cons sin315 (cons cos315 (cons cos330 (cons tan330 (cons sinh (cons cosh (cons tanh (cons sech (cons csch (cons power (cons factorial (cons prime? (cons unix (cons div (cons modf (cons product (cons summation (cons set-tolerance (cons tolerance (cons coth (cons for (cons sq (cons cube (cons newv (cons abs (cons approx (cons log (cons log2 (cons loge (cons log10 (cons g (cons to (cons stop (cons step (cons constructor (cons end (cons done (cons numeral? (cons numeral (cons radix (cons n#->ns (cons n# (cons n#->n ()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) (value *property-vector*)) (do (put numerals shen.internal-symbols (cons numerals.numeral-macro (cons numerals.largest-expt (cons numerals.n-zeros (cons numerals.add (cons numerals.add-h (cons numerals.n->numeral (cons numerals.numerals (cons numerals.numeric->string (cons numerals.print-numeral ()))))))))) (value *property-vector*)) (do (put list shen.external-symbols (cons prefix? (cons suffix? (cons subset? (cons set=? (cons set? (cons permute (cons nthhd (cons cartprod (cons powerset (cons subbag? (cons bag=? (cons n-times (cons trim-right (cons trim-left (cons trim (cons trim-right-if (cons trim-left-if (cons trim-if (cons assoc-if (cons assoc-if-not (cons infix? (cons count-if (cons count (cons remove-duplicates (cons foldr (cons foldl (cons find (cons mapf (cons remove-if (cons some? (cons every? (cons mapc (cons filter (cons transitive-closure (cons x->ascii (cons take (cons take-last (cons drop (cons drop-last (cons index (cons index-last (cons insert (cons splice (cons sort (cons partition ()))))))))))))))))))))))))))))))))))))))))))))) (value *property-vector*)) (do (put list shen.internal-symbols (cons list.index-h (cons list.n-times-h (cons list.reduce (cons list.transitive-pass (cons list.find-trans ()))))) (value *property-vector*)) (do (put string shen.external-symbols (cons render-file (cons render (cons s-op1 (cons s-op2 (cons string.reverse (cons string.element? (cons string.infix? (cons string.suffix? (cons string.prefix? (cons string.length (cons string.difference (cons string.intersection (cons string.nth (cons whitespace? (cons lowercase? (cons uppercase? (cons digit? (cons alpha? (cons alphanum? (cons string.subset? (cons string.set=? (cons string.set? (cons string.nth (cons string.trim (cons string.trim-right (cons string.trim-left (cons tokenise (cons list->string (cons string->list (cons string.trim-left-if (cons string.trim-right-if (cons string.trim-if (cons uppercase (cons lowercase (cons string.map (cons file-extension (cons strip-extension (cons string.count (cons spell-number (cons string>? (cons string=? (cons string<=? (cons string.some? (cons string.every? (cons prefix? (cons suffix? (cons subset? (cons set=? (cons set? (cons permute (cons nthhd (cons cartprod (cons powerset (cons subbag? (cons bag=? (cons n-times (cons trim-right (cons trim-left (cons trim (cons trim-right-if (cons trim-left-if (cons trim-if (cons assoc-if (cons assoc-if-not (cons infix? (cons count-if (cons count (cons remove-duplicates (cons foldr (cons foldl (cons find (cons mapf (cons remove-if (cons some? (cons every? (cons mapc (cons filter (cons transitive-closure (cons x->ascii (cons take (cons take-last (cons drop (cons drop-last (cons index (cons index-last (cons insert (cons splice (cons sort (cons partition ())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) (value *property-vector*)) (do (put string shen.internal-symbols (cons string.bytes->strings (cons string.rendered? (cons string. (cons string.recapply (cons string. (cons string. (cons string. (cons string. (cons string. (cons string.skip (cons string. (cons string. (cons string.s->l-h (cons string.tokenise-h (cons string.triples (cons string.triples-h (cons string.digits (cons string.tens (cons string.digit (cons string.scale (cons string.units ()))))))))))))))))))))) (value *property-vector*)) (do (put vector shen.external-symbols (cons newv (cons array (cons for (cons to ())))) (value *property-vector*)) (do (put vector shen.internal-symbols (cons vector.vector-macros ()) (value *property-vector*)) (do (put print shen.external-symbols (cons expt (cons =r (cons gcd (cons lcd (cons isqrt (cons sqrt (cons nthrt (cons floor (cons ceiling (cons round (cons mod (cons lcm (cons random (cons min (cons max (cons reseed (cons ~ (cons positive? (cons negative? (cons natural? (cons converge (cons series (cons odd? (cons even? (cons cos (cons sin (cons tan (cons radians (cons pi (cons e (cons tan30 (cons cos30 (cons cos45 (cons sin45 (cons sqrt2 (cons tan60 (cons sin120 (cons tan120 (cons sin135 (cons cos135 (cons cos150 (cons tan150 (cons cos210 (cons tan210 (cons sin225 (cons cos225 (cons sin240 (cons tan240 (cons sin300 (cons tan300 (cons sin315 (cons cos315 (cons cos330 (cons tan330 (cons sinh (cons cosh (cons tanh (cons sech (cons csch (cons power (cons factorial (cons prime? (cons unix (cons div (cons modf (cons product (cons summation (cons set-tolerance (cons tolerance (cons coth (cons for (cons sq (cons cube (cons newv (cons abs (cons approx (cons log (cons log2 (cons loge (cons log10 (cons g (cons to (cons stop (cons step (cons constructor (cons end (cons done (cons pps (cons pprint (cons pretty-string (cons linelength (cons indentation (cons set-linelength (cons set-indentation ())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) (value *property-vector*)) (do (put print shen.internal-symbols (cons print.pprint-macro (cons print.*linelength* (cons print.*indentation* (cons print.pretty-string-h (cons print.indent (cons print.indent-h (cons print.n-space ()))))))) (value *property-vector*)) (do (put file shen.external-symbols (cons append-files (cons append-files-with-open-stream (cons mapc (cons copy-file (cons file-size (cons reopen (cons errout (cons copy-file-with-open-stream (cons file-exists? (cons newv (cons ascii ()))))))))))) (value *property-vector*)) (do (put file shen.internal-symbols (cons file.file-macro (cons file.read&write (cons file.read&write-h (cons file.file-size-loop (cons file.scan-bytes ()))))) (value *property-vector*)) (do (put tuple shen.external-symbols (cons pairoff (cons assocp (cons cartprodp (cons assocp-if (cons assocp-if-not ()))))) (value *property-vector*)) (do (put tuple shen.internal-symbols () (value *property-vector*)) (do (put stlib shen.external-symbols (cons prefix? (cons suffix? (cons subset? (cons set=? (cons set? (cons permute (cons nthhd (cons cartprod (cons powerset (cons subbag? (cons bag=? (cons n-times (cons trim-right (cons trim-left (cons trim (cons trim-right-if (cons trim-left-if (cons trim-if (cons assoc-if (cons assoc-if-not (cons infix? (cons count-if (cons count (cons remove-duplicates (cons foldr (cons foldl (cons find (cons mapf (cons remove-if (cons some? (cons every? (cons mapc (cons filter (cons transitive-closure (cons x->ascii (cons take (cons take-last (cons drop (cons drop-last (cons index (cons index-last (cons insert (cons splice (cons sort (cons partition (cons render-file (cons render (cons s-op1 (cons s-op2 (cons string.reverse (cons string.element? (cons string.infix? (cons string.suffix? (cons string.prefix? (cons string.length (cons string.difference (cons string.intersection (cons string.nth (cons whitespace? (cons lowercase? (cons uppercase? (cons digit? (cons alpha? (cons alphanum? (cons string.subset? (cons string.set=? (cons string.set? (cons string.nth (cons string.trim (cons string.trim-right (cons string.trim-left (cons tokenise (cons list->string (cons string->list (cons string.trim-left-if (cons string.trim-right-if (cons string.trim-if (cons uppercase (cons lowercase (cons string.map (cons file-extension (cons strip-extension (cons string.count (cons spell-number (cons string>? (cons string=? (cons string<=? (cons string.some? (cons string.every? (cons prefix? (cons suffix? (cons subset? (cons set=? (cons set? (cons permute (cons nthhd (cons cartprod (cons powerset (cons subbag? (cons bag=? (cons n-times (cons trim-right (cons trim-left (cons trim (cons trim-right-if (cons trim-left-if (cons trim-if (cons assoc-if (cons assoc-if-not (cons infix? (cons count-if (cons count (cons remove-duplicates (cons foldr (cons foldl (cons find (cons mapf (cons remove-if (cons some? (cons every? (cons mapc (cons filter (cons transitive-closure (cons x->ascii (cons take (cons take-last (cons drop (cons drop-last (cons index (cons index-last (cons insert (cons splice (cons sort (cons partition (cons expt (cons =r (cons gcd (cons lcd (cons isqrt (cons sqrt (cons nthrt (cons floor (cons ceiling (cons round (cons mod (cons lcm (cons random (cons min (cons max (cons reseed (cons ~ (cons positive? (cons negative? (cons natural? (cons converge (cons series (cons odd? (cons even? (cons cos (cons sin (cons tan (cons radians (cons pi (cons e (cons tan30 (cons cos30 (cons cos45 (cons sin45 (cons sqrt2 (cons tan60 (cons sin120 (cons tan120 (cons sin135 (cons cos135 (cons cos150 (cons tan150 (cons cos210 (cons tan210 (cons sin225 (cons cos225 (cons sin240 (cons tan240 (cons sin300 (cons tan300 (cons sin315 (cons cos315 (cons cos330 (cons tan330 (cons sinh (cons cosh (cons tanh (cons sech (cons csch (cons power (cons factorial (cons prime? (cons unix (cons div (cons modf (cons product (cons summation (cons set-tolerance (cons tolerance (cons coth (cons for (cons sq (cons cube (cons newv (cons abs (cons approx (cons log (cons log2 (cons loge (cons log10 (cons g (cons to (cons stop (cons step (cons constructor (cons end (cons done (cons newv (cons array (cons for (cons to (cons newv (cons concat* (cons pairoff (cons assocp (cons cartprodp (cons assocp-if (cons assocp-if-not (cons append-files (cons append-files-with-open-stream (cons mapc (cons copy-file (cons file-size (cons reopen (cons errout (cons copy-file-with-open-stream (cons file-exists? (cons newv (cons ascii (cons expt (cons =r (cons gcd (cons lcd (cons isqrt (cons sqrt (cons nthrt (cons floor (cons ceiling (cons round (cons mod (cons lcm (cons random (cons min (cons max (cons reseed (cons ~ (cons positive? (cons negative? (cons natural? (cons converge (cons series (cons odd? (cons even? (cons cos (cons sin (cons tan (cons radians (cons pi (cons e (cons tan30 (cons cos30 (cons cos45 (cons sin45 (cons sqrt2 (cons tan60 (cons sin120 (cons tan120 (cons sin135 (cons cos135 (cons cos150 (cons tan150 (cons cos210 (cons tan210 (cons sin225 (cons cos225 (cons sin240 (cons tan240 (cons sin300 (cons tan300 (cons sin315 (cons cos315 (cons cos330 (cons tan330 (cons sinh (cons cosh (cons tanh (cons sech (cons csch (cons power (cons factorial (cons prime? (cons unix (cons div (cons modf (cons product (cons summation (cons set-tolerance (cons tolerance (cons coth (cons for (cons sq (cons cube (cons newv (cons abs (cons approx (cons log (cons log2 (cons loge (cons log10 (cons g (cons to (cons stop (cons step (cons constructor (cons end (cons done (cons pps (cons pprint (cons pretty-string (cons linelength (cons indentation (cons set-linelength (cons set-indentation ())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) (value *property-vector*)) (put stlib shen.internal-symbols (cons stlib.void ()) (value *property-vector*)))))))))))))))))))))))))))))))) -(defun stlib.initialise-arities () (do (update-lambda-table concat* 2) (do (update-lambda-table newv 0) (do (update-lambda-table maths.maths-macro 1) (do (update-lambda-table maths.process-options 2) (do (update-lambda-table maths.step-option 1) (do (update-lambda-table maths.constructor-option 1) (do (update-lambda-table maths.end-option 1) (do (update-lambda-table maths.process 2) (do (update-lambda-table set-tolerance 1) (do (update-lambda-table tolerance 0) (do (update-lambda-table sq 1) (do (update-lambda-table cube 1) (do (update-lambda-table for 5) (do (update-lambda-table maths.for-h 6) (do (update-lambda-table maths.lazyfor-and 4) (do (update-lambda-table maths.lazyfor-or 4) (do (update-lambda-table max 2) (do (update-lambda-table min 2) (do (update-lambda-table expt 3) (do (update-lambda-table maths.n->r 2) (do (update-lambda-table maths.expt-h 3) (do (update-lambda-table gcd 2) (do (update-lambda-table maths.gcd-help 2) (do (update-lambda-table maths.gcd-loop 3) (do (update-lambda-table lcd 2) (do (update-lambda-table maths.lcd-loop 4) (do (update-lambda-table isqrt 1) (do (update-lambda-table maths.isqrt-loop 2) (do (update-lambda-table div 2) (do (update-lambda-table modf 1) (do (update-lambda-table floor 1) (do (update-lambda-table maths.rounding-loop 4) (do (update-lambda-table maths.float->pair 1) (do (update-lambda-table ceiling 1) (do (update-lambda-table round 1) (do (update-lambda-table mod 2) (do (update-lambda-table lcm 1) (do (update-lambda-table maths.greatest 1) (do (update-lambda-table maths.lcm-h 3) (do (update-lambda-table maths.lcm? 2) (do (update-lambda-table random 2) (do (update-lambda-table min 2) (do (update-lambda-table reseed 0) (do (update-lambda-table maths.bbs 1) (do (update-lambda-table ~ 1) (do (update-lambda-table positive? 1) (do (update-lambda-table negative? 1) (do (update-lambda-table natural? 1) (do (update-lambda-table converge 3) (do (update-lambda-table maths.converge-help 4) (do (update-lambda-table nthrt 3) (do (update-lambda-table sqrt 2) (do (update-lambda-table maths.compute-nthrt 4) (do (update-lambda-table approx 1) (do (update-lambda-table abs 1) (do (update-lambda-table series 4) (do (update-lambda-table maths.series-h 5) (do (update-lambda-table product 3) (do (update-lambda-table summation 3) (do (update-lambda-table odd? 1) (do (update-lambda-table even? 1) (do (update-lambda-table maths.compute-sine 2) (do (update-lambda-table maths.compute-cos 2) (do (update-lambda-table cos 2) (do (update-lambda-table sin 2) (do (update-lambda-table tan 2) (do (update-lambda-table radians 1) (do (update-lambda-table g 0) (do (update-lambda-table pi 0) (do (update-lambda-table e 0) (do (update-lambda-table tan30 0) (do (update-lambda-table cos30 0) (do (update-lambda-table cos45 0) (do (update-lambda-table sin45 0) (do (update-lambda-table sqrt2 0) (do (update-lambda-table tan60 0) (do (update-lambda-table maths.sin60 0) (do (update-lambda-table sin120 0) (do (update-lambda-table tan120 0) (do (update-lambda-table sin135 0) (do (update-lambda-table cos135 0) (do (update-lambda-table cos150 0) (do (update-lambda-table tan150 0) (do (update-lambda-table cos210 0) (do (update-lambda-table tan210 0) (do (update-lambda-table sin225 0) (do (update-lambda-table cos225 0) (do (update-lambda-table sin240 0) (do (update-lambda-table tan240 0) (do (update-lambda-table sin300 0) (do (update-lambda-table tan300 0) (do (update-lambda-table sin315 0) (do (update-lambda-table cos315 0) (do (update-lambda-table cos330 0) (do (update-lambda-table tan330 0) (do (update-lambda-table coth 2) (do (update-lambda-table sinh 2) (do (update-lambda-table cosh 2) (do (update-lambda-table tanh 2) (do (update-lambda-table sech 2) (do (update-lambda-table csch 2) (do (update-lambda-table power 2) (do (update-lambda-table factorial 1) (do (update-lambda-table prime? 1) (do (update-lambda-table maths.prime-h 3) (do (update-lambda-table maths.sign 1) (do (update-lambda-table log 3) (do (update-lambda-table loge 2) (do (update-lambda-table log2 2) (do (update-lambda-table log10 2) (do (update-lambda-table maths.log10+ 2) (do (update-lambda-table maths.upto 6) (do (update-lambda-table r# 2) (do (update-lambda-table rational.print-rational 1) (do (update-lambda-table rational? 1) (do (update-lambda-table numerator 1) (do (update-lambda-table denominator 1) (do (update-lambda-table r-op1 2) (do (update-lambda-table r-op2 3) (do (update-lambda-table r->n 1) (do (update-lambda-table r->pair 1) (do (update-lambda-table n->r 1) (do (update-lambda-table r-reduce 1) (do (update-lambda-table rational.r-reduce-help 2) (do (update-lambda-table r= 2) (do (update-lambda-table r< 2) (do (update-lambda-table r> 2) (do (update-lambda-table r>= 2) (do (update-lambda-table r<= 2) (do (update-lambda-table r+ 2) (do (update-lambda-table r- 2) (do (update-lambda-table r* 2) (do (update-lambda-table +-inverse 1) (do (update-lambda-table *-inverse 1) (do (update-lambda-table r/ 2) (do (update-lambda-table r-expt 2) (do (update-lambda-table r-approx 2) (do (update-lambda-table rational.approx-r-h 3) (do (update-lambda-table c# 2) (do (update-lambda-table complex.print-complex 1) (do (update-lambda-table complex? 1) (do (update-lambda-table real 1) (do (update-lambda-table imaginary 1) (do (update-lambda-table c+ 2) (do (update-lambda-table c- 2) (do (update-lambda-table c* 2) (do (update-lambda-table c/ 2) (do (update-lambda-table n# 2) (do (update-lambda-table radix 1) (do (update-lambda-table numerals.numerals 1) (do (update-lambda-table n#->n 1) (do (update-lambda-table n#->ns 1) (do (update-lambda-table numerals.print-numeral 1) (do (update-lambda-table numerals.numeric->string 2) (do (update-lambda-table numeral? 1) (do (update-lambda-table numerals.numeral-macro 1) (do (update-lambda-table n-op2 4) (do (update-lambda-table n-op1 3) (do (update-lambda-table n+ 3) (do (update-lambda-table n* 3) (do (update-lambda-table n- 3) (do (update-lambda-table n/ 3) (do (update-lambda-table binary 1) (do (update-lambda-table hex 1) (do (update-lambda-table octal 1) (do (update-lambda-table duodecimal 1) (do (update-lambda-table numerals.n->numeral 2) (do (update-lambda-table numerals.largest-expt 3) (do (update-lambda-table numerals.n-zeros 1) (do (update-lambda-table numerals.add 3) (do (update-lambda-table numerals.add-h 4) (do (update-lambda-table assoc-if 2) (do (update-lambda-table assoc-if-not 2) (do (update-lambda-table drop 2) (do (update-lambda-table drop-last 2) (do (update-lambda-table index 2) (do (update-lambda-table list.index-h 3) (do (update-lambda-table index-last 2) (do (update-lambda-table insert 3) (do (update-lambda-table remove-duplicates 1) (do (update-lambda-table trim-left-if 2) (do (update-lambda-table trim-right-if 2) (do (update-lambda-table trim-if 2) (do (update-lambda-table trim-left 2) (do (update-lambda-table trim-right 2) (do (update-lambda-table trim 2) (do (update-lambda-table prefix? 2) (do (update-lambda-table infix? 2) (do (update-lambda-table suffix? 2) (do (update-lambda-table subset? 2) (do (update-lambda-table set=? 2) (do (update-lambda-table set? 1) (do (update-lambda-table n-times 2) (do (update-lambda-table list.n-times-h 3) (do (update-lambda-table subbag? 2) (do (update-lambda-table bag=? 2) (do (update-lambda-table mapc 2) (do (update-lambda-table permute 1) (do (update-lambda-table count-if 2) (do (update-lambda-table count 2) (do (update-lambda-table some? 2) (do (update-lambda-table every? 2) (do (update-lambda-table sort 2) (do (update-lambda-table find 2) (do (update-lambda-table foldr 3) (do (update-lambda-table foldl 3) (do (update-lambda-table mapf 3) (do (update-lambda-table filter 2) (do (update-lambda-table remove-if 2) (do (update-lambda-table list.reduce 3) (do (update-lambda-table take 2) (do (update-lambda-table take-last 2) (do (update-lambda-table cartprod 2) (do (update-lambda-table powerset 1) (do (update-lambda-table partition 2) (do (update-lambda-table transitive-closure 1) (do (update-lambda-table list.transitive-pass 2) (do (update-lambda-table list.find-trans 3) (do (update-lambda-table x->ascii 1) (do (update-lambda-table splice 3) (do (update-lambda-table string-macros 1) (do (update-lambda-table string->list 1) (do (update-lambda-table string.s->l-h 4) (do (update-lambda-table list->string 1) (do (update-lambda-table s-op1 3) (do (update-lambda-table s-op2 4) (do (update-lambda-table string.count 2) (do (update-lambda-table string.reverse 1) (do (update-lambda-table string.element? 2) (do (update-lambda-table string.prefix? 2) (do (update-lambda-table string.infix? 2) (do (update-lambda-table string.suffix? 2) (do (update-lambda-table string.subset? 2) (do (update-lambda-table string.set=? 2) (do (update-lambda-table string.set? 1) (do (update-lambda-table file-extension 2) (do (update-lambda-table strip-extension 1) (do (update-lambda-table string.length 1) (do (update-lambda-table string.trim 2) (do (update-lambda-table string.trim-if 2) (do (update-lambda-table string.trim-right-if 2) (do (update-lambda-table string.trim-left-if 2) (do (update-lambda-table string.trim-right 2) (do (update-lambda-table string.trim-left 2) (do (update-lambda-table string.some? 2) (do (update-lambda-table string.every? 2) (do (update-lambda-table string.difference 2) (do (update-lambda-table string.intersection 2) (do (update-lambda-table string.nth 2) (do (update-lambda-table whitespace? 1) (do (update-lambda-table uppercase? 1) (do (update-lambda-table lowercase? 1) (do (update-lambda-table digit? 1) (do (update-lambda-table alpha? 1) (do (update-lambda-table alphanum? 1) (do (update-lambda-table tokenise 2) (do (update-lambda-table string.tokenise-h 3) (do (update-lambda-table uppercase 1) (do (update-lambda-table lowercase 1) (do (update-lambda-table string.map 2) (do (update-lambda-table spell-number 1) (do (update-lambda-table string.digit 1) (do (update-lambda-table string.triples 1) (do (update-lambda-table string.triples-h 2) (do (update-lambda-table string.digits 1) (do (update-lambda-table string.tens 2) (do (update-lambda-table string.scale 1) (do (update-lambda-table string.units 1) (do (update-lambda-table string>? 2) (do (update-lambda-table string=? 2) (do (update-lambda-table string<=? 2) (do (update-lambda-table render-file 2) (do (update-lambda-table string.bytes->strings 2) (do (update-lambda-table render 1) (do (update-lambda-table string.rendered? 1) (do (update-lambda-table string. 1) (do (update-lambda-table string. 1) (do (update-lambda-table string.recapply 2) (do (update-lambda-table string. 1) (do (update-lambda-table string. 1) (do (update-lambda-table string. 1) (do (update-lambda-table string. 1) (do (update-lambda-table string. 1) (do (update-lambda-table string. 1) (do (update-lambda-table vector.vector-macros 1) (do (update-lambda-table print.pprint-macro 1) (do (update-lambda-table linelength 0) (do (update-lambda-table indentation 0) (do (update-lambda-table set-linelength 1) (do (update-lambda-table set-indentation 1) (do (update-lambda-table pps 2) (do (update-lambda-table pprint 2) (do (update-lambda-table pretty-string 1) (do (update-lambda-table print.pretty-string-h 3) (do (update-lambda-table print.indent 1) (do (update-lambda-table print.indent-h 1) (do (update-lambda-table print.n-space 1) (do (update-lambda-table delete-file 1) (do (update-lambda-table file.file-macro 1) (do (update-lambda-table append-files 2) (do (update-lambda-table append-files-with-open-stream 2) (do (update-lambda-table file.read&write 2) (do (update-lambda-table file.read&write-h 3) (do (update-lambda-table reopen 1) (do (update-lambda-table copy-file 2) (do (update-lambda-table copy-file-with-open-stream 2) (do (update-lambda-table file-exists? 1) (do (update-lambda-table file-size 1) (do (update-lambda-table file.file-size-loop 3) (do (update-lambda-table ascii 3) (do (update-lambda-table file.scan-bytes 4) (do (update-lambda-table pairoff 2) (do (update-lambda-table assocp 2) (do (update-lambda-table cartprodp 2) (do (update-lambda-table assocp-if 2) (update-lambda-table assocp-if-not 2)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) +(defun stlib.initialise-arities () (do (shen.update-lambda-table/precompiled concat* 2 (freeze (lambda Y4275 (lambda Y4276 (concat* Y4275 Y4276)))) (shen.precompiled-function? concat*)) (do (shen.update-lambda-table/precompiled newv 0 (freeze false) (shen.precompiled-function? newv)) (do (shen.update-lambda-table/precompiled maths.maths-macro 1 (freeze (lambda Y4277 (maths.maths-macro Y4277))) (shen.precompiled-function? maths.maths-macro)) (do (shen.update-lambda-table/precompiled maths.process-options 2 (freeze (lambda Y4278 (lambda Y4279 (maths.process-options Y4278 Y4279)))) (shen.precompiled-function? maths.process-options)) (do (shen.update-lambda-table/precompiled maths.step-option 1 (freeze (lambda Y4280 (maths.step-option Y4280))) (shen.precompiled-function? maths.step-option)) (do (shen.update-lambda-table/precompiled maths.constructor-option 1 (freeze (lambda Y4281 (maths.constructor-option Y4281))) (shen.precompiled-function? maths.constructor-option)) (do (shen.update-lambda-table/precompiled maths.end-option 1 (freeze (lambda Y4282 (maths.end-option Y4282))) (shen.precompiled-function? maths.end-option)) (do (shen.update-lambda-table/precompiled maths.process 2 (freeze (lambda Y4283 (lambda Y4284 (maths.process Y4283 Y4284)))) (shen.precompiled-function? maths.process)) (do (shen.update-lambda-table/precompiled set-tolerance 1 (freeze (lambda Y4285 (set-tolerance Y4285))) (shen.precompiled-function? set-tolerance)) (do (shen.update-lambda-table/precompiled tolerance 0 (freeze false) (shen.precompiled-function? tolerance)) (do (shen.update-lambda-table/precompiled sq 1 (freeze (lambda Y4286 (sq Y4286))) (shen.precompiled-function? sq)) (do (shen.update-lambda-table/precompiled cube 1 (freeze (lambda Y4287 (cube Y4287))) (shen.precompiled-function? cube)) (do (shen.update-lambda-table/precompiled for 5 (freeze (lambda Y4288 (lambda Y4289 (lambda Y4290 (lambda Y4291 (lambda Y4292 (for Y4288 Y4289 Y4290 Y4291 Y4292))))))) (shen.precompiled-function? for)) (do (shen.update-lambda-table/precompiled maths.for-h 6 (freeze (lambda Y4293 (lambda Y4294 (lambda Y4295 (lambda Y4296 (lambda Y4297 (lambda Y4298 (maths.for-h Y4293 Y4294 Y4295 Y4296 Y4297 Y4298)))))))) (shen.precompiled-function? maths.for-h)) (do (shen.update-lambda-table/precompiled maths.lazyfor-and 4 (freeze (lambda Y4299 (lambda Y4300 (lambda Y4301 (lambda Y4302 (maths.lazyfor-and Y4299 Y4300 Y4301 Y4302)))))) (shen.precompiled-function? maths.lazyfor-and)) (do (shen.update-lambda-table/precompiled maths.lazyfor-or 4 (freeze (lambda Y4303 (lambda Y4304 (lambda Y4305 (lambda Y4306 (maths.lazyfor-or Y4303 Y4304 Y4305 Y4306)))))) (shen.precompiled-function? maths.lazyfor-or)) (do (shen.update-lambda-table/precompiled max 2 (freeze (lambda Y4307 (lambda Y4308 (max Y4307 Y4308)))) (shen.precompiled-function? max)) (do (shen.update-lambda-table/precompiled min 2 (freeze (lambda Y4309 (lambda Y4310 (min Y4309 Y4310)))) (shen.precompiled-function? min)) (do (shen.update-lambda-table/precompiled expt 3 (freeze (lambda Y4311 (lambda Y4312 (lambda Y4313 (expt Y4311 Y4312 Y4313))))) (shen.precompiled-function? expt)) (do (shen.update-lambda-table/precompiled maths.n->r 2 (freeze (lambda Y4314 (lambda Y4315 (maths.n->r Y4314 Y4315)))) (shen.precompiled-function? maths.n->r)) (do (shen.update-lambda-table/precompiled maths.expt-h 3 (freeze (lambda Y4316 (lambda Y4317 (lambda Y4318 (maths.expt-h Y4316 Y4317 Y4318))))) (shen.precompiled-function? maths.expt-h)) (do (shen.update-lambda-table/precompiled gcd 2 (freeze (lambda Y4319 (lambda Y4320 (gcd Y4319 Y4320)))) (shen.precompiled-function? gcd)) (do (shen.update-lambda-table/precompiled maths.gcd-help 2 (freeze (lambda Y4321 (lambda Y4322 (maths.gcd-help Y4321 Y4322)))) (shen.precompiled-function? maths.gcd-help)) (do (shen.update-lambda-table/precompiled maths.gcd-loop 3 (freeze (lambda Y4323 (lambda Y4324 (lambda Y4325 (maths.gcd-loop Y4323 Y4324 Y4325))))) (shen.precompiled-function? maths.gcd-loop)) (do (shen.update-lambda-table/precompiled lcd 2 (freeze (lambda Y4326 (lambda Y4327 (lcd Y4326 Y4327)))) (shen.precompiled-function? lcd)) (do (shen.update-lambda-table/precompiled maths.lcd-loop 4 (freeze (lambda Y4328 (lambda Y4329 (lambda Y4330 (lambda Y4331 (maths.lcd-loop Y4328 Y4329 Y4330 Y4331)))))) (shen.precompiled-function? maths.lcd-loop)) (do (shen.update-lambda-table/precompiled isqrt 1 (freeze (lambda Y4332 (isqrt Y4332))) (shen.precompiled-function? isqrt)) (do (shen.update-lambda-table/precompiled maths.isqrt-loop 2 (freeze (lambda Y4333 (lambda Y4334 (maths.isqrt-loop Y4333 Y4334)))) (shen.precompiled-function? maths.isqrt-loop)) (do (shen.update-lambda-table/precompiled div 2 (freeze (lambda Y4335 (lambda Y4336 (div Y4335 Y4336)))) (shen.precompiled-function? div)) (do (shen.update-lambda-table/precompiled modf 1 (freeze (lambda Y4337 (modf Y4337))) (shen.precompiled-function? modf)) (do (shen.update-lambda-table/precompiled floor 1 (freeze (lambda Y4338 (floor Y4338))) (shen.precompiled-function? floor)) (do (shen.update-lambda-table/precompiled maths.rounding-loop 4 (freeze (lambda Y4339 (lambda Y4340 (lambda Y4341 (lambda Y4342 (maths.rounding-loop Y4339 Y4340 Y4341 Y4342)))))) (shen.precompiled-function? maths.rounding-loop)) (do (shen.update-lambda-table/precompiled maths.float->pair 1 (freeze (lambda Y4343 (maths.float->pair Y4343))) (shen.precompiled-function? maths.float->pair)) (do (shen.update-lambda-table/precompiled ceiling 1 (freeze (lambda Y4344 (ceiling Y4344))) (shen.precompiled-function? ceiling)) (do (shen.update-lambda-table/precompiled round 1 (freeze (lambda Y4345 (round Y4345))) (shen.precompiled-function? round)) (do (shen.update-lambda-table/precompiled mod 2 (freeze (lambda Y4346 (lambda Y4347 (mod Y4346 Y4347)))) (shen.precompiled-function? mod)) (do (shen.update-lambda-table/precompiled lcm 1 (freeze (lambda Y4348 (lcm Y4348))) (shen.precompiled-function? lcm)) (do (shen.update-lambda-table/precompiled maths.greatest 1 (freeze (lambda Y4349 (maths.greatest Y4349))) (shen.precompiled-function? maths.greatest)) (do (shen.update-lambda-table/precompiled maths.lcm-h 3 (freeze (lambda Y4350 (lambda Y4351 (lambda Y4352 (maths.lcm-h Y4350 Y4351 Y4352))))) (shen.precompiled-function? maths.lcm-h)) (do (shen.update-lambda-table/precompiled maths.lcm? 2 (freeze (lambda Y4353 (lambda Y4354 (maths.lcm? Y4353 Y4354)))) (shen.precompiled-function? maths.lcm?)) (do (shen.update-lambda-table/precompiled random 2 (freeze (lambda Y4355 (lambda Y4356 (random Y4355 Y4356)))) (shen.precompiled-function? random)) (do (shen.update-lambda-table/precompiled min 2 (freeze (lambda Y4357 (lambda Y4358 (min Y4357 Y4358)))) (shen.precompiled-function? min)) (do (shen.update-lambda-table/precompiled reseed 0 (freeze false) (shen.precompiled-function? reseed)) (do (shen.update-lambda-table/precompiled maths.bbs 1 (freeze (lambda Y4359 (maths.bbs Y4359))) (shen.precompiled-function? maths.bbs)) (do (shen.update-lambda-table/precompiled ~ 1 (freeze (lambda Y4360 (~ Y4360))) (shen.precompiled-function? ~)) (do (shen.update-lambda-table/precompiled positive? 1 (freeze (lambda Y4361 (positive? Y4361))) (shen.precompiled-function? positive?)) (do (shen.update-lambda-table/precompiled negative? 1 (freeze (lambda Y4362 (negative? Y4362))) (shen.precompiled-function? negative?)) (do (shen.update-lambda-table/precompiled natural? 1 (freeze (lambda Y4363 (natural? Y4363))) (shen.precompiled-function? natural?)) (do (shen.update-lambda-table/precompiled converge 3 (freeze (lambda Y4364 (lambda Y4365 (lambda Y4366 (converge Y4364 Y4365 Y4366))))) (shen.precompiled-function? converge)) (do (shen.update-lambda-table/precompiled maths.converge-help 4 (freeze (lambda Y4367 (lambda Y4368 (lambda Y4369 (lambda Y4370 (maths.converge-help Y4367 Y4368 Y4369 Y4370)))))) (shen.precompiled-function? maths.converge-help)) (do (shen.update-lambda-table/precompiled nthrt 3 (freeze (lambda Y4371 (lambda Y4372 (lambda Y4373 (nthrt Y4371 Y4372 Y4373))))) (shen.precompiled-function? nthrt)) (do (shen.update-lambda-table/precompiled sqrt 2 (freeze (lambda Y4374 (lambda Y4375 (sqrt Y4374 Y4375)))) (shen.precompiled-function? sqrt)) (do (shen.update-lambda-table/precompiled maths.compute-nthrt 4 (freeze (lambda Y4376 (lambda Y4377 (lambda Y4378 (lambda Y4379 (maths.compute-nthrt Y4376 Y4377 Y4378 Y4379)))))) (shen.precompiled-function? maths.compute-nthrt)) (do (shen.update-lambda-table/precompiled approx 1 (freeze (lambda Y4380 (approx Y4380))) (shen.precompiled-function? approx)) (do (shen.update-lambda-table/precompiled abs 1 (freeze (lambda Y4381 (abs Y4381))) (shen.precompiled-function? abs)) (do (shen.update-lambda-table/precompiled series 4 (freeze (lambda Y4382 (lambda Y4383 (lambda Y4384 (lambda Y4385 (series Y4382 Y4383 Y4384 Y4385)))))) (shen.precompiled-function? series)) (do (shen.update-lambda-table/precompiled maths.series-h 5 (freeze (lambda Y4386 (lambda Y4387 (lambda Y4388 (lambda Y4389 (lambda Y4390 (maths.series-h Y4386 Y4387 Y4388 Y4389 Y4390))))))) (shen.precompiled-function? maths.series-h)) (do (shen.update-lambda-table/precompiled product 3 (freeze (lambda Y4391 (lambda Y4392 (lambda Y4393 (product Y4391 Y4392 Y4393))))) (shen.precompiled-function? product)) (do (shen.update-lambda-table/precompiled summation 3 (freeze (lambda Y4394 (lambda Y4395 (lambda Y4396 (summation Y4394 Y4395 Y4396))))) (shen.precompiled-function? summation)) (do (shen.update-lambda-table/precompiled odd? 1 (freeze (lambda Y4397 (odd? Y4397))) (shen.precompiled-function? odd?)) (do (shen.update-lambda-table/precompiled even? 1 (freeze (lambda Y4398 (even? Y4398))) (shen.precompiled-function? even?)) (do (shen.update-lambda-table/precompiled maths.compute-sine 2 (freeze (lambda Y4399 (lambda Y4400 (maths.compute-sine Y4399 Y4400)))) (shen.precompiled-function? maths.compute-sine)) (do (shen.update-lambda-table/precompiled maths.compute-cos 2 (freeze (lambda Y4401 (lambda Y4402 (maths.compute-cos Y4401 Y4402)))) (shen.precompiled-function? maths.compute-cos)) (do (shen.update-lambda-table/precompiled cos 2 (freeze (lambda Y4403 (lambda Y4404 (cos Y4403 Y4404)))) (shen.precompiled-function? cos)) (do (shen.update-lambda-table/precompiled sin 2 (freeze (lambda Y4405 (lambda Y4406 (sin Y4405 Y4406)))) (shen.precompiled-function? sin)) (do (shen.update-lambda-table/precompiled tan 2 (freeze (lambda Y4407 (lambda Y4408 (tan Y4407 Y4408)))) (shen.precompiled-function? tan)) (do (shen.update-lambda-table/precompiled radians 1 (freeze (lambda Y4409 (radians Y4409))) (shen.precompiled-function? radians)) (do (shen.update-lambda-table/precompiled g 0 (freeze false) (shen.precompiled-function? g)) (do (shen.update-lambda-table/precompiled pi 0 (freeze false) (shen.precompiled-function? pi)) (do (shen.update-lambda-table/precompiled e 0 (freeze false) (shen.precompiled-function? e)) (do (shen.update-lambda-table/precompiled tan30 0 (freeze false) (shen.precompiled-function? tan30)) (do (shen.update-lambda-table/precompiled cos30 0 (freeze false) (shen.precompiled-function? cos30)) (do (shen.update-lambda-table/precompiled cos45 0 (freeze false) (shen.precompiled-function? cos45)) (do (shen.update-lambda-table/precompiled sin45 0 (freeze false) (shen.precompiled-function? sin45)) (do (shen.update-lambda-table/precompiled sqrt2 0 (freeze false) (shen.precompiled-function? sqrt2)) (do (shen.update-lambda-table/precompiled tan60 0 (freeze false) (shen.precompiled-function? tan60)) (do (shen.update-lambda-table/precompiled maths.sin60 0 (freeze false) (shen.precompiled-function? maths.sin60)) (do (shen.update-lambda-table/precompiled sin120 0 (freeze false) (shen.precompiled-function? sin120)) (do (shen.update-lambda-table/precompiled tan120 0 (freeze false) (shen.precompiled-function? tan120)) (do (shen.update-lambda-table/precompiled sin135 0 (freeze false) (shen.precompiled-function? sin135)) (do (shen.update-lambda-table/precompiled cos135 0 (freeze false) (shen.precompiled-function? cos135)) (do (shen.update-lambda-table/precompiled cos150 0 (freeze false) (shen.precompiled-function? cos150)) (do (shen.update-lambda-table/precompiled tan150 0 (freeze false) (shen.precompiled-function? tan150)) (do (shen.update-lambda-table/precompiled cos210 0 (freeze false) (shen.precompiled-function? cos210)) (do (shen.update-lambda-table/precompiled tan210 0 (freeze false) (shen.precompiled-function? tan210)) (do (shen.update-lambda-table/precompiled sin225 0 (freeze false) (shen.precompiled-function? sin225)) (do (shen.update-lambda-table/precompiled cos225 0 (freeze false) (shen.precompiled-function? cos225)) (do (shen.update-lambda-table/precompiled sin240 0 (freeze false) (shen.precompiled-function? sin240)) (do (shen.update-lambda-table/precompiled tan240 0 (freeze false) (shen.precompiled-function? tan240)) (do (shen.update-lambda-table/precompiled sin300 0 (freeze false) (shen.precompiled-function? sin300)) (do (shen.update-lambda-table/precompiled tan300 0 (freeze false) (shen.precompiled-function? tan300)) (do (shen.update-lambda-table/precompiled sin315 0 (freeze false) (shen.precompiled-function? sin315)) (do (shen.update-lambda-table/precompiled cos315 0 (freeze false) (shen.precompiled-function? cos315)) (do (shen.update-lambda-table/precompiled cos330 0 (freeze false) (shen.precompiled-function? cos330)) (do (shen.update-lambda-table/precompiled tan330 0 (freeze false) (shen.precompiled-function? tan330)) (do (shen.update-lambda-table/precompiled coth 2 (freeze (lambda Y4410 (lambda Y4411 (coth Y4410 Y4411)))) (shen.precompiled-function? coth)) (do (shen.update-lambda-table/precompiled sinh 2 (freeze (lambda Y4412 (lambda Y4413 (sinh Y4412 Y4413)))) (shen.precompiled-function? sinh)) (do (shen.update-lambda-table/precompiled cosh 2 (freeze (lambda Y4414 (lambda Y4415 (cosh Y4414 Y4415)))) (shen.precompiled-function? cosh)) (do (shen.update-lambda-table/precompiled tanh 2 (freeze (lambda Y4416 (lambda Y4417 (tanh Y4416 Y4417)))) (shen.precompiled-function? tanh)) (do (shen.update-lambda-table/precompiled sech 2 (freeze (lambda Y4418 (lambda Y4419 (sech Y4418 Y4419)))) (shen.precompiled-function? sech)) (do (shen.update-lambda-table/precompiled csch 2 (freeze (lambda Y4420 (lambda Y4421 (csch Y4420 Y4421)))) (shen.precompiled-function? csch)) (do (shen.update-lambda-table/precompiled power 2 (freeze (lambda Y4422 (lambda Y4423 (power Y4422 Y4423)))) (shen.precompiled-function? power)) (do (shen.update-lambda-table/precompiled factorial 1 (freeze (lambda Y4424 (factorial Y4424))) (shen.precompiled-function? factorial)) (do (shen.update-lambda-table/precompiled prime? 1 (freeze (lambda Y4425 (prime? Y4425))) (shen.precompiled-function? prime?)) (do (shen.update-lambda-table/precompiled maths.prime-h 3 (freeze (lambda Y4426 (lambda Y4427 (lambda Y4428 (maths.prime-h Y4426 Y4427 Y4428))))) (shen.precompiled-function? maths.prime-h)) (do (shen.update-lambda-table/precompiled maths.sign 1 (freeze (lambda Y4429 (maths.sign Y4429))) (shen.precompiled-function? maths.sign)) (do (shen.update-lambda-table/precompiled log 3 (freeze (lambda Y4430 (lambda Y4431 (lambda Y4432 (log Y4430 Y4431 Y4432))))) (shen.precompiled-function? log)) (do (shen.update-lambda-table/precompiled loge 2 (freeze (lambda Y4433 (lambda Y4434 (loge Y4433 Y4434)))) (shen.precompiled-function? loge)) (do (shen.update-lambda-table/precompiled log2 2 (freeze (lambda Y4435 (lambda Y4436 (log2 Y4435 Y4436)))) (shen.precompiled-function? log2)) (do (shen.update-lambda-table/precompiled log10 2 (freeze (lambda Y4437 (lambda Y4438 (log10 Y4437 Y4438)))) (shen.precompiled-function? log10)) (do (shen.update-lambda-table/precompiled maths.log10+ 2 (freeze (lambda Y4439 (lambda Y4440 (maths.log10+ Y4439 Y4440)))) (shen.precompiled-function? maths.log10+)) (do (shen.update-lambda-table/precompiled maths.upto 6 (freeze (lambda Y4441 (lambda Y4442 (lambda Y4443 (lambda Y4444 (lambda Y4445 (lambda Y4446 (maths.upto Y4441 Y4442 Y4443 Y4444 Y4445 Y4446)))))))) (shen.precompiled-function? maths.upto)) (do (shen.update-lambda-table/precompiled r# 2 (freeze (lambda Y4447 (lambda Y4448 (r# Y4447 Y4448)))) (shen.precompiled-function? r#)) (do (shen.update-lambda-table/precompiled rational.print-rational 1 (freeze (lambda Y4449 (rational.print-rational Y4449))) (shen.precompiled-function? rational.print-rational)) (do (shen.update-lambda-table/precompiled rational? 1 (freeze (lambda Y4450 (rational? Y4450))) (shen.precompiled-function? rational?)) (do (shen.update-lambda-table/precompiled numerator 1 (freeze (lambda Y4451 (numerator Y4451))) (shen.precompiled-function? numerator)) (do (shen.update-lambda-table/precompiled denominator 1 (freeze (lambda Y4452 (denominator Y4452))) (shen.precompiled-function? denominator)) (do (shen.update-lambda-table/precompiled r-op1 2 (freeze (lambda Y4453 (lambda Y4454 (r-op1 Y4453 Y4454)))) (shen.precompiled-function? r-op1)) (do (shen.update-lambda-table/precompiled r-op2 3 (freeze (lambda Y4455 (lambda Y4456 (lambda Y4457 (r-op2 Y4455 Y4456 Y4457))))) (shen.precompiled-function? r-op2)) (do (shen.update-lambda-table/precompiled r->n 1 (freeze (lambda Y4458 (r->n Y4458))) (shen.precompiled-function? r->n)) (do (shen.update-lambda-table/precompiled r->pair 1 (freeze (lambda Y4459 (r->pair Y4459))) (shen.precompiled-function? r->pair)) (do (shen.update-lambda-table/precompiled n->r 1 (freeze (lambda Y4460 (n->r Y4460))) (shen.precompiled-function? n->r)) (do (shen.update-lambda-table/precompiled r-reduce 1 (freeze (lambda Y4461 (r-reduce Y4461))) (shen.precompiled-function? r-reduce)) (do (shen.update-lambda-table/precompiled rational.r-reduce-help 2 (freeze (lambda Y4462 (lambda Y4463 (rational.r-reduce-help Y4462 Y4463)))) (shen.precompiled-function? rational.r-reduce-help)) (do (shen.update-lambda-table/precompiled r= 2 (freeze (lambda Y4464 (lambda Y4465 (r= Y4464 Y4465)))) (shen.precompiled-function? r=)) (do (shen.update-lambda-table/precompiled r< 2 (freeze (lambda Y4466 (lambda Y4467 (r< Y4466 Y4467)))) (shen.precompiled-function? r<)) (do (shen.update-lambda-table/precompiled r> 2 (freeze (lambda Y4468 (lambda Y4469 (r> Y4468 Y4469)))) (shen.precompiled-function? r>)) (do (shen.update-lambda-table/precompiled r>= 2 (freeze (lambda Y4470 (lambda Y4471 (r>= Y4470 Y4471)))) (shen.precompiled-function? r>=)) (do (shen.update-lambda-table/precompiled r<= 2 (freeze (lambda Y4472 (lambda Y4473 (r<= Y4472 Y4473)))) (shen.precompiled-function? r<=)) (do (shen.update-lambda-table/precompiled r+ 2 (freeze (lambda Y4474 (lambda Y4475 (r+ Y4474 Y4475)))) (shen.precompiled-function? r+)) (do (shen.update-lambda-table/precompiled r- 2 (freeze (lambda Y4476 (lambda Y4477 (r- Y4476 Y4477)))) (shen.precompiled-function? r-)) (do (shen.update-lambda-table/precompiled r* 2 (freeze (lambda Y4478 (lambda Y4479 (r* Y4478 Y4479)))) (shen.precompiled-function? r*)) (do (shen.update-lambda-table/precompiled +-inverse 1 (freeze (lambda Y4480 (+-inverse Y4480))) (shen.precompiled-function? +-inverse)) (do (shen.update-lambda-table/precompiled *-inverse 1 (freeze (lambda Y4481 (*-inverse Y4481))) (shen.precompiled-function? *-inverse)) (do (shen.update-lambda-table/precompiled r/ 2 (freeze (lambda Y4482 (lambda Y4483 (r/ Y4482 Y4483)))) (shen.precompiled-function? r/)) (do (shen.update-lambda-table/precompiled r-expt 2 (freeze (lambda Y4484 (lambda Y4485 (r-expt Y4484 Y4485)))) (shen.precompiled-function? r-expt)) (do (shen.update-lambda-table/precompiled r-approx 2 (freeze (lambda Y4486 (lambda Y4487 (r-approx Y4486 Y4487)))) (shen.precompiled-function? r-approx)) (do (shen.update-lambda-table/precompiled rational.approx-r-h 3 (freeze (lambda Y4488 (lambda Y4489 (lambda Y4490 (rational.approx-r-h Y4488 Y4489 Y4490))))) (shen.precompiled-function? rational.approx-r-h)) (do (shen.update-lambda-table/precompiled c# 2 (freeze (lambda Y4491 (lambda Y4492 (c# Y4491 Y4492)))) (shen.precompiled-function? c#)) (do (shen.update-lambda-table/precompiled complex.print-complex 1 (freeze (lambda Y4493 (complex.print-complex Y4493))) (shen.precompiled-function? complex.print-complex)) (do (shen.update-lambda-table/precompiled complex? 1 (freeze (lambda Y4494 (complex? Y4494))) (shen.precompiled-function? complex?)) (do (shen.update-lambda-table/precompiled real 1 (freeze (lambda Y4495 (real Y4495))) (shen.precompiled-function? real)) (do (shen.update-lambda-table/precompiled imaginary 1 (freeze (lambda Y4496 (imaginary Y4496))) (shen.precompiled-function? imaginary)) (do (shen.update-lambda-table/precompiled c+ 2 (freeze (lambda Y4497 (lambda Y4498 (c+ Y4497 Y4498)))) (shen.precompiled-function? c+)) (do (shen.update-lambda-table/precompiled c- 2 (freeze (lambda Y4499 (lambda Y4500 (c- Y4499 Y4500)))) (shen.precompiled-function? c-)) (do (shen.update-lambda-table/precompiled c* 2 (freeze (lambda Y4501 (lambda Y4502 (c* Y4501 Y4502)))) (shen.precompiled-function? c*)) (do (shen.update-lambda-table/precompiled c/ 2 (freeze (lambda Y4503 (lambda Y4504 (c/ Y4503 Y4504)))) (shen.precompiled-function? c/)) (do (shen.update-lambda-table/precompiled n# 2 (freeze (lambda Y4505 (lambda Y4506 (n# Y4505 Y4506)))) (shen.precompiled-function? n#)) (do (shen.update-lambda-table/precompiled radix 1 (freeze (lambda Y4507 (radix Y4507))) (shen.precompiled-function? radix)) (do (shen.update-lambda-table/precompiled numerals.numerals 1 (freeze (lambda Y4508 (numerals.numerals Y4508))) (shen.precompiled-function? numerals.numerals)) (do (shen.update-lambda-table/precompiled n#->n 1 (freeze (lambda Y4509 (n#->n Y4509))) (shen.precompiled-function? n#->n)) (do (shen.update-lambda-table/precompiled n#->ns 1 (freeze (lambda Y4510 (n#->ns Y4510))) (shen.precompiled-function? n#->ns)) (do (shen.update-lambda-table/precompiled numerals.print-numeral 1 (freeze (lambda Y4511 (numerals.print-numeral Y4511))) (shen.precompiled-function? numerals.print-numeral)) (do (shen.update-lambda-table/precompiled numerals.numeric->string 2 (freeze (lambda Y4512 (lambda Y4513 (numerals.numeric->string Y4512 Y4513)))) (shen.precompiled-function? numerals.numeric->string)) (do (shen.update-lambda-table/precompiled numeral? 1 (freeze (lambda Y4514 (numeral? Y4514))) (shen.precompiled-function? numeral?)) (do (shen.update-lambda-table/precompiled numerals.numeral-macro 1 (freeze (lambda Y4515 (numerals.numeral-macro Y4515))) (shen.precompiled-function? numerals.numeral-macro)) (do (shen.update-lambda-table/precompiled n-op2 4 (freeze (lambda Y4516 (lambda Y4517 (lambda Y4518 (lambda Y4519 (n-op2 Y4516 Y4517 Y4518 Y4519)))))) (shen.precompiled-function? n-op2)) (do (shen.update-lambda-table/precompiled n-op1 3 (freeze (lambda Y4520 (lambda Y4521 (lambda Y4522 (n-op1 Y4520 Y4521 Y4522))))) (shen.precompiled-function? n-op1)) (do (shen.update-lambda-table/precompiled n+ 3 (freeze (lambda Y4523 (lambda Y4524 (lambda Y4525 (n+ Y4523 Y4524 Y4525))))) (shen.precompiled-function? n+)) (do (shen.update-lambda-table/precompiled n* 3 (freeze (lambda Y4526 (lambda Y4527 (lambda Y4528 (n* Y4526 Y4527 Y4528))))) (shen.precompiled-function? n*)) (do (shen.update-lambda-table/precompiled n- 3 (freeze (lambda Y4529 (lambda Y4530 (lambda Y4531 (n- Y4529 Y4530 Y4531))))) (shen.precompiled-function? n-)) (do (shen.update-lambda-table/precompiled n/ 3 (freeze (lambda Y4532 (lambda Y4533 (lambda Y4534 (n/ Y4532 Y4533 Y4534))))) (shen.precompiled-function? n/)) (do (shen.update-lambda-table/precompiled binary 1 (freeze (lambda Y4535 (binary Y4535))) (shen.precompiled-function? binary)) (do (shen.update-lambda-table/precompiled hex 1 (freeze (lambda Y4536 (hex Y4536))) (shen.precompiled-function? hex)) (do (shen.update-lambda-table/precompiled octal 1 (freeze (lambda Y4537 (octal Y4537))) (shen.precompiled-function? octal)) (do (shen.update-lambda-table/precompiled duodecimal 1 (freeze (lambda Y4538 (duodecimal Y4538))) (shen.precompiled-function? duodecimal)) (do (shen.update-lambda-table/precompiled numerals.n->numeral 2 (freeze (lambda Y4539 (lambda Y4540 (numerals.n->numeral Y4539 Y4540)))) (shen.precompiled-function? numerals.n->numeral)) (do (shen.update-lambda-table/precompiled numerals.largest-expt 3 (freeze (lambda Y4541 (lambda Y4542 (lambda Y4543 (numerals.largest-expt Y4541 Y4542 Y4543))))) (shen.precompiled-function? numerals.largest-expt)) (do (shen.update-lambda-table/precompiled numerals.n-zeros 1 (freeze (lambda Y4544 (numerals.n-zeros Y4544))) (shen.precompiled-function? numerals.n-zeros)) (do (shen.update-lambda-table/precompiled numerals.add 3 (freeze (lambda Y4545 (lambda Y4546 (lambda Y4547 (numerals.add Y4545 Y4546 Y4547))))) (shen.precompiled-function? numerals.add)) (do (shen.update-lambda-table/precompiled numerals.add-h 4 (freeze (lambda Y4548 (lambda Y4549 (lambda Y4550 (lambda Y4551 (numerals.add-h Y4548 Y4549 Y4550 Y4551)))))) (shen.precompiled-function? numerals.add-h)) (do (shen.update-lambda-table/precompiled assoc-if 2 (freeze (lambda Y4552 (lambda Y4553 (assoc-if Y4552 Y4553)))) (shen.precompiled-function? assoc-if)) (do (shen.update-lambda-table/precompiled assoc-if-not 2 (freeze (lambda Y4554 (lambda Y4555 (assoc-if-not Y4554 Y4555)))) (shen.precompiled-function? assoc-if-not)) (do (shen.update-lambda-table/precompiled drop 2 (freeze (lambda Y4556 (lambda Y4557 (drop Y4556 Y4557)))) (shen.precompiled-function? drop)) (do (shen.update-lambda-table/precompiled drop-last 2 (freeze (lambda Y4558 (lambda Y4559 (drop-last Y4558 Y4559)))) (shen.precompiled-function? drop-last)) (do (shen.update-lambda-table/precompiled index 2 (freeze (lambda Y4560 (lambda Y4561 (index Y4560 Y4561)))) (shen.precompiled-function? index)) (do (shen.update-lambda-table/precompiled list.index-h 3 (freeze (lambda Y4562 (lambda Y4563 (lambda Y4564 (list.index-h Y4562 Y4563 Y4564))))) (shen.precompiled-function? list.index-h)) (do (shen.update-lambda-table/precompiled index-last 2 (freeze (lambda Y4565 (lambda Y4566 (index-last Y4565 Y4566)))) (shen.precompiled-function? index-last)) (do (shen.update-lambda-table/precompiled insert 3 (freeze (lambda Y4567 (lambda Y4568 (lambda Y4569 (insert Y4567 Y4568 Y4569))))) (shen.precompiled-function? insert)) (do (shen.update-lambda-table/precompiled remove-duplicates 1 (freeze (lambda Y4570 (remove-duplicates Y4570))) (shen.precompiled-function? remove-duplicates)) (do (shen.update-lambda-table/precompiled trim-left-if 2 (freeze (lambda Y4571 (lambda Y4572 (trim-left-if Y4571 Y4572)))) (shen.precompiled-function? trim-left-if)) (do (shen.update-lambda-table/precompiled trim-right-if 2 (freeze (lambda Y4573 (lambda Y4574 (trim-right-if Y4573 Y4574)))) (shen.precompiled-function? trim-right-if)) (do (shen.update-lambda-table/precompiled trim-if 2 (freeze (lambda Y4575 (lambda Y4576 (trim-if Y4575 Y4576)))) (shen.precompiled-function? trim-if)) (do (shen.update-lambda-table/precompiled trim-left 2 (freeze (lambda Y4577 (lambda Y4578 (trim-left Y4577 Y4578)))) (shen.precompiled-function? trim-left)) (do (shen.update-lambda-table/precompiled trim-right 2 (freeze (lambda Y4579 (lambda Y4580 (trim-right Y4579 Y4580)))) (shen.precompiled-function? trim-right)) (do (shen.update-lambda-table/precompiled trim 2 (freeze (lambda Y4581 (lambda Y4582 (trim Y4581 Y4582)))) (shen.precompiled-function? trim)) (do (shen.update-lambda-table/precompiled prefix? 2 (freeze (lambda Y4583 (lambda Y4584 (prefix? Y4583 Y4584)))) (shen.precompiled-function? prefix?)) (do (shen.update-lambda-table/precompiled infix? 2 (freeze (lambda Y4585 (lambda Y4586 (infix? Y4585 Y4586)))) (shen.precompiled-function? infix?)) (do (shen.update-lambda-table/precompiled suffix? 2 (freeze (lambda Y4587 (lambda Y4588 (suffix? Y4587 Y4588)))) (shen.precompiled-function? suffix?)) (do (shen.update-lambda-table/precompiled subset? 2 (freeze (lambda Y4589 (lambda Y4590 (subset? Y4589 Y4590)))) (shen.precompiled-function? subset?)) (do (shen.update-lambda-table/precompiled set=? 2 (freeze (lambda Y4591 (lambda Y4592 (set=? Y4591 Y4592)))) (shen.precompiled-function? set=?)) (do (shen.update-lambda-table/precompiled set? 1 (freeze (lambda Y4593 (set? Y4593))) (shen.precompiled-function? set?)) (do (shen.update-lambda-table/precompiled n-times 2 (freeze (lambda Y4594 (lambda Y4595 (n-times Y4594 Y4595)))) (shen.precompiled-function? n-times)) (do (shen.update-lambda-table/precompiled list.n-times-h 3 (freeze (lambda Y4596 (lambda Y4597 (lambda Y4598 (list.n-times-h Y4596 Y4597 Y4598))))) (shen.precompiled-function? list.n-times-h)) (do (shen.update-lambda-table/precompiled subbag? 2 (freeze (lambda Y4599 (lambda Y4600 (subbag? Y4599 Y4600)))) (shen.precompiled-function? subbag?)) (do (shen.update-lambda-table/precompiled bag=? 2 (freeze (lambda Y4601 (lambda Y4602 (bag=? Y4601 Y4602)))) (shen.precompiled-function? bag=?)) (do (shen.update-lambda-table/precompiled mapc 2 (freeze (lambda Y4603 (lambda Y4604 (mapc Y4603 Y4604)))) (shen.precompiled-function? mapc)) (do (shen.update-lambda-table/precompiled permute 1 (freeze (lambda Y4605 (permute Y4605))) (shen.precompiled-function? permute)) (do (shen.update-lambda-table/precompiled count-if 2 (freeze (lambda Y4606 (lambda Y4607 (count-if Y4606 Y4607)))) (shen.precompiled-function? count-if)) (do (shen.update-lambda-table/precompiled count 2 (freeze (lambda Y4608 (lambda Y4609 (count Y4608 Y4609)))) (shen.precompiled-function? count)) (do (shen.update-lambda-table/precompiled some? 2 (freeze (lambda Y4610 (lambda Y4611 (some? Y4610 Y4611)))) (shen.precompiled-function? some?)) (do (shen.update-lambda-table/precompiled every? 2 (freeze (lambda Y4612 (lambda Y4613 (every? Y4612 Y4613)))) (shen.precompiled-function? every?)) (do (shen.update-lambda-table/precompiled sort 2 (freeze (lambda Y4614 (lambda Y4615 (sort Y4614 Y4615)))) (shen.precompiled-function? sort)) (do (shen.update-lambda-table/precompiled find 2 (freeze (lambda Y4616 (lambda Y4617 (find Y4616 Y4617)))) (shen.precompiled-function? find)) (do (shen.update-lambda-table/precompiled foldr 3 (freeze (lambda Y4618 (lambda Y4619 (lambda Y4620 (foldr Y4618 Y4619 Y4620))))) (shen.precompiled-function? foldr)) (do (shen.update-lambda-table/precompiled foldl 3 (freeze (lambda Y4621 (lambda Y4622 (lambda Y4623 (foldl Y4621 Y4622 Y4623))))) (shen.precompiled-function? foldl)) (do (shen.update-lambda-table/precompiled mapf 3 (freeze (lambda Y4624 (lambda Y4625 (lambda Y4626 (mapf Y4624 Y4625 Y4626))))) (shen.precompiled-function? mapf)) (do (shen.update-lambda-table/precompiled filter 2 (freeze (lambda Y4627 (lambda Y4628 (filter Y4627 Y4628)))) (shen.precompiled-function? filter)) (do (shen.update-lambda-table/precompiled remove-if 2 (freeze (lambda Y4629 (lambda Y4630 (remove-if Y4629 Y4630)))) (shen.precompiled-function? remove-if)) (do (shen.update-lambda-table/precompiled list.reduce 3 (freeze (lambda Y4631 (lambda Y4632 (lambda Y4633 (list.reduce Y4631 Y4632 Y4633))))) (shen.precompiled-function? list.reduce)) (do (shen.update-lambda-table/precompiled take 2 (freeze (lambda Y4634 (lambda Y4635 (take Y4634 Y4635)))) (shen.precompiled-function? take)) (do (shen.update-lambda-table/precompiled take-last 2 (freeze (lambda Y4636 (lambda Y4637 (take-last Y4636 Y4637)))) (shen.precompiled-function? take-last)) (do (shen.update-lambda-table/precompiled cartprod 2 (freeze (lambda Y4638 (lambda Y4639 (cartprod Y4638 Y4639)))) (shen.precompiled-function? cartprod)) (do (shen.update-lambda-table/precompiled powerset 1 (freeze (lambda Y4640 (powerset Y4640))) (shen.precompiled-function? powerset)) (do (shen.update-lambda-table/precompiled partition 2 (freeze (lambda Y4641 (lambda Y4642 (partition Y4641 Y4642)))) (shen.precompiled-function? partition)) (do (shen.update-lambda-table/precompiled transitive-closure 1 (freeze (lambda Y4643 (transitive-closure Y4643))) (shen.precompiled-function? transitive-closure)) (do (shen.update-lambda-table/precompiled list.transitive-pass 2 (freeze (lambda Y4644 (lambda Y4645 (list.transitive-pass Y4644 Y4645)))) (shen.precompiled-function? list.transitive-pass)) (do (shen.update-lambda-table/precompiled list.find-trans 3 (freeze (lambda Y4646 (lambda Y4647 (lambda Y4648 (list.find-trans Y4646 Y4647 Y4648))))) (shen.precompiled-function? list.find-trans)) (do (shen.update-lambda-table/precompiled x->ascii 1 (freeze (lambda Y4649 (x->ascii Y4649))) (shen.precompiled-function? x->ascii)) (do (shen.update-lambda-table/precompiled splice 3 (freeze (lambda Y4650 (lambda Y4651 (lambda Y4652 (splice Y4650 Y4651 Y4652))))) (shen.precompiled-function? splice)) (do (shen.update-lambda-table/precompiled string-macros 1 (freeze (lambda Y4653 (string-macros Y4653))) (shen.precompiled-function? string-macros)) (do (shen.update-lambda-table/precompiled string->list 1 (freeze (lambda Y4654 (string->list Y4654))) (shen.precompiled-function? string->list)) (do (shen.update-lambda-table/precompiled string.s->l-h 4 (freeze (lambda Y4655 (lambda Y4656 (lambda Y4657 (lambda Y4658 (string.s->l-h Y4655 Y4656 Y4657 Y4658)))))) (shen.precompiled-function? string.s->l-h)) (do (shen.update-lambda-table/precompiled list->string 1 (freeze (lambda Y4659 (list->string Y4659))) (shen.precompiled-function? list->string)) (do (shen.update-lambda-table/precompiled s-op1 3 (freeze (lambda Y4660 (lambda Y4661 (lambda Y4662 (s-op1 Y4660 Y4661 Y4662))))) (shen.precompiled-function? s-op1)) (do (shen.update-lambda-table/precompiled s-op2 4 (freeze (lambda Y4663 (lambda Y4664 (lambda Y4665 (lambda Y4666 (s-op2 Y4663 Y4664 Y4665 Y4666)))))) (shen.precompiled-function? s-op2)) (do (shen.update-lambda-table/precompiled string.count 2 (freeze (lambda Y4667 (lambda Y4668 (string.count Y4667 Y4668)))) (shen.precompiled-function? string.count)) (do (shen.update-lambda-table/precompiled string.reverse 1 (freeze (lambda Y4669 (string.reverse Y4669))) (shen.precompiled-function? string.reverse)) (do (shen.update-lambda-table/precompiled string.element? 2 (freeze (lambda Y4670 (lambda Y4671 (string.element? Y4670 Y4671)))) (shen.precompiled-function? string.element?)) (do (shen.update-lambda-table/precompiled string.prefix? 2 (freeze (lambda Y4672 (lambda Y4673 (string.prefix? Y4672 Y4673)))) (shen.precompiled-function? string.prefix?)) (do (shen.update-lambda-table/precompiled string.infix? 2 (freeze (lambda Y4674 (lambda Y4675 (string.infix? Y4674 Y4675)))) (shen.precompiled-function? string.infix?)) (do (shen.update-lambda-table/precompiled string.suffix? 2 (freeze (lambda Y4676 (lambda Y4677 (string.suffix? Y4676 Y4677)))) (shen.precompiled-function? string.suffix?)) (do (shen.update-lambda-table/precompiled string.subset? 2 (freeze (lambda Y4678 (lambda Y4679 (string.subset? Y4678 Y4679)))) (shen.precompiled-function? string.subset?)) (do (shen.update-lambda-table/precompiled string.set=? 2 (freeze (lambda Y4680 (lambda Y4681 (string.set=? Y4680 Y4681)))) (shen.precompiled-function? string.set=?)) (do (shen.update-lambda-table/precompiled string.set? 1 (freeze (lambda Y4682 (string.set? Y4682))) (shen.precompiled-function? string.set?)) (do (shen.update-lambda-table/precompiled file-extension 2 (freeze (lambda Y4683 (lambda Y4684 (file-extension Y4683 Y4684)))) (shen.precompiled-function? file-extension)) (do (shen.update-lambda-table/precompiled strip-extension 1 (freeze (lambda Y4685 (strip-extension Y4685))) (shen.precompiled-function? strip-extension)) (do (shen.update-lambda-table/precompiled string.length 1 (freeze (lambda Y4686 (string.length Y4686))) (shen.precompiled-function? string.length)) (do (shen.update-lambda-table/precompiled string.trim 2 (freeze (lambda Y4687 (lambda Y4688 (string.trim Y4687 Y4688)))) (shen.precompiled-function? string.trim)) (do (shen.update-lambda-table/precompiled string.trim-if 2 (freeze (lambda Y4689 (lambda Y4690 (string.trim-if Y4689 Y4690)))) (shen.precompiled-function? string.trim-if)) (do (shen.update-lambda-table/precompiled string.trim-right-if 2 (freeze (lambda Y4691 (lambda Y4692 (string.trim-right-if Y4691 Y4692)))) (shen.precompiled-function? string.trim-right-if)) (do (shen.update-lambda-table/precompiled string.trim-left-if 2 (freeze (lambda Y4693 (lambda Y4694 (string.trim-left-if Y4693 Y4694)))) (shen.precompiled-function? string.trim-left-if)) (do (shen.update-lambda-table/precompiled string.trim-right 2 (freeze (lambda Y4695 (lambda Y4696 (string.trim-right Y4695 Y4696)))) (shen.precompiled-function? string.trim-right)) (do (shen.update-lambda-table/precompiled string.trim-left 2 (freeze (lambda Y4697 (lambda Y4698 (string.trim-left Y4697 Y4698)))) (shen.precompiled-function? string.trim-left)) (do (shen.update-lambda-table/precompiled string.some? 2 (freeze (lambda Y4699 (lambda Y4700 (string.some? Y4699 Y4700)))) (shen.precompiled-function? string.some?)) (do (shen.update-lambda-table/precompiled string.every? 2 (freeze (lambda Y4701 (lambda Y4702 (string.every? Y4701 Y4702)))) (shen.precompiled-function? string.every?)) (do (shen.update-lambda-table/precompiled string.difference 2 (freeze (lambda Y4703 (lambda Y4704 (string.difference Y4703 Y4704)))) (shen.precompiled-function? string.difference)) (do (shen.update-lambda-table/precompiled string.intersection 2 (freeze (lambda Y4705 (lambda Y4706 (string.intersection Y4705 Y4706)))) (shen.precompiled-function? string.intersection)) (do (shen.update-lambda-table/precompiled string.nth 2 (freeze (lambda Y4707 (lambda Y4708 (string.nth Y4707 Y4708)))) (shen.precompiled-function? string.nth)) (do (shen.update-lambda-table/precompiled whitespace? 1 (freeze (lambda Y4709 (whitespace? Y4709))) (shen.precompiled-function? whitespace?)) (do (shen.update-lambda-table/precompiled uppercase? 1 (freeze (lambda Y4710 (uppercase? Y4710))) (shen.precompiled-function? uppercase?)) (do (shen.update-lambda-table/precompiled lowercase? 1 (freeze (lambda Y4711 (lowercase? Y4711))) (shen.precompiled-function? lowercase?)) (do (shen.update-lambda-table/precompiled digit? 1 (freeze (lambda Y4712 (digit? Y4712))) (shen.precompiled-function? digit?)) (do (shen.update-lambda-table/precompiled alpha? 1 (freeze (lambda Y4713 (alpha? Y4713))) (shen.precompiled-function? alpha?)) (do (shen.update-lambda-table/precompiled alphanum? 1 (freeze (lambda Y4714 (alphanum? Y4714))) (shen.precompiled-function? alphanum?)) (do (shen.update-lambda-table/precompiled tokenise 2 (freeze (lambda Y4715 (lambda Y4716 (tokenise Y4715 Y4716)))) (shen.precompiled-function? tokenise)) (do (shen.update-lambda-table/precompiled string.tokenise-h 3 (freeze (lambda Y4717 (lambda Y4718 (lambda Y4719 (string.tokenise-h Y4717 Y4718 Y4719))))) (shen.precompiled-function? string.tokenise-h)) (do (shen.update-lambda-table/precompiled uppercase 1 (freeze (lambda Y4720 (uppercase Y4720))) (shen.precompiled-function? uppercase)) (do (shen.update-lambda-table/precompiled lowercase 1 (freeze (lambda Y4721 (lowercase Y4721))) (shen.precompiled-function? lowercase)) (do (shen.update-lambda-table/precompiled string.map 2 (freeze (lambda Y4722 (lambda Y4723 (string.map Y4722 Y4723)))) (shen.precompiled-function? string.map)) (do (shen.update-lambda-table/precompiled spell-number 1 (freeze (lambda Y4724 (spell-number Y4724))) (shen.precompiled-function? spell-number)) (do (shen.update-lambda-table/precompiled string.digit 1 (freeze (lambda Y4725 (string.digit Y4725))) (shen.precompiled-function? string.digit)) (do (shen.update-lambda-table/precompiled string.triples 1 (freeze (lambda Y4726 (string.triples Y4726))) (shen.precompiled-function? string.triples)) (do (shen.update-lambda-table/precompiled string.triples-h 2 (freeze (lambda Y4727 (lambda Y4728 (string.triples-h Y4727 Y4728)))) (shen.precompiled-function? string.triples-h)) (do (shen.update-lambda-table/precompiled string.digits 1 (freeze (lambda Y4729 (string.digits Y4729))) (shen.precompiled-function? string.digits)) (do (shen.update-lambda-table/precompiled string.tens 2 (freeze (lambda Y4730 (lambda Y4731 (string.tens Y4730 Y4731)))) (shen.precompiled-function? string.tens)) (do (shen.update-lambda-table/precompiled string.scale 1 (freeze (lambda Y4732 (string.scale Y4732))) (shen.precompiled-function? string.scale)) (do (shen.update-lambda-table/precompiled string.units 1 (freeze (lambda Y4733 (string.units Y4733))) (shen.precompiled-function? string.units)) (do (shen.update-lambda-table/precompiled string>? 2 (freeze (lambda Y4734 (lambda Y4735 (string>? Y4734 Y4735)))) (shen.precompiled-function? string>?)) (do (shen.update-lambda-table/precompiled string=? 2 (freeze (lambda Y4738 (lambda Y4739 (string>=? Y4738 Y4739)))) (shen.precompiled-function? string>=?)) (do (shen.update-lambda-table/precompiled string<=? 2 (freeze (lambda Y4740 (lambda Y4741 (string<=? Y4740 Y4741)))) (shen.precompiled-function? string<=?)) (do (shen.update-lambda-table/precompiled render-file 2 (freeze (lambda Y4742 (lambda Y4743 (render-file Y4742 Y4743)))) (shen.precompiled-function? render-file)) (do (shen.update-lambda-table/precompiled string.bytes->strings 2 (freeze (lambda Y4744 (lambda Y4745 (string.bytes->strings Y4744 Y4745)))) (shen.precompiled-function? string.bytes->strings)) (do (shen.update-lambda-table/precompiled render 1 (freeze (lambda Y4746 (render Y4746))) (shen.precompiled-function? render)) (do (shen.update-lambda-table/precompiled string.rendered? 1 (freeze (lambda Y4747 (string.rendered? Y4747))) (shen.precompiled-function? string.rendered?)) (do (shen.update-lambda-table/precompiled string. 1 (freeze (lambda Y4748 (string. Y4748))) (shen.precompiled-function? string.)) (do (shen.update-lambda-table/precompiled string. 1 (freeze (lambda Y4749 (string. Y4749))) (shen.precompiled-function? string.)) (do (shen.update-lambda-table/precompiled string.recapply 2 (freeze (lambda Y4750 (lambda Y4751 (string.recapply Y4750 Y4751)))) (shen.precompiled-function? string.recapply)) (do (shen.update-lambda-table/precompiled string. 1 (freeze (lambda Y4752 (string. Y4752))) (shen.precompiled-function? string.)) (do (shen.update-lambda-table/precompiled string. 1 (freeze (lambda Y4753 (string. Y4753))) (shen.precompiled-function? string.)) (do (shen.update-lambda-table/precompiled string. 1 (freeze (lambda Y4754 (string. Y4754))) (shen.precompiled-function? string.)) (do (shen.update-lambda-table/precompiled string. 1 (freeze (lambda Y4755 (string. Y4755))) (shen.precompiled-function? string.)) (do (shen.update-lambda-table/precompiled string. 1 (freeze (lambda Y4756 (string. Y4756))) (shen.precompiled-function? string.)) (do (shen.update-lambda-table/precompiled string. 1 (freeze (lambda Y4757 (string. Y4757))) (shen.precompiled-function? string.)) (do (shen.update-lambda-table/precompiled vector.vector-macros 1 (freeze (lambda Y4758 (vector.vector-macros Y4758))) (shen.precompiled-function? vector.vector-macros)) (do (shen.update-lambda-table/precompiled print.pprint-macro 1 (freeze (lambda Y4759 (print.pprint-macro Y4759))) (shen.precompiled-function? print.pprint-macro)) (do (shen.update-lambda-table/precompiled linelength 0 (freeze false) (shen.precompiled-function? linelength)) (do (shen.update-lambda-table/precompiled indentation 0 (freeze false) (shen.precompiled-function? indentation)) (do (shen.update-lambda-table/precompiled set-linelength 1 (freeze (lambda Y4760 (set-linelength Y4760))) (shen.precompiled-function? set-linelength)) (do (shen.update-lambda-table/precompiled set-indentation 1 (freeze (lambda Y4761 (set-indentation Y4761))) (shen.precompiled-function? set-indentation)) (do (shen.update-lambda-table/precompiled pps 2 (freeze (lambda Y4762 (lambda Y4763 (pps Y4762 Y4763)))) (shen.precompiled-function? pps)) (do (shen.update-lambda-table/precompiled pprint 2 (freeze (lambda Y4764 (lambda Y4765 (pprint Y4764 Y4765)))) (shen.precompiled-function? pprint)) (do (shen.update-lambda-table/precompiled pretty-string 1 (freeze (lambda Y4766 (pretty-string Y4766))) (shen.precompiled-function? pretty-string)) (do (shen.update-lambda-table/precompiled print.pretty-string-h 3 (freeze (lambda Y4767 (lambda Y4768 (lambda Y4769 (print.pretty-string-h Y4767 Y4768 Y4769))))) (shen.precompiled-function? print.pretty-string-h)) (do (shen.update-lambda-table/precompiled print.indent 1 (freeze (lambda Y4770 (print.indent Y4770))) (shen.precompiled-function? print.indent)) (do (shen.update-lambda-table/precompiled print.indent-h 1 (freeze (lambda Y4771 (print.indent-h Y4771))) (shen.precompiled-function? print.indent-h)) (do (shen.update-lambda-table/precompiled print.n-space 1 (freeze (lambda Y4772 (print.n-space Y4772))) (shen.precompiled-function? print.n-space)) (do (shen.update-lambda-table/precompiled delete-file 1 (freeze (lambda Y4773 (delete-file Y4773))) (shen.precompiled-function? delete-file)) (do (shen.update-lambda-table/precompiled file.file-macro 1 (freeze (lambda Y4774 (file.file-macro Y4774))) (shen.precompiled-function? file.file-macro)) (do (shen.update-lambda-table/precompiled append-files 2 (freeze (lambda Y4775 (lambda Y4776 (append-files Y4775 Y4776)))) (shen.precompiled-function? append-files)) (do (shen.update-lambda-table/precompiled append-files-with-open-stream 2 (freeze (lambda Y4777 (lambda Y4778 (append-files-with-open-stream Y4777 Y4778)))) (shen.precompiled-function? append-files-with-open-stream)) (do (shen.update-lambda-table/precompiled file.read&write 2 (freeze (lambda Y4779 (lambda Y4780 (file.read&write Y4779 Y4780)))) (shen.precompiled-function? file.read&write)) (do (shen.update-lambda-table/precompiled file.read&write-h 3 (freeze (lambda Y4781 (lambda Y4782 (lambda Y4783 (file.read&write-h Y4781 Y4782 Y4783))))) (shen.precompiled-function? file.read&write-h)) (do (shen.update-lambda-table/precompiled reopen 1 (freeze (lambda Y4784 (reopen Y4784))) (shen.precompiled-function? reopen)) (do (shen.update-lambda-table/precompiled copy-file 2 (freeze (lambda Y4785 (lambda Y4786 (copy-file Y4785 Y4786)))) (shen.precompiled-function? copy-file)) (do (shen.update-lambda-table/precompiled copy-file-with-open-stream 2 (freeze (lambda Y4787 (lambda Y4788 (copy-file-with-open-stream Y4787 Y4788)))) (shen.precompiled-function? copy-file-with-open-stream)) (do (shen.update-lambda-table/precompiled file-exists? 1 (freeze (lambda Y4789 (file-exists? Y4789))) (shen.precompiled-function? file-exists?)) (do (shen.update-lambda-table/precompiled file-size 1 (freeze (lambda Y4790 (file-size Y4790))) (shen.precompiled-function? file-size)) (do (shen.update-lambda-table/precompiled file.file-size-loop 3 (freeze (lambda Y4791 (lambda Y4792 (lambda Y4793 (file.file-size-loop Y4791 Y4792 Y4793))))) (shen.precompiled-function? file.file-size-loop)) (do (shen.update-lambda-table/precompiled ascii 3 (freeze (lambda Y4794 (lambda Y4795 (lambda Y4796 (ascii Y4794 Y4795 Y4796))))) (shen.precompiled-function? ascii)) (do (shen.update-lambda-table/precompiled file.scan-bytes 4 (freeze (lambda Y4797 (lambda Y4798 (lambda Y4799 (lambda Y4800 (file.scan-bytes Y4797 Y4798 Y4799 Y4800)))))) (shen.precompiled-function? file.scan-bytes)) (do (shen.update-lambda-table/precompiled pairoff 2 (freeze (lambda Y4801 (lambda Y4802 (pairoff Y4801 Y4802)))) (shen.precompiled-function? pairoff)) (do (shen.update-lambda-table/precompiled assocp 2 (freeze (lambda Y4803 (lambda Y4804 (assocp Y4803 Y4804)))) (shen.precompiled-function? assocp)) (do (shen.update-lambda-table/precompiled cartprodp 2 (freeze (lambda Y4805 (lambda Y4806 (cartprodp Y4805 Y4806)))) (shen.precompiled-function? cartprodp)) (do (shen.update-lambda-table/precompiled assocp-if 2 (freeze (lambda Y4807 (lambda Y4808 (assocp-if Y4807 Y4808)))) (shen.precompiled-function? assocp-if)) (shen.update-lambda-table/precompiled assocp-if-not 2 (freeze (lambda Y4809 (lambda Y4810 (assocp-if-not Y4809 Y4810)))) (shen.precompiled-function? assocp-if-not))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) (defun stlib.initialise-macros () (do (shen.record-macro maths.maths-macro (lambda X (maths.maths-macro X))) (do (shen.record-macro numerals.numeral-macro (lambda X (numerals.numeral-macro X))) (do (shen.record-macro string-macros (lambda X (string-macros X))) (do (shen.record-macro vector.vector-macros (lambda X (vector.vector-macros X))) (do (shen.record-macro print.pprint-macro (lambda X (print.pprint-macro X))) (shen.record-macro file.file-macro (lambda X (file.file-macro X))))))))) @@ -658,27 +658,27 @@ (defun stlib.initialise-datatypes () (do (shen.process-datatype maths.maths (cons _________________ (cons (cons value (cons maths.*seed* ())) (cons : (cons number (cons ; (cons _______________________ (cons (cons value (cons maths.*tolerance* ())) (cons : (cons number (cons ; ()))))))))))) (shen.process-datatype print (cons _______________________________ (cons (cons value (cons print.*indentation* ())) (cons : (cons number (cons ; (cons _______________________________ (cons (cons value (cons print.*linelength* ())) (cons : (cons number (cons ; ()))))))))))))) -(defun stlib.initialise-types () (do (declare concat* (cons A (cons --> (cons (cons B (cons --> (cons symbol ()))) ())))) (do (declare newv (cons --> (cons symbol ()))) (do (declare set-tolerance (cons number (cons --> (cons number ())))) (do (declare tolerance (cons --> (cons number ()))) (do (declare sq (cons number (cons --> (cons number ())))) (do (declare cube (cons number (cons --> (cons number ())))) (do (declare for (cons number (cons --> (cons (cons (cons number (cons --> (cons boolean ()))) (cons --> (cons (cons (cons number (cons --> (cons (protect A) ()))) (cons --> (cons (cons (cons number (cons --> (cons number ()))) (cons --> (cons (cons (cons (protect A) (cons --> (cons (cons (protect A) (cons --> (cons (protect A) ()))) ()))) (cons --> (cons (protect A) ()))) ()))) ()))) ()))) ())))) (do (declare maths.for-h (cons number (cons --> (cons (cons (cons number (cons --> (cons boolean ()))) (cons --> (cons (cons (cons number (cons --> (cons (protect A) ()))) (cons --> (cons (cons (cons number (cons --> (cons number ()))) (cons --> (cons (cons (cons (protect A) (cons --> (cons (cons (protect A) (cons --> (cons (protect A) ()))) ()))) (cons --> (cons (cons (protect A) (cons --> (cons (protect A) ()))) ()))) ()))) ()))) ()))) ())))) (do (declare maths.lazyfor-and (cons number (cons --> (cons (cons (cons number (cons --> (cons boolean ()))) (cons --> (cons (cons (cons number (cons --> (cons boolean ()))) (cons --> (cons (cons (cons number (cons --> (cons number ()))) (cons --> (cons boolean ()))) ()))) ()))) ())))) (do (declare maths.lazyfor-or (cons number (cons --> (cons (cons (cons number (cons --> (cons boolean ()))) (cons --> (cons (cons (cons number (cons --> (cons boolean ()))) (cons --> (cons (cons (cons number (cons --> (cons number ()))) (cons --> (cons boolean ()))) ()))) ()))) ())))) (do (declare max (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ())))) (do (declare min (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ())))) (do (declare expt (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ())))) (do (declare maths.n->r (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons * (cons number ()))) ()))) ())))) (do (declare maths.expt-h (cons number (cons --> (cons (cons (cons number (cons * (cons number ()))) (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ())))) (do (declare gcd (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ())))) (do (declare maths.gcd-help (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ())))) (do (declare maths.gcd-loop (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ())))) (do (declare lcd (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ())))) (do (declare maths.lcd-loop (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ()))) ())))) (do (declare isqrt (cons number (cons --> (cons number ())))) (do (declare maths.isqrt-loop (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ())))) (do (declare div (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ())))) (do (declare modf (cons number (cons --> (cons (cons number (cons * (cons number ()))) ())))) (do (declare floor (cons number (cons --> (cons number ())))) (do (declare maths.rounding-loop (cons symbol (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ()))) ())))) (do (declare maths.float->pair (cons number (cons --> (cons (cons number (cons * (cons number ()))) ())))) (do (declare ceiling (cons number (cons --> (cons number ())))) (do (declare round (cons number (cons --> (cons number ())))) (do (declare mod (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ())))) (do (declare lcm (cons (cons list (cons number ())) (cons --> (cons number ())))) (do (declare maths.greatest (cons (cons list (cons number ())) (cons --> (cons number ())))) (do (declare maths.lcm-h (cons number (cons --> (cons (cons number (cons --> (cons (cons (cons list (cons number ())) (cons --> (cons number ()))) ()))) ())))) (do (declare maths.lcm? (cons number (cons --> (cons (cons (cons list (cons number ())) (cons --> (cons boolean ()))) ())))) (do (declare random (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ())))) (do (declare min (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ())))) (do (declare reseed (cons --> (cons number ()))) (do (declare maths.bbs (cons number (cons --> (cons number ())))) (do (declare ~ (cons number (cons --> (cons number ())))) (do (declare positive? (cons number (cons --> (cons boolean ())))) (do (declare negative? (cons number (cons --> (cons boolean ())))) (do (declare natural? (cons number (cons --> (cons boolean ())))) (do (declare converge (cons (protect A) (cons --> (cons (cons (cons (protect A) (cons --> (cons (protect A) ()))) (cons --> (cons (cons (cons (protect A) (cons --> (cons (cons (protect A) (cons --> (cons boolean ()))) ()))) (cons --> (cons (protect A) ()))) ()))) ())))) (do (declare maths.converge-help (cons (cons (protect A) (cons --> (cons (protect A) ()))) (cons --> (cons (cons (protect A) (cons --> (cons (cons (protect A) (cons --> (cons (cons (cons (protect A) (cons --> (cons (cons (protect A) (cons --> (cons boolean ()))) ()))) (cons --> (cons (protect A) ()))) ()))) ()))) ())))) (do (declare nthrt (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ())))) (do (declare sqrt (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ())))) (do (declare maths.compute-nthrt (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ()))) ())))) (do (declare approx (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons boolean ()))) ()))) ())))) (do (declare abs (cons number (cons --> (cons number ())))) (do (declare series (cons number (cons --> (cons (cons (cons number (cons --> (cons number ()))) (cons --> (cons (cons number (cons --> (cons (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (cons --> (cons number ()))) ()))) ()))) ())))) (do (declare maths.series-h (cons number (cons --> (cons (cons number (cons --> (cons (cons (cons number (cons --> (cons number ()))) (cons --> (cons (cons number (cons --> (cons (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (cons --> (cons number ()))) ()))) ()))) ()))) ())))) (do (declare product (cons number (cons --> (cons (cons (cons number (cons --> (cons number ()))) (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ())))) (do (declare summation (cons number (cons --> (cons (cons (cons number (cons --> (cons number ()))) (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ())))) (do (declare odd? (cons number (cons --> (cons boolean ())))) (do (declare even? (cons number (cons --> (cons boolean ())))) (do (declare maths.compute-sine (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ())))) (do (declare maths.compute-cos (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ())))) (do (declare cos (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ())))) (do (declare sin (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ())))) (do (declare tan (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ())))) (do (declare radians (cons number (cons --> (cons number ())))) (do (declare g (cons --> (cons number ()))) (do (declare pi (cons --> (cons number ()))) (do (declare e (cons --> (cons number ()))) (do (declare tan30 (cons --> (cons number ()))) (do (declare cos30 (cons --> (cons number ()))) (do (declare cos45 (cons --> (cons number ()))) (do (declare sin45 (cons --> (cons number ()))) (do (declare sqrt2 (cons --> (cons number ()))) (do (declare tan60 (cons --> (cons number ()))) (do (declare maths.sin60 (cons --> (cons number ()))) (do (declare sin120 (cons --> (cons number ()))) (do (declare tan120 (cons --> (cons number ()))) (do (declare sin135 (cons --> (cons number ()))) (do (declare cos135 (cons --> (cons number ()))) (do (declare cos150 (cons --> (cons number ()))) (do (declare tan150 (cons --> (cons number ()))) (do (declare cos210 (cons --> (cons number ()))) (do (declare tan210 (cons --> (cons number ()))) (do (declare sin225 (cons --> (cons number ()))) (do (declare cos225 (cons --> (cons number ()))) (do (declare sin240 (cons --> (cons number ()))) (do (declare tan240 (cons --> (cons number ()))) (do (declare sin300 (cons --> (cons number ()))) (do (declare tan300 (cons --> (cons number ()))) (do (declare sin315 (cons --> (cons number ()))) (do (declare cos315 (cons --> (cons number ()))) (do (declare cos330 (cons --> (cons number ()))) (do (declare tan330 (cons --> (cons number ()))) (do (declare coth (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ())))) (do (declare sinh (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ())))) (do (declare cosh (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ())))) (do (declare tanh (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ())))) (do (declare sech (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ())))) (do (declare csch (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ())))) (do (declare power (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ())))) (do (declare factorial (cons number (cons --> (cons number ())))) (do (declare prime? (cons number (cons --> (cons boolean ())))) (do (declare maths.prime-h (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons boolean ()))) ()))) ())))) (do (declare maths.sign (cons number (cons --> (cons number ())))) (do (declare log (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ())))) (do (declare loge (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ())))) (do (declare log2 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ())))) (do (declare log10 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ())))) (do (declare maths.log10+ (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ())))) (do (declare maths.upto (cons (protect A) (cons --> (cons (cons (cons (protect A) (cons --> (cons boolean ()))) (cons --> (cons (cons (cons (protect A) (cons --> (cons (protect A) ()))) (cons --> (cons (cons (cons (protect B) (cons --> (cons (cons (protect C) (cons --> (cons (protect C) ()))) ()))) (cons --> (cons (cons (protect C) (cons --> (cons (cons (cons (protect A) (cons --> (cons (protect B) ()))) (cons --> (cons (protect C) ()))) ()))) ()))) ()))) ()))) ())))) (do (declare r# (cons number (cons --> (cons (cons number (cons --> (cons rational ()))) ())))) (do (declare rational? (cons A (cons --> (cons boolean ())))) (do (declare numerator (cons rational (cons --> (cons number ())))) (do (declare denominator (cons rational (cons --> (cons number ())))) (do (declare r-op1 (cons (cons number (cons --> (cons number ()))) (cons --> (cons (cons rational (cons --> (cons rational ()))) ())))) (do (declare r-op2 (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (cons --> (cons (cons rational (cons --> (cons (cons rational (cons --> (cons rational ()))) ()))) ())))) (do (declare r->n (cons rational (cons --> (cons number ())))) (do (declare r->pair (cons rational (cons --> (cons (cons number (cons * (cons number ()))) ())))) (do (declare n->r (cons number (cons --> (cons rational ())))) (do (declare r-reduce (cons rational (cons --> (cons rational ())))) (do (declare rational.r-reduce-help (cons number (cons --> (cons (cons number (cons --> (cons rational ()))) ())))) (do (declare r= (cons rational (cons --> (cons (cons rational (cons --> (cons boolean ()))) ())))) (do (declare r< (cons rational (cons --> (cons (cons rational (cons --> (cons boolean ()))) ())))) (do (declare r> (cons rational (cons --> (cons (cons rational (cons --> (cons boolean ()))) ())))) (do (declare r>= (cons rational (cons --> (cons (cons rational (cons --> (cons boolean ()))) ())))) (do (declare r<= (cons rational (cons --> (cons (cons rational (cons --> (cons boolean ()))) ())))) (do (declare r+ (cons rational (cons --> (cons (cons rational (cons --> (cons rational ()))) ())))) (do (declare r- (cons rational (cons --> (cons (cons rational (cons --> (cons rational ()))) ())))) (do (declare r* (cons rational (cons --> (cons (cons rational (cons --> (cons rational ()))) ())))) (do (declare +-inverse (cons rational (cons --> (cons rational ())))) (do (declare *-inverse (cons rational (cons --> (cons rational ())))) (do (declare r/ (cons rational (cons --> (cons (cons rational (cons --> (cons rational ()))) ())))) (do (declare r-expt (cons rational (cons --> (cons (cons number (cons --> (cons rational ()))) ())))) (do (declare r-approx (cons rational (cons --> (cons (cons number (cons --> (cons rational ()))) ())))) (do (declare rational.approx-r-h (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons rational ()))) ()))) ())))) (do (declare c# (cons number (cons --> (cons (cons number (cons --> (cons complex ()))) ())))) (do (declare complex? (cons A (cons --> (cons boolean ())))) (do (declare real (cons complex (cons --> (cons number ())))) (do (declare imaginary (cons complex (cons --> (cons number ())))) (do (declare c+ (cons complex (cons --> (cons (cons complex (cons --> (cons complex ()))) ())))) (do (declare c- (cons complex (cons --> (cons (cons complex (cons --> (cons complex ()))) ())))) (do (declare c* (cons complex (cons --> (cons (cons complex (cons --> (cons complex ()))) ())))) (do (declare c/ (cons complex (cons --> (cons (cons complex (cons --> (cons complex ()))) ())))) (do (declare radix (cons numeral (cons --> (cons number ())))) (do (declare n#->ns (cons numeral (cons --> (cons (cons list (cons number ())) ())))) (do (declare n#->n (cons numeral (cons --> (cons number ())))) (do (declare n# (cons number (cons --> (cons (cons number (cons --> (cons numeral ()))) ())))) (do (declare numeral? (cons A (cons --> (cons boolean ())))) (do (declare n-op2 (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (cons --> (cons (cons numeral (cons --> (cons (cons numeral (cons --> (cons (cons number (cons --> (cons numeral ()))) ()))) ()))) ())))) (do (declare n-op1 (cons (cons number (cons --> (cons number ()))) (cons --> (cons (cons numeral (cons --> (cons (cons number (cons --> (cons numeral ()))) ()))) ())))) (do (declare n+ (cons numeral (cons --> (cons (cons numeral (cons --> (cons (cons number (cons --> (cons numeral ()))) ()))) ())))) (do (declare n* (cons numeral (cons --> (cons (cons numeral (cons --> (cons (cons number (cons --> (cons numeral ()))) ()))) ())))) (do (declare n- (cons numeral (cons --> (cons (cons numeral (cons --> (cons (cons number (cons --> (cons numeral ()))) ()))) ())))) (do (declare n/ (cons numeral (cons --> (cons (cons numeral (cons --> (cons (cons number (cons --> (cons numeral ()))) ()))) ())))) (do (declare binary (cons number (cons --> (cons numeral ())))) (do (declare hex (cons number (cons --> (cons numeral ())))) (do (declare octal (cons number (cons --> (cons numeral ())))) (do (declare duodecimal (cons number (cons --> (cons numeral ())))) (do (declare numerals.n->numeral (cons number (cons --> (cons (cons number (cons --> (cons (cons list (cons number ())) ()))) ())))) (do (declare numerals.largest-expt (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ())))) (do (declare numerals.n-zeros (cons number (cons --> (cons (cons list (cons number ())) ())))) (do (declare numerals.add (cons (cons list (cons number ())) (cons --> (cons (cons (cons list (cons number ())) (cons --> (cons (cons number (cons --> (cons (cons list (cons number ())) ()))) ()))) ())))) (do (declare numerals.add-h (cons (cons list (cons number ())) (cons --> (cons (cons (cons list (cons number ())) (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons (cons list (cons number ())) ()))) ()))) ()))) ())))) (do (declare assoc-if (cons (cons (protect A) (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons (cons list (cons (protect A) ())) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ())))) (do (declare assoc-if-not (cons (cons (protect A) (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons (cons list (cons (protect A) ())) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ())))) (do (declare drop (cons number (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ())))) (do (declare drop-last (cons number (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ())))) (do (declare index (cons (protect A) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons number ()))) ())))) (do (declare list.index-h (cons (protect A) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ())))) (do (declare index-last (cons (protect A) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons number ()))) ())))) (do (declare insert (cons number (cons --> (cons (cons (protect A) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ()))) ())))) (do (declare remove-duplicates (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ())))) (do (declare trim-left-if (cons (cons (protect A) (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ())))) (do (declare trim-right-if (cons (cons (protect A) (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ())))) (do (declare trim-if (cons (cons (protect A) (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ())))) (do (declare trim-left (cons (cons list (cons (protect A) ())) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ())))) (do (declare trim-right (cons (cons list (cons (protect A) ())) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ())))) (do (declare trim (cons (cons list (cons (protect A) ())) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ())))) (do (declare prefix? (cons (cons list (cons (protect A) ())) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons boolean ()))) ())))) (do (declare infix? (cons (cons list (cons (protect A) ())) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons boolean ()))) ())))) (do (declare suffix? (cons (cons list (cons (protect A) ())) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons boolean ()))) ())))) (do (declare subset? (cons (cons list (cons (protect A) ())) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons boolean ()))) ())))) (do (declare set=? (cons (cons list (cons (protect A) ())) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons boolean ()))) ())))) (do (declare set? (cons (cons list (cons (protect A) ())) (cons --> (cons boolean ())))) (do (declare n-times (cons (protect A) (cons --> (cons (cons number (cons --> (cons (cons list (cons (protect A) ())) ()))) ())))) (do (declare list.n-times-h (cons number (cons --> (cons (cons (protect A) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ()))) ())))) (do (declare subbag? (cons (cons list (cons (protect A) ())) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons boolean ()))) ())))) (do (declare bag=? (cons (cons list (cons (protect A) ())) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons boolean ()))) ())))) (do (declare mapc (cons (cons (protect A) (cons --> (cons (protect B) ()))) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect C) ())) ()))) ())))) (do (declare permute (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (cons list (cons (protect A) ())) ())) ())))) (do (declare count-if (cons (cons (protect A) (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons number ()))) ())))) (do (declare count (cons (protect A) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons number ()))) ())))) (do (declare some? (cons (cons (protect A) (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons boolean ()))) ())))) (do (declare every? (cons (cons (protect A) (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons boolean ()))) ())))) (do (declare sort (cons (cons (protect A) (cons --> (cons (cons (protect A) (cons --> (cons boolean ()))) ()))) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ())))) (do (declare find (cons (cons (protect A) (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (protect A) ()))) ())))) (do (declare foldr (cons (cons (protect A) (cons --> (cons (cons (protect B) (cons --> (cons (protect B) ()))) ()))) (cons --> (cons (cons (protect B) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (protect B) ()))) ()))) ())))) (do (declare foldl (cons (cons (protect A) (cons --> (cons (cons (protect B) (cons --> (cons (protect A) ()))) ()))) (cons --> (cons (cons (protect A) (cons --> (cons (cons (cons list (cons (protect B) ())) (cons --> (cons (protect A) ()))) ()))) ())))) (do (declare mapf (cons (cons (protect A) (cons --> (cons (protect B) ()))) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons (cons (protect B) (cons --> (cons (cons (cons list (cons (protect C) ())) (cons --> (cons (cons list (cons (protect C) ())) ()))) ()))) (cons --> (cons (cons list (cons (protect C) ())) ()))) ()))) ())))) (do (declare filter (cons (cons (protect A) (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ())))) (do (declare remove-if (cons (cons (protect A) (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ())))) (do (declare list.reduce (cons (cons (protect A) (cons --> (cons (cons (protect B) (cons --> (cons (protect A) ()))) ()))) (cons --> (cons (cons (protect A) (cons --> (cons (cons (cons list (cons (protect B) ())) (cons --> (cons (protect A) ()))) ()))) ())))) (do (declare take (cons number (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ())))) (do (declare take-last (cons number (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ())))) (do (declare cartprod (cons (cons list (cons (protect A) ())) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (cons list (cons (protect A) ())) ())) ()))) ())))) (do (declare powerset (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (cons list (cons (protect A) ())) ())) ())))) (do (declare partition (cons (cons (protect A) (cons --> (cons (cons (protect A) (cons --> (cons boolean ()))) ()))) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (cons list (cons (protect A) ())) ())) ()))) ())))) (do (declare transitive-closure (cons (cons list (cons (cons (protect A) (cons * (cons (protect A) ()))) ())) (cons --> (cons (cons list (cons (cons (protect A) (cons * (cons (protect A) ()))) ())) ())))) (do (declare list.transitive-pass (cons (cons list (cons (cons (protect A) (cons * (cons (protect A) ()))) ())) (cons --> (cons (cons (cons list (cons (cons (protect A) (cons * (cons (protect A) ()))) ())) (cons --> (cons (cons list (cons (cons (protect A) (cons * (cons (protect A) ()))) ())) ()))) ())))) (do (declare list.find-trans (cons (protect A) (cons --> (cons (cons (protect A) (cons --> (cons (cons (cons list (cons (cons (protect A) (cons * (cons (protect A) ()))) ())) (cons --> (cons (cons list (cons (cons (protect A) (cons * (cons (protect A) ()))) ())) ()))) ()))) ())))) (do (declare x->ascii (cons (protect A) (cons --> (cons (cons list (cons number ())) ())))) (do (declare splice (cons number (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ()))) ())))) (do (declare string->list (cons string (cons --> (cons (cons list (cons string ())) ())))) (do (declare string.s->l-h (cons string (cons --> (cons (cons number (cons --> (cons (cons string (cons --> (cons (cons (cons list (cons string ())) (cons --> (cons (cons list (cons string ())) ()))) ()))) ()))) ())))) (do (declare list->string (cons (cons list (cons string ())) (cons --> (cons string ())))) (do (declare s-op1 (cons (cons (cons list (cons string ())) (cons --> (cons (protect A) ()))) (cons --> (cons (cons string (cons --> (cons (cons (cons (protect A) (cons --> (cons (protect B) ()))) (cons --> (cons (protect B) ()))) ()))) ())))) (do (declare s-op2 (cons (cons (cons list (cons string ())) (cons --> (cons (cons (cons list (cons string ())) (cons --> (cons (protect A) ()))) ()))) (cons --> (cons (cons string (cons --> (cons (cons string (cons --> (cons (cons (cons (protect A) (cons --> (cons (protect B) ()))) (cons --> (cons (protect B) ()))) ()))) ()))) ())))) (do (declare string.count (cons string (cons --> (cons (cons string (cons --> (cons number ()))) ())))) (do (declare string.reverse (cons string (cons --> (cons string ())))) (do (declare string.element? (cons string (cons --> (cons (cons string (cons --> (cons boolean ()))) ())))) (do (declare string.prefix? (cons string (cons --> (cons (cons string (cons --> (cons boolean ()))) ())))) (do (declare string.infix? (cons string (cons --> (cons (cons string (cons --> (cons boolean ()))) ())))) (do (declare string.suffix? (cons string (cons --> (cons (cons string (cons --> (cons boolean ()))) ())))) (do (declare string.subset? (cons string (cons --> (cons (cons string (cons --> (cons boolean ()))) ())))) (do (declare string.set=? (cons string (cons --> (cons (cons string (cons --> (cons boolean ()))) ())))) (do (declare string.set? (cons string (cons --> (cons boolean ())))) (do (declare file-extension (cons string (cons --> (cons (cons string (cons --> (cons string ()))) ())))) (do (declare strip-extension (cons string (cons --> (cons string ())))) (do (declare string.length (cons string (cons --> (cons number ())))) (do (declare string.trim (cons (cons list (cons string ())) (cons --> (cons (cons string (cons --> (cons string ()))) ())))) (do (declare string.trim-if (cons (cons string (cons --> (cons boolean ()))) (cons --> (cons (cons string (cons --> (cons string ()))) ())))) (do (declare string.trim-right-if (cons (cons string (cons --> (cons boolean ()))) (cons --> (cons (cons string (cons --> (cons string ()))) ())))) (do (declare string.trim-left-if (cons (cons string (cons --> (cons boolean ()))) (cons --> (cons (cons string (cons --> (cons string ()))) ())))) (do (declare string.trim-right (cons (cons list (cons string ())) (cons --> (cons (cons string (cons --> (cons string ()))) ())))) (do (declare string.trim-left (cons (cons list (cons string ())) (cons --> (cons (cons string (cons --> (cons string ()))) ())))) (do (declare string.some? (cons (cons string (cons --> (cons boolean ()))) (cons --> (cons (cons string (cons --> (cons boolean ()))) ())))) (do (declare string.every? (cons (cons string (cons --> (cons boolean ()))) (cons --> (cons (cons string (cons --> (cons boolean ()))) ())))) (do (declare string.difference (cons string (cons --> (cons (cons string (cons --> (cons string ()))) ())))) (do (declare string.intersection (cons string (cons --> (cons (cons string (cons --> (cons string ()))) ())))) (do (declare string.nth (cons number (cons --> (cons (cons string (cons --> (cons string ()))) ())))) (do (declare whitespace? (cons string (cons --> (cons boolean ())))) (do (declare uppercase? (cons string (cons --> (cons boolean ())))) (do (declare lowercase? (cons string (cons --> (cons boolean ())))) (do (declare digit? (cons string (cons --> (cons boolean ())))) (do (declare alpha? (cons string (cons --> (cons boolean ())))) (do (declare alphanum? (cons string (cons --> (cons boolean ())))) (do (declare tokenise (cons (cons string (cons --> (cons boolean ()))) (cons --> (cons (cons string (cons --> (cons (cons list (cons string ())) ()))) ())))) (do (declare string.tokenise-h (cons (cons string (cons --> (cons boolean ()))) (cons --> (cons (cons string (cons --> (cons (cons string (cons --> (cons (cons list (cons string ())) ()))) ()))) ())))) (do (declare uppercase (cons string (cons --> (cons string ())))) (do (declare lowercase (cons string (cons --> (cons string ())))) (do (declare string.map (cons (cons string (cons --> (cons string ()))) (cons --> (cons (cons string (cons --> (cons string ()))) ())))) (do (declare spell-number (cons number (cons --> (cons string ())))) (do (declare string.digit (cons string (cons --> (cons string ())))) (do (declare string.triples (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (cons list (cons (protect A) ())) ())) ())))) (do (declare string.triples-h (cons (cons list (cons (protect A) ())) (cons --> (cons (cons (cons list (cons (cons list (cons (protect A) ())) ())) (cons --> (cons (cons list (cons (cons list (cons (protect A) ())) ())) ()))) ())))) (do (declare string.digits (cons (cons list (cons string ())) (cons --> (cons string ())))) (do (declare string.tens (cons string (cons --> (cons (cons string (cons --> (cons string ()))) ())))) (do (declare string.scale (cons (cons list (cons string ())) (cons --> (cons string ())))) (do (declare string.units (cons number (cons --> (cons string ())))) (do (declare string>? (cons string (cons --> (cons (cons string (cons --> (cons boolean ()))) ())))) (do (declare string (cons (cons string (cons --> (cons boolean ()))) ())))) (do (declare string>=? (cons string (cons --> (cons (cons string (cons --> (cons boolean ()))) ())))) (do (declare string<=? (cons string (cons --> (cons (cons string (cons --> (cons boolean ()))) ())))) (do (declare render (cons string (cons --> (cons string ())))) (do (declare render-file (cons string (cons --> (cons (cons string (cons --> (cons string ()))) ())))) (do (declare linelength (cons --> (cons number ()))) (do (declare indentation (cons --> (cons number ()))) (do (declare set-linelength (cons number (cons --> (cons number ())))) (do (declare set-indentation (cons number (cons --> (cons number ())))) (do (declare pps (cons symbol (cons --> (cons (cons (cons stream (cons out ())) (cons --> (cons symbol ()))) ())))) (do (declare pprint (cons (protect A) (cons --> (cons (cons (cons stream (cons out ())) (cons --> (cons (protect A) ()))) ())))) (do (declare pretty-string (cons string (cons --> (cons string ())))) (do (declare print.pretty-string-h (cons string (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons string ()))) ()))) ())))) (do (declare print.indent (cons number (cons --> (cons string ())))) (do (declare print.indent-h (cons number (cons --> (cons string ())))) (do (declare print.n-space (cons number (cons --> (cons string ())))) (do (declare delete-file (cons string (cons --> (cons (cons list (cons A ())) ())))) (do (declare append-files (cons (cons list (cons string ())) (cons --> (cons (cons string (cons --> (cons string ()))) ())))) (do (declare append-files-with-open-stream (cons (cons list (cons string ())) (cons --> (cons (cons string (cons --> (cons (cons stream (cons out ())) ()))) ())))) (do (declare file.read&write (cons (cons stream (cons in ())) (cons --> (cons (cons (cons stream (cons out ())) (cons --> (cons number ()))) ())))) (do (declare file.read&write-h (cons number (cons --> (cons (cons (cons stream (cons in ())) (cons --> (cons (cons (cons stream (cons out ())) (cons --> (cons number ()))) ()))) ())))) (do (declare reopen (cons string (cons --> (cons (cons stream (cons out ())) ())))) (do (declare copy-file (cons string (cons --> (cons (cons string (cons --> (cons string ()))) ())))) (do (declare copy-file-with-open-stream (cons string (cons --> (cons (cons string (cons --> (cons (cons stream (cons out ())) ()))) ())))) (do (declare file-exists? (cons string (cons --> (cons boolean ())))) (do (declare file-size (cons string (cons --> (cons number ())))) (do (declare file.file-size-loop (cons (cons stream (cons in ())) (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ())))) (do (declare ascii (cons number (cons --> (cons (cons number (cons --> (cons (cons string (cons --> (cons string ()))) ()))) ())))) (do (declare file.scan-bytes (cons number (cons --> (cons (cons number (cons --> (cons (cons (cons list (cons number ())) (cons --> (cons (cons string (cons --> (cons string ()))) ()))) ()))) ())))) (do (declare pairoff (cons (cons list (cons (protect A) ())) (cons --> (cons (cons (cons list (cons (protect B) ())) (cons --> (cons (cons list (cons (cons (protect A) (cons * (cons (protect B) ()))) ())) ()))) ())))) (do (declare assocp (cons (protect A) (cons --> (cons (cons (cons list (cons (cons (protect A) (cons * (cons (protect B) ()))) ())) (cons --> (cons (cons (protect A) (cons * (cons (protect B) ()))) ()))) ())))) (do (declare cartprodp (cons (cons list (cons (protect A) ())) (cons --> (cons (cons (cons list (cons (protect B) ())) (cons --> (cons (cons list (cons (cons (protect A) (cons * (cons (protect B) ()))) ())) ()))) ())))) (do (declare assocp-if (cons (cons (protect A) (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons (cons (protect A) (cons * (cons (protect B) ()))) ())) (cons --> (cons (cons (protect A) (cons * (cons (protect B) ()))) ()))) ())))) (declare assocp-if-not (cons (cons (protect A) (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons (cons (protect A) (cons * (cons (protect B) ()))) ())) (cons --> (cons (cons (protect A) (cons * (cons (protect B) ()))) ()))) ())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) +(defun stlib.initialise-types () (do (shen.declare-with-signature concat* (cons A (cons --> (cons (cons B (cons --> (cons symbol ()))) ()))) (freeze (lambda V12 (lambda B8 (lambda L9 (lambda Key10 (lambda C11 (let A (shen.newpv B8) (shen.gc B8 (let B (shen.newpv B8) (shen.gc B8 (is! V12 (cons A (cons --> (cons (cons B (cons --> (cons symbol ()))) ()))) B8 L9 Key10 C11)))))))))))) (do (shen.declare-with-signature newv (cons --> (cons symbol ())) (freeze (lambda V17 (lambda B13 (lambda L14 (lambda Key15 (lambda C16 (is! V17 (cons --> (cons symbol ())) B13 L14 Key15 C16)))))))) (do (shen.declare-with-signature set-tolerance (cons number (cons --> (cons number ()))) (freeze (lambda V340 (lambda B336 (lambda L337 (lambda Key338 (lambda C339 (is! V340 (cons number (cons --> (cons number ()))) B336 L337 Key338 C339)))))))) (do (shen.declare-with-signature tolerance (cons --> (cons number ())) (freeze (lambda V345 (lambda B341 (lambda L342 (lambda Key343 (lambda C344 (is! V345 (cons --> (cons number ())) B341 L342 Key343 C344)))))))) (do (shen.declare-with-signature sq (cons number (cons --> (cons number ()))) (freeze (lambda V352 (lambda B348 (lambda L349 (lambda Key350 (lambda C351 (is! V352 (cons number (cons --> (cons number ()))) B348 L349 Key350 C351)))))))) (do (shen.declare-with-signature cube (cons number (cons --> (cons number ()))) (freeze (lambda V359 (lambda B355 (lambda L356 (lambda Key357 (lambda C358 (is! V359 (cons number (cons --> (cons number ()))) B355 L356 Key357 C358)))))))) (do (shen.declare-with-signature for (cons number (cons --> (cons (cons (cons number (cons --> (cons boolean ()))) (cons --> (cons (cons (cons number (cons --> (cons (protect A) ()))) (cons --> (cons (cons (cons number (cons --> (cons number ()))) (cons --> (cons (cons (cons (protect A) (cons --> (cons (cons (protect A) (cons --> (cons (protect A) ()))) ()))) (cons --> (cons (protect A) ()))) ()))) ()))) ()))) ()))) (freeze (lambda V381 (lambda B377 (lambda L378 (lambda Key379 (lambda C380 (let A (shen.newpv B377) (shen.gc B377 (is! V381 (cons number (cons --> (cons (cons (cons number (cons --> (cons boolean ()))) (cons --> (cons (cons (cons number (cons --> (cons A ()))) (cons --> (cons (cons (cons number (cons --> (cons number ()))) (cons --> (cons (cons (cons A (cons --> (cons (cons A (cons --> (cons A ()))) ()))) (cons --> (cons A ()))) ()))) ()))) ()))) ()))) B377 L378 Key379 C380)))))))))) (do (shen.declare-with-signature maths.for-h (cons number (cons --> (cons (cons (cons number (cons --> (cons boolean ()))) (cons --> (cons (cons (cons number (cons --> (cons (protect A) ()))) (cons --> (cons (cons (cons number (cons --> (cons number ()))) (cons --> (cons (cons (cons (protect A) (cons --> (cons (cons (protect A) (cons --> (cons (protect A) ()))) ()))) (cons --> (cons (cons (protect A) (cons --> (cons (protect A) ()))) ()))) ()))) ()))) ()))) ()))) (freeze (lambda V410 (lambda B406 (lambda L407 (lambda Key408 (lambda C409 (let A (shen.newpv B406) (shen.gc B406 (is! V410 (cons number (cons --> (cons (cons (cons number (cons --> (cons boolean ()))) (cons --> (cons (cons (cons number (cons --> (cons A ()))) (cons --> (cons (cons (cons number (cons --> (cons number ()))) (cons --> (cons (cons (cons A (cons --> (cons (cons A (cons --> (cons A ()))) ()))) (cons --> (cons (cons A (cons --> (cons A ()))) ()))) ()))) ()))) ()))) ()))) B406 L407 Key408 C409)))))))))) (do (shen.declare-with-signature maths.lazyfor-and (cons number (cons --> (cons (cons (cons number (cons --> (cons boolean ()))) (cons --> (cons (cons (cons number (cons --> (cons boolean ()))) (cons --> (cons (cons (cons number (cons --> (cons number ()))) (cons --> (cons boolean ()))) ()))) ()))) ()))) (freeze (lambda V435 (lambda B431 (lambda L432 (lambda Key433 (lambda C434 (is! V435 (cons number (cons --> (cons (cons (cons number (cons --> (cons boolean ()))) (cons --> (cons (cons (cons number (cons --> (cons boolean ()))) (cons --> (cons (cons (cons number (cons --> (cons number ()))) (cons --> (cons boolean ()))) ()))) ()))) ()))) B431 L432 Key433 C434)))))))) (do (shen.declare-with-signature maths.lazyfor-or (cons number (cons --> (cons (cons (cons number (cons --> (cons boolean ()))) (cons --> (cons (cons (cons number (cons --> (cons boolean ()))) (cons --> (cons (cons (cons number (cons --> (cons number ()))) (cons --> (cons boolean ()))) ()))) ()))) ()))) (freeze (lambda V452 (lambda B448 (lambda L449 (lambda Key450 (lambda C451 (is! V452 (cons number (cons --> (cons (cons (cons number (cons --> (cons boolean ()))) (cons --> (cons (cons (cons number (cons --> (cons boolean ()))) (cons --> (cons (cons (cons number (cons --> (cons number ()))) (cons --> (cons boolean ()))) ()))) ()))) ()))) B448 L449 Key450 C451)))))))) (do (shen.declare-with-signature max (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (freeze (lambda V463 (lambda B459 (lambda L460 (lambda Key461 (lambda C462 (is! V463 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B459 L460 Key461 C462)))))))) (do (shen.declare-with-signature min (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (freeze (lambda V474 (lambda B470 (lambda L471 (lambda Key472 (lambda C473 (is! V474 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B470 L471 Key472 C473)))))))) (do (shen.declare-with-signature expt (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ()))) (freeze (lambda V485 (lambda B481 (lambda L482 (lambda Key483 (lambda C484 (is! V485 (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ()))) B481 L482 Key483 C484)))))))) (do (shen.declare-with-signature maths.n->r (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons * (cons number ()))) ()))) ()))) (freeze (lambda V495 (lambda B491 (lambda L492 (lambda Key493 (lambda C494 (is! V495 (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons * (cons number ()))) ()))) ()))) B491 L492 Key493 C494)))))))) (do (shen.declare-with-signature maths.expt-h (cons number (cons --> (cons (cons (cons number (cons * (cons number ()))) (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ()))) (freeze (lambda V508 (lambda B504 (lambda L505 (lambda Key506 (lambda C507 (is! V508 (cons number (cons --> (cons (cons (cons number (cons * (cons number ()))) (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ()))) B504 L505 Key506 C507)))))))) (do (shen.declare-with-signature gcd (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (freeze (lambda V519 (lambda B515 (lambda L516 (lambda Key517 (lambda C518 (is! V519 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B515 L516 Key517 C518)))))))) (do (shen.declare-with-signature maths.gcd-help (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (freeze (lambda V528 (lambda B524 (lambda L525 (lambda Key526 (lambda C527 (is! V528 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B524 L525 Key526 C527)))))))) (do (shen.declare-with-signature maths.gcd-loop (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ()))) (freeze (lambda V543 (lambda B539 (lambda L540 (lambda Key541 (lambda C542 (is! V543 (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ()))) B539 L540 Key541 C542)))))))) (do (shen.declare-with-signature lcd (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (freeze (lambda V552 (lambda B548 (lambda L549 (lambda Key550 (lambda C551 (is! V552 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B548 L549 Key550 C551)))))))) (do (shen.declare-with-signature maths.lcd-loop (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ()))) ()))) (freeze (lambda V568 (lambda B564 (lambda L565 (lambda Key566 (lambda C567 (is! V568 (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ()))) ()))) B564 L565 Key566 C567)))))))) (do (shen.declare-with-signature isqrt (cons number (cons --> (cons number ()))) (freeze (lambda V575 (lambda B571 (lambda L572 (lambda Key573 (lambda C574 (is! V575 (cons number (cons --> (cons number ()))) B571 L572 Key573 C574)))))))) (do (shen.declare-with-signature maths.isqrt-loop (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (freeze (lambda V584 (lambda B580 (lambda L581 (lambda Key582 (lambda C583 (is! V584 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B580 L581 Key582 C583)))))))) (do (shen.declare-with-signature div (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (freeze (lambda V593 (lambda B589 (lambda L590 (lambda Key591 (lambda C592 (is! V593 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B589 L590 Key591 C592)))))))) (do (shen.declare-with-signature modf (cons number (cons --> (cons (cons number (cons * (cons number ()))) ()))) (freeze (lambda V601 (lambda B597 (lambda L598 (lambda Key599 (lambda C600 (is! V601 (cons number (cons --> (cons (cons number (cons * (cons number ()))) ()))) B597 L598 Key599 C600)))))))) (do (shen.declare-with-signature floor (cons number (cons --> (cons number ()))) (freeze (lambda V608 (lambda B604 (lambda L605 (lambda Key606 (lambda C607 (is! V608 (cons number (cons --> (cons number ()))) B604 L605 Key606 C607)))))))) (do (shen.declare-with-signature maths.rounding-loop (cons symbol (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ()))) ()))) (freeze (lambda V627 (lambda B623 (lambda L624 (lambda Key625 (lambda C626 (is! V627 (cons symbol (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ()))) ()))) B623 L624 Key625 C626)))))))) (do (shen.declare-with-signature maths.float->pair (cons number (cons --> (cons (cons number (cons * (cons number ()))) ()))) (freeze (lambda V635 (lambda B631 (lambda L632 (lambda Key633 (lambda C634 (is! V635 (cons number (cons --> (cons (cons number (cons * (cons number ()))) ()))) B631 L632 Key633 C634)))))))) (do (shen.declare-with-signature ceiling (cons number (cons --> (cons number ()))) (freeze (lambda V642 (lambda B638 (lambda L639 (lambda Key640 (lambda C641 (is! V642 (cons number (cons --> (cons number ()))) B638 L639 Key640 C641)))))))) (do (shen.declare-with-signature round (cons number (cons --> (cons number ()))) (freeze (lambda V649 (lambda B645 (lambda L646 (lambda Key647 (lambda C648 (is! V649 (cons number (cons --> (cons number ()))) B645 L646 Key647 C648)))))))) (do (shen.declare-with-signature mod (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (freeze (lambda V660 (lambda B656 (lambda L657 (lambda Key658 (lambda C659 (is! V660 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B656 L657 Key658 C659)))))))) (do (shen.declare-with-signature lcm (cons (cons list (cons number ())) (cons --> (cons number ()))) (freeze (lambda V668 (lambda B664 (lambda L665 (lambda Key666 (lambda C667 (is! V668 (cons (cons list (cons number ())) (cons --> (cons number ()))) B664 L665 Key666 C667)))))))) (do (shen.declare-with-signature maths.greatest (cons (cons list (cons number ())) (cons --> (cons number ()))) (freeze (lambda V679 (lambda B675 (lambda L676 (lambda Key677 (lambda C678 (is! V679 (cons (cons list (cons number ())) (cons --> (cons number ()))) B675 L676 Key677 C678)))))))) (do (shen.declare-with-signature maths.lcm-h (cons number (cons --> (cons (cons number (cons --> (cons (cons (cons list (cons number ())) (cons --> (cons number ()))) ()))) ()))) (freeze (lambda V690 (lambda B686 (lambda L687 (lambda Key688 (lambda C689 (is! V690 (cons number (cons --> (cons (cons number (cons --> (cons (cons (cons list (cons number ())) (cons --> (cons number ()))) ()))) ()))) B686 L687 Key688 C689)))))))) (do (shen.declare-with-signature maths.lcm? (cons number (cons --> (cons (cons (cons list (cons number ())) (cons --> (cons boolean ()))) ()))) (freeze (lambda V701 (lambda B697 (lambda L698 (lambda Key699 (lambda C700 (is! V701 (cons number (cons --> (cons (cons (cons list (cons number ())) (cons --> (cons boolean ()))) ()))) B697 L698 Key699 C700)))))))) (do (shen.declare-with-signature random (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (freeze (lambda V713 (lambda B709 (lambda L710 (lambda Key711 (lambda C712 (is! V713 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B709 L710 Key711 C712)))))))) (do (shen.declare-with-signature min (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (freeze (lambda V724 (lambda B720 (lambda L721 (lambda Key722 (lambda C723 (is! V724 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B720 L721 Key722 C723)))))))) (do (shen.declare-with-signature reseed (cons --> (cons number ())) (freeze (lambda V729 (lambda B725 (lambda L726 (lambda Key727 (lambda C728 (is! V729 (cons --> (cons number ())) B725 L726 Key727 C728)))))))) (do (shen.declare-with-signature maths.bbs (cons number (cons --> (cons number ()))) (freeze (lambda V737 (lambda B733 (lambda L734 (lambda Key735 (lambda C736 (is! V737 (cons number (cons --> (cons number ()))) B733 L734 Key735 C736)))))))) (do (shen.declare-with-signature ~ (cons number (cons --> (cons number ()))) (freeze (lambda V744 (lambda B740 (lambda L741 (lambda Key742 (lambda C743 (is! V744 (cons number (cons --> (cons number ()))) B740 L741 Key742 C743)))))))) (do (shen.declare-with-signature positive? (cons number (cons --> (cons boolean ()))) (freeze (lambda V751 (lambda B747 (lambda L748 (lambda Key749 (lambda C750 (is! V751 (cons number (cons --> (cons boolean ()))) B747 L748 Key749 C750)))))))) (do (shen.declare-with-signature negative? (cons number (cons --> (cons boolean ()))) (freeze (lambda V758 (lambda B754 (lambda L755 (lambda Key756 (lambda C757 (is! V758 (cons number (cons --> (cons boolean ()))) B754 L755 Key756 C757)))))))) (do (shen.declare-with-signature natural? (cons number (cons --> (cons boolean ()))) (freeze (lambda V765 (lambda B761 (lambda L762 (lambda Key763 (lambda C764 (is! V765 (cons number (cons --> (cons boolean ()))) B761 L762 Key763 C764)))))))) (do (shen.declare-with-signature converge (cons (protect A) (cons --> (cons (cons (cons (protect A) (cons --> (cons (protect A) ()))) (cons --> (cons (cons (cons (protect A) (cons --> (cons (cons (protect A) (cons --> (cons boolean ()))) ()))) (cons --> (cons (protect A) ()))) ()))) ()))) (freeze (lambda V781 (lambda B777 (lambda L778 (lambda Key779 (lambda C780 (let A (shen.newpv B777) (shen.gc B777 (is! V781 (cons A (cons --> (cons (cons (cons A (cons --> (cons A ()))) (cons --> (cons (cons (cons A (cons --> (cons (cons A (cons --> (cons boolean ()))) ()))) (cons --> (cons A ()))) ()))) ()))) B777 L778 Key779 C780)))))))))) (do (shen.declare-with-signature maths.converge-help (cons (cons (protect A) (cons --> (cons (protect A) ()))) (cons --> (cons (cons (protect A) (cons --> (cons (cons (protect A) (cons --> (cons (cons (cons (protect A) (cons --> (cons (cons (protect A) (cons --> (cons boolean ()))) ()))) (cons --> (cons (protect A) ()))) ()))) ()))) ()))) (freeze (lambda V803 (lambda B799 (lambda L800 (lambda Key801 (lambda C802 (let A (shen.newpv B799) (shen.gc B799 (is! V803 (cons (cons A (cons --> (cons A ()))) (cons --> (cons (cons A (cons --> (cons (cons A (cons --> (cons (cons (cons A (cons --> (cons (cons A (cons --> (cons boolean ()))) ()))) (cons --> (cons A ()))) ()))) ()))) ()))) B799 L800 Key801 C802)))))))))) (do (shen.declare-with-signature nthrt (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ()))) (freeze (lambda V819 (lambda B815 (lambda L816 (lambda Key817 (lambda C818 (is! V819 (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ()))) B815 L816 Key817 C818)))))))) (do (shen.declare-with-signature sqrt (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (freeze (lambda V828 (lambda B824 (lambda L825 (lambda Key826 (lambda C827 (is! V828 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B824 L825 Key826 C827)))))))) (do (shen.declare-with-signature maths.compute-nthrt (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ()))) ()))) (freeze (lambda V846 (lambda B842 (lambda L843 (lambda Key844 (lambda C845 (is! V846 (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ()))) ()))) B842 L843 Key844 C845)))))))) (do (shen.declare-with-signature approx (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons boolean ()))) ()))) ()))) (freeze (lambda V856 (lambda B852 (lambda L853 (lambda Key854 (lambda C855 (is! V856 (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons boolean ()))) ()))) ()))) B852 L853 Key854 C855)))))))) (do (shen.declare-with-signature abs (cons number (cons --> (cons number ()))) (freeze (lambda V863 (lambda B859 (lambda L860 (lambda Key861 (lambda C862 (is! V863 (cons number (cons --> (cons number ()))) B859 L860 Key861 C862)))))))) (do (shen.declare-with-signature series (cons number (cons --> (cons (cons (cons number (cons --> (cons number ()))) (cons --> (cons (cons number (cons --> (cons (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (cons --> (cons number ()))) ()))) ()))) ()))) (freeze (lambda V878 (lambda B874 (lambda L875 (lambda Key876 (lambda C877 (is! V878 (cons number (cons --> (cons (cons (cons number (cons --> (cons number ()))) (cons --> (cons (cons number (cons --> (cons (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (cons --> (cons number ()))) ()))) ()))) ()))) B874 L875 Key876 C877)))))))) (do (shen.declare-with-signature maths.series-h (cons number (cons --> (cons (cons number (cons --> (cons (cons (cons number (cons --> (cons number ()))) (cons --> (cons (cons number (cons --> (cons (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (cons --> (cons number ()))) ()))) ()))) ()))) ()))) (freeze (lambda V895 (lambda B891 (lambda L892 (lambda Key893 (lambda C894 (is! V895 (cons number (cons --> (cons (cons number (cons --> (cons (cons (cons number (cons --> (cons number ()))) (cons --> (cons (cons number (cons --> (cons (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (cons --> (cons number ()))) ()))) ()))) ()))) ()))) B891 L892 Key893 C894)))))))) (do (shen.declare-with-signature product (cons number (cons --> (cons (cons (cons number (cons --> (cons number ()))) (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ()))) (freeze (lambda V911 (lambda B907 (lambda L908 (lambda Key909 (lambda C910 (is! V911 (cons number (cons --> (cons (cons (cons number (cons --> (cons number ()))) (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ()))) B907 L908 Key909 C910)))))))) (do (shen.declare-with-signature summation (cons number (cons --> (cons (cons (cons number (cons --> (cons number ()))) (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ()))) (freeze (lambda V927 (lambda B923 (lambda L924 (lambda Key925 (lambda C926 (is! V927 (cons number (cons --> (cons (cons (cons number (cons --> (cons number ()))) (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ()))) B923 L924 Key925 C926)))))))) (do (shen.declare-with-signature odd? (cons number (cons --> (cons boolean ()))) (freeze (lambda V934 (lambda B930 (lambda L931 (lambda Key932 (lambda C933 (is! V934 (cons number (cons --> (cons boolean ()))) B930 L931 Key932 C933)))))))) (do (shen.declare-with-signature even? (cons number (cons --> (cons boolean ()))) (freeze (lambda V941 (lambda B937 (lambda L938 (lambda Key939 (lambda C940 (is! V941 (cons number (cons --> (cons boolean ()))) B937 L938 Key939 C940)))))))) (do (shen.declare-with-signature maths.compute-sine (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (freeze (lambda V954 (lambda B950 (lambda L951 (lambda Key952 (lambda C953 (is! V954 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B950 L951 Key952 C953)))))))) (do (shen.declare-with-signature maths.compute-cos (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (freeze (lambda V967 (lambda B963 (lambda L964 (lambda Key965 (lambda C966 (is! V967 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B963 L964 Key965 C966)))))))) (do (shen.declare-with-signature cos (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (freeze (lambda V979 (lambda B975 (lambda L976 (lambda Key977 (lambda C978 (is! V979 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B975 L976 Key977 C978)))))))) (do (shen.declare-with-signature sin (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (freeze (lambda V991 (lambda B987 (lambda L988 (lambda Key989 (lambda C990 (is! V991 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B987 L988 Key989 C990)))))))) (do (shen.declare-with-signature tan (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (freeze (lambda V1001 (lambda B997 (lambda L998 (lambda Key999 (lambda C1000 (is! V1001 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B997 L998 Key999 C1000)))))))) (do (shen.declare-with-signature radians (cons number (cons --> (cons number ()))) (freeze (lambda V1009 (lambda B1005 (lambda L1006 (lambda Key1007 (lambda C1008 (is! V1009 (cons number (cons --> (cons number ()))) B1005 L1006 Key1007 C1008)))))))) (do (shen.declare-with-signature g (cons --> (cons number ())) (freeze (lambda V1014 (lambda B1010 (lambda L1011 (lambda Key1012 (lambda C1013 (is! V1014 (cons --> (cons number ())) B1010 L1011 Key1012 C1013)))))))) (do (shen.declare-with-signature pi (cons --> (cons number ())) (freeze (lambda V1019 (lambda B1015 (lambda L1016 (lambda Key1017 (lambda C1018 (is! V1019 (cons --> (cons number ())) B1015 L1016 Key1017 C1018)))))))) (do (shen.declare-with-signature e (cons --> (cons number ())) (freeze (lambda V1024 (lambda B1020 (lambda L1021 (lambda Key1022 (lambda C1023 (is! V1024 (cons --> (cons number ())) B1020 L1021 Key1022 C1023)))))))) (do (shen.declare-with-signature tan30 (cons --> (cons number ())) (freeze (lambda V1029 (lambda B1025 (lambda L1026 (lambda Key1027 (lambda C1028 (is! V1029 (cons --> (cons number ())) B1025 L1026 Key1027 C1028)))))))) (do (shen.declare-with-signature cos30 (cons --> (cons number ())) (freeze (lambda V1034 (lambda B1030 (lambda L1031 (lambda Key1032 (lambda C1033 (is! V1034 (cons --> (cons number ())) B1030 L1031 Key1032 C1033)))))))) (do (shen.declare-with-signature cos45 (cons --> (cons number ())) (freeze (lambda V1039 (lambda B1035 (lambda L1036 (lambda Key1037 (lambda C1038 (is! V1039 (cons --> (cons number ())) B1035 L1036 Key1037 C1038)))))))) (do (shen.declare-with-signature sin45 (cons --> (cons number ())) (freeze (lambda V1044 (lambda B1040 (lambda L1041 (lambda Key1042 (lambda C1043 (is! V1044 (cons --> (cons number ())) B1040 L1041 Key1042 C1043)))))))) (do (shen.declare-with-signature sqrt2 (cons --> (cons number ())) (freeze (lambda V1049 (lambda B1045 (lambda L1046 (lambda Key1047 (lambda C1048 (is! V1049 (cons --> (cons number ())) B1045 L1046 Key1047 C1048)))))))) (do (shen.declare-with-signature tan60 (cons --> (cons number ())) (freeze (lambda V1054 (lambda B1050 (lambda L1051 (lambda Key1052 (lambda C1053 (is! V1054 (cons --> (cons number ())) B1050 L1051 Key1052 C1053)))))))) (do (shen.declare-with-signature maths.sin60 (cons --> (cons number ())) (freeze (lambda V1059 (lambda B1055 (lambda L1056 (lambda Key1057 (lambda C1058 (is! V1059 (cons --> (cons number ())) B1055 L1056 Key1057 C1058)))))))) (do (shen.declare-with-signature sin120 (cons --> (cons number ())) (freeze (lambda V1064 (lambda B1060 (lambda L1061 (lambda Key1062 (lambda C1063 (is! V1064 (cons --> (cons number ())) B1060 L1061 Key1062 C1063)))))))) (do (shen.declare-with-signature tan120 (cons --> (cons number ())) (freeze (lambda V1069 (lambda B1065 (lambda L1066 (lambda Key1067 (lambda C1068 (is! V1069 (cons --> (cons number ())) B1065 L1066 Key1067 C1068)))))))) (do (shen.declare-with-signature sin135 (cons --> (cons number ())) (freeze (lambda V1074 (lambda B1070 (lambda L1071 (lambda Key1072 (lambda C1073 (is! V1074 (cons --> (cons number ())) B1070 L1071 Key1072 C1073)))))))) (do (shen.declare-with-signature cos135 (cons --> (cons number ())) (freeze (lambda V1079 (lambda B1075 (lambda L1076 (lambda Key1077 (lambda C1078 (is! V1079 (cons --> (cons number ())) B1075 L1076 Key1077 C1078)))))))) (do (shen.declare-with-signature cos150 (cons --> (cons number ())) (freeze (lambda V1084 (lambda B1080 (lambda L1081 (lambda Key1082 (lambda C1083 (is! V1084 (cons --> (cons number ())) B1080 L1081 Key1082 C1083)))))))) (do (shen.declare-with-signature tan150 (cons --> (cons number ())) (freeze (lambda V1089 (lambda B1085 (lambda L1086 (lambda Key1087 (lambda C1088 (is! V1089 (cons --> (cons number ())) B1085 L1086 Key1087 C1088)))))))) (do (shen.declare-with-signature cos210 (cons --> (cons number ())) (freeze (lambda V1094 (lambda B1090 (lambda L1091 (lambda Key1092 (lambda C1093 (is! V1094 (cons --> (cons number ())) B1090 L1091 Key1092 C1093)))))))) (do (shen.declare-with-signature tan210 (cons --> (cons number ())) (freeze (lambda V1099 (lambda B1095 (lambda L1096 (lambda Key1097 (lambda C1098 (is! V1099 (cons --> (cons number ())) B1095 L1096 Key1097 C1098)))))))) (do (shen.declare-with-signature sin225 (cons --> (cons number ())) (freeze (lambda V1104 (lambda B1100 (lambda L1101 (lambda Key1102 (lambda C1103 (is! V1104 (cons --> (cons number ())) B1100 L1101 Key1102 C1103)))))))) (do (shen.declare-with-signature cos225 (cons --> (cons number ())) (freeze (lambda V1109 (lambda B1105 (lambda L1106 (lambda Key1107 (lambda C1108 (is! V1109 (cons --> (cons number ())) B1105 L1106 Key1107 C1108)))))))) (do (shen.declare-with-signature sin240 (cons --> (cons number ())) (freeze (lambda V1114 (lambda B1110 (lambda L1111 (lambda Key1112 (lambda C1113 (is! V1114 (cons --> (cons number ())) B1110 L1111 Key1112 C1113)))))))) (do (shen.declare-with-signature tan240 (cons --> (cons number ())) (freeze (lambda V1119 (lambda B1115 (lambda L1116 (lambda Key1117 (lambda C1118 (is! V1119 (cons --> (cons number ())) B1115 L1116 Key1117 C1118)))))))) (do (shen.declare-with-signature sin300 (cons --> (cons number ())) (freeze (lambda V1124 (lambda B1120 (lambda L1121 (lambda Key1122 (lambda C1123 (is! V1124 (cons --> (cons number ())) B1120 L1121 Key1122 C1123)))))))) (do (shen.declare-with-signature tan300 (cons --> (cons number ())) (freeze (lambda V1129 (lambda B1125 (lambda L1126 (lambda Key1127 (lambda C1128 (is! V1129 (cons --> (cons number ())) B1125 L1126 Key1127 C1128)))))))) (do (shen.declare-with-signature sin315 (cons --> (cons number ())) (freeze (lambda V1134 (lambda B1130 (lambda L1131 (lambda Key1132 (lambda C1133 (is! V1134 (cons --> (cons number ())) B1130 L1131 Key1132 C1133)))))))) (do (shen.declare-with-signature cos315 (cons --> (cons number ())) (freeze (lambda V1139 (lambda B1135 (lambda L1136 (lambda Key1137 (lambda C1138 (is! V1139 (cons --> (cons number ())) B1135 L1136 Key1137 C1138)))))))) (do (shen.declare-with-signature cos330 (cons --> (cons number ())) (freeze (lambda V1144 (lambda B1140 (lambda L1141 (lambda Key1142 (lambda C1143 (is! V1144 (cons --> (cons number ())) B1140 L1141 Key1142 C1143)))))))) (do (shen.declare-with-signature tan330 (cons --> (cons number ())) (freeze (lambda V1149 (lambda B1145 (lambda L1146 (lambda Key1147 (lambda C1148 (is! V1149 (cons --> (cons number ())) B1145 L1146 Key1147 C1148)))))))) (do (shen.declare-with-signature coth (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (freeze (lambda V1161 (lambda B1157 (lambda L1158 (lambda Key1159 (lambda C1160 (is! V1161 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B1157 L1158 Key1159 C1160)))))))) (do (shen.declare-with-signature sinh (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (freeze (lambda V1174 (lambda B1170 (lambda L1171 (lambda Key1172 (lambda C1173 (is! V1174 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B1170 L1171 Key1172 C1173)))))))) (do (shen.declare-with-signature cosh (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (freeze (lambda V1187 (lambda B1183 (lambda L1184 (lambda Key1185 (lambda C1186 (is! V1187 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B1183 L1184 Key1185 C1186)))))))) (do (shen.declare-with-signature tanh (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (freeze (lambda V1197 (lambda B1193 (lambda L1194 (lambda Key1195 (lambda C1196 (is! V1197 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B1193 L1194 Key1195 C1196)))))))) (do (shen.declare-with-signature sech (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (freeze (lambda V1206 (lambda B1202 (lambda L1203 (lambda Key1204 (lambda C1205 (is! V1206 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B1202 L1203 Key1204 C1205)))))))) (do (shen.declare-with-signature csch (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (freeze (lambda V1215 (lambda B1211 (lambda L1212 (lambda Key1213 (lambda C1214 (is! V1215 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B1211 L1212 Key1213 C1214)))))))) (do (shen.declare-with-signature power (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (freeze (lambda V1226 (lambda B1222 (lambda L1223 (lambda Key1224 (lambda C1225 (is! V1226 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B1222 L1223 Key1224 C1225)))))))) (do (shen.declare-with-signature factorial (cons number (cons --> (cons number ()))) (freeze (lambda V1233 (lambda B1229 (lambda L1230 (lambda Key1231 (lambda C1232 (is! V1233 (cons number (cons --> (cons number ()))) B1229 L1230 Key1231 C1232)))))))) (do (shen.declare-with-signature prime? (cons number (cons --> (cons boolean ()))) (freeze (lambda V1240 (lambda B1236 (lambda L1237 (lambda Key1238 (lambda C1239 (is! V1240 (cons number (cons --> (cons boolean ()))) B1236 L1237 Key1238 C1239)))))))) (do (shen.declare-with-signature maths.prime-h (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons boolean ()))) ()))) ()))) (freeze (lambda V1252 (lambda B1248 (lambda L1249 (lambda Key1250 (lambda C1251 (is! V1252 (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons boolean ()))) ()))) ()))) B1248 L1249 Key1250 C1251)))))))) (do (shen.declare-with-signature maths.sign (cons number (cons --> (cons number ()))) (freeze (lambda V1261 (lambda B1257 (lambda L1258 (lambda Key1259 (lambda C1260 (is! V1261 (cons number (cons --> (cons number ()))) B1257 L1258 Key1259 C1260)))))))) (do (shen.declare-with-signature log (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ()))) (freeze (lambda V1273 (lambda B1269 (lambda L1270 (lambda Key1271 (lambda C1272 (is! V1273 (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ()))) B1269 L1270 Key1271 C1272)))))))) (do (shen.declare-with-signature loge (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (freeze (lambda V1282 (lambda B1278 (lambda L1279 (lambda Key1280 (lambda C1281 (is! V1282 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B1278 L1279 Key1280 C1281)))))))) (do (shen.declare-with-signature log2 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (freeze (lambda V1291 (lambda B1287 (lambda L1288 (lambda Key1289 (lambda C1290 (is! V1291 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B1287 L1288 Key1289 C1290)))))))) (do (shen.declare-with-signature log10 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (freeze (lambda V1300 (lambda B1296 (lambda L1297 (lambda Key1298 (lambda C1299 (is! V1300 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B1296 L1297 Key1298 C1299)))))))) (do (shen.declare-with-signature maths.log10+ (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (freeze (lambda V1310 (lambda B1306 (lambda L1307 (lambda Key1308 (lambda C1309 (is! V1310 (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) B1306 L1307 Key1308 C1309)))))))) (do (shen.declare-with-signature maths.upto (cons (protect A) (cons --> (cons (cons (cons (protect A) (cons --> (cons boolean ()))) (cons --> (cons (cons (cons (protect A) (cons --> (cons (protect A) ()))) (cons --> (cons (cons (cons (protect B) (cons --> (cons (cons (protect C) (cons --> (cons (protect C) ()))) ()))) (cons --> (cons (cons (protect C) (cons --> (cons (cons (cons (protect A) (cons --> (cons (protect B) ()))) (cons --> (cons (protect C) ()))) ()))) ()))) ()))) ()))) ()))) (freeze (lambda V1341 (lambda B1337 (lambda L1338 (lambda Key1339 (lambda C1340 (let A (shen.newpv B1337) (shen.gc B1337 (let B (shen.newpv B1337) (shen.gc B1337 (let C (shen.newpv B1337) (shen.gc B1337 (is! V1341 (cons A (cons --> (cons (cons (cons A (cons --> (cons boolean ()))) (cons --> (cons (cons (cons A (cons --> (cons A ()))) (cons --> (cons (cons (cons B (cons --> (cons (cons C (cons --> (cons C ()))) ()))) (cons --> (cons (cons C (cons --> (cons (cons (cons A (cons --> (cons B ()))) (cons --> (cons C ()))) ()))) ()))) ()))) ()))) ()))) B1337 L1338 Key1339 C1340)))))))))))))) (do (shen.declare-with-signature r# (cons number (cons --> (cons (cons number (cons --> (cons rational ()))) ()))) (freeze (lambda V1373 (lambda B1369 (lambda L1370 (lambda Key1371 (lambda C1372 (is! V1373 (cons number (cons --> (cons (cons number (cons --> (cons rational ()))) ()))) B1369 L1370 Key1371 C1372)))))))) (do (shen.declare-with-signature rational? (cons A (cons --> (cons boolean ()))) (freeze (lambda V1378 (lambda B1374 (lambda L1375 (lambda Key1376 (lambda C1377 (let A (shen.newpv B1374) (shen.gc B1374 (is! V1378 (cons A (cons --> (cons boolean ()))) B1374 L1375 Key1376 C1377)))))))))) (do (shen.declare-with-signature numerator (cons rational (cons --> (cons number ()))) (freeze (lambda V1383 (lambda B1379 (lambda L1380 (lambda Key1381 (lambda C1382 (is! V1383 (cons rational (cons --> (cons number ()))) B1379 L1380 Key1381 C1382)))))))) (do (shen.declare-with-signature denominator (cons rational (cons --> (cons number ()))) (freeze (lambda V1388 (lambda B1384 (lambda L1385 (lambda Key1386 (lambda C1387 (is! V1388 (cons rational (cons --> (cons number ()))) B1384 L1385 Key1386 C1387)))))))) (do (shen.declare-with-signature r-op1 (cons (cons number (cons --> (cons number ()))) (cons --> (cons (cons rational (cons --> (cons rational ()))) ()))) (freeze (lambda V1438 (lambda B1434 (lambda L1435 (lambda Key1436 (lambda C1437 (is! V1438 (cons (cons number (cons --> (cons number ()))) (cons --> (cons (cons rational (cons --> (cons rational ()))) ()))) B1434 L1435 Key1436 C1437)))))))) (do (shen.declare-with-signature r-op2 (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (cons --> (cons (cons rational (cons --> (cons (cons rational (cons --> (cons rational ()))) ()))) ()))) (freeze (lambda V1451 (lambda B1447 (lambda L1448 (lambda Key1449 (lambda C1450 (is! V1451 (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (cons --> (cons (cons rational (cons --> (cons (cons rational (cons --> (cons rational ()))) ()))) ()))) B1447 L1448 Key1449 C1450)))))))) (do (shen.declare-with-signature r->n (cons rational (cons --> (cons number ()))) (freeze (lambda V1459 (lambda B1455 (lambda L1456 (lambda Key1457 (lambda C1458 (is! V1459 (cons rational (cons --> (cons number ()))) B1455 L1456 Key1457 C1458)))))))) (do (shen.declare-with-signature r->pair (cons rational (cons --> (cons (cons number (cons * (cons number ()))) ()))) (freeze (lambda V1467 (lambda B1463 (lambda L1464 (lambda Key1465 (lambda C1466 (is! V1467 (cons rational (cons --> (cons (cons number (cons * (cons number ()))) ()))) B1463 L1464 Key1465 C1466)))))))) (do (shen.declare-with-signature n->r (cons number (cons --> (cons rational ()))) (freeze (lambda V1476 (lambda B1472 (lambda L1473 (lambda Key1474 (lambda C1475 (is! V1476 (cons number (cons --> (cons rational ()))) B1472 L1473 Key1474 C1475)))))))) (do (shen.declare-with-signature r-reduce (cons rational (cons --> (cons rational ()))) (freeze (lambda V1484 (lambda B1480 (lambda L1481 (lambda Key1482 (lambda C1483 (is! V1484 (cons rational (cons --> (cons rational ()))) B1480 L1481 Key1482 C1483)))))))) (do (shen.declare-with-signature rational.r-reduce-help (cons number (cons --> (cons (cons number (cons --> (cons rational ()))) ()))) (freeze (lambda V1495 (lambda B1491 (lambda L1492 (lambda Key1493 (lambda C1494 (is! V1495 (cons number (cons --> (cons (cons number (cons --> (cons rational ()))) ()))) B1491 L1492 Key1493 C1494)))))))) (do (shen.declare-with-signature r= (cons rational (cons --> (cons (cons rational (cons --> (cons boolean ()))) ()))) (freeze (lambda V1509 (lambda B1505 (lambda L1506 (lambda Key1507 (lambda C1508 (is! V1509 (cons rational (cons --> (cons (cons rational (cons --> (cons boolean ()))) ()))) B1505 L1506 Key1507 C1508)))))))) (do (shen.declare-with-signature r< (cons rational (cons --> (cons (cons rational (cons --> (cons boolean ()))) ()))) (freeze (lambda V1523 (lambda B1519 (lambda L1520 (lambda Key1521 (lambda C1522 (is! V1523 (cons rational (cons --> (cons (cons rational (cons --> (cons boolean ()))) ()))) B1519 L1520 Key1521 C1522)))))))) (do (shen.declare-with-signature r> (cons rational (cons --> (cons (cons rational (cons --> (cons boolean ()))) ()))) (freeze (lambda V1532 (lambda B1528 (lambda L1529 (lambda Key1530 (lambda C1531 (is! V1532 (cons rational (cons --> (cons (cons rational (cons --> (cons boolean ()))) ()))) B1528 L1529 Key1530 C1531)))))))) (do (shen.declare-with-signature r>= (cons rational (cons --> (cons (cons rational (cons --> (cons boolean ()))) ()))) (freeze (lambda V1541 (lambda B1537 (lambda L1538 (lambda Key1539 (lambda C1540 (is! V1541 (cons rational (cons --> (cons (cons rational (cons --> (cons boolean ()))) ()))) B1537 L1538 Key1539 C1540)))))))) (do (shen.declare-with-signature r<= (cons rational (cons --> (cons (cons rational (cons --> (cons boolean ()))) ()))) (freeze (lambda V1550 (lambda B1546 (lambda L1547 (lambda Key1548 (lambda C1549 (is! V1550 (cons rational (cons --> (cons (cons rational (cons --> (cons boolean ()))) ()))) B1546 L1547 Key1548 C1549)))))))) (do (shen.declare-with-signature r+ (cons rational (cons --> (cons (cons rational (cons --> (cons rational ()))) ()))) (freeze (lambda V1565 (lambda B1561 (lambda L1562 (lambda Key1563 (lambda C1564 (is! V1565 (cons rational (cons --> (cons (cons rational (cons --> (cons rational ()))) ()))) B1561 L1562 Key1563 C1564)))))))) (do (shen.declare-with-signature r- (cons rational (cons --> (cons (cons rational (cons --> (cons rational ()))) ()))) (freeze (lambda V1580 (lambda B1576 (lambda L1577 (lambda Key1578 (lambda C1579 (is! V1580 (cons rational (cons --> (cons (cons rational (cons --> (cons rational ()))) ()))) B1576 L1577 Key1578 C1579)))))))) (do (shen.declare-with-signature r* (cons rational (cons --> (cons (cons rational (cons --> (cons rational ()))) ()))) (freeze (lambda V1594 (lambda B1590 (lambda L1591 (lambda Key1592 (lambda C1593 (is! V1594 (cons rational (cons --> (cons (cons rational (cons --> (cons rational ()))) ()))) B1590 L1591 Key1592 C1593)))))))) (do (shen.declare-with-signature +-inverse (cons rational (cons --> (cons rational ()))) (freeze (lambda V1603 (lambda B1599 (lambda L1600 (lambda Key1601 (lambda C1602 (is! V1603 (cons rational (cons --> (cons rational ()))) B1599 L1600 Key1601 C1602)))))))) (do (shen.declare-with-signature *-inverse (cons rational (cons --> (cons rational ()))) (freeze (lambda V1612 (lambda B1608 (lambda L1609 (lambda Key1610 (lambda C1611 (is! V1612 (cons rational (cons --> (cons rational ()))) B1608 L1609 Key1610 C1611)))))))) (do (shen.declare-with-signature r/ (cons rational (cons --> (cons (cons rational (cons --> (cons rational ()))) ()))) (freeze (lambda V1621 (lambda B1617 (lambda L1618 (lambda Key1619 (lambda C1620 (is! V1621 (cons rational (cons --> (cons (cons rational (cons --> (cons rational ()))) ()))) B1617 L1618 Key1619 C1620)))))))) (do (shen.declare-with-signature r-expt (cons rational (cons --> (cons (cons number (cons --> (cons rational ()))) ()))) (freeze (lambda V1638 (lambda B1634 (lambda L1635 (lambda Key1636 (lambda C1637 (is! V1638 (cons rational (cons --> (cons (cons number (cons --> (cons rational ()))) ()))) B1634 L1635 Key1636 C1637)))))))) (do (shen.declare-with-signature r-approx (cons rational (cons --> (cons (cons number (cons --> (cons rational ()))) ()))) (freeze (lambda V1647 (lambda B1643 (lambda L1644 (lambda Key1645 (lambda C1646 (is! V1647 (cons rational (cons --> (cons (cons number (cons --> (cons rational ()))) ()))) B1643 L1644 Key1645 C1646)))))))) (do (shen.declare-with-signature rational.approx-r-h (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons rational ()))) ()))) ()))) (freeze (lambda V1658 (lambda B1654 (lambda L1655 (lambda Key1656 (lambda C1657 (is! V1658 (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons rational ()))) ()))) ()))) B1654 L1655 Key1656 C1657)))))))) (do (shen.declare-with-signature c# (cons number (cons --> (cons (cons number (cons --> (cons complex ()))) ()))) (freeze (lambda V1691 (lambda B1687 (lambda L1688 (lambda Key1689 (lambda C1690 (is! V1691 (cons number (cons --> (cons (cons number (cons --> (cons complex ()))) ()))) B1687 L1688 Key1689 C1690)))))))) (do (shen.declare-with-signature complex? (cons A (cons --> (cons boolean ()))) (freeze (lambda V1696 (lambda B1692 (lambda L1693 (lambda Key1694 (lambda C1695 (let A (shen.newpv B1692) (shen.gc B1692 (is! V1696 (cons A (cons --> (cons boolean ()))) B1692 L1693 Key1694 C1695)))))))))) (do (shen.declare-with-signature real (cons complex (cons --> (cons number ()))) (freeze (lambda V1701 (lambda B1697 (lambda L1698 (lambda Key1699 (lambda C1700 (is! V1701 (cons complex (cons --> (cons number ()))) B1697 L1698 Key1699 C1700)))))))) (do (shen.declare-with-signature imaginary (cons complex (cons --> (cons number ()))) (freeze (lambda V1706 (lambda B1702 (lambda L1703 (lambda Key1704 (lambda C1705 (is! V1706 (cons complex (cons --> (cons number ()))) B1702 L1703 Key1704 C1705)))))))) (do (shen.declare-with-signature c+ (cons complex (cons --> (cons (cons complex (cons --> (cons complex ()))) ()))) (freeze (lambda V1730 (lambda B1726 (lambda L1727 (lambda Key1728 (lambda C1729 (is! V1730 (cons complex (cons --> (cons (cons complex (cons --> (cons complex ()))) ()))) B1726 L1727 Key1728 C1729)))))))) (do (shen.declare-with-signature c- (cons complex (cons --> (cons (cons complex (cons --> (cons complex ()))) ()))) (freeze (lambda V1744 (lambda B1740 (lambda L1741 (lambda Key1742 (lambda C1743 (is! V1744 (cons complex (cons --> (cons (cons complex (cons --> (cons complex ()))) ()))) B1740 L1741 Key1742 C1743)))))))) (do (shen.declare-with-signature c* (cons complex (cons --> (cons (cons complex (cons --> (cons complex ()))) ()))) (freeze (lambda V1760 (lambda B1756 (lambda L1757 (lambda Key1758 (lambda C1759 (is! V1760 (cons complex (cons --> (cons (cons complex (cons --> (cons complex ()))) ()))) B1756 L1757 Key1758 C1759)))))))) (do (shen.declare-with-signature c/ (cons complex (cons --> (cons (cons complex (cons --> (cons complex ()))) ()))) (freeze (lambda V1780 (lambda B1776 (lambda L1777 (lambda Key1778 (lambda C1779 (is! V1780 (cons complex (cons --> (cons (cons complex (cons --> (cons complex ()))) ()))) B1776 L1777 Key1778 C1779)))))))) (do (shen.declare-with-signature radix (cons numeral (cons --> (cons number ()))) (freeze (lambda V1815 (lambda B1811 (lambda L1812 (lambda Key1813 (lambda C1814 (is! V1815 (cons numeral (cons --> (cons number ()))) B1811 L1812 Key1813 C1814)))))))) (do (shen.declare-with-signature n#->ns (cons numeral (cons --> (cons (cons list (cons number ())) ()))) (freeze (lambda V1820 (lambda B1816 (lambda L1817 (lambda Key1818 (lambda C1819 (is! V1820 (cons numeral (cons --> (cons (cons list (cons number ())) ()))) B1816 L1817 Key1818 C1819)))))))) (do (shen.declare-with-signature n#->n (cons numeral (cons --> (cons number ()))) (freeze (lambda V1825 (lambda B1821 (lambda L1822 (lambda Key1823 (lambda C1824 (is! V1825 (cons numeral (cons --> (cons number ()))) B1821 L1822 Key1823 C1824)))))))) (do (shen.declare-with-signature n# (cons number (cons --> (cons (cons number (cons --> (cons numeral ()))) ()))) (freeze (lambda V1830 (lambda B1826 (lambda L1827 (lambda Key1828 (lambda C1829 (is! V1830 (cons number (cons --> (cons (cons number (cons --> (cons numeral ()))) ()))) B1826 L1827 Key1828 C1829)))))))) (do (shen.declare-with-signature numeral? (cons A (cons --> (cons boolean ()))) (freeze (lambda V1835 (lambda B1831 (lambda L1832 (lambda Key1833 (lambda C1834 (let A (shen.newpv B1831) (shen.gc B1831 (is! V1835 (cons A (cons --> (cons boolean ()))) B1831 L1832 Key1833 C1834)))))))))) (do (shen.declare-with-signature n-op2 (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (cons --> (cons (cons numeral (cons --> (cons (cons numeral (cons --> (cons (cons number (cons --> (cons numeral ()))) ()))) ()))) ()))) (freeze (lambda V1918 (lambda B1914 (lambda L1915 (lambda Key1916 (lambda C1917 (is! V1918 (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) (cons --> (cons (cons numeral (cons --> (cons (cons numeral (cons --> (cons (cons number (cons --> (cons numeral ()))) ()))) ()))) ()))) B1914 L1915 Key1916 C1917)))))))) (do (shen.declare-with-signature n-op1 (cons (cons number (cons --> (cons number ()))) (cons --> (cons (cons numeral (cons --> (cons (cons number (cons --> (cons numeral ()))) ()))) ()))) (freeze (lambda V1930 (lambda B1926 (lambda L1927 (lambda Key1928 (lambda C1929 (is! V1930 (cons (cons number (cons --> (cons number ()))) (cons --> (cons (cons numeral (cons --> (cons (cons number (cons --> (cons numeral ()))) ()))) ()))) B1926 L1927 Key1928 C1929)))))))) (do (shen.declare-with-signature n+ (cons numeral (cons --> (cons (cons numeral (cons --> (cons (cons number (cons --> (cons numeral ()))) ()))) ()))) (freeze (lambda V1945 (lambda B1941 (lambda L1942 (lambda Key1943 (lambda C1944 (is! V1945 (cons numeral (cons --> (cons (cons numeral (cons --> (cons (cons number (cons --> (cons numeral ()))) ()))) ()))) B1941 L1942 Key1943 C1944)))))))) (do (shen.declare-with-signature n* (cons numeral (cons --> (cons (cons numeral (cons --> (cons (cons number (cons --> (cons numeral ()))) ()))) ()))) (freeze (lambda V1960 (lambda B1956 (lambda L1957 (lambda Key1958 (lambda C1959 (is! V1960 (cons numeral (cons --> (cons (cons numeral (cons --> (cons (cons number (cons --> (cons numeral ()))) ()))) ()))) B1956 L1957 Key1958 C1959)))))))) (do (shen.declare-with-signature n- (cons numeral (cons --> (cons (cons numeral (cons --> (cons (cons number (cons --> (cons numeral ()))) ()))) ()))) (freeze (lambda V1975 (lambda B1971 (lambda L1972 (lambda Key1973 (lambda C1974 (is! V1975 (cons numeral (cons --> (cons (cons numeral (cons --> (cons (cons number (cons --> (cons numeral ()))) ()))) ()))) B1971 L1972 Key1973 C1974)))))))) (do (shen.declare-with-signature n/ (cons numeral (cons --> (cons (cons numeral (cons --> (cons (cons number (cons --> (cons numeral ()))) ()))) ()))) (freeze (lambda V1990 (lambda B1986 (lambda L1987 (lambda Key1988 (lambda C1989 (is! V1990 (cons numeral (cons --> (cons (cons numeral (cons --> (cons (cons number (cons --> (cons numeral ()))) ()))) ()))) B1986 L1987 Key1988 C1989)))))))) (do (shen.declare-with-signature binary (cons number (cons --> (cons numeral ()))) (freeze (lambda V1997 (lambda B1993 (lambda L1994 (lambda Key1995 (lambda C1996 (is! V1997 (cons number (cons --> (cons numeral ()))) B1993 L1994 Key1995 C1996)))))))) (do (shen.declare-with-signature hex (cons number (cons --> (cons numeral ()))) (freeze (lambda V2004 (lambda B2000 (lambda L2001 (lambda Key2002 (lambda C2003 (is! V2004 (cons number (cons --> (cons numeral ()))) B2000 L2001 Key2002 C2003)))))))) (do (shen.declare-with-signature octal (cons number (cons --> (cons numeral ()))) (freeze (lambda V2011 (lambda B2007 (lambda L2008 (lambda Key2009 (lambda C2010 (is! V2011 (cons number (cons --> (cons numeral ()))) B2007 L2008 Key2009 C2010)))))))) (do (shen.declare-with-signature duodecimal (cons number (cons --> (cons numeral ()))) (freeze (lambda V2018 (lambda B2014 (lambda L2015 (lambda Key2016 (lambda C2017 (is! V2018 (cons number (cons --> (cons numeral ()))) B2014 L2015 Key2016 C2017)))))))) (do (shen.declare-with-signature numerals.n->numeral (cons number (cons --> (cons (cons number (cons --> (cons (cons list (cons number ())) ()))) ()))) (freeze (lambda V2032 (lambda B2028 (lambda L2029 (lambda Key2030 (lambda C2031 (is! V2032 (cons number (cons --> (cons (cons number (cons --> (cons (cons list (cons number ())) ()))) ()))) B2028 L2029 Key2030 C2031)))))))) (do (shen.declare-with-signature numerals.largest-expt (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ()))) (freeze (lambda V2043 (lambda B2039 (lambda L2040 (lambda Key2041 (lambda C2042 (is! V2043 (cons number (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ()))) B2039 L2040 Key2041 C2042)))))))) (do (shen.declare-with-signature numerals.n-zeros (cons number (cons --> (cons (cons list (cons number ())) ()))) (freeze (lambda V2050 (lambda B2046 (lambda L2047 (lambda Key2048 (lambda C2049 (is! V2050 (cons number (cons --> (cons (cons list (cons number ())) ()))) B2046 L2047 Key2048 C2049)))))))) (do (shen.declare-with-signature numerals.add (cons (cons list (cons number ())) (cons --> (cons (cons (cons list (cons number ())) (cons --> (cons (cons number (cons --> (cons (cons list (cons number ())) ()))) ()))) ()))) (freeze (lambda V2064 (lambda B2060 (lambda L2061 (lambda Key2062 (lambda C2063 (is! V2064 (cons (cons list (cons number ())) (cons --> (cons (cons (cons list (cons number ())) (cons --> (cons (cons number (cons --> (cons (cons list (cons number ())) ()))) ()))) ()))) B2060 L2061 Key2062 C2063)))))))) (do (shen.declare-with-signature numerals.add-h (cons (cons list (cons number ())) (cons --> (cons (cons (cons list (cons number ())) (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons (cons list (cons number ())) ()))) ()))) ()))) ()))) (freeze (lambda V2088 (lambda B2084 (lambda L2085 (lambda Key2086 (lambda C2087 (is! V2088 (cons (cons list (cons number ())) (cons --> (cons (cons (cons list (cons number ())) (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons (cons list (cons number ())) ()))) ()))) ()))) ()))) B2084 L2085 Key2086 C2087)))))))) (do (shen.declare-with-signature assoc-if (cons (cons (protect A) (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons (cons list (cons (protect A) ())) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ()))) (freeze (lambda V2205 (lambda B2201 (lambda L2202 (lambda Key2203 (lambda C2204 (let A (shen.newpv B2201) (shen.gc B2201 (is! V2205 (cons (cons A (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons (cons list (cons A ())) ())) (cons --> (cons (cons list (cons A ())) ()))) ()))) B2201 L2202 Key2203 C2204)))))))))) (do (shen.declare-with-signature assoc-if-not (cons (cons (protect A) (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons (cons list (cons (protect A) ())) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ()))) (freeze (lambda V2221 (lambda B2217 (lambda L2218 (lambda Key2219 (lambda C2220 (let A (shen.newpv B2217) (shen.gc B2217 (is! V2221 (cons (cons A (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons (cons list (cons A ())) ())) (cons --> (cons (cons list (cons A ())) ()))) ()))) B2217 L2218 Key2219 C2220)))))))))) (do (shen.declare-with-signature drop (cons number (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ()))) (freeze (lambda V2234 (lambda B2230 (lambda L2231 (lambda Key2232 (lambda C2233 (let A (shen.newpv B2230) (shen.gc B2230 (is! V2234 (cons number (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons A ())) ()))) ()))) B2230 L2231 Key2232 C2233)))))))))) (do (shen.declare-with-signature drop-last (cons number (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ()))) (freeze (lambda V2244 (lambda B2240 (lambda L2241 (lambda Key2242 (lambda C2243 (let A (shen.newpv B2240) (shen.gc B2240 (is! V2244 (cons number (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons A ())) ()))) ()))) B2240 L2241 Key2242 C2243)))))))))) (do (shen.declare-with-signature index (cons (protect A) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons number ()))) ()))) (freeze (lambda V2254 (lambda B2250 (lambda L2251 (lambda Key2252 (lambda C2253 (let A (shen.newpv B2250) (shen.gc B2250 (is! V2254 (cons A (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons number ()))) ()))) B2250 L2251 Key2252 C2253)))))))))) (do (shen.declare-with-signature list.index-h (cons (protect A) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ()))) (freeze (lambda V2277 (lambda B2273 (lambda L2274 (lambda Key2275 (lambda C2276 (let A (shen.newpv B2273) (shen.gc B2273 (is! V2277 (cons A (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ()))) B2273 L2274 Key2275 C2276)))))))))) (do (shen.declare-with-signature index-last (cons (protect A) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons number ()))) ()))) (freeze (lambda V2289 (lambda B2285 (lambda L2286 (lambda Key2287 (lambda C2288 (let A (shen.newpv B2285) (shen.gc B2285 (is! V2289 (cons A (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons number ()))) ()))) B2285 L2286 Key2287 C2288)))))))))) (do (shen.declare-with-signature insert (cons number (cons --> (cons (cons (protect A) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ()))) ()))) (freeze (lambda V2306 (lambda B2302 (lambda L2303 (lambda Key2304 (lambda C2305 (let A (shen.newpv B2302) (shen.gc B2302 (is! V2306 (cons number (cons --> (cons (cons A (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons A ())) ()))) ()))) ()))) B2302 L2303 Key2304 C2305)))))))))) (do (shen.declare-with-signature remove-duplicates (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) (freeze (lambda V2316 (lambda B2312 (lambda L2313 (lambda Key2314 (lambda C2315 (let A (shen.newpv B2312) (shen.gc B2312 (is! V2316 (cons (cons list (cons A ())) (cons --> (cons (cons list (cons A ())) ()))) B2312 L2313 Key2314 C2315)))))))))) (do (shen.declare-with-signature trim-left-if (cons (cons (protect A) (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ()))) (freeze (lambda V2331 (lambda B2327 (lambda L2328 (lambda Key2329 (lambda C2330 (let A (shen.newpv B2327) (shen.gc B2327 (is! V2331 (cons (cons A (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons A ())) ()))) ()))) B2327 L2328 Key2329 C2330)))))))))) (do (shen.declare-with-signature trim-right-if (cons (cons (protect A) (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ()))) (freeze (lambda V2342 (lambda B2338 (lambda L2339 (lambda Key2340 (lambda C2341 (let A (shen.newpv B2338) (shen.gc B2338 (is! V2342 (cons (cons A (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons A ())) ()))) ()))) B2338 L2339 Key2340 C2341)))))))))) (do (shen.declare-with-signature trim-if (cons (cons (protect A) (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ()))) (freeze (lambda V2353 (lambda B2349 (lambda L2350 (lambda Key2351 (lambda C2352 (let A (shen.newpv B2349) (shen.gc B2349 (is! V2353 (cons (cons A (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons A ())) ()))) ()))) B2349 L2350 Key2351 C2352)))))))))) (do (shen.declare-with-signature trim-left (cons (cons list (cons (protect A) ())) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ()))) (freeze (lambda V2368 (lambda B2364 (lambda L2365 (lambda Key2366 (lambda C2367 (let A (shen.newpv B2364) (shen.gc B2364 (is! V2368 (cons (cons list (cons A ())) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons A ())) ()))) ()))) B2364 L2365 Key2366 C2367)))))))))) (do (shen.declare-with-signature trim-right (cons (cons list (cons (protect A) ())) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ()))) (freeze (lambda V2379 (lambda B2375 (lambda L2376 (lambda Key2377 (lambda C2378 (let A (shen.newpv B2375) (shen.gc B2375 (is! V2379 (cons (cons list (cons A ())) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons A ())) ()))) ()))) B2375 L2376 Key2377 C2378)))))))))) (do (shen.declare-with-signature trim (cons (cons list (cons (protect A) ())) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ()))) (freeze (lambda V2390 (lambda B2386 (lambda L2387 (lambda Key2388 (lambda C2389 (let A (shen.newpv B2386) (shen.gc B2386 (is! V2390 (cons (cons list (cons A ())) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons A ())) ()))) ()))) B2386 L2387 Key2388 C2389)))))))))) (do (shen.declare-with-signature prefix? (cons (cons list (cons (protect A) ())) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons boolean ()))) ()))) (freeze (lambda V2409 (lambda B2405 (lambda L2406 (lambda Key2407 (lambda C2408 (let A (shen.newpv B2405) (shen.gc B2405 (is! V2409 (cons (cons list (cons A ())) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons boolean ()))) ()))) B2405 L2406 Key2407 C2408)))))))))) (do (shen.declare-with-signature infix? (cons (cons list (cons (protect A) ())) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons boolean ()))) ()))) (freeze (lambda V2423 (lambda B2419 (lambda L2420 (lambda Key2421 (lambda C2422 (let A (shen.newpv B2419) (shen.gc B2419 (is! V2423 (cons (cons list (cons A ())) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons boolean ()))) ()))) B2419 L2420 Key2421 C2422)))))))))) (do (shen.declare-with-signature suffix? (cons (cons list (cons (protect A) ())) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons boolean ()))) ()))) (freeze (lambda V2434 (lambda B2430 (lambda L2431 (lambda Key2432 (lambda C2433 (let A (shen.newpv B2430) (shen.gc B2430 (is! V2434 (cons (cons list (cons A ())) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons boolean ()))) ()))) B2430 L2431 Key2432 C2433)))))))))) (do (shen.declare-with-signature subset? (cons (cons list (cons (protect A) ())) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons boolean ()))) ()))) (freeze (lambda V2450 (lambda B2446 (lambda L2447 (lambda Key2448 (lambda C2449 (let A (shen.newpv B2446) (shen.gc B2446 (is! V2450 (cons (cons list (cons A ())) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons boolean ()))) ()))) B2446 L2447 Key2448 C2449)))))))))) (do (shen.declare-with-signature set=? (cons (cons list (cons (protect A) ())) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons boolean ()))) ()))) (freeze (lambda V2460 (lambda B2456 (lambda L2457 (lambda Key2458 (lambda C2459 (let A (shen.newpv B2456) (shen.gc B2456 (is! V2460 (cons (cons list (cons A ())) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons boolean ()))) ()))) B2456 L2457 Key2458 C2459)))))))))) (do (shen.declare-with-signature set? (cons (cons list (cons (protect A) ())) (cons --> (cons boolean ()))) (freeze (lambda V2470 (lambda B2466 (lambda L2467 (lambda Key2468 (lambda C2469 (let A (shen.newpv B2466) (shen.gc B2466 (is! V2470 (cons (cons list (cons A ())) (cons --> (cons boolean ()))) B2466 L2467 Key2468 C2469)))))))))) (do (shen.declare-with-signature n-times (cons (protect A) (cons --> (cons (cons number (cons --> (cons (cons list (cons (protect A) ())) ()))) ()))) (freeze (lambda V2480 (lambda B2476 (lambda L2477 (lambda Key2478 (lambda C2479 (let A (shen.newpv B2476) (shen.gc B2476 (is! V2480 (cons A (cons --> (cons (cons number (cons --> (cons (cons list (cons A ())) ()))) ()))) B2476 L2477 Key2478 C2479)))))))))) (do (shen.declare-with-signature list.n-times-h (cons number (cons --> (cons (cons (protect A) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ()))) ()))) (freeze (lambda V2494 (lambda B2490 (lambda L2491 (lambda Key2492 (lambda C2493 (let A (shen.newpv B2490) (shen.gc B2490 (is! V2494 (cons number (cons --> (cons (cons A (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons A ())) ()))) ()))) ()))) B2490 L2491 Key2492 C2493)))))))))) (do (shen.declare-with-signature subbag? (cons (cons list (cons (protect A) ())) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons boolean ()))) ()))) (freeze (lambda V2506 (lambda B2502 (lambda L2503 (lambda Key2504 (lambda C2505 (let A (shen.newpv B2502) (shen.gc B2502 (is! V2506 (cons (cons list (cons A ())) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons boolean ()))) ()))) B2502 L2503 Key2504 C2505)))))))))) (do (shen.declare-with-signature bag=? (cons (cons list (cons (protect A) ())) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons boolean ()))) ()))) (freeze (lambda V2516 (lambda B2512 (lambda L2513 (lambda Key2514 (lambda C2515 (let A (shen.newpv B2512) (shen.gc B2512 (is! V2516 (cons (cons list (cons A ())) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons boolean ()))) ()))) B2512 L2513 Key2514 C2515)))))))))) (do (shen.declare-with-signature mapc (cons (cons (protect A) (cons --> (cons (protect B) ()))) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect C) ())) ()))) ()))) (freeze (lambda V2531 (lambda B2527 (lambda L2528 (lambda Key2529 (lambda C2530 (let B (shen.newpv B2527) (shen.gc B2527 (let A (shen.newpv B2527) (shen.gc B2527 (let C (shen.newpv B2527) (shen.gc B2527 (is! V2531 (cons (cons A (cons --> (cons B ()))) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons C ())) ()))) ()))) B2527 L2528 Key2529 C2530)))))))))))))) (do (shen.declare-with-signature permute (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (cons list (cons (protect A) ())) ())) ()))) (freeze (lambda V2541 (lambda B2537 (lambda L2538 (lambda Key2539 (lambda C2540 (let A (shen.newpv B2537) (shen.gc B2537 (is! V2541 (cons (cons list (cons A ())) (cons --> (cons (cons list (cons (cons list (cons A ())) ())) ()))) B2537 L2538 Key2539 C2540)))))))))) (do (shen.declare-with-signature count-if (cons (cons (protect A) (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons number ()))) ()))) (freeze (lambda V2552 (lambda B2548 (lambda L2549 (lambda Key2550 (lambda C2551 (let A (shen.newpv B2548) (shen.gc B2548 (is! V2552 (cons (cons A (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons number ()))) ()))) B2548 L2549 Key2550 C2551)))))))))) (do (shen.declare-with-signature count (cons (protect A) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons number ()))) ()))) (freeze (lambda V2564 (lambda B2560 (lambda L2561 (lambda Key2562 (lambda C2563 (let A (shen.newpv B2560) (shen.gc B2560 (is! V2564 (cons A (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons number ()))) ()))) B2560 L2561 Key2562 C2563)))))))))) (do (shen.declare-with-signature some? (cons (cons (protect A) (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons boolean ()))) ()))) (freeze (lambda V2579 (lambda B2575 (lambda L2576 (lambda Key2577 (lambda C2578 (let A (shen.newpv B2575) (shen.gc B2575 (is! V2579 (cons (cons A (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons boolean ()))) ()))) B2575 L2576 Key2577 C2578)))))))))) (do (shen.declare-with-signature every? (cons (cons (protect A) (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons boolean ()))) ()))) (freeze (lambda V2595 (lambda B2591 (lambda L2592 (lambda Key2593 (lambda C2594 (let A (shen.newpv B2591) (shen.gc B2591 (is! V2595 (cons (cons A (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons boolean ()))) ()))) B2591 L2592 Key2593 C2594)))))))))) (do (shen.declare-with-signature sort (cons (cons (protect A) (cons --> (cons (cons (protect A) (cons --> (cons boolean ()))) ()))) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ()))) (freeze (lambda V2619 (lambda B2615 (lambda L2616 (lambda Key2617 (lambda C2618 (let A (shen.newpv B2615) (shen.gc B2615 (is! V2619 (cons (cons A (cons --> (cons (cons A (cons --> (cons boolean ()))) ()))) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons A ())) ()))) ()))) B2615 L2616 Key2617 C2618)))))))))) (do (shen.declare-with-signature find (cons (cons (protect A) (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (protect A) ()))) ()))) (freeze (lambda V2635 (lambda B2631 (lambda L2632 (lambda Key2633 (lambda C2634 (let A (shen.newpv B2631) (shen.gc B2631 (is! V2635 (cons (cons A (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons A ()))) ()))) B2631 L2632 Key2633 C2634)))))))))) (do (shen.declare-with-signature foldr (cons (cons (protect A) (cons --> (cons (cons (protect B) (cons --> (cons (protect B) ()))) ()))) (cons --> (cons (cons (protect B) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (protect B) ()))) ()))) ()))) (freeze (lambda V2654 (lambda B2650 (lambda L2651 (lambda Key2652 (lambda C2653 (let A (shen.newpv B2650) (shen.gc B2650 (let B (shen.newpv B2650) (shen.gc B2650 (is! V2654 (cons (cons A (cons --> (cons (cons B (cons --> (cons B ()))) ()))) (cons --> (cons (cons B (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons B ()))) ()))) ()))) B2650 L2651 Key2652 C2653)))))))))))) (do (shen.declare-with-signature foldl (cons (cons (protect A) (cons --> (cons (cons (protect B) (cons --> (cons (protect A) ()))) ()))) (cons --> (cons (cons (protect A) (cons --> (cons (cons (cons list (cons (protect B) ())) (cons --> (cons (protect A) ()))) ()))) ()))) (freeze (lambda V2674 (lambda B2670 (lambda L2671 (lambda Key2672 (lambda C2673 (let B (shen.newpv B2670) (shen.gc B2670 (let A (shen.newpv B2670) (shen.gc B2670 (is! V2674 (cons (cons A (cons --> (cons (cons B (cons --> (cons A ()))) ()))) (cons --> (cons (cons A (cons --> (cons (cons (cons list (cons B ())) (cons --> (cons A ()))) ()))) ()))) B2670 L2671 Key2672 C2673)))))))))))) (do (shen.declare-with-signature mapf (cons (cons (protect A) (cons --> (cons (protect B) ()))) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons (cons (protect B) (cons --> (cons (cons (cons list (cons (protect C) ())) (cons --> (cons (cons list (cons (protect C) ())) ()))) ()))) (cons --> (cons (cons list (cons (protect C) ())) ()))) ()))) ()))) (freeze (lambda V2696 (lambda B2692 (lambda L2693 (lambda Key2694 (lambda C2695 (let A (shen.newpv B2692) (shen.gc B2692 (let B (shen.newpv B2692) (shen.gc B2692 (let C (shen.newpv B2692) (shen.gc B2692 (is! V2696 (cons (cons A (cons --> (cons B ()))) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons (cons B (cons --> (cons (cons (cons list (cons C ())) (cons --> (cons (cons list (cons C ())) ()))) ()))) (cons --> (cons (cons list (cons C ())) ()))) ()))) ()))) B2692 L2693 Key2694 C2695)))))))))))))) (do (shen.declare-with-signature filter (cons (cons (protect A) (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ()))) (freeze (lambda V2710 (lambda B2706 (lambda L2707 (lambda Key2708 (lambda C2709 (let A (shen.newpv B2706) (shen.gc B2706 (is! V2710 (cons (cons A (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons A ())) ()))) ()))) B2706 L2707 Key2708 C2709)))))))))) (do (shen.declare-with-signature remove-if (cons (cons (protect A) (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ()))) (freeze (lambda V2724 (lambda B2720 (lambda L2721 (lambda Key2722 (lambda C2723 (let A (shen.newpv B2720) (shen.gc B2720 (is! V2724 (cons (cons A (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons A ())) ()))) ()))) B2720 L2721 Key2722 C2723)))))))))) (do (shen.declare-with-signature list.reduce (cons (cons (protect A) (cons --> (cons (cons (protect B) (cons --> (cons (protect A) ()))) ()))) (cons --> (cons (cons (protect A) (cons --> (cons (cons (cons list (cons (protect B) ())) (cons --> (cons (protect A) ()))) ()))) ()))) (freeze (lambda V2742 (lambda B2738 (lambda L2739 (lambda Key2740 (lambda C2741 (let B (shen.newpv B2738) (shen.gc B2738 (let A (shen.newpv B2738) (shen.gc B2738 (is! V2742 (cons (cons A (cons --> (cons (cons B (cons --> (cons A ()))) ()))) (cons --> (cons (cons A (cons --> (cons (cons (cons list (cons B ())) (cons --> (cons A ()))) ()))) ()))) B2738 L2739 Key2740 C2741)))))))))))) (do (shen.declare-with-signature take (cons number (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ()))) (freeze (lambda V2758 (lambda B2754 (lambda L2755 (lambda Key2756 (lambda C2757 (let A (shen.newpv B2754) (shen.gc B2754 (is! V2758 (cons number (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons A ())) ()))) ()))) B2754 L2755 Key2756 C2757)))))))))) (do (shen.declare-with-signature take-last (cons number (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ()))) (freeze (lambda V2768 (lambda B2764 (lambda L2765 (lambda Key2766 (lambda C2767 (let A (shen.newpv B2764) (shen.gc B2764 (is! V2768 (cons number (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons A ())) ()))) ()))) B2764 L2765 Key2766 C2767)))))))))) (do (shen.declare-with-signature cartprod (cons (cons list (cons (protect A) ())) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (cons list (cons (protect A) ())) ())) ()))) ()))) (freeze (lambda V2783 (lambda B2779 (lambda L2780 (lambda Key2781 (lambda C2782 (let A (shen.newpv B2779) (shen.gc B2779 (is! V2783 (cons (cons list (cons A ())) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons (cons list (cons A ())) ())) ()))) ()))) B2779 L2780 Key2781 C2782)))))))))) (do (shen.declare-with-signature powerset (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (cons list (cons (protect A) ())) ())) ()))) (freeze (lambda V2793 (lambda B2789 (lambda L2790 (lambda Key2791 (lambda C2792 (let A (shen.newpv B2789) (shen.gc B2789 (is! V2793 (cons (cons list (cons A ())) (cons --> (cons (cons list (cons (cons list (cons A ())) ())) ()))) B2789 L2790 Key2791 C2792)))))))))) (do (shen.declare-with-signature partition (cons (cons (protect A) (cons --> (cons (cons (protect A) (cons --> (cons boolean ()))) ()))) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (cons list (cons (protect A) ())) ())) ()))) ()))) (freeze (lambda V2814 (lambda B2810 (lambda L2811 (lambda Key2812 (lambda C2813 (let A (shen.newpv B2810) (shen.gc B2810 (is! V2814 (cons (cons A (cons --> (cons (cons A (cons --> (cons boolean ()))) ()))) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons (cons list (cons A ())) ())) ()))) ()))) B2810 L2811 Key2812 C2813)))))))))) (do (shen.declare-with-signature transitive-closure (cons (cons list (cons (cons (protect A) (cons * (cons (protect A) ()))) ())) (cons --> (cons (cons list (cons (cons (protect A) (cons * (cons (protect A) ()))) ())) ()))) (freeze (lambda V2825 (lambda B2821 (lambda L2822 (lambda Key2823 (lambda C2824 (let A (shen.newpv B2821) (shen.gc B2821 (is! V2825 (cons (cons list (cons (cons A (cons * (cons A ()))) ())) (cons --> (cons (cons list (cons (cons A (cons * (cons A ()))) ())) ()))) B2821 L2822 Key2823 C2824)))))))))) (do (shen.declare-with-signature list.transitive-pass (cons (cons list (cons (cons (protect A) (cons * (cons (protect A) ()))) ())) (cons --> (cons (cons (cons list (cons (cons (protect A) (cons * (cons (protect A) ()))) ())) (cons --> (cons (cons list (cons (cons (protect A) (cons * (cons (protect A) ()))) ())) ()))) ()))) (freeze (lambda V2841 (lambda B2837 (lambda L2838 (lambda Key2839 (lambda C2840 (let A (shen.newpv B2837) (shen.gc B2837 (is! V2841 (cons (cons list (cons (cons A (cons * (cons A ()))) ())) (cons --> (cons (cons (cons list (cons (cons A (cons * (cons A ()))) ())) (cons --> (cons (cons list (cons (cons A (cons * (cons A ()))) ())) ()))) ()))) B2837 L2838 Key2839 C2840)))))))))) (do (shen.declare-with-signature list.find-trans (cons (protect A) (cons --> (cons (cons (protect A) (cons --> (cons (cons (cons list (cons (cons (protect A) (cons * (cons (protect A) ()))) ())) (cons --> (cons (cons list (cons (cons (protect A) (cons * (cons (protect A) ()))) ())) ()))) ()))) ()))) (freeze (lambda V2866 (lambda B2862 (lambda L2863 (lambda Key2864 (lambda C2865 (let A (shen.newpv B2862) (shen.gc B2862 (is! V2866 (cons A (cons --> (cons (cons A (cons --> (cons (cons (cons list (cons (cons A (cons * (cons A ()))) ())) (cons --> (cons (cons list (cons (cons A (cons * (cons A ()))) ())) ()))) ()))) ()))) B2862 L2863 Key2864 C2865)))))))))) (do (shen.declare-with-signature x->ascii (cons (protect A) (cons --> (cons (cons list (cons number ())) ()))) (freeze (lambda V2876 (lambda B2872 (lambda L2873 (lambda Key2874 (lambda C2875 (let A (shen.newpv B2872) (shen.gc B2872 (is! V2876 (cons A (cons --> (cons (cons list (cons number ())) ()))) B2872 L2873 Key2874 C2875)))))))))) (do (shen.declare-with-signature splice (cons number (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (protect A) ())) ()))) ()))) ()))) (freeze (lambda V2891 (lambda B2887 (lambda L2888 (lambda Key2889 (lambda C2890 (let A (shen.newpv B2887) (shen.gc B2887 (is! V2891 (cons number (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons (cons list (cons A ())) (cons --> (cons (cons list (cons A ())) ()))) ()))) ()))) B2887 L2888 Key2889 C2890)))))))))) (do (shen.declare-with-signature string->list (cons string (cons --> (cons (cons list (cons string ())) ()))) (freeze (lambda V2994 (lambda B2990 (lambda L2991 (lambda Key2992 (lambda C2993 (is! V2994 (cons string (cons --> (cons (cons list (cons string ())) ()))) B2990 L2991 Key2992 C2993)))))))) (do (shen.declare-with-signature string.s->l-h (cons string (cons --> (cons (cons number (cons --> (cons (cons string (cons --> (cons (cons (cons list (cons string ())) (cons --> (cons (cons list (cons string ())) ()))) ()))) ()))) ()))) (freeze (lambda V3011 (lambda B3007 (lambda L3008 (lambda Key3009 (lambda C3010 (is! V3011 (cons string (cons --> (cons (cons number (cons --> (cons (cons string (cons --> (cons (cons (cons list (cons string ())) (cons --> (cons (cons list (cons string ())) ()))) ()))) ()))) ()))) B3007 L3008 Key3009 C3010)))))))) (do (shen.declare-with-signature list->string (cons (cons list (cons string ())) (cons --> (cons string ()))) (freeze (lambda V3019 (lambda B3015 (lambda L3016 (lambda Key3017 (lambda C3018 (is! V3019 (cons (cons list (cons string ())) (cons --> (cons string ()))) B3015 L3016 Key3017 C3018)))))))) (do (shen.declare-with-signature s-op1 (cons (cons (cons list (cons string ())) (cons --> (cons (protect A) ()))) (cons --> (cons (cons string (cons --> (cons (cons (cons (protect A) (cons --> (cons (protect B) ()))) (cons --> (cons (protect B) ()))) ()))) ()))) (freeze (lambda V3034 (lambda B3030 (lambda L3031 (lambda Key3032 (lambda C3033 (let A (shen.newpv B3030) (shen.gc B3030 (let B (shen.newpv B3030) (shen.gc B3030 (is! V3034 (cons (cons (cons list (cons string ())) (cons --> (cons A ()))) (cons --> (cons (cons string (cons --> (cons (cons (cons A (cons --> (cons B ()))) (cons --> (cons B ()))) ()))) ()))) B3030 L3031 Key3032 C3033)))))))))))) (do (shen.declare-with-signature s-op2 (cons (cons (cons list (cons string ())) (cons --> (cons (cons (cons list (cons string ())) (cons --> (cons (protect A) ()))) ()))) (cons --> (cons (cons string (cons --> (cons (cons string (cons --> (cons (cons (cons (protect A) (cons --> (cons (protect B) ()))) (cons --> (cons (protect B) ()))) ()))) ()))) ()))) (freeze (lambda V3053 (lambda B3049 (lambda L3050 (lambda Key3051 (lambda C3052 (let A (shen.newpv B3049) (shen.gc B3049 (let B (shen.newpv B3049) (shen.gc B3049 (is! V3053 (cons (cons (cons list (cons string ())) (cons --> (cons (cons (cons list (cons string ())) (cons --> (cons A ()))) ()))) (cons --> (cons (cons string (cons --> (cons (cons string (cons --> (cons (cons (cons A (cons --> (cons B ()))) (cons --> (cons B ()))) ()))) ()))) ()))) B3049 L3050 Key3051 C3052)))))))))))) (do (shen.declare-with-signature string.count (cons string (cons --> (cons (cons string (cons --> (cons number ()))) ()))) (freeze (lambda V3068 (lambda B3064 (lambda L3065 (lambda Key3066 (lambda C3067 (is! V3068 (cons string (cons --> (cons (cons string (cons --> (cons number ()))) ()))) B3064 L3065 Key3066 C3067)))))))) (do (shen.declare-with-signature string.reverse (cons string (cons --> (cons string ()))) (freeze (lambda V3079 (lambda B3075 (lambda L3076 (lambda Key3077 (lambda C3078 (is! V3079 (cons string (cons --> (cons string ()))) B3075 L3076 Key3077 C3078)))))))) (do (shen.declare-with-signature string.element? (cons string (cons --> (cons (cons string (cons --> (cons boolean ()))) ()))) (freeze (lambda V3090 (lambda B3086 (lambda L3087 (lambda Key3088 (lambda C3089 (is! V3090 (cons string (cons --> (cons (cons string (cons --> (cons boolean ()))) ()))) B3086 L3087 Key3088 C3089)))))))) (do (shen.declare-with-signature string.prefix? (cons string (cons --> (cons (cons string (cons --> (cons boolean ()))) ()))) (freeze (lambda V3104 (lambda B3100 (lambda L3101 (lambda Key3102 (lambda C3103 (is! V3104 (cons string (cons --> (cons (cons string (cons --> (cons boolean ()))) ()))) B3100 L3101 Key3102 C3103)))))))) (do (shen.declare-with-signature string.infix? (cons string (cons --> (cons (cons string (cons --> (cons boolean ()))) ()))) (freeze (lambda V3118 (lambda B3114 (lambda L3115 (lambda Key3116 (lambda C3117 (is! V3118 (cons string (cons --> (cons (cons string (cons --> (cons boolean ()))) ()))) B3114 L3115 Key3116 C3117)))))))) (do (shen.declare-with-signature string.suffix? (cons string (cons --> (cons (cons string (cons --> (cons boolean ()))) ()))) (freeze (lambda V3132 (lambda B3128 (lambda L3129 (lambda Key3130 (lambda C3131 (is! V3132 (cons string (cons --> (cons (cons string (cons --> (cons boolean ()))) ()))) B3128 L3129 Key3130 C3131)))))))) (do (shen.declare-with-signature string.subset? (cons string (cons --> (cons (cons string (cons --> (cons boolean ()))) ()))) (freeze (lambda V3146 (lambda B3142 (lambda L3143 (lambda Key3144 (lambda C3145 (is! V3146 (cons string (cons --> (cons (cons string (cons --> (cons boolean ()))) ()))) B3142 L3143 Key3144 C3145)))))))) (do (shen.declare-with-signature string.set=? (cons string (cons --> (cons (cons string (cons --> (cons boolean ()))) ()))) (freeze (lambda V3160 (lambda B3156 (lambda L3157 (lambda Key3158 (lambda C3159 (is! V3160 (cons string (cons --> (cons (cons string (cons --> (cons boolean ()))) ()))) B3156 L3157 Key3158 C3159)))))))) (do (shen.declare-with-signature string.set? (cons string (cons --> (cons boolean ()))) (freeze (lambda V3170 (lambda B3166 (lambda L3167 (lambda Key3168 (lambda C3169 (is! V3170 (cons string (cons --> (cons boolean ()))) B3166 L3167 Key3168 C3169)))))))) (do (shen.declare-with-signature file-extension (cons string (cons --> (cons (cons string (cons --> (cons string ()))) ()))) (freeze (lambda V3179 (lambda B3175 (lambda L3176 (lambda Key3177 (lambda C3178 (is! V3179 (cons string (cons --> (cons (cons string (cons --> (cons string ()))) ()))) B3175 L3176 Key3177 C3178)))))))) (do (shen.declare-with-signature strip-extension (cons string (cons --> (cons string ()))) (freeze (lambda V3189 (lambda B3185 (lambda L3186 (lambda Key3187 (lambda C3188 (is! V3189 (cons string (cons --> (cons string ()))) B3185 L3186 Key3187 C3188)))))))) (do (shen.declare-with-signature string.length (cons string (cons --> (cons number ()))) (freeze (lambda V3199 (lambda B3195 (lambda L3196 (lambda Key3197 (lambda C3198 (is! V3199 (cons string (cons --> (cons number ()))) B3195 L3196 Key3197 C3198)))))))) (do (shen.declare-with-signature string.trim (cons (cons list (cons string ())) (cons --> (cons (cons string (cons --> (cons string ()))) ()))) (freeze (lambda V3213 (lambda B3209 (lambda L3210 (lambda Key3211 (lambda C3212 (is! V3213 (cons (cons list (cons string ())) (cons --> (cons (cons string (cons --> (cons string ()))) ()))) B3209 L3210 Key3211 C3212)))))))) (do (shen.declare-with-signature string.trim-if (cons (cons string (cons --> (cons boolean ()))) (cons --> (cons (cons string (cons --> (cons string ()))) ()))) (freeze (lambda V3227 (lambda B3223 (lambda L3224 (lambda Key3225 (lambda C3226 (is! V3227 (cons (cons string (cons --> (cons boolean ()))) (cons --> (cons (cons string (cons --> (cons string ()))) ()))) B3223 L3224 Key3225 C3226)))))))) (do (shen.declare-with-signature string.trim-right-if (cons (cons string (cons --> (cons boolean ()))) (cons --> (cons (cons string (cons --> (cons string ()))) ()))) (freeze (lambda V3241 (lambda B3237 (lambda L3238 (lambda Key3239 (lambda C3240 (is! V3241 (cons (cons string (cons --> (cons boolean ()))) (cons --> (cons (cons string (cons --> (cons string ()))) ()))) B3237 L3238 Key3239 C3240)))))))) (do (shen.declare-with-signature string.trim-left-if (cons (cons string (cons --> (cons boolean ()))) (cons --> (cons (cons string (cons --> (cons string ()))) ()))) (freeze (lambda V3255 (lambda B3251 (lambda L3252 (lambda Key3253 (lambda C3254 (is! V3255 (cons (cons string (cons --> (cons boolean ()))) (cons --> (cons (cons string (cons --> (cons string ()))) ()))) B3251 L3252 Key3253 C3254)))))))) (do (shen.declare-with-signature string.trim-right (cons (cons list (cons string ())) (cons --> (cons (cons string (cons --> (cons string ()))) ()))) (freeze (lambda V3269 (lambda B3265 (lambda L3266 (lambda Key3267 (lambda C3268 (is! V3269 (cons (cons list (cons string ())) (cons --> (cons (cons string (cons --> (cons string ()))) ()))) B3265 L3266 Key3267 C3268)))))))) (do (shen.declare-with-signature string.trim-left (cons (cons list (cons string ())) (cons --> (cons (cons string (cons --> (cons string ()))) ()))) (freeze (lambda V3283 (lambda B3279 (lambda L3280 (lambda Key3281 (lambda C3282 (is! V3283 (cons (cons list (cons string ())) (cons --> (cons (cons string (cons --> (cons string ()))) ()))) B3279 L3280 Key3281 C3282)))))))) (do (shen.declare-with-signature string.some? (cons (cons string (cons --> (cons boolean ()))) (cons --> (cons (cons string (cons --> (cons boolean ()))) ()))) (freeze (lambda V3295 (lambda B3291 (lambda L3292 (lambda Key3293 (lambda C3294 (is! V3295 (cons (cons string (cons --> (cons boolean ()))) (cons --> (cons (cons string (cons --> (cons boolean ()))) ()))) B3291 L3292 Key3293 C3294)))))))) (do (shen.declare-with-signature string.every? (cons (cons string (cons --> (cons boolean ()))) (cons --> (cons (cons string (cons --> (cons boolean ()))) ()))) (freeze (lambda V3307 (lambda B3303 (lambda L3304 (lambda Key3305 (lambda C3306 (is! V3307 (cons (cons string (cons --> (cons boolean ()))) (cons --> (cons (cons string (cons --> (cons boolean ()))) ()))) B3303 L3304 Key3305 C3306)))))))) (do (shen.declare-with-signature string.difference (cons string (cons --> (cons (cons string (cons --> (cons string ()))) ()))) (freeze (lambda V3322 (lambda B3318 (lambda L3319 (lambda Key3320 (lambda C3321 (is! V3322 (cons string (cons --> (cons (cons string (cons --> (cons string ()))) ()))) B3318 L3319 Key3320 C3321)))))))) (do (shen.declare-with-signature string.intersection (cons string (cons --> (cons (cons string (cons --> (cons string ()))) ()))) (freeze (lambda V3337 (lambda B3333 (lambda L3334 (lambda Key3335 (lambda C3336 (is! V3337 (cons string (cons --> (cons (cons string (cons --> (cons string ()))) ()))) B3333 L3334 Key3335 C3336)))))))) (do (shen.declare-with-signature string.nth (cons number (cons --> (cons (cons string (cons --> (cons string ()))) ()))) (freeze (lambda V3346 (lambda B3342 (lambda L3343 (lambda Key3344 (lambda C3345 (is! V3346 (cons number (cons --> (cons (cons string (cons --> (cons string ()))) ()))) B3342 L3343 Key3344 C3345)))))))) (do (shen.declare-with-signature whitespace? (cons string (cons --> (cons boolean ()))) (freeze (lambda V3356 (lambda B3352 (lambda L3353 (lambda Key3354 (lambda C3355 (is! V3356 (cons string (cons --> (cons boolean ()))) B3352 L3353 Key3354 C3355)))))))) (do (shen.declare-with-signature uppercase? (cons string (cons --> (cons boolean ()))) (freeze (lambda V3366 (lambda B3362 (lambda L3363 (lambda Key3364 (lambda C3365 (is! V3366 (cons string (cons --> (cons boolean ()))) B3362 L3363 Key3364 C3365)))))))) (do (shen.declare-with-signature lowercase? (cons string (cons --> (cons boolean ()))) (freeze (lambda V3376 (lambda B3372 (lambda L3373 (lambda Key3374 (lambda C3375 (is! V3376 (cons string (cons --> (cons boolean ()))) B3372 L3373 Key3374 C3375)))))))) (do (shen.declare-with-signature digit? (cons string (cons --> (cons boolean ()))) (freeze (lambda V3386 (lambda B3382 (lambda L3383 (lambda Key3384 (lambda C3385 (is! V3386 (cons string (cons --> (cons boolean ()))) B3382 L3383 Key3384 C3385)))))))) (do (shen.declare-with-signature alpha? (cons string (cons --> (cons boolean ()))) (freeze (lambda V3398 (lambda B3394 (lambda L3395 (lambda Key3396 (lambda C3397 (is! V3398 (cons string (cons --> (cons boolean ()))) B3394 L3395 Key3396 C3397)))))))) (do (shen.declare-with-signature alphanum? (cons string (cons --> (cons boolean ()))) (freeze (lambda V3410 (lambda B3406 (lambda L3407 (lambda Key3408 (lambda C3409 (is! V3410 (cons string (cons --> (cons boolean ()))) B3406 L3407 Key3408 C3409)))))))) (do (shen.declare-with-signature tokenise (cons (cons string (cons --> (cons boolean ()))) (cons --> (cons (cons string (cons --> (cons (cons list (cons string ())) ()))) ()))) (freeze (lambda V3420 (lambda B3416 (lambda L3417 (lambda Key3418 (lambda C3419 (is! V3420 (cons (cons string (cons --> (cons boolean ()))) (cons --> (cons (cons string (cons --> (cons (cons list (cons string ())) ()))) ()))) B3416 L3417 Key3418 C3419)))))))) (do (shen.declare-with-signature string.tokenise-h (cons (cons string (cons --> (cons boolean ()))) (cons --> (cons (cons string (cons --> (cons (cons string (cons --> (cons (cons list (cons string ())) ()))) ()))) ()))) (freeze (lambda V3435 (lambda B3431 (lambda L3432 (lambda Key3433 (lambda C3434 (is! V3435 (cons (cons string (cons --> (cons boolean ()))) (cons --> (cons (cons string (cons --> (cons (cons string (cons --> (cons (cons list (cons string ())) ()))) ()))) ()))) B3431 L3432 Key3433 C3434)))))))) (do (shen.declare-with-signature uppercase (cons string (cons --> (cons string ()))) (freeze (lambda V3443 (lambda B3439 (lambda L3440 (lambda Key3441 (lambda C3442 (is! V3443 (cons string (cons --> (cons string ()))) B3439 L3440 Key3441 C3442)))))))) (do (shen.declare-with-signature lowercase (cons string (cons --> (cons string ()))) (freeze (lambda V3451 (lambda B3447 (lambda L3448 (lambda Key3449 (lambda C3450 (is! V3451 (cons string (cons --> (cons string ()))) B3447 L3448 Key3449 C3450)))))))) (do (shen.declare-with-signature string.map (cons (cons string (cons --> (cons string ()))) (cons --> (cons (cons string (cons --> (cons string ()))) ()))) (freeze (lambda V3464 (lambda B3460 (lambda L3461 (lambda Key3462 (lambda C3463 (is! V3464 (cons (cons string (cons --> (cons string ()))) (cons --> (cons (cons string (cons --> (cons string ()))) ()))) B3460 L3461 Key3462 C3463)))))))) (do (shen.declare-with-signature spell-number (cons number (cons --> (cons string ()))) (freeze (lambda V3473 (lambda B3469 (lambda L3470 (lambda Key3471 (lambda C3472 (is! V3473 (cons number (cons --> (cons string ()))) B3469 L3470 Key3471 C3472)))))))) (do (shen.declare-with-signature string.digit (cons string (cons --> (cons string ()))) (freeze (lambda V3480 (lambda B3476 (lambda L3477 (lambda Key3478 (lambda C3479 (is! V3480 (cons string (cons --> (cons string ()))) B3476 L3477 Key3478 C3479)))))))) (do (shen.declare-with-signature string.triples (cons (cons list (cons (protect A) ())) (cons --> (cons (cons list (cons (cons list (cons (protect A) ())) ())) ()))) (freeze (lambda V3488 (lambda B3484 (lambda L3485 (lambda Key3486 (lambda C3487 (let A (shen.newpv B3484) (shen.gc B3484 (is! V3488 (cons (cons list (cons A ())) (cons --> (cons (cons list (cons (cons list (cons A ())) ())) ()))) B3484 L3485 Key3486 C3487)))))))))) (do (shen.declare-with-signature string.triples-h (cons (cons list (cons (protect A) ())) (cons --> (cons (cons (cons list (cons (cons list (cons (protect A) ())) ())) (cons --> (cons (cons list (cons (cons list (cons (protect A) ())) ())) ()))) ()))) (freeze (lambda V3502 (lambda B3498 (lambda L3499 (lambda Key3500 (lambda C3501 (let A (shen.newpv B3498) (shen.gc B3498 (is! V3502 (cons (cons list (cons A ())) (cons --> (cons (cons (cons list (cons (cons list (cons A ())) ())) (cons --> (cons (cons list (cons (cons list (cons A ())) ())) ()))) ()))) B3498 L3499 Key3500 C3501)))))))))) (do (shen.declare-with-signature string.digits (cons (cons list (cons string ())) (cons --> (cons string ()))) (freeze (lambda V3515 (lambda B3511 (lambda L3512 (lambda Key3513 (lambda C3514 (is! V3515 (cons (cons list (cons string ())) (cons --> (cons string ()))) B3511 L3512 Key3513 C3514)))))))) (do (shen.declare-with-signature string.tens (cons string (cons --> (cons (cons string (cons --> (cons string ()))) ()))) (freeze (lambda V3524 (lambda B3520 (lambda L3521 (lambda Key3522 (lambda C3523 (is! V3524 (cons string (cons --> (cons (cons string (cons --> (cons string ()))) ()))) B3520 L3521 Key3522 C3523)))))))) (do (shen.declare-with-signature string.scale (cons (cons list (cons string ())) (cons --> (cons string ()))) (freeze (lambda V3533 (lambda B3529 (lambda L3530 (lambda Key3531 (lambda C3532 (is! V3533 (cons (cons list (cons string ())) (cons --> (cons string ()))) B3529 L3530 Key3531 C3532)))))))) (do (shen.declare-with-signature string.units (cons number (cons --> (cons string ()))) (freeze (lambda V3542 (lambda B3538 (lambda L3539 (lambda Key3540 (lambda C3541 (is! V3542 (cons number (cons --> (cons string ()))) B3538 L3539 Key3540 C3541)))))))) (do (shen.declare-with-signature string>? (cons string (cons --> (cons (cons string (cons --> (cons boolean ()))) ()))) (freeze (lambda V3558 (lambda B3554 (lambda L3555 (lambda Key3556 (lambda C3557 (is! V3558 (cons string (cons --> (cons (cons string (cons --> (cons boolean ()))) ()))) B3554 L3555 Key3556 C3557)))))))) (do (shen.declare-with-signature string (cons (cons string (cons --> (cons boolean ()))) ()))) (freeze (lambda V3574 (lambda B3570 (lambda L3571 (lambda Key3572 (lambda C3573 (is! V3574 (cons string (cons --> (cons (cons string (cons --> (cons boolean ()))) ()))) B3570 L3571 Key3572 C3573)))))))) (do (shen.declare-with-signature string>=? (cons string (cons --> (cons (cons string (cons --> (cons boolean ()))) ()))) (freeze (lambda V3583 (lambda B3579 (lambda L3580 (lambda Key3581 (lambda C3582 (is! V3583 (cons string (cons --> (cons (cons string (cons --> (cons boolean ()))) ()))) B3579 L3580 Key3581 C3582)))))))) (do (shen.declare-with-signature string<=? (cons string (cons --> (cons (cons string (cons --> (cons boolean ()))) ()))) (freeze (lambda V3592 (lambda B3588 (lambda L3589 (lambda Key3590 (lambda C3591 (is! V3592 (cons string (cons --> (cons (cons string (cons --> (cons boolean ()))) ()))) B3588 L3589 Key3590 C3591)))))))) (do (shen.declare-with-signature render (cons string (cons --> (cons string ()))) (freeze (lambda V3605 (lambda B3601 (lambda L3602 (lambda Key3603 (lambda C3604 (is! V3605 (cons string (cons --> (cons string ()))) B3601 L3602 Key3603 C3604)))))))) (do (shen.declare-with-signature render-file (cons string (cons --> (cons (cons string (cons --> (cons string ()))) ()))) (freeze (lambda V3610 (lambda B3606 (lambda L3607 (lambda Key3608 (lambda C3609 (is! V3610 (cons string (cons --> (cons (cons string (cons --> (cons string ()))) ()))) B3606 L3607 Key3608 C3609)))))))) (do (shen.declare-with-signature linelength (cons --> (cons number ())) (freeze (lambda V3881 (lambda B3877 (lambda L3878 (lambda Key3879 (lambda C3880 (is! V3881 (cons --> (cons number ())) B3877 L3878 Key3879 C3880)))))))) (do (shen.declare-with-signature indentation (cons --> (cons number ())) (freeze (lambda V3886 (lambda B3882 (lambda L3883 (lambda Key3884 (lambda C3885 (is! V3886 (cons --> (cons number ())) B3882 L3883 Key3884 C3885)))))))) (do (shen.declare-with-signature set-linelength (cons number (cons --> (cons number ()))) (freeze (lambda V3893 (lambda B3889 (lambda L3890 (lambda Key3891 (lambda C3892 (is! V3893 (cons number (cons --> (cons number ()))) B3889 L3890 Key3891 C3892)))))))) (do (shen.declare-with-signature set-indentation (cons number (cons --> (cons number ()))) (freeze (lambda V3900 (lambda B3896 (lambda L3897 (lambda Key3898 (lambda C3899 (is! V3900 (cons number (cons --> (cons number ()))) B3896 L3897 Key3898 C3899)))))))) (do (shen.declare-with-signature pps (cons symbol (cons --> (cons (cons (cons stream (cons out ())) (cons --> (cons symbol ()))) ()))) (freeze (lambda V3914 (lambda B3910 (lambda L3911 (lambda Key3912 (lambda C3913 (is! V3914 (cons symbol (cons --> (cons (cons (cons stream (cons out ())) (cons --> (cons symbol ()))) ()))) B3910 L3911 Key3912 C3913)))))))) (do (shen.declare-with-signature pprint (cons (protect A) (cons --> (cons (cons (cons stream (cons out ())) (cons --> (cons (protect A) ()))) ()))) (freeze (lambda V3929 (lambda B3925 (lambda L3926 (lambda Key3927 (lambda C3928 (let A (shen.newpv B3925) (shen.gc B3925 (is! V3929 (cons A (cons --> (cons (cons (cons stream (cons out ())) (cons --> (cons A ()))) ()))) B3925 L3926 Key3927 C3928)))))))))) (do (shen.declare-with-signature pretty-string (cons string (cons --> (cons string ()))) (freeze (lambda V3936 (lambda B3932 (lambda L3933 (lambda Key3934 (lambda C3935 (is! V3936 (cons string (cons --> (cons string ()))) B3932 L3933 Key3934 C3935)))))))) (do (shen.declare-with-signature print.pretty-string-h (cons string (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons string ()))) ()))) ()))) (freeze (lambda V3960 (lambda B3956 (lambda L3957 (lambda Key3958 (lambda C3959 (is! V3960 (cons string (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons string ()))) ()))) ()))) B3956 L3957 Key3958 C3959)))))))) (do (shen.declare-with-signature print.indent (cons number (cons --> (cons string ()))) (freeze (lambda V3967 (lambda B3963 (lambda L3964 (lambda Key3965 (lambda C3966 (is! V3967 (cons number (cons --> (cons string ()))) B3963 L3964 Key3965 C3966)))))))) (do (shen.declare-with-signature print.indent-h (cons number (cons --> (cons string ()))) (freeze (lambda V3975 (lambda B3971 (lambda L3972 (lambda Key3973 (lambda C3974 (is! V3975 (cons number (cons --> (cons string ()))) B3971 L3972 Key3973 C3974)))))))) (do (shen.declare-with-signature print.n-space (cons number (cons --> (cons string ()))) (freeze (lambda V3982 (lambda B3978 (lambda L3979 (lambda Key3980 (lambda C3981 (is! V3982 (cons number (cons --> (cons string ()))) B3978 L3979 Key3980 C3981)))))))) (do (shen.declare-with-signature delete-file (cons string (cons --> (cons (cons list (cons A ())) ()))) (freeze (lambda V3990 (lambda B3986 (lambda L3987 (lambda Key3988 (lambda C3989 (let A (shen.newpv B3986) (shen.gc B3986 (is! V3990 (cons string (cons --> (cons (cons list (cons A ())) ()))) B3986 L3987 Key3988 C3989)))))))))) (do (shen.declare-with-signature append-files (cons (cons list (cons string ())) (cons --> (cons (cons string (cons --> (cons string ()))) ()))) (freeze (lambda V4041 (lambda B4037 (lambda L4038 (lambda Key4039 (lambda C4040 (is! V4041 (cons (cons list (cons string ())) (cons --> (cons (cons string (cons --> (cons string ()))) ()))) B4037 L4038 Key4039 C4040)))))))) (do (shen.declare-with-signature append-files-with-open-stream (cons (cons list (cons string ())) (cons --> (cons (cons string (cons --> (cons (cons stream (cons out ())) ()))) ()))) (freeze (lambda V4054 (lambda B4050 (lambda L4051 (lambda Key4052 (lambda C4053 (is! V4054 (cons (cons list (cons string ())) (cons --> (cons (cons string (cons --> (cons (cons stream (cons out ())) ()))) ()))) B4050 L4051 Key4052 C4053)))))))) (do (shen.declare-with-signature file.read&write (cons (cons stream (cons in ())) (cons --> (cons (cons (cons stream (cons out ())) (cons --> (cons number ()))) ()))) (freeze (lambda V4064 (lambda B4060 (lambda L4061 (lambda Key4062 (lambda C4063 (is! V4064 (cons (cons stream (cons in ())) (cons --> (cons (cons (cons stream (cons out ())) (cons --> (cons number ()))) ()))) B4060 L4061 Key4062 C4063)))))))) (do (shen.declare-with-signature file.read&write-h (cons number (cons --> (cons (cons (cons stream (cons in ())) (cons --> (cons (cons (cons stream (cons out ())) (cons --> (cons number ()))) ()))) ()))) (freeze (lambda V4077 (lambda B4073 (lambda L4074 (lambda Key4075 (lambda C4076 (is! V4077 (cons number (cons --> (cons (cons (cons stream (cons in ())) (cons --> (cons (cons (cons stream (cons out ())) (cons --> (cons number ()))) ()))) ()))) B4073 L4074 Key4075 C4076)))))))) (do (shen.declare-with-signature reopen (cons string (cons --> (cons (cons stream (cons out ())) ()))) (freeze (lambda V4088 (lambda B4084 (lambda L4085 (lambda Key4086 (lambda C4087 (is! V4088 (cons string (cons --> (cons (cons stream (cons out ())) ()))) B4084 L4085 Key4086 C4087)))))))) (do (shen.declare-with-signature copy-file (cons string (cons --> (cons (cons string (cons --> (cons string ()))) ()))) (freeze (lambda V4097 (lambda B4093 (lambda L4094 (lambda Key4095 (lambda C4096 (is! V4097 (cons string (cons --> (cons (cons string (cons --> (cons string ()))) ()))) B4093 L4094 Key4095 C4096)))))))) (do (shen.declare-with-signature copy-file-with-open-stream (cons string (cons --> (cons (cons string (cons --> (cons (cons stream (cons out ())) ()))) ()))) (freeze (lambda V4106 (lambda B4102 (lambda L4103 (lambda Key4104 (lambda C4105 (is! V4106 (cons string (cons --> (cons (cons string (cons --> (cons (cons stream (cons out ())) ()))) ()))) B4102 L4103 Key4104 C4105)))))))) (do (shen.declare-with-signature file-exists? (cons string (cons --> (cons boolean ()))) (freeze (lambda V4114 (lambda B4110 (lambda L4111 (lambda Key4112 (lambda C4113 (is! V4114 (cons string (cons --> (cons boolean ()))) B4110 L4111 Key4112 C4113)))))))) (do (shen.declare-with-signature file-size (cons string (cons --> (cons number ()))) (freeze (lambda V4124 (lambda B4120 (lambda L4121 (lambda Key4122 (lambda C4123 (is! V4124 (cons string (cons --> (cons number ()))) B4120 L4121 Key4122 C4123)))))))) (do (shen.declare-with-signature file.file-size-loop (cons (cons stream (cons in ())) (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ()))) (freeze (lambda V4141 (lambda B4137 (lambda L4138 (lambda Key4139 (lambda C4140 (is! V4141 (cons (cons stream (cons in ())) (cons --> (cons (cons number (cons --> (cons (cons number (cons --> (cons number ()))) ()))) ()))) B4137 L4138 Key4139 C4140)))))))) (do (shen.declare-with-signature ascii (cons number (cons --> (cons (cons number (cons --> (cons (cons string (cons --> (cons string ()))) ()))) ()))) (freeze (lambda V4153 (lambda B4149 (lambda L4150 (lambda Key4151 (lambda C4152 (is! V4153 (cons number (cons --> (cons (cons number (cons --> (cons (cons string (cons --> (cons string ()))) ()))) ()))) B4149 L4150 Key4151 C4152)))))))) (do (shen.declare-with-signature file.scan-bytes (cons number (cons --> (cons (cons number (cons --> (cons (cons (cons list (cons number ())) (cons --> (cons (cons string (cons --> (cons string ()))) ()))) ()))) ()))) (freeze (lambda V4171 (lambda B4167 (lambda L4168 (lambda Key4169 (lambda C4170 (is! V4171 (cons number (cons --> (cons (cons number (cons --> (cons (cons (cons list (cons number ())) (cons --> (cons (cons string (cons --> (cons string ()))) ()))) ()))) ()))) B4167 L4168 Key4169 C4170)))))))) (do (shen.declare-with-signature pairoff (cons (cons list (cons (protect A) ())) (cons --> (cons (cons (cons list (cons (protect B) ())) (cons --> (cons (cons list (cons (cons (protect A) (cons * (cons (protect B) ()))) ())) ()))) ()))) (freeze (lambda V4200 (lambda B4196 (lambda L4197 (lambda Key4198 (lambda C4199 (let A (shen.newpv B4196) (shen.gc B4196 (let B (shen.newpv B4196) (shen.gc B4196 (is! V4200 (cons (cons list (cons A ())) (cons --> (cons (cons (cons list (cons B ())) (cons --> (cons (cons list (cons (cons A (cons * (cons B ()))) ())) ()))) ()))) B4196 L4197 Key4198 C4199)))))))))))) (do (shen.declare-with-signature assocp (cons (protect A) (cons --> (cons (cons (cons list (cons (cons (protect A) (cons * (cons (protect B) ()))) ())) (cons --> (cons (cons (protect A) (cons * (cons (protect B) ()))) ()))) ()))) (freeze (lambda V4220 (lambda B4216 (lambda L4217 (lambda Key4218 (lambda C4219 (let A (shen.newpv B4216) (shen.gc B4216 (let B (shen.newpv B4216) (shen.gc B4216 (is! V4220 (cons A (cons --> (cons (cons (cons list (cons (cons A (cons * (cons B ()))) ())) (cons --> (cons (cons A (cons * (cons B ()))) ()))) ()))) B4216 L4217 Key4218 C4219)))))))))))) (do (shen.declare-with-signature cartprodp (cons (cons list (cons (protect A) ())) (cons --> (cons (cons (cons list (cons (protect B) ())) (cons --> (cons (cons list (cons (cons (protect A) (cons * (cons (protect B) ()))) ())) ()))) ()))) (freeze (lambda V4236 (lambda B4232 (lambda L4233 (lambda Key4234 (lambda C4235 (let A (shen.newpv B4232) (shen.gc B4232 (let B (shen.newpv B4232) (shen.gc B4232 (is! V4236 (cons (cons list (cons A ())) (cons --> (cons (cons (cons list (cons B ())) (cons --> (cons (cons list (cons (cons A (cons * (cons B ()))) ())) ()))) ()))) B4232 L4233 Key4234 C4235)))))))))))) (do (shen.declare-with-signature assocp-if (cons (cons (protect A) (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons (cons (protect A) (cons * (cons (protect B) ()))) ())) (cons --> (cons (cons (protect A) (cons * (cons (protect B) ()))) ()))) ()))) (freeze (lambda V4254 (lambda B4250 (lambda L4251 (lambda Key4252 (lambda C4253 (let A (shen.newpv B4250) (shen.gc B4250 (let B (shen.newpv B4250) (shen.gc B4250 (is! V4254 (cons (cons A (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons (cons A (cons * (cons B ()))) ())) (cons --> (cons (cons A (cons * (cons B ()))) ()))) ()))) B4250 L4251 Key4252 C4253)))))))))))) (shen.declare-with-signature assocp-if-not (cons (cons (protect A) (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons (cons (protect A) (cons * (cons (protect B) ()))) ())) (cons --> (cons (cons (protect A) (cons * (cons (protect B) ()))) ()))) ()))) (freeze (lambda V4272 (lambda B4268 (lambda L4269 (lambda Key4270 (lambda C4271 (let A (shen.newpv B4268) (shen.gc B4268 (let B (shen.newpv B4268) (shen.gc B4268 (is! V4272 (cons (cons A (cons --> (cons boolean ()))) (cons --> (cons (cons (cons list (cons (cons A (cons * (cons B ()))) ())) (cons --> (cons (cons A (cons * (cons B ()))) ()))) ()))) B4268 L4269 Key4270 C4271)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) (defun stlib.initialise-sources () (do (shen.record-kl concat* (cons defun (cons concat* (cons (cons (protect V3) (cons (protect V4) ())) (cons (cons let (cons (protect W5) (cons (cons concat (cons (protect V3) (cons (protect V4) ()))) (cons (cons if (cons (cons symbol? (cons (protect W5) ())) (cons (protect W5) (cons (cons simple-error (cons (cons cn (cons "'" (cons (cons shen.app (cons (protect W5) (cons "' is not a symbol -" (cons shen.a ())))) ()))) ())) ())))) ())))) ()))))) (do (shen.record-kl newv (cons defun (cons newv (cons () (cons (cons gensym (cons (protect X) ())) ()))))) (do (shen.record-kl maths.maths-macro (cons defun (cons maths.maths-macro (cons (cons (protect V15) ()) (cons (cons let (cons (protect GoTo16) (cons (cons freeze (cons (protect V15) ())) (cons (cons if (cons (cons cons? (cons (protect V15) ())) (cons (cons let (cons (protect Select35) (cons (cons hd (cons (protect V15) ())) (cons (cons let (cons (protect Select36) (cons (cons tl (cons (protect V15) ())) (cons (cons if (cons (cons and (cons (cons = (cons log10 (cons (protect Select35) ()))) (cons (cons and (cons (cons cons? (cons (protect Select36) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select36) ())) ()))) ()))) ()))) (cons (cons cons (cons log10 (cons (cons cons (cons (cons hd (cons (protect Select36) ())) (cons (cons cons (cons (cons cons (cons tolerance (cons () ()))) (cons () ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons log2 (cons (protect Select35) ()))) (cons (cons and (cons (cons cons? (cons (protect Select36) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select36) ())) ()))) ()))) ()))) (cons (cons cons (cons log2 (cons (cons cons (cons (cons hd (cons (protect Select36) ())) (cons (cons cons (cons (cons cons (cons tolerance (cons () ()))) (cons () ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons loge (cons (protect Select35) ()))) (cons (cons and (cons (cons cons? (cons (protect Select36) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select36) ())) ()))) ()))) ()))) (cons (cons cons (cons loge (cons (cons cons (cons (cons hd (cons (protect Select36) ())) (cons (cons cons (cons (cons cons (cons tolerance (cons () ()))) (cons () ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons log (cons (protect Select35) ()))) (cons (cons and (cons (cons cons? (cons (protect Select36) ())) (cons (cons let (cons (protect Select17) (cons (cons tl (cons (protect Select36) ())) (cons (cons and (cons (cons cons? (cons (protect Select17) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select17) ())) ()))) ()))) ())))) ()))) ()))) (cons (cons cons (cons log (cons (cons cons (cons (cons hd (cons (protect Select36) ())) (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect Select36) ())) ())) (cons (cons cons (cons (cons cons (cons tolerance (cons () ()))) (cons () ()))) ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons sin (cons (protect Select35) ()))) (cons (cons and (cons (cons cons? (cons (protect Select36) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select36) ())) ()))) ()))) ()))) (cons (cons cons (cons sin (cons (cons cons (cons (cons hd (cons (protect Select36) ())) (cons (cons cons (cons (cons cons (cons tolerance (cons () ()))) (cons () ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons tan (cons (protect Select35) ()))) (cons (cons and (cons (cons cons? (cons (protect Select36) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select36) ())) ()))) ()))) ()))) (cons (cons cons (cons tan (cons (cons cons (cons (cons hd (cons (protect Select36) ())) (cons (cons cons (cons (cons cons (cons tolerance (cons () ()))) (cons () ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons cos (cons (protect Select35) ()))) (cons (cons and (cons (cons cons? (cons (protect Select36) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select36) ())) ()))) ()))) ()))) (cons (cons cons (cons cos (cons (cons cons (cons (cons hd (cons (protect Select36) ())) (cons (cons cons (cons (cons cons (cons tolerance (cons () ()))) (cons () ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons tanh (cons (protect Select35) ()))) (cons (cons and (cons (cons cons? (cons (protect Select36) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select36) ())) ()))) ()))) ()))) (cons (cons cons (cons tanh (cons (cons cons (cons (cons hd (cons (protect Select36) ())) (cons (cons cons (cons (cons cons (cons tolerance (cons () ()))) (cons () ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons cosh (cons (protect Select35) ()))) (cons (cons and (cons (cons cons? (cons (protect Select36) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select36) ())) ()))) ()))) ()))) (cons (cons cons (cons cosh (cons (cons cons (cons (cons hd (cons (protect Select36) ())) (cons (cons cons (cons (cons cons (cons tolerance (cons () ()))) (cons () ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons sinh (cons (protect Select35) ()))) (cons (cons and (cons (cons cons? (cons (protect Select36) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select36) ())) ()))) ()))) ()))) (cons (cons cons (cons sinh (cons (cons cons (cons (cons hd (cons (protect Select36) ())) (cons (cons cons (cons (cons cons (cons tolerance (cons () ()))) (cons () ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons sech (cons (protect Select35) ()))) (cons (cons and (cons (cons cons? (cons (protect Select36) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select36) ())) ()))) ()))) ()))) (cons (cons cons (cons sech (cons (cons cons (cons (cons hd (cons (protect Select36) ())) (cons (cons cons (cons (cons cons (cons tolerance (cons () ()))) (cons () ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons csch (cons (protect Select35) ()))) (cons (cons and (cons (cons cons? (cons (protect Select36) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select36) ())) ()))) ()))) ()))) (cons (cons cons (cons csch (cons (cons cons (cons (cons hd (cons (protect Select36) ())) (cons (cons cons (cons (cons cons (cons tolerance (cons () ()))) (cons () ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons coth (cons (protect Select35) ()))) (cons (cons and (cons (cons cons? (cons (protect Select36) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select36) ())) ()))) ()))) ()))) (cons (cons cons (cons coth (cons (cons cons (cons (cons hd (cons (protect Select36) ())) (cons (cons cons (cons (cons cons (cons tolerance (cons () ()))) (cons () ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons nthrt (cons (protect Select35) ()))) (cons (cons and (cons (cons cons? (cons (protect Select36) ())) (cons (cons let (cons (protect Select18) (cons (cons tl (cons (protect Select36) ())) (cons (cons and (cons (cons cons? (cons (protect Select18) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select18) ())) ()))) ()))) ())))) ()))) ()))) (cons (cons cons (cons nthrt (cons (cons cons (cons (cons hd (cons (protect Select36) ())) (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect Select36) ())) ())) (cons (cons cons (cons (cons cons (cons tolerance (cons () ()))) (cons () ()))) ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons sqrt (cons (protect Select35) ()))) (cons (cons and (cons (cons cons? (cons (protect Select36) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select36) ())) ()))) ()))) ()))) (cons (cons cons (cons sqrt (cons (cons cons (cons (cons hd (cons (protect Select36) ())) (cons (cons cons (cons (cons cons (cons tolerance (cons () ()))) (cons () ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons expt (cons (protect Select35) ()))) (cons (cons and (cons (cons cons? (cons (protect Select36) ())) (cons (cons let (cons (protect Select19) (cons (cons tl (cons (protect Select36) ())) (cons (cons and (cons (cons cons? (cons (protect Select19) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select19) ())) ()))) ()))) ())))) ()))) ()))) (cons (cons cons (cons expt (cons (cons cons (cons (cons hd (cons (protect Select36) ())) (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect Select36) ())) ())) (cons (cons cons (cons (cons cons (cons tolerance (cons () ()))) (cons () ()))) ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons max (cons (protect Select35) ()))) (cons (cons and (cons (cons cons? (cons (protect Select36) ())) (cons (cons let (cons (protect Select20) (cons (cons tl (cons (protect Select36) ())) (cons (cons and (cons (cons cons? (cons (protect Select20) ())) (cons (cons cons? (cons (cons tl (cons (protect Select20) ())) ())) ()))) ())))) ()))) ()))) (cons (cons cons (cons max (cons (cons cons (cons (cons hd (cons (protect Select36) ())) (cons (cons cons (cons (cons cons (cons max (cons (cons tl (cons (protect Select36) ())) ()))) (cons () ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons min (cons (protect Select35) ()))) (cons (cons and (cons (cons cons? (cons (protect Select36) ())) (cons (cons let (cons (protect Select21) (cons (cons tl (cons (protect Select36) ())) (cons (cons and (cons (cons cons? (cons (protect Select21) ())) (cons (cons cons? (cons (cons tl (cons (protect Select21) ())) ())) ()))) ())))) ()))) ()))) (cons (cons cons (cons min (cons (cons cons (cons (cons hd (cons (protect Select36) ())) (cons (cons cons (cons (cons cons (cons min (cons (cons tl (cons (protect Select36) ())) ()))) (cons () ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons tolerance (cons (protect Select35) ()))) (cons (cons and (cons (cons cons? (cons (protect Select36) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select36) ())) ()))) ()))) ()))) (cons (cons cons (cons maths.tolerance=n (cons (protect Select36) ()))) (cons (cons if (cons (cons = (cons for (cons (protect Select35) ()))) (cons (cons if (cons (cons cons? (cons (protect Select36) ())) (cons (cons let (cons (protect Select33) (cons (cons hd (cons (protect Select36) ())) (cons (cons let (cons (protect Select34) (cons (cons tl (cons (protect Select36) ())) (cons (cons if (cons (cons cons? (cons (protect Select34) ())) (cons (cons let (cons (protect Select32) (cons (cons tl (cons (protect Select34) ())) (cons (cons if (cons (cons = (cons = (cons (cons hd (cons (protect Select34) ())) ()))) (cons (cons if (cons (cons cons? (cons (protect Select32) ())) (cons (cons let (cons (protect Select30) (cons (cons hd (cons (protect Select32) ())) (cons (cons let (cons (protect Select31) (cons (cons tl (cons (protect Select32) ())) (cons (cons if (cons (cons cons? (cons (protect Select31) ())) (cons (cons let (cons (protect Select28) (cons (cons hd (cons (protect Select31) ())) (cons (cons let (cons (protect Select29) (cons (cons tl (cons (protect Select31) ())) (cons (cons if (cons (cons and (cons (cons = (cons stop (cons (protect Select28) ()))) (cons (cons cons? (cons (protect Select29) ())) ()))) (cons (cons cons (cons maths.upto (cons (cons cons (cons (protect Select30) (cons (cons cons (cons (cons hd (cons (protect Select29) ())) (cons (cons maths.process-options (cons (protect Select33) (cons (cons tl (cons (protect Select29) ())) ()))) ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons to (cons (protect Select28) ()))) (cons (cons cons? (cons (protect Select29) ())) ()))) (cons (cons cons (cons maths.upto (cons (cons cons (cons (protect Select30) (cons (cons cons (cons (cons cons (cons < (cons (cons cons (cons (cons hd (cons (protect Select29) ())) (cons () ()))) ()))) (cons (cons maths.process-options (cons (protect Select33) (cons (cons tl (cons (protect Select29) ())) ()))) ()))) ()))) ()))) (cons (cons thaw (cons (protect GoTo16) ())) ())))) ())))) ())))) ())))) (cons (cons thaw (cons (protect GoTo16) ())) ())))) ())))) ())))) (cons (cons thaw (cons (protect GoTo16) ())) ())))) (cons (cons thaw (cons (protect GoTo16) ())) ())))) ())))) (cons (cons thaw (cons (protect GoTo16) ())) ())))) ())))) ())))) (cons (cons thaw (cons (protect GoTo16) ())) ())))) (cons (cons thaw (cons (protect GoTo16) ())) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) (cons (cons thaw (cons (protect GoTo16) ())) ())))) ())))) ()))))) (do (shen.record-kl maths.process-options (cons defun (cons maths.process-options (cons (cons (protect V61) (cons (protect V62) ())) (cons (cons append (cons (cons maths.step-option (cons (protect V62) ())) (cons (cons append (cons (cons maths.constructor-option (cons (protect V62) ())) (cons (cons append (cons (cons maths.end-option (cons (protect V62) ())) (cons (cons maths.process (cons (protect V61) (cons (protect V62) ()))) ()))) ()))) ()))) ()))))) (do (shen.record-kl maths.step-option (cons defun (cons maths.step-option (cons (cons (protect V72) ()) (cons (cons if (cons (cons = (cons () (cons (protect V72) ()))) (cons (cons cons (cons (cons cons (cons + (cons (cons cons (cons 1 (cons () ()))) ()))) (cons () ()))) (cons (cons let (cons (protect GoTo73) (cons (cons freeze (cons (cons shen.f-error (cons maths.step-option ())) ())) (cons (cons if (cons (cons cons? (cons (protect V72) ())) (cons (cons let (cons (protect Select74) (cons (cons tl (cons (protect V72) ())) (cons (cons if (cons (cons and (cons (cons = (cons step (cons (cons hd (cons (protect V72) ())) ()))) (cons (cons cons? (cons (protect Select74) ())) ()))) (cons (cons cons (cons (cons hd (cons (protect Select74) ())) (cons () ()))) (cons (cons maths.step-option (cons (protect Select74) ())) ())))) ())))) (cons (cons thaw (cons (protect GoTo73) ())) ())))) ())))) ())))) ()))))) (do (shen.record-kl maths.constructor-option (cons defun (cons maths.constructor-option (cons (cons (protect V80) ()) (cons (cons if (cons (cons = (cons () (cons (protect V80) ()))) (cons (cons cons (cons (cons cons (cons fn (cons (cons cons (cons do (cons () ()))) ()))) (cons () ()))) (cons (cons let (cons (protect GoTo81) (cons (cons freeze (cons (cons shen.f-error (cons maths.constructor-option ())) ())) (cons (cons if (cons (cons cons? (cons (protect V80) ())) (cons (cons let (cons (protect Select82) (cons (cons tl (cons (protect V80) ())) (cons (cons if (cons (cons and (cons (cons = (cons constructor (cons (cons hd (cons (protect V80) ())) ()))) (cons (cons cons? (cons (protect Select82) ())) ()))) (cons (cons cons (cons (cons hd (cons (protect Select82) ())) (cons () ()))) (cons (cons maths.constructor-option (cons (protect Select82) ())) ())))) ())))) (cons (cons thaw (cons (protect GoTo81) ())) ())))) ())))) ())))) ()))))) (do (shen.record-kl maths.end-option (cons defun (cons maths.end-option (cons (cons (protect V88) ()) (cons (cons if (cons (cons = (cons () (cons (protect V88) ()))) (cons (cons cons (cons done (cons () ()))) (cons (cons let (cons (protect GoTo89) (cons (cons freeze (cons (cons shen.f-error (cons maths.end-option ())) ())) (cons (cons if (cons (cons cons? (cons (protect V88) ())) (cons (cons let (cons (protect Select90) (cons (cons tl (cons (protect V88) ())) (cons (cons if (cons (cons and (cons (cons = (cons end (cons (cons hd (cons (protect V88) ())) ()))) (cons (cons cons? (cons (protect Select90) ())) ()))) (cons (cons cons (cons (cons hd (cons (protect Select90) ())) (cons () ()))) (cons (cons maths.end-option (cons (protect Select90) ())) ())))) ())))) (cons (cons thaw (cons (protect GoTo89) ())) ())))) ())))) ())))) ()))))) (do (shen.record-kl maths.process (cons defun (cons maths.process (cons (cons (protect V94) (cons (protect V95) ())) (cons (cons let (cons (protect GoTo96) (cons (cons freeze (cons (cons shen.f-error (cons maths.process ())) ())) (cons (cons if (cons (cons cons? (cons (protect V95) ())) (cons (cons let (cons (protect Select97) (cons (cons tl (cons (protect V95) ())) (cons (cons if (cons (cons = (cons () (cons (protect Select97) ()))) (cons (cons cons (cons (cons cons (cons /. (cons (cons cons (cons (protect V94) (cons (protect V95) ()))) ()))) (cons () ()))) (cons (cons maths.process (cons (protect V94) (cons (protect Select97) ()))) ())))) ())))) (cons (cons thaw (cons (protect GoTo96) ())) ())))) ())))) ()))))) (do (shen.record-kl set-tolerance (cons defun (cons set-tolerance (cons (cons (protect V324) ()) (cons (cons set (cons maths.*tolerance* (cons (protect V324) ()))) ()))))) (do (shen.record-kl tolerance (cons defun (cons tolerance (cons () (cons (cons value (cons maths.*tolerance* ())) ()))))) (do (shen.record-kl sq (cons defun (cons sq (cons (cons (protect V326) ()) (cons (cons * (cons (protect V326) (cons (protect V326) ()))) ()))))) (do (shen.record-kl cube (cons defun (cons cube (cons (cons (protect V328) ()) (cons (cons * (cons (protect V328) (cons (cons * (cons (protect V328) (cons (protect V328) ()))) ()))) ()))))) (do (shen.record-kl for (cons defun (cons for (cons (cons (protect V330) (cons (protect V331) (cons (protect V332) (cons (protect V333) (cons (protect V334) ()))))) (cons (cons maths.for-h (cons (cons (protect V333) (cons (protect V330) ())) (cons (protect V331) (cons (protect V332) (cons (protect V333) (cons (protect V334) (cons (cons (protect V332) (cons (protect V330) ())) ()))))))) ()))))) (do (shen.record-kl maths.for-h (cons defun (cons maths.for-h (cons (cons (protect V344) (cons (protect V345) (cons (protect V346) (cons (protect V347) (cons (protect V348) (cons (protect V349) ())))))) (cons (cons cond (cons (cons (cons not (cons (cons (protect V345) (cons (protect V344) ())) ())) (cons (protect V349) ())) (cons (cons true (cons (cons maths.for-h (cons (cons (protect V347) (cons (protect V344) ())) (cons (protect V345) (cons (protect V346) (cons (protect V347) (cons (protect V348) (cons (cons (cons (protect V348) (cons (protect V349) ())) (cons (cons (protect V346) (cons (protect V344) ())) ())) ()))))))) ())) ()))) ()))))) (do (shen.record-kl maths.lazyfor-and (cons defun (cons maths.lazyfor-and (cons (cons (protect V368) (cons (protect V369) (cons (protect V370) (cons (protect V371) ())))) (cons (cons cond (cons (cons (cons not (cons (cons (protect V369) (cons (protect V368) ())) ())) (cons true ())) (cons (cons (cons (protect V370) (cons (protect V368) ())) (cons (cons maths.lazyfor-and (cons (cons (protect V371) (cons (protect V368) ())) (cons (protect V369) (cons (protect V370) (cons (protect V371) ()))))) ())) (cons (cons true (cons false ())) ())))) ()))))) (do (shen.record-kl maths.lazyfor-or (cons defun (cons maths.lazyfor-or (cons (cons (protect V378) (cons (protect V379) (cons (protect V380) (cons (protect V381) ())))) (cons (cons cond (cons (cons (cons not (cons (cons (protect V379) (cons (protect V378) ())) ())) (cons false ())) (cons (cons (cons (protect V380) (cons (protect V378) ())) (cons true ())) (cons (cons true (cons (cons maths.lazyfor-or (cons (cons (protect V381) (cons (protect V378) ())) (cons (protect V379) (cons (protect V380) (cons (protect V381) ()))))) ())) ())))) ()))))) (do (shen.record-kl max (cons defun (cons max (cons (cons (protect V388) (cons (protect V389) ())) (cons (cons cond (cons (cons (cons > (cons (protect V389) (cons (protect V388) ()))) (cons (protect V389) ())) (cons (cons true (cons (protect V388) ())) ()))) ()))))) (do (shen.record-kl min (cons defun (cons min (cons (cons (protect V394) (cons (protect V395) ())) (cons (cons cond (cons (cons (cons < (cons (protect V395) (cons (protect V394) ()))) (cons (protect V395) ())) (cons (cons true (cons (protect V394) ())) ()))) ()))))) (do (shen.record-kl expt (cons defun (cons expt (cons (cons (protect V398) (cons (protect V399) (cons (protect V400) ()))) (cons (cons if (cons (cons = (cons (protect V399) (cons 0 ()))) (cons 1 (cons (cons if (cons (cons positive? (cons (protect V399) ())) (cons (cons maths.expt-h (cons (protect V398) (cons (cons maths.n->r (cons (protect V399) (cons 1 ()))) (cons (protect V400) ())))) (cons (cons / (cons 1 (cons (cons maths.expt-h (cons (protect V398) (cons (cons maths.n->r (cons (cons ~ (cons (protect V399) ())) (cons 1 ()))) (cons (protect V400) ())))) ()))) ())))) ())))) ()))))) (do (shen.record-kl maths.n->r (cons defun (cons maths.n->r (cons (cons (protect V404) (cons (protect V405) ())) (cons (cons cond (cons (cons (cons integer? (cons (protect V404) ())) (cons (cons @p (cons (protect V404) (cons (protect V405) ()))) ())) (cons (cons true (cons (cons maths.n->r (cons (cons * (cons (protect V404) (cons 10 ()))) (cons (cons * (cons (protect V405) (cons 10 ()))) ()))) ())) ()))) ()))))) (do (shen.record-kl maths.expt-h (cons defun (cons maths.expt-h (cons (cons (protect V409) (cons (protect V410) (cons (protect V411) ()))) (cons (cons cond (cons (cons (cons tuple? (cons (protect V410) ())) (cons (cons power (cons (cons nthrt (cons (protect V409) (cons (cons snd (cons (protect V410) ())) (cons (protect V411) ())))) (cons (cons fst (cons (protect V410) ())) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons maths.expt-h ())) ())) ()))) ()))))) (do (shen.record-kl gcd (cons defun (cons gcd (cons (cons (protect V416) (cons (protect V417) ())) (cons (cons if (cons (cons and (cons (cons integer? (cons (protect V416) ())) (cons (cons integer? (cons (protect V417) ())) ()))) (cons (cons let (cons (protect W418) (cons (cons abs (cons (protect V416) ())) (cons (cons let (cons (protect W419) (cons (cons abs (cons (protect V417) ())) (cons (cons if (cons (cons > (cons (protect W418) (cons (protect W419) ()))) (cons (cons maths.gcd-help (cons (cons - (cons (protect W418) (cons (protect W419) ()))) (cons (protect W419) ()))) (cons (cons maths.gcd-help (cons (protect W418) (cons (cons - (cons (protect W419) (cons (protect W418) ()))) ()))) ())))) ())))) ())))) (cons (cons simple-error (cons "gcd expects integer inputs" ())) ())))) ()))))) (do (shen.record-kl maths.gcd-help (cons defun (cons maths.gcd-help (cons (cons (protect V422) (cons (protect V423) ())) (cons (cons if (cons (cons > (cons (protect V422) (cons (protect V423) ()))) (cons (cons maths.gcd-loop (cons (protect V422) (cons (protect V423) (cons (protect V423) ())))) (cons (cons maths.gcd-loop (cons (protect V422) (cons (protect V423) (cons (protect V422) ())))) ())))) ()))))) (do (shen.record-kl maths.gcd-loop (cons defun (cons maths.gcd-loop (cons (cons (protect V430) (cons (protect V431) (cons (protect V432) ()))) (cons (cons cond (cons (cons (cons = (cons 1 (cons (protect V432) ()))) (cons 1 ())) (cons (cons (cons and (cons (cons integer? (cons (cons / (cons (protect V430) (cons (protect V432) ()))) ())) (cons (cons integer? (cons (cons / (cons (protect V431) (cons (protect V432) ()))) ())) ()))) (cons (protect V432) ())) (cons (cons true (cons (cons maths.gcd-loop (cons (protect V430) (cons (protect V431) (cons (cons - (cons (protect V432) (cons 1 ()))) ())))) ())) ())))) ()))))) (do (shen.record-kl lcd (cons defun (cons lcd (cons (cons (protect V436) (cons (protect V437) ())) (cons (cons cond (cons (cons (cons and (cons (cons even? (cons (protect V436) ())) (cons (cons even? (cons (protect V437) ())) ()))) (cons 2 ())) (cons (cons true (cons (cons maths.lcd-loop (cons (protect V436) (cons (protect V437) (cons (cons if (cons (cons > (cons (protect V436) (cons (protect V437) ()))) (cons (protect V437) (cons (protect V436) ())))) (cons 3 ()))))) ())) ()))) ()))))) (do (shen.record-kl maths.lcd-loop (cons defun (cons maths.lcd-loop (cons (cons (protect V443) (cons (protect V444) (cons (protect V445) (cons (protect V446) ())))) (cons (cons cond (cons (cons (cons > (cons (protect V446) (cons (protect V445) ()))) (cons 1 ())) (cons (cons (cons and (cons (cons integer? (cons (cons / (cons (protect V443) (cons (protect V446) ()))) ())) (cons (cons integer? (cons (cons / (cons (protect V444) (cons (protect V446) ()))) ())) ()))) (cons (protect V446) ())) (cons (cons true (cons (cons maths.lcd-loop (cons (protect V443) (cons (protect V444) (cons (protect V445) (cons (cons + (cons 2 (cons (protect V446) ()))) ()))))) ())) ())))) ()))))) (do (shen.record-kl isqrt (cons defun (cons isqrt (cons (cons (protect V451) ()) (cons (cons maths.isqrt-loop (cons (protect V451) (cons 0 ()))) ()))))) (do (shen.record-kl maths.isqrt-loop (cons defun (cons maths.isqrt-loop (cons (cons (protect V453) (cons (protect V454) ())) (cons (cons cond (cons (cons (cons = (cons (cons * (cons (protect V454) (cons (protect V454) ()))) (cons (protect V453) ()))) (cons (protect V454) ())) (cons (cons (cons > (cons (cons * (cons (protect V454) (cons (protect V454) ()))) (cons (protect V453) ()))) (cons (cons - (cons (protect V454) (cons 1 ()))) ())) (cons (cons true (cons (cons maths.isqrt-loop (cons (protect V453) (cons (cons + (cons (protect V454) (cons 1 ()))) ()))) ())) ())))) ()))))) (do (shen.record-kl div (cons defun (cons div (cons (cons (protect V457) (cons (protect V458) ())) (cons (cons floor (cons (cons / (cons (protect V457) (cons (protect V458) ()))) ())) ()))))) (do (shen.record-kl modf (cons defun (cons modf (cons (cons (protect V461) ()) (cons (cons let (cons (protect W462) (cons (cons floor (cons (protect V461) ())) (cons (cons @p (cons (protect W462) (cons (cons - (cons (protect V461) (cons (protect W462) ()))) ()))) ())))) ()))))) (do (shen.record-kl floor (cons defun (cons floor (cons (cons (protect V464) ()) (cons (cons cond (cons (cons (cons negative? (cons (protect V464) ())) (cons (cons ~ (cons (cons ceiling (cons (cons ~ (cons (protect V464) ())) ())) ())) ())) (cons (cons true (cons (cons maths.rounding-loop (cons floor (cons (protect V464) (cons 15 (cons 0 ()))))) ())) ()))) ()))))) (do (shen.record-kl maths.rounding-loop (cons defun (cons maths.rounding-loop (cons (cons (protect V469) (cons (protect V470) (cons (protect V471) (cons (protect V472) ())))) (cons (cons cond (cons (cons (cons and (cons (cons = (cons 0 (cons (protect V471) ()))) (cons (cons = (cons (protect V470) (cons (protect V472) ()))) ()))) (cons (protect V472) ())) (cons (cons (cons and (cons (cons = (cons 0 (cons (protect V471) ()))) (cons (cons > (cons (protect V472) (cons (protect V470) ()))) ()))) (cons (cons if (cons (cons = (cons (protect V469) (cons floor ()))) (cons (cons - (cons (protect V472) (cons 1 ()))) (cons (cons if (cons (cons = (cons (protect V469) (cons ceiling ()))) (cons (protect V472) (cons (cons if (cons (cons = (cons (protect V469) (cons round ()))) (cons (cons let (cons (protect W473) (cons (cons - (cons (protect V472) (cons (protect V470) ()))) (cons (cons let (cons (protect W474) (cons (cons - (cons (protect V470) (cons (cons - (cons (protect V472) (cons 1 ()))) ()))) (cons (cons if (cons (cons > (cons (protect W473) (cons (protect W474) ()))) (cons (cons - (cons (protect V472) (cons 1 ()))) (cons (protect V472) ())))) ())))) ())))) (cons (cons simple-error (cons "error: cases exhausted" ())) ())))) ())))) ())))) ())) (cons (cons (cons > (cons (protect V470) (cons (protect V472) ()))) (cons (cons maths.rounding-loop (cons (protect V469) (cons (protect V470) (cons (protect V471) (cons (cons + (cons (protect V472) (cons (cons power (cons 10 (cons (protect V471) ()))) ()))) ()))))) ())) (cons (cons true (cons (cons maths.rounding-loop (cons (protect V469) (cons (protect V470) (cons (cons - (cons (protect V471) (cons 1 ()))) (cons (cons - (cons (protect V472) (cons (cons power (cons 10 (cons (protect V471) ()))) ()))) ()))))) ())) ()))))) ()))))) (do (shen.record-kl maths.float->pair (cons defun (cons maths.float->pair (cons (cons (protect V480) ()) (cons (cons let (cons (protect W481) (cons (cons floor (cons (protect V480) ())) (cons (cons @p (cons (protect W481) (cons (cons - (cons (protect V480) (cons (protect W481) ()))) ()))) ())))) ()))))) (do (shen.record-kl ceiling (cons defun (cons ceiling (cons (cons (protect V483) ()) (cons (cons cond (cons (cons (cons negative? (cons (protect V483) ())) (cons (cons ~ (cons (cons floor (cons (cons ~ (cons (protect V483) ())) ())) ())) ())) (cons (cons true (cons (cons maths.rounding-loop (cons ceiling (cons (protect V483) (cons 15 (cons 0 ()))))) ())) ()))) ()))))) (do (shen.record-kl round (cons defun (cons round (cons (cons (protect V485) ()) (cons (cons cond (cons (cons (cons negative? (cons (protect V485) ())) (cons (cons ~ (cons (cons round (cons (cons ~ (cons (protect V485) ())) ())) ())) ())) (cons (cons true (cons (cons maths.rounding-loop (cons round (cons (protect V485) (cons 15 (cons 0 ()))))) ())) ()))) ()))))) (do (shen.record-kl mod (cons defun (cons mod (cons (cons (protect V487) (cons (protect V488) ())) (cons (cons let (cons (protect W489) (cons (cons / (cons (protect V487) (cons (protect V488) ()))) (cons (cons let (cons (protect W490) (cons (cons floor (cons (protect W489) ())) (cons (cons if (cons (cons and (cons (cons integer? (cons (protect V487) ())) (cons (cons integer? (cons (protect V488) ())) ()))) (cons (cons round (cons (cons * (cons (protect V488) (cons (cons - (cons (protect W489) (cons (protect W490) ()))) ()))) ())) (cons (cons * (cons (protect V488) (cons (cons - (cons (protect W489) (cons (protect W490) ()))) ()))) ())))) ())))) ())))) ()))))) (do (shen.record-kl lcm (cons defun (cons lcm (cons (cons (protect V493) ()) (cons (cons let (cons (protect W494) (cons (cons maths.greatest (cons (protect V493) ())) (cons (cons maths.lcm-h (cons (protect W494) (cons (protect W494) (cons (protect V493) ())))) ())))) ()))))) (do (shen.record-kl maths.greatest (cons defun (cons maths.greatest (cons (cons (protect V498) ()) (cons (cons cond (cons (cons (cons and (cons (cons cons? (cons (protect V498) ())) (cons (cons = (cons () (cons (cons tl (cons (protect V498) ())) ()))) ()))) (cons (cons hd (cons (protect V498) ())) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V498) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V498) ())) ())) (cons (cons > (cons (cons hd (cons (protect V498) ())) (cons (cons hd (cons (cons tl (cons (protect V498) ())) ())) ()))) ()))) ()))) (cons (cons maths.greatest (cons (cons cons (cons (cons hd (cons (protect V498) ())) (cons (cons tl (cons (cons tl (cons (protect V498) ())) ())) ()))) ())) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V498) ())) (cons (cons cons? (cons (cons tl (cons (protect V498) ())) ())) ()))) (cons (cons maths.greatest (cons (cons tl (cons (protect V498) ())) ())) ())) (cons (cons true (cons (cons shen.f-error (cons maths.greatest ())) ())) ()))))) ()))))) (do (shen.record-kl maths.lcm-h (cons defun (cons maths.lcm-h (cons (cons (protect V502) (cons (protect V503) (cons (protect V504) ()))) (cons (cons cond (cons (cons (cons maths.lcm? (cons (protect V502) (cons (protect V504) ()))) (cons (protect V502) ())) (cons (cons true (cons (cons maths.lcm-h (cons (cons + (cons (protect V502) (cons (protect V503) ()))) (cons (protect V503) (cons (protect V504) ())))) ())) ()))) ()))))) (do (shen.record-kl maths.lcm? (cons defun (cons maths.lcm? (cons (cons (protect V510) (cons (protect V511) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V511) ()))) (cons true ())) (cons (cons (cons cons? (cons (protect V511) ())) (cons (cons and (cons (cons integer? (cons (cons / (cons (protect V510) (cons (cons hd (cons (protect V511) ())) ()))) ())) (cons (cons maths.lcm? (cons (protect V510) (cons (cons tl (cons (protect V511) ())) ()))) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons maths.lcm? ())) ())) ())))) ()))))) (do (shen.record-kl random (cons defun (cons random (cons (cons (protect V514) (cons (protect V515) ())) (cons (cons let (cons (protect W516) (cons (cons maths.bbs (cons (cons value (cons maths.*seed* ())) ())) (cons (cons let (cons (protect W517) (cons (cons set (cons maths.*seed* (cons (protect W516) ()))) (cons (cons let (cons (protect W518) (cons (cons min (cons (protect V514) (cons (protect V515) ()))) (cons (cons + (cons (protect W518) (cons (cons mod (cons (protect W517) (cons (cons abs (cons (cons + (cons 1 (cons (cons - (cons (protect V515) (cons (protect V514) ()))) ()))) ())) ()))) ()))) ())))) ())))) ())))) ()))))) (do (shen.record-kl min (cons defun (cons min (cons (cons (protect V523) (cons (protect V524) ())) (cons (cons cond (cons (cons (cons > (cons (protect V523) (cons (protect V524) ()))) (cons (protect V524) ())) (cons (cons true (cons (protect V523) ())) ()))) ()))))) (do (shen.record-kl reseed (cons defun (cons reseed (cons () (cons (cons set (cons maths.*seed* (cons (cons get-time (cons unix ())) ()))) ()))))) (do (shen.record-kl maths.bbs (cons defun (cons maths.bbs (cons (cons (protect V527) ()) (cons (cons let (cons (protect W528) (cons (cons * (cons 1201 (cons 1213 ()))) (cons (cons mod (cons (cons * (cons (protect V527) (cons (protect V527) ()))) (cons (protect W528) ()))) ())))) ()))))) (do (shen.record-kl ~ (cons defun (cons ~ (cons (cons (protect V530) ()) (cons (cons - (cons 0 (cons (protect V530) ()))) ()))))) (do (shen.record-kl positive? (cons defun (cons positive? (cons (cons (protect V532) ()) (cons (cons > (cons (protect V532) (cons 0 ()))) ()))))) (do (shen.record-kl negative? (cons defun (cons negative? (cons (cons (protect V534) ()) (cons (cons < (cons (protect V534) (cons 0 ()))) ()))))) (do (shen.record-kl natural? (cons defun (cons natural? (cons (cons (protect V536) ()) (cons (cons cond (cons (cons (cons = (cons 0 (cons (protect V536) ()))) (cons true ())) (cons (cons true (cons (cons and (cons (cons integer? (cons (protect V536) ())) (cons (cons positive? (cons (protect V536) ())) ()))) ())) ()))) ()))))) (do (shen.record-kl converge (cons defun (cons converge (cons (cons (protect V538) (cons (protect V539) (cons (protect V540) ()))) (cons (cons maths.converge-help (cons (protect V539) (cons (cons (protect V539) (cons (protect V538) ())) (cons (protect V538) (cons (protect V540) ()))))) ()))))) (do (shen.record-kl maths.converge-help (cons defun (cons maths.converge-help (cons (cons (protect V547) (cons (protect V548) (cons (protect V549) (cons (protect V550) ())))) (cons (cons cond (cons (cons (cons (cons (protect V550) (cons (protect V549) ())) (cons (protect V548) ())) (cons (protect V548) ())) (cons (cons true (cons (cons maths.converge-help (cons (protect V547) (cons (cons (protect V547) (cons (protect V548) ())) (cons (protect V548) (cons (protect V550) ()))))) ())) ()))) ()))))) (do (shen.record-kl nthrt (cons defun (cons nthrt (cons (cons (protect V559) (cons (protect V560) (cons (protect V561) ()))) (cons (cons cond (cons (cons (cons positive? (cons (protect V559) ())) (cons (cons converge (cons (protect V559) (cons (cons lambda (cons (protect Z562) (cons (cons maths.compute-nthrt (cons (protect V559) (cons (protect Z562) (cons (protect V560) (cons (protect V561) ()))))) ()))) (cons (cons approx (cons (protect V561) ())) ())))) ())) (cons (cons true (cons (cons simple-error (cons (cons cn (cons "nthrt: negA must be a positive numberneg%" (cons "" ()))) ())) ())) ()))) ()))))) (do (shen.record-kl sqrt (cons defun (cons sqrt (cons (cons (protect V566) (cons (protect V567) ())) (cons (cons nthrt (cons (protect V566) (cons 2 (cons (protect V567) ())))) ()))))) (do (shen.record-kl maths.compute-nthrt (cons defun (cons maths.compute-nthrt (cons (cons (protect V570) (cons (protect V571) (cons (protect V572) (cons (protect V573) ())))) (cons (cons let (cons (protect W574) (cons (cons / (cons 1 (cons (protect V572) ()))) (cons (cons let (cons (protect W575) (cons (cons * (cons (cons - (cons (protect V572) (cons 1 ()))) (cons (protect V571) ()))) (cons (cons let (cons (protect W576) (cons (cons expt (cons (protect V571) (cons (cons - (cons (protect V572) (cons 1 ()))) (cons (protect V573) ())))) (cons (cons let (cons (protect W577) (cons (cons / (cons (protect V570) (cons (protect W576) ()))) (cons (cons let (cons (protect W578) (cons (cons + (cons (protect W575) (cons (protect W577) ()))) (cons (cons * (cons (protect W574) (cons (protect W578) ()))) ())))) ())))) ())))) ())))) ())))) ()))))) (do (shen.record-kl approx (cons defun (cons approx (cons (cons (protect V583) ()) (cons (cons lambda (cons (protect Z584) (cons (cons lambda (cons (protect Z585) (cons (cons let (cons (protect W586) (cons (cons - (cons (protect Z584) (cons (protect Z585) ()))) (cons (cons >= (cons (protect V583) (cons (cons abs (cons (protect W586) ())) ()))) ())))) ()))) ()))) ()))))) (do (shen.record-kl abs (cons defun (cons abs (cons (cons (protect V588) ()) (cons (cons if (cons (cons >= (cons (protect V588) (cons 0 ()))) (cons (protect V588) (cons (cons - (cons 0 (cons (protect V588) ()))) ())))) ()))))) (do (shen.record-kl series (cons defun (cons series (cons (cons (protect V590) (cons (protect V591) (cons (protect V592) (cons (protect V593) ())))) (cons (cons maths.series-h (cons (cons + (cons (protect V590) (cons 1 ()))) (cons (protect V592) (cons (protect V591) (cons (cons (protect V591) (cons (protect V590) ())) (cons (protect V593) ())))))) ()))))) (do (shen.record-kl maths.series-h (cons defun (cons maths.series-h (cons (cons (protect V599) (cons (protect V600) (cons (protect V601) (cons (protect V602) (cons (protect V603) ()))))) (cons (cons let (cons (protect W604) (cons (cons (cons (protect V603) (cons (cons (protect V601) (cons (protect V599) ())) ())) (cons (protect V602) ())) (cons (cons if (cons (cons <= (cons (cons abs (cons (cons - (cons (protect V602) (cons (protect W604) ()))) ())) (cons (protect V600) ()))) (cons (protect W604) (cons (cons maths.series-h (cons (cons + (cons (protect V599) (cons 1 ()))) (cons (protect V600) (cons (protect V601) (cons (protect W604) (cons (protect V603) ())))))) ())))) ())))) ()))))) (do (shen.record-kl product (cons defun (cons product (cons (cons (protect V612) (cons (protect V613) (cons (protect V614) ()))) (cons (cons series (cons (protect V612) (cons (protect V613) (cons (protect V614) (cons (cons lambda (cons (protect Z615) (cons (cons lambda (cons (protect Z616) (cons (cons * (cons (protect Z615) (cons (protect Z616) ()))) ()))) ()))) ()))))) ()))))) (do (shen.record-kl summation (cons defun (cons summation (cons (cons (protect V622) (cons (protect V623) (cons (protect V624) ()))) (cons (cons series (cons (protect V622) (cons (protect V623) (cons (protect V624) (cons (cons lambda (cons (protect Z625) (cons (cons lambda (cons (protect Z626) (cons (cons + (cons (protect Z625) (cons (protect Z626) ()))) ()))) ()))) ()))))) ()))))) (do (shen.record-kl odd? (cons defun (cons odd? (cons (cons (protect V630) ()) (cons (cons and (cons (cons integer? (cons (protect V630) ())) (cons (cons not (cons (cons integer? (cons (cons / (cons (protect V630) (cons 2 ()))) ())) ())) ()))) ()))))) (do (shen.record-kl even? (cons defun (cons even? (cons (cons (protect V632) ()) (cons (cons and (cons (cons integer? (cons (protect V632) ())) (cons (cons integer? (cons (cons / (cons (protect V632) (cons 2 ()))) ())) ()))) ()))))) (do (shen.record-kl maths.compute-sine (cons defun (cons maths.compute-sine (cons (cons (protect V634) (cons (protect V635) ())) (cons (cons let (cons (protect W636) (cons (cons + (cons (cons * (cons 2 (cons (protect V635) ()))) (cons 1 ()))) (cons (cons let (cons (protect W637) (cons (cons * (cons (cons power (cons -1 (cons (protect V635) ()))) (cons (cons power (cons (protect V634) (cons (protect W636) ()))) ()))) (cons (cons let (cons (protect W638) (cons (cons factorial (cons (protect W636) ())) (cons (cons / (cons (protect W637) (cons (protect W638) ()))) ())))) ())))) ())))) ()))))) (do (shen.record-kl maths.compute-cos (cons defun (cons maths.compute-cos (cons (cons (protect V642) (cons (protect V643) ())) (cons (cons let (cons (protect W644) (cons (cons * (cons 2 (cons (protect V643) ()))) (cons (cons let (cons (protect W645) (cons (cons * (cons (cons power (cons -1 (cons (protect V643) ()))) (cons (cons power (cons (protect V642) (cons (protect W644) ()))) ()))) (cons (cons let (cons (protect W646) (cons (cons factorial (cons (protect W644) ())) (cons (cons / (cons (protect W645) (cons (protect W646) ()))) ())))) ())))) ())))) ()))))) (do (shen.record-kl cos (cons defun (cons cos (cons (cons (protect V651) (cons (protect V652) ())) (cons (cons let (cons (protect W653) (cons (cons radians (cons (protect V651) ())) (cons (cons summation (cons 0 (cons (cons lambda (cons (protect Z654) (cons (cons maths.compute-cos (cons (protect W653) (cons (protect Z654) ()))) ()))) (cons (protect V652) ())))) ())))) ()))))) (do (shen.record-kl sin (cons defun (cons sin (cons (cons (protect V658) (cons (protect V659) ())) (cons (cons let (cons (protect W660) (cons (cons radians (cons (protect V658) ())) (cons (cons summation (cons 0 (cons (cons lambda (cons (protect Z661) (cons (cons maths.compute-sine (cons (protect W660) (cons (protect Z661) ()))) ()))) (cons (protect V659) ())))) ())))) ()))))) (do (shen.record-kl tan (cons defun (cons tan (cons (cons (protect V664) (cons (protect V665) ())) (cons (cons / (cons (cons sin (cons (protect V664) (cons (protect V665) ()))) (cons (cons cos (cons (protect V664) (cons (protect V665) ()))) ()))) ()))))) (do (shen.record-kl radians (cons defun (cons radians (cons (cons (protect V669) ()) (cons (cons * (cons (cons / (cons (protect V669) (cons 180 ()))) (cons (cons pi ()) ()))) ()))))) (do (shen.record-kl g (cons defun (cons g (cons () (cons 1.6180339887498 ()))))) (do (shen.record-kl pi (cons defun (cons pi (cons () (cons 3.1415926535897 ()))))) (do (shen.record-kl e (cons defun (cons e (cons () (cons 2.7182818284590002 ()))))) (do (shen.record-kl tan30 (cons defun (cons tan30 (cons () (cons 0.5773502691896 ()))))) (do (shen.record-kl cos30 (cons defun (cons cos30 (cons () (cons 0.8660254037844001 ()))))) (do (shen.record-kl cos45 (cons defun (cons cos45 (cons () (cons 0.70710678118651 ()))))) (do (shen.record-kl sin45 (cons defun (cons sin45 (cons () (cons 0.7071067811865 ()))))) (do (shen.record-kl sqrt2 (cons defun (cons sqrt2 (cons () (cons 1.4142135623731 ()))))) (do (shen.record-kl tan60 (cons defun (cons tan60 (cons () (cons 1.7320508075692 ()))))) (do (shen.record-kl maths.sin60 (cons defun (cons maths.sin60 (cons () (cons 0.8660254037844001 ()))))) (do (shen.record-kl sin120 (cons defun (cons sin120 (cons () (cons 0.8660254037844001 ()))))) (do (shen.record-kl tan120 (cons defun (cons tan120 (cons () (cons -1.7320508075692 ()))))) (do (shen.record-kl sin135 (cons defun (cons sin135 (cons () (cons 0.7071067811865 ()))))) (do (shen.record-kl cos135 (cons defun (cons cos135 (cons () (cons -0.7071067811865 ()))))) (do (shen.record-kl cos150 (cons defun (cons cos150 (cons () (cons -0.8660254037844001 ()))))) (do (shen.record-kl tan150 (cons defun (cons tan150 (cons () (cons -0.5773502691905 ()))))) (do (shen.record-kl cos210 (cons defun (cons cos210 (cons () (cons -0.8660254037844001 ()))))) (do (shen.record-kl tan210 (cons defun (cons tan210 (cons () (cons 0.5773502691905 ()))))) (do (shen.record-kl sin225 (cons defun (cons sin225 (cons () (cons -0.7071067811865 ()))))) (do (shen.record-kl cos225 (cons defun (cons cos225 (cons () (cons -0.7071067811865 ()))))) (do (shen.record-kl sin240 (cons defun (cons sin240 (cons () (cons -0.8660254037844001 ()))))) (do (shen.record-kl tan240 (cons defun (cons tan240 (cons () (cons 1.7320508075692 ()))))) (do (shen.record-kl sin300 (cons defun (cons sin300 (cons () (cons -0.8660254037844001 ()))))) (do (shen.record-kl tan300 (cons defun (cons tan300 (cons () (cons -1.7320508075692 ()))))) (do (shen.record-kl sin315 (cons defun (cons sin315 (cons () (cons -0.7071067811865 ()))))) (do (shen.record-kl cos315 (cons defun (cons cos315 (cons () (cons 0.7071067811865 ()))))) (do (shen.record-kl cos330 (cons defun (cons cos330 (cons () (cons 0.8660254037844001 ()))))) (do (shen.record-kl tan330 (cons defun (cons tan330 (cons () (cons -0.5773502691905 ()))))) (do (shen.record-kl coth (cons defun (cons coth (cons (cons (protect V672) (cons (protect V673) ())) (cons (cons let (cons (protect W674) (cons (cons e ()) (cons (cons let (cons (protect W675) (cons (cons expt (cons (protect W674) (cons (cons ~ (cons (cons * (cons 2 (cons (protect V672) ()))) ())) (cons (protect V673) ())))) (cons (cons / (cons (cons + (cons 1 (cons (protect W675) ()))) (cons (cons - (cons 1 (cons (protect W675) ()))) ()))) ())))) ())))) ()))))) (do (shen.record-kl sinh (cons defun (cons sinh (cons (cons (protect V679) (cons (protect V680) ())) (cons (cons let (cons (protect W681) (cons (cons e ()) (cons (cons let (cons (protect W682) (cons (cons expt (cons (protect W681) (cons (protect V679) (cons (protect V680) ())))) (cons (cons let (cons (protect W683) (cons (cons expt (cons (protect W681) (cons (cons ~ (cons (protect V679) ())) (cons (protect V680) ())))) (cons (cons let (cons (protect W684) (cons (cons - (cons (protect W682) (cons (protect W683) ()))) (cons (cons / (cons (protect W684) (cons 2 ()))) ())))) ())))) ())))) ())))) ()))))) (do (shen.record-kl cosh (cons defun (cons cosh (cons (cons (protect V687) (cons (protect V688) ())) (cons (cons let (cons (protect W689) (cons (cons e ()) (cons (cons let (cons (protect W690) (cons (cons expt (cons (protect W689) (cons (protect V687) (cons (protect V688) ())))) (cons (cons let (cons (protect W691) (cons (cons expt (cons (protect W689) (cons (cons ~ (cons (protect V687) ())) (cons (protect V688) ())))) (cons (cons let (cons (protect W692) (cons (cons + (cons (protect W690) (cons (protect W691) ()))) (cons (cons / (cons (protect W692) (cons 2 ()))) ())))) ())))) ())))) ())))) ()))))) (do (shen.record-kl tanh (cons defun (cons tanh (cons (cons (protect V695) (cons (protect V696) ())) (cons (cons / (cons (cons sinh (cons (protect V695) (cons (protect V696) ()))) (cons (cons cosh (cons (protect V695) (cons (protect V696) ()))) ()))) ()))))) (do (shen.record-kl sech (cons defun (cons sech (cons (cons (protect V700) (cons (protect V701) ())) (cons (cons / (cons 1 (cons (cons cosh (cons (protect V700) (cons (protect V701) ()))) ()))) ()))))) (do (shen.record-kl csch (cons defun (cons csch (cons (cons (protect V704) (cons (protect V705) ())) (cons (cons / (cons 1 (cons (cons sinh (cons (protect V704) (cons (protect V705) ()))) ()))) ()))))) (do (shen.record-kl power (cons defun (cons power (cons (cons (protect V710) (cons (protect V711) ())) (cons (cons cond (cons (cons (cons = (cons 0 (cons (protect V711) ()))) (cons 1 ())) (cons (cons true (cons (cons * (cons (protect V710) (cons (cons power (cons (protect V710) (cons (cons - (cons (protect V711) (cons 1 ()))) ()))) ()))) ())) ()))) ()))))) (do (shen.record-kl factorial (cons defun (cons factorial (cons (cons (protect V714) ()) (cons (cons cond (cons (cons (cons = (cons 0 (cons (protect V714) ()))) (cons 1 ())) (cons (cons true (cons (cons * (cons (protect V714) (cons (cons factorial (cons (cons - (cons (protect V714) (cons 1 ()))) ())) ()))) ())) ()))) ()))))) (do (shen.record-kl prime? (cons defun (cons prime? (cons (cons (protect V716) ()) (cons (cons cond (cons (cons (cons = (cons 2 (cons (protect V716) ()))) (cons true ())) (cons (cons (cons even? (cons (protect V716) ())) (cons false ())) (cons (cons true (cons (cons maths.prime-h (cons (protect V716) (cons (cons isqrt (cons (protect V716) ())) (cons 3 ())))) ())) ())))) ()))))) (do (shen.record-kl maths.prime-h (cons defun (cons maths.prime-h (cons (cons (protect V719) (cons (protect V720) (cons (protect V721) ()))) (cons (cons cond (cons (cons (cons > (cons (protect V721) (cons (protect V720) ()))) (cons true ())) (cons (cons (cons integer? (cons (cons / (cons (protect V719) (cons (protect V721) ()))) ())) (cons false ())) (cons (cons true (cons (cons maths.prime-h (cons (protect V719) (cons (protect V720) (cons (cons + (cons (protect V721) (cons 2 ()))) ())))) ())) ())))) ()))))) (do (shen.record-kl maths.sign (cons defun (cons maths.sign (cons (cons (protect V727) ()) (cons (cons cond (cons (cons (cons = (cons 0 (cons (protect V727) ()))) (cons 0 ())) (cons (cons (cons positive? (cons (protect V727) ())) (cons 1 ())) (cons (cons true (cons -1 ())) ())))) ()))))) (do (shen.record-kl log (cons defun (cons log (cons (cons (protect V729) (cons (protect V730) (cons (protect V731) ()))) (cons (cons / (cons (cons log10 (cons (protect V729) (cons (protect V731) ()))) (cons (cons log10 (cons (protect V730) (cons (protect V731) ()))) ()))) ()))))) (do (shen.record-kl loge (cons defun (cons loge (cons (cons (protect V736) (cons (protect V737) ())) (cons (cons log (cons (protect V736) (cons (cons e ()) (cons (protect V737) ())))) ()))))) (do (shen.record-kl log2 (cons defun (cons log2 (cons (cons (protect V740) (cons (protect V741) ())) (cons (cons log (cons (protect V740) (cons 2 (cons (protect V741) ())))) ()))))) (do (shen.record-kl log10 (cons defun (cons log10 (cons (cons (protect V744) (cons (protect V745) ())) (cons (cons if (cons (cons >= (cons (protect V744) (cons 1 ()))) (cons (cons maths.log10+ (cons (protect V744) (cons (protect V745) ()))) (cons (cons ~ (cons (cons maths.log10+ (cons (cons / (cons 1 (cons (protect V744) ()))) (cons (protect V745) ()))) ())) ())))) ()))))) (do (shen.record-kl maths.log10+ (cons defun (cons maths.log10+ (cons (cons (protect V748) (cons (protect V749) ())) (cons (cons cond (cons (cons (cons <= (cons (cons abs (cons (protect V748) ())) (cons (protect V749) ()))) (cons 0 ())) (cons (cons (cons >= (cons (protect V748) (cons 10 ()))) (cons (cons + (cons 1 (cons (cons maths.log10+ (cons (cons / (cons (protect V748) (cons 10 ()))) (cons (protect V749) ()))) ()))) ())) (cons (cons true (cons (cons * (cons 0.1 (cons (cons maths.log10+ (cons (cons power (cons (protect V748) (cons 10 ()))) (cons (cons * (cons 10 (cons (protect V749) ()))) ()))) ()))) ())) ())))) ()))))) (do (shen.record-kl maths.upto (cons defun (cons maths.upto (cons (cons (protect V756) (cons (protect V757) (cons (protect V758) (cons (protect V759) (cons (protect V760) (cons (protect V761) ())))))) (cons (cons cond (cons (cons (cons (protect V757) (cons (protect V756) ())) (cons (protect V760) ())) (cons (cons true (cons (cons (cons (protect V759) (cons (cons (protect V761) (cons (protect V756) ())) ())) (cons (cons maths.upto (cons (cons (protect V758) (cons (protect V756) ())) (cons (protect V757) (cons (protect V758) (cons (protect V759) (cons (protect V760) (cons (protect V761) ()))))))) ())) ())) ()))) ()))))) (do (shen.record-kl r# (cons defun (cons r# (cons (cons (protect V775) (cons (protect V776) ())) (cons (cons cond (cons (cons (cons and (cons (cons integer? (cons (protect V775) ())) (cons (cons integer? (cons (protect V776) ())) ()))) (cons (cons let (cons (protect W777) (cons (cons absvector (cons 3 ())) (cons (cons let (cons (protect W778) (cons (cons address-> (cons (protect W777) (cons 0 (cons rational.print-rational ())))) (cons (cons let (cons (protect W779) (cons (cons address-> (cons (protect W777) (cons 1 (cons (protect V775) ())))) (cons (cons let (cons (protect W780) (cons (cons address-> (cons (protect W777) (cons 2 (cons (protect V776) ())))) (cons (protect W777) ())))) ())))) ())))) ())))) ())) (cons (cons true (cons (cons simple-error (cons (cons cn (cons "numerator " (cons (cons shen.app (cons (protect V775) (cons (cons cn (cons " and divisor " (cons (cons shen.app (cons (protect V776) (cons " must be integers -" (cons shen.s ())))) ()))) (cons shen.s ())))) ()))) ())) ())) ()))) ()))))) (do (shen.record-kl rational.print-rational (cons defun (cons rational.print-rational (cons (cons (protect V786) ()) (cons (cons shen.app (cons (cons <-address (cons (protect V786) (cons 1 ()))) (cons (cons cn (cons "/" (cons (cons shen.app (cons (cons <-address (cons (protect V786) (cons 2 ()))) (cons "" (cons shen.s ())))) ()))) (cons shen.s ())))) ()))))) (do (shen.record-kl rational? (cons defun (cons rational? (cons (cons (protect V789) ()) (cons (cons trap-error (cons (cons and (cons (cons absvector? (cons (protect V789) ())) (cons (cons and (cons (cons = (cons (cons <-address (cons (protect V789) (cons 0 ()))) (cons rational.print-rational ()))) (cons (cons and (cons (cons integer? (cons (cons <-address (cons (protect V789) (cons 1 ()))) ())) (cons (cons integer? (cons (cons <-address (cons (protect V789) (cons 2 ()))) ())) ()))) ()))) ()))) (cons (cons lambda (cons (protect Z790) (cons false ()))) ()))) ()))))) (do (shen.record-kl numerator (cons defun (cons numerator (cons (cons (protect V792) ()) (cons (cons <-address (cons (protect V792) (cons 1 ()))) ()))))) (do (shen.record-kl denominator (cons defun (cons denominator (cons (cons (protect V794) ()) (cons (cons <-address (cons (protect V794) (cons 2 ()))) ()))))) (do (shen.record-kl r-op1 (cons defun (cons r-op1 (cons (cons (protect V836) (cons (protect V837) ())) (cons (cons n->r (cons (cons (protect V836) (cons (cons r->n (cons (protect V837) ())) ())) ())) ()))))) (do (shen.record-kl r-op2 (cons defun (cons r-op2 (cons (cons (protect V840) (cons (protect V841) (cons (protect V842) ()))) (cons (cons n->r (cons (cons (cons (protect V840) (cons (cons r->n (cons (protect V841) ())) ())) (cons (cons r->n (cons (protect V842) ())) ())) ())) ()))))) (do (shen.record-kl r->n (cons defun (cons r->n (cons (cons (protect V847) ()) (cons (cons / (cons (cons numerator (cons (protect V847) ())) (cons (cons denominator (cons (protect V847) ())) ()))) ()))))) (do (shen.record-kl r->pair (cons defun (cons r->pair (cons (cons (protect V850) ()) (cons (cons @p (cons (cons numerator (cons (protect V850) ())) (cons (cons denominator (cons (protect V850) ())) ()))) ()))))) (do (shen.record-kl n->r (cons defun (cons n->r (cons (cons (protect V853) ()) (cons (cons let (cons (protect W854) (cons (cons maths.n->r (cons (protect V853) (cons 1 ()))) (cons (cons r# (cons (cons fst (cons (protect W854) ())) (cons (cons snd (cons (protect W854) ())) ()))) ())))) ()))))) (do (shen.record-kl r-reduce (cons defun (cons r-reduce (cons (cons (protect V857) ()) (cons (cons rational.r-reduce-help (cons (cons numerator (cons (protect V857) ())) (cons (cons denominator (cons (protect V857) ())) ()))) ()))))) (do (shen.record-kl rational.r-reduce-help (cons defun (cons rational.r-reduce-help (cons (cons (protect V860) (cons (protect V861) ())) (cons (cons let (cons (protect W862) (cons (cons lcd (cons (protect V860) (cons (protect V861) ()))) (cons (cons if (cons (cons = (cons (protect W862) (cons 1 ()))) (cons (cons r# (cons (protect V860) (cons (protect V861) ()))) (cons (cons rational.r-reduce-help (cons (cons / (cons (protect V860) (cons (protect W862) ()))) (cons (cons / (cons (protect V861) (cons (protect W862) ()))) ()))) ())))) ())))) ()))))) (do (shen.record-kl r= (cons defun (cons r= (cons (cons (protect V866) (cons (protect V867) ())) (cons (cons let (cons (protect W868) (cons (cons numerator (cons (protect V866) ())) (cons (cons let (cons (protect W869) (cons (cons denominator (cons (protect V866) ())) (cons (cons let (cons (protect W870) (cons (cons numerator (cons (protect V867) ())) (cons (cons let (cons (protect W871) (cons (cons denominator (cons (protect V867) ())) (cons (cons = (cons (cons * (cons (protect W868) (cons (protect W871) ()))) (cons (cons * (cons (protect W869) (cons (protect W870) ()))) ()))) ())))) ())))) ())))) ())))) ()))))) (do (shen.record-kl r< (cons defun (cons r< (cons (cons (protect V875) (cons (protect V876) ())) (cons (cons let (cons (protect W877) (cons (cons numerator (cons (protect V875) ())) (cons (cons let (cons (protect W878) (cons (cons denominator (cons (protect V875) ())) (cons (cons let (cons (protect W879) (cons (cons numerator (cons (protect V876) ())) (cons (cons let (cons (protect W880) (cons (cons denominator (cons (protect V876) ())) (cons (cons < (cons (cons * (cons (protect W877) (cons (protect W880) ()))) (cons (cons * (cons (protect W878) (cons (protect W879) ()))) ()))) ())))) ())))) ())))) ())))) ()))))) (do (shen.record-kl r> (cons defun (cons r> (cons (cons (protect V884) (cons (protect V885) ())) (cons (cons not (cons (cons or (cons (cons r= (cons (protect V884) (cons (protect V885) ()))) (cons (cons r< (cons (protect V884) (cons (protect V885) ()))) ()))) ())) ()))))) (do (shen.record-kl r>= (cons defun (cons r>= (cons (cons (protect V888) (cons (protect V889) ())) (cons (cons or (cons (cons r= (cons (protect V888) (cons (protect V889) ()))) (cons (cons r> (cons (protect V888) (cons (protect V889) ()))) ()))) ()))))) (do (shen.record-kl r<= (cons defun (cons r<= (cons (cons (protect V892) (cons (protect V893) ())) (cons (cons or (cons (cons r= (cons (protect V892) (cons (protect V893) ()))) (cons (cons r< (cons (protect V892) (cons (protect V893) ()))) ()))) ()))))) (do (shen.record-kl r+ (cons defun (cons r+ (cons (cons (protect V896) (cons (protect V897) ())) (cons (cons let (cons (protect W898) (cons (cons numerator (cons (protect V896) ())) (cons (cons let (cons (protect W899) (cons (cons denominator (cons (protect V896) ())) (cons (cons let (cons (protect W900) (cons (cons numerator (cons (protect V897) ())) (cons (cons let (cons (protect W901) (cons (cons denominator (cons (protect V897) ())) (cons (cons r# (cons (cons + (cons (cons * (cons (protect W898) (cons (protect W901) ()))) (cons (cons * (cons (protect W899) (cons (protect W900) ()))) ()))) (cons (cons * (cons (protect W899) (cons (protect W901) ()))) ()))) ())))) ())))) ())))) ())))) ()))))) (do (shen.record-kl r- (cons defun (cons r- (cons (cons (protect V906) (cons (protect V907) ())) (cons (cons let (cons (protect W908) (cons (cons numerator (cons (protect V906) ())) (cons (cons let (cons (protect W909) (cons (cons denominator (cons (protect V906) ())) (cons (cons let (cons (protect W910) (cons (cons numerator (cons (protect V907) ())) (cons (cons let (cons (protect W911) (cons (cons denominator (cons (protect V907) ())) (cons (cons r# (cons (cons - (cons (cons * (cons (protect W908) (cons (protect W911) ()))) (cons (cons * (cons (protect W909) (cons (protect W910) ()))) ()))) (cons (cons * (cons (protect W909) (cons (protect W911) ()))) ()))) ())))) ())))) ())))) ())))) ()))))) (do (shen.record-kl r* (cons defun (cons r* (cons (cons (protect V916) (cons (protect V917) ())) (cons (cons let (cons (protect W918) (cons (cons numerator (cons (protect V916) ())) (cons (cons let (cons (protect W919) (cons (cons denominator (cons (protect V916) ())) (cons (cons let (cons (protect W920) (cons (cons numerator (cons (protect V917) ())) (cons (cons let (cons (protect W921) (cons (cons denominator (cons (protect V917) ())) (cons (cons r# (cons (cons * (cons (protect W918) (cons (protect W920) ()))) (cons (cons * (cons (protect W919) (cons (protect W921) ()))) ()))) ())))) ())))) ())))) ())))) ()))))) (do (shen.record-kl +-inverse (cons defun (cons +-inverse (cons (cons (protect V925) ()) (cons (cons let (cons (protect W926) (cons (cons numerator (cons (protect V925) ())) (cons (cons let (cons (protect W927) (cons (cons denominator (cons (protect V925) ())) (cons (cons r# (cons (cons ~ (cons (protect W926) ())) (cons (protect W927) ()))) ())))) ())))) ()))))) (do (shen.record-kl *-inverse (cons defun (cons *-inverse (cons (cons (protect V929) ()) (cons (cons let (cons (protect W930) (cons (cons numerator (cons (protect V929) ())) (cons (cons let (cons (protect W931) (cons (cons denominator (cons (protect V929) ())) (cons (cons r# (cons (protect W931) (cons (protect W930) ()))) ())))) ())))) ()))))) (do (shen.record-kl r/ (cons defun (cons r/ (cons (cons (protect V933) (cons (protect V934) ())) (cons (cons r* (cons (protect V933) (cons (cons *-inverse (cons (protect V934) ())) ()))) ()))))) (do (shen.record-kl r-expt (cons defun (cons r-expt (cons (cons (protect V939) (cons (protect V940) ())) (cons (cons cond (cons (cons (cons natural? (cons (protect V940) ())) (cons (cons let (cons (protect W941) (cons (cons numerator (cons (protect V939) ())) (cons (cons let (cons (protect W942) (cons (cons denominator (cons (protect V939) ())) (cons (cons r# (cons (cons power (cons (protect W941) (cons (protect V940) ()))) (cons (cons power (cons (protect W942) (cons (protect V940) ()))) ()))) ())))) ())))) ())) (cons (cons (cons and (cons (cons integer? (cons (protect V940) ())) (cons (cons negative? (cons (protect V940) ())) ()))) (cons (cons let (cons (protect W943) (cons (cons numerator (cons (protect V939) ())) (cons (cons let (cons (protect W944) (cons (cons denominator (cons (protect V939) ())) (cons (cons r# (cons (cons power (cons (protect W944) (cons (cons ~ (cons (protect V940) ())) ()))) (cons (cons power (cons (protect W943) (cons (cons ~ (cons (protect V940) ())) ()))) ()))) ())))) ())))) ())) (cons (cons true (cons (cons simple-error (cons (cons cn (cons "cannot exponentiate a rational by a non-integer " (cons (cons shen.app (cons (protect V940) (cons " -" (cons shen.a ())))) ()))) ())) ())) ())))) ()))))) (do (shen.record-kl r-approx (cons defun (cons r-approx (cons (cons (protect V949) (cons (protect V950) ())) (cons (cons rational.approx-r-h (cons (cons r->n (cons (protect V949) ())) (cons (protect V950) (cons 0 ())))) ()))))) (do (shen.record-kl rational.approx-r-h (cons defun (cons rational.approx-r-h (cons (cons (protect V953) (cons (protect V954) (cons (protect V955) ()))) (cons (cons cond (cons (cons (cons > (cons (cons / (cons (protect V955) (cons (protect V954) ()))) (cons (protect V953) ()))) (cons (cons r# (cons (protect V955) (cons (protect V954) ()))) ())) (cons (cons true (cons (cons rational.approx-r-h (cons (protect V953) (cons (protect V954) (cons (cons + (cons (protect V955) (cons 1 ()))) ())))) ())) ()))) ()))))) (do (shen.record-kl c# (cons defun (cons c# (cons (cons (protect V965) (cons (protect V966) ())) (cons (cons cond (cons (cons (cons and (cons (cons number? (cons (protect V965) ())) (cons (cons number? (cons (protect V966) ())) ()))) (cons (cons let (cons (protect W967) (cons (cons absvector (cons 3 ())) (cons (cons let (cons (protect W968) (cons (cons address-> (cons (protect W967) (cons 0 (cons complex.print-complex ())))) (cons (cons let (cons (protect W969) (cons (cons address-> (cons (protect W967) (cons 1 (cons (protect V965) ())))) (cons (cons let (cons (protect W970) (cons (cons address-> (cons (protect W967) (cons 2 (cons (protect V966) ())))) (cons (protect W967) ())))) ())))) ())))) ())))) ())) (cons (cons true (cons (cons simple-error (cons (cons cn (cons "real " (cons (cons shen.app (cons (protect V965) (cons (cons cn (cons " and imaginary " (cons (cons shen.app (cons (protect V966) (cons " must be numbers -" (cons shen.a ())))) ()))) (cons shen.a ())))) ()))) ())) ())) ()))) ()))))) (do (shen.record-kl complex.print-complex (cons defun (cons complex.print-complex (cons (cons (protect V976) ()) (cons (cons shen.insert (cons (cons <-address (cons (protect V976) (cons 2 ()))) (cons (cons shen.insert (cons (cons <-address (cons (protect V976) (cons 1 ()))) (cons (cons shen.proc-nl (cons (cons cn (cons "(c" (cons "# ~A ~A)" ()))) ())) ()))) ()))) ()))))) (do (shen.record-kl complex? (cons defun (cons complex? (cons (cons (protect V980) ()) (cons (cons trap-error (cons (cons and (cons (cons absvector? (cons (protect V980) ())) (cons (cons and (cons (cons = (cons (cons <-address (cons (protect V980) (cons 0 ()))) (cons complex.print-complex ()))) (cons (cons and (cons (cons number? (cons (cons <-address (cons (protect V980) (cons 1 ()))) ())) (cons (cons number? (cons (cons <-address (cons (protect V980) (cons 2 ()))) ())) ()))) ()))) ()))) (cons (cons lambda (cons (protect Z981) (cons false ()))) ()))) ()))))) (do (shen.record-kl real (cons defun (cons real (cons (cons (protect V983) ()) (cons (cons <-address (cons (protect V983) (cons 1 ()))) ()))))) (do (shen.record-kl imaginary (cons defun (cons imaginary (cons (cons (protect V985) ()) (cons (cons <-address (cons (protect V985) (cons 2 ()))) ()))))) (do (shen.record-kl c+ (cons defun (cons c+ (cons (cons (protect V997) (cons (protect V998) ())) (cons (cons let (cons (protect W999) (cons (cons real (cons (protect V997) ())) (cons (cons let (cons (protect W1000) (cons (cons imaginary (cons (protect V997) ())) (cons (cons let (cons (protect W1001) (cons (cons real (cons (protect V998) ())) (cons (cons let (cons (protect W1002) (cons (cons imaginary (cons (protect V998) ())) (cons (cons c# (cons (cons + (cons (protect W999) (cons (protect W1001) ()))) (cons (cons + (cons (protect W1000) (cons (protect W1002) ()))) ()))) ())))) ())))) ())))) ())))) ()))))) (do (shen.record-kl c- (cons defun (cons c- (cons (cons (protect V1006) (cons (protect V1007) ())) (cons (cons let (cons (protect W1008) (cons (cons real (cons (protect V1006) ())) (cons (cons let (cons (protect W1009) (cons (cons imaginary (cons (protect V1006) ())) (cons (cons let (cons (protect W1010) (cons (cons real (cons (protect V1007) ())) (cons (cons let (cons (protect W1011) (cons (cons imaginary (cons (protect V1007) ())) (cons (cons c# (cons (cons - (cons (protect W1008) (cons (protect W1010) ()))) (cons (cons - (cons (protect W1009) (cons (protect W1011) ()))) ()))) ())))) ())))) ())))) ())))) ()))))) (do (shen.record-kl c* (cons defun (cons c* (cons (cons (protect V1015) (cons (protect V1016) ())) (cons (cons let (cons (protect W1017) (cons (cons real (cons (protect V1015) ())) (cons (cons let (cons (protect W1018) (cons (cons imaginary (cons (protect V1015) ())) (cons (cons let (cons (protect W1019) (cons (cons real (cons (protect V1016) ())) (cons (cons let (cons (protect W1020) (cons (cons imaginary (cons (protect V1016) ())) (cons (cons c# (cons (cons - (cons (cons * (cons (protect W1017) (cons (protect W1019) ()))) (cons (cons * (cons (protect W1018) (cons (protect W1020) ()))) ()))) (cons (cons + (cons (cons * (cons (protect W1018) (cons (protect W1019) ()))) (cons (cons * (cons (protect W1017) (cons (protect W1020) ()))) ()))) ()))) ())))) ())))) ())))) ())))) ()))))) (do (shen.record-kl c/ (cons defun (cons c/ (cons (cons (protect V1026) (cons (protect V1027) ())) (cons (cons let (cons (protect W1028) (cons (cons real (cons (protect V1026) ())) (cons (cons let (cons (protect W1029) (cons (cons imaginary (cons (protect V1026) ())) (cons (cons let (cons (protect W1030) (cons (cons real (cons (protect V1027) ())) (cons (cons let (cons (protect W1031) (cons (cons imaginary (cons (protect V1027) ())) (cons (cons c# (cons (cons / (cons (cons + (cons (cons * (cons (protect W1028) (cons (protect W1030) ()))) (cons (cons * (cons (protect W1029) (cons (protect W1031) ()))) ()))) (cons (cons + (cons (cons * (cons (protect W1030) (cons (protect W1030) ()))) (cons (cons * (cons (protect W1031) (cons (protect W1031) ()))) ()))) ()))) (cons (cons / (cons (cons - (cons (cons * (cons (protect W1029) (cons (protect W1030) ()))) (cons (cons * (cons (protect W1028) (cons (protect W1031) ()))) ()))) (cons (cons + (cons (cons * (cons (protect W1030) (cons (protect W1030) ()))) (cons (cons * (cons (protect W1031) (cons (protect W1031) ()))) ()))) ()))) ()))) ())))) ())))) ())))) ())))) ()))))) (do (shen.record-kl n# (cons defun (cons n# (cons (cons (protect V1052) (cons (protect V1053) ())) (cons (cons cond (cons (cons (cons and (cons (cons natural? (cons (protect V1052) ())) (cons (cons and (cons (cons natural? (cons (protect V1053) ())) (cons (cons > (cons (protect V1053) (cons 0 ()))) ()))) ()))) (cons (cons let (cons (protect W1054) (cons (cons absvector (cons 4 ())) (cons (cons let (cons (protect W1055) (cons (cons address-> (cons (protect W1054) (cons 0 (cons numerals.print-numeral ())))) (cons (cons let (cons (protect W1056) (cons (cons address-> (cons (protect W1054) (cons 1 (cons (cons numerals.n->numeral (cons (protect V1052) (cons (protect V1053) ()))) ())))) (cons (cons let (cons (protect W1057) (cons (cons address-> (cons (protect W1054) (cons 2 (cons (protect V1053) ())))) (cons (cons let (cons (protect W1058) (cons (cons address-> (cons (protect W1054) (cons 3 (cons (protect V1052) ())))) (cons (protect W1054) ())))) ())))) ())))) ())))) ())))) ())) (cons (cons true (cons (cons simple-error (cons (cons cn (cons "N = " (cons (cons shen.app (cons (protect V1052) (cons (cons cn (cons ", Radix = " (cons (cons shen.app (cons (protect V1053) (cons "; N and Radix must be natural numbers where Radix > 0 -" (cons shen.a ())))) ()))) (cons shen.a ())))) ()))) ())) ())) ()))) ()))))) (do (shen.record-kl radix (cons defun (cons radix (cons (cons (protect V1065) ()) (cons (cons <-address (cons (protect V1065) (cons 2 ()))) ()))))) (do (shen.record-kl numerals.numerals (cons defun (cons numerals.numerals (cons (cons (protect V1067) ()) (cons (cons <-address (cons (protect V1067) (cons 1 ()))) ()))))) (do (shen.record-kl n#->n (cons defun (cons n#->n (cons (cons (protect V1069) ()) (cons (cons <-address (cons (protect V1069) (cons 3 ()))) ()))))) (do (shen.record-kl n#->ns (cons defun (cons n#->ns (cons (cons (protect V1071) ()) (cons (cons <-address (cons (protect V1071) (cons 1 ()))) ()))))) (do (shen.record-kl numerals.print-numeral (cons defun (cons numerals.print-numeral (cons (cons (protect V1073) ()) (cons (cons let (cons (protect W1074) (cons (cons radix (cons (protect V1073) ())) (cons (cons let (cons (protect W1075) (cons (cons numerals.numerals (cons (protect V1073) ())) (cons (cons @s (cons (cons numerals.numeric->string (cons (protect W1075) (cons (protect W1074) ()))) (cons (cons @s (cons "#" (cons (cons str (cons (protect W1074) ())) ()))) ()))) ())))) ())))) ()))))) (do (shen.record-kl numerals.numeric->string (cons defun (cons numerals.numeric->string (cons (cons (protect V1080) (cons (protect V1081) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V1080) ()))) (cons "" ())) (cons (cons (cons cons? (cons (protect V1080) ())) (cons (cons let (cons (protect W1082) (cons (cons if (cons (cons < (cons (cons hd (cons (protect V1080) ())) (cons 10 ()))) (cons (cons str (cons (cons hd (cons (protect V1080) ())) ())) (cons (cons if (cons (cons > (cons (protect V1081) (cons 36 ()))) (cons (cons cn (cons (cons str (cons (cons hd (cons (protect V1080) ())) ())) (cons " " ()))) (cons (cons n->string (cons (cons + (cons (cons hd (cons (protect V1080) ())) (cons 55 ()))) ())) ())))) ())))) (cons (cons cn (cons (protect W1082) (cons (cons numerals.numeric->string (cons (cons tl (cons (protect V1080) ())) (cons (protect V1081) ()))) ()))) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons numerals.numeric->string ())) ())) ())))) ()))))) (do (shen.record-kl numeral? (cons defun (cons numeral? (cons (cons (protect V1085) ()) (cons (cons and (cons (cons absvector? (cons (protect V1085) ())) (cons (cons = (cons numerals.print-numeral (cons (cons <-address (cons (protect V1085) (cons 0 ()))) ()))) ()))) ()))))) (do (shen.record-kl numerals.numeral-macro (cons defun (cons numerals.numeral-macro (cons (cons (protect V1124) ()) (cons (cons cond (cons (cons (cons and (cons (cons cons? (cons (protect V1124) ())) (cons (cons and (cons (cons = (cons n-op2 (cons (cons hd (cons (protect V1124) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V1124) ())) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (protect V1124) ())) ())) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V1124) ())) ())) ())) ())) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V1124) ())) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) ()))) (cons (cons cons (cons n-op2 (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect V1124) ())) ())) (cons (cons cons (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V1124) ())) ())) ())) (cons (cons cons (cons (cons hd (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V1124) ())) ())) ())) ())) (cons (cons cons (cons (cons cons (cons radix (cons (cons cons (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V1124) ())) ())) ())) (cons () ()))) ()))) (cons () ()))) ()))) ()))) ()))) ()))) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V1124) ())) (cons (cons and (cons (cons = (cons n-op1 (cons (cons hd (cons (protect V1124) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V1124) ())) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (protect V1124) ())) ())) ())) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V1124) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) (cons (cons cons (cons n-op1 (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect V1124) ())) ())) (cons (cons cons (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V1124) ())) ())) ())) (cons (cons cons (cons (cons cons (cons radix (cons (cons tl (cons (cons tl (cons (protect V1124) ())) ())) ()))) (cons () ()))) ()))) ()))) ()))) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V1124) ())) (cons (cons and (cons (cons = (cons n+ (cons (cons hd (cons (protect V1124) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V1124) ())) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (protect V1124) ())) ())) ())) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V1124) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) (cons (cons cons (cons n+ (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect V1124) ())) ())) (cons (cons cons (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V1124) ())) ())) ())) (cons (cons cons (cons (cons cons (cons radix (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect V1124) ())) ())) (cons () ()))) ()))) (cons () ()))) ()))) ()))) ()))) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V1124) ())) (cons (cons and (cons (cons = (cons n- (cons (cons hd (cons (protect V1124) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V1124) ())) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (protect V1124) ())) ())) ())) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V1124) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) (cons (cons cons (cons n- (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect V1124) ())) ())) (cons (cons cons (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V1124) ())) ())) ())) (cons (cons cons (cons (cons cons (cons radix (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect V1124) ())) ())) (cons () ()))) ()))) (cons () ()))) ()))) ()))) ()))) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V1124) ())) (cons (cons and (cons (cons = (cons n* (cons (cons hd (cons (protect V1124) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V1124) ())) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (protect V1124) ())) ())) ())) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V1124) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) (cons (cons cons (cons n* (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect V1124) ())) ())) (cons (cons cons (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V1124) ())) ())) ())) (cons (cons cons (cons (cons cons (cons radix (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect V1124) ())) ())) (cons () ()))) ()))) (cons () ()))) ()))) ()))) ()))) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V1124) ())) (cons (cons and (cons (cons = (cons n/ (cons (cons hd (cons (protect V1124) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V1124) ())) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (protect V1124) ())) ())) ())) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V1124) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) (cons (cons cons (cons n/ (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect V1124) ())) ())) (cons (cons cons (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V1124) ())) ())) ())) (cons (cons cons (cons (cons cons (cons radix (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect V1124) ())) ())) (cons () ()))) ()))) (cons () ()))) ()))) ()))) ()))) ())) (cons (cons true (cons (protect V1124) ())) ())))))))) ()))))) (do (shen.record-kl n-op2 (cons defun (cons n-op2 (cons (cons (protect V1139) (cons (protect V1140) (cons (protect V1141) (cons (protect V1142) ())))) (cons (cons n# (cons (cons (cons (protect V1139) (cons (cons n#->n (cons (protect V1140) ())) ())) (cons (cons n#->n (cons (protect V1141) ())) ())) (cons (protect V1142) ()))) ()))))) (do (shen.record-kl n-op1 (cons defun (cons n-op1 (cons (cons (protect V1148) (cons (protect V1149) (cons (protect V1150) ()))) (cons (cons n# (cons (cons (protect V1148) (cons (cons n#->n (cons (protect V1149) ())) ())) (cons (protect V1150) ()))) ()))))) (do (shen.record-kl n+ (cons defun (cons n+ (cons (cons (protect V1156) (cons (protect V1157) (cons (protect V1158) ()))) (cons (cons n-op2 (cons (cons lambda (cons (protect Z1159) (cons (cons lambda (cons (protect Z1160) (cons (cons + (cons (protect Z1159) (cons (protect Z1160) ()))) ()))) ()))) (cons (protect V1156) (cons (protect V1157) (cons (protect V1158) ()))))) ()))))) (do (shen.record-kl n* (cons defun (cons n* (cons (cons (protect V1166) (cons (protect V1167) (cons (protect V1168) ()))) (cons (cons n-op2 (cons (cons lambda (cons (protect Z1169) (cons (cons lambda (cons (protect Z1170) (cons (cons * (cons (protect Z1169) (cons (protect Z1170) ()))) ()))) ()))) (cons (protect V1166) (cons (protect V1167) (cons (protect V1168) ()))))) ()))))) (do (shen.record-kl n- (cons defun (cons n- (cons (cons (protect V1176) (cons (protect V1177) (cons (protect V1178) ()))) (cons (cons n-op2 (cons (cons lambda (cons (protect Z1179) (cons (cons lambda (cons (protect Z1180) (cons (cons - (cons (protect Z1179) (cons (protect Z1180) ()))) ()))) ()))) (cons (protect V1176) (cons (protect V1177) (cons (protect V1178) ()))))) ()))))) (do (shen.record-kl n/ (cons defun (cons n/ (cons (cons (protect V1186) (cons (protect V1187) (cons (protect V1188) ()))) (cons (cons n-op2 (cons (cons lambda (cons (protect Z1189) (cons (cons lambda (cons (protect Z1190) (cons (cons / (cons (protect Z1189) (cons (protect Z1190) ()))) ()))) ()))) (cons (protect V1186) (cons (protect V1187) (cons (protect V1188) ()))))) ()))))) (do (shen.record-kl binary (cons defun (cons binary (cons (cons (protect V1194) ()) (cons (cons n# (cons (protect V1194) (cons 2 ()))) ()))))) (do (shen.record-kl hex (cons defun (cons hex (cons (cons (protect V1196) ()) (cons (cons n# (cons (protect V1196) (cons 16 ()))) ()))))) (do (shen.record-kl octal (cons defun (cons octal (cons (cons (protect V1198) ()) (cons (cons n# (cons (protect V1198) (cons 8 ()))) ()))))) (do (shen.record-kl duodecimal (cons defun (cons duodecimal (cons (cons (protect V1200) ()) (cons (cons n# (cons (protect V1200) (cons 12 ()))) ()))))) (do (shen.record-kl numerals.n->numeral (cons defun (cons numerals.n->numeral (cons (cons (protect V1202) (cons (protect V1203) ())) (cons (cons cond (cons (cons (cons > (cons (protect V1203) (cons (protect V1202) ()))) (cons (cons cons (cons (protect V1202) (cons () ()))) ())) (cons (cons true (cons (cons let (cons (protect W1204) (cons (cons numerals.largest-expt (cons (protect V1202) (cons (protect V1203) (cons 0 ())))) (cons (cons let (cons (protect W1205) (cons (cons power (cons (protect V1203) (cons (protect W1204) ()))) (cons (cons let (cons (protect W1206) (cons (cons div (cons (protect V1202) (cons (protect W1205) ()))) (cons (cons let (cons (protect W1207) (cons (cons cons (cons (protect W1206) (cons (cons numerals.n-zeros (cons (protect W1204) ())) ()))) (cons (cons let (cons (protect W1208) (cons (cons - (cons (protect V1202) (cons (cons * (cons (protect W1206) (cons (protect W1205) ()))) ()))) (cons (cons numerals.add (cons (protect W1207) (cons (cons numerals.n->numeral (cons (protect W1208) (cons (protect V1203) ()))) (cons (protect V1203) ())))) ())))) ())))) ())))) ())))) ())))) ())) ()))) ()))))) (do (shen.record-kl numerals.largest-expt (cons defun (cons numerals.largest-expt (cons (cons (protect V1211) (cons (protect V1212) (cons (protect V1213) ()))) (cons (cons cond (cons (cons (cons > (cons (cons power (cons (protect V1212) (cons (protect V1213) ()))) (cons (protect V1211) ()))) (cons (cons - (cons (protect V1213) (cons 1 ()))) ())) (cons (cons true (cons (cons numerals.largest-expt (cons (protect V1211) (cons (protect V1212) (cons (cons + (cons (protect V1213) (cons 1 ()))) ())))) ())) ()))) ()))))) (do (shen.record-kl numerals.n-zeros (cons defun (cons numerals.n-zeros (cons (cons (protect V1217) ()) (cons (cons cond (cons (cons (cons = (cons 0 (cons (protect V1217) ()))) (cons () ())) (cons (cons true (cons (cons cons (cons 0 (cons (cons numerals.n-zeros (cons (cons - (cons (protect V1217) (cons 1 ()))) ())) ()))) ())) ()))) ()))))) (do (shen.record-kl numerals.add (cons defun (cons numerals.add (cons (cons (protect V1219) (cons (protect V1220) (cons (protect V1221) ()))) (cons (cons reverse (cons (cons numerals.add-h (cons (cons reverse (cons (protect V1219) ())) (cons (cons reverse (cons (protect V1220) ())) (cons (protect V1221) (cons 0 ()))))) ())) ()))))) (do (shen.record-kl numerals.add-h (cons defun (cons numerals.add-h (cons (cons (protect V1230) (cons (protect V1231) (cons (protect V1232) (cons (protect V1233) ())))) (cons (cons cond (cons (cons (cons and (cons (cons = (cons () (cons (protect V1230) ()))) (cons (cons and (cons (cons = (cons () (cons (protect V1231) ()))) (cons (cons = (cons 0 (cons (protect V1233) ()))) ()))) ()))) (cons () ())) (cons (cons (cons and (cons (cons = (cons () (cons (protect V1230) ()))) (cons (cons = (cons () (cons (protect V1231) ()))) ()))) (cons (cons cons (cons (protect V1233) (cons () ()))) ())) (cons (cons (cons = (cons () (cons (protect V1230) ()))) (cons (cons numerals.add-h (cons (cons cons (cons 0 (cons () ()))) (cons (protect V1231) (cons (protect V1232) (cons (protect V1233) ()))))) ())) (cons (cons (cons = (cons () (cons (protect V1231) ()))) (cons (cons numerals.add-h (cons (protect V1230) (cons (cons cons (cons 0 (cons () ()))) (cons (protect V1232) (cons (protect V1233) ()))))) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V1230) ())) (cons (cons cons? (cons (protect V1231) ())) ()))) (cons (cons let (cons (protect W1234) (cons (cons + (cons (cons hd (cons (protect V1230) ())) (cons (cons + (cons (cons hd (cons (protect V1231) ())) (cons (protect V1233) ()))) ()))) (cons (cons if (cons (cons < (cons (protect W1234) (cons (protect V1232) ()))) (cons (cons cons (cons (protect W1234) (cons (cons numerals.add-h (cons (cons tl (cons (protect V1230) ())) (cons (cons tl (cons (protect V1231) ())) (cons (protect V1232) (cons 0 ()))))) ()))) (cons (cons cons (cons (cons - (cons (protect V1232) (cons (protect W1234) ()))) (cons (cons numerals.add-h (cons (cons tl (cons (protect V1230) ())) (cons (cons tl (cons (protect V1231) ())) (cons (protect V1232) (cons 1 ()))))) ()))) ())))) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons numerals.add-h ())) ())) ()))))))) ()))))) (do (shen.record-kl assoc-if (cons defun (cons assoc-if (cons (cons (protect V1349) (cons (protect V1350) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V1350) ()))) (cons () ())) (cons (cons (cons and (cons (cons cons? (cons (protect V1350) ())) (cons (cons and (cons (cons cons? (cons (cons hd (cons (protect V1350) ())) ())) (cons (cons (protect V1349) (cons (cons hd (cons (cons hd (cons (protect V1350) ())) ())) ())) ()))) ()))) (cons (cons hd (cons (protect V1350) ())) ())) (cons (cons (cons cons? (cons (protect V1350) ())) (cons (cons assoc-if (cons (protect V1349) (cons (cons tl (cons (protect V1350) ())) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons assoc-if ())) ())) ()))))) ()))))) (do (shen.record-kl assoc-if-not (cons defun (cons assoc-if-not (cons (cons (protect V1358) (cons (protect V1359) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V1359) ()))) (cons () ())) (cons (cons (cons and (cons (cons cons? (cons (protect V1359) ())) (cons (cons and (cons (cons cons? (cons (cons hd (cons (protect V1359) ())) ())) (cons (cons not (cons (cons (protect V1358) (cons (cons hd (cons (cons hd (cons (protect V1359) ())) ())) ())) ())) ()))) ()))) (cons (cons hd (cons (protect V1359) ())) ())) (cons (cons (cons cons? (cons (protect V1359) ())) (cons (cons assoc-if (cons (protect V1358) (cons (cons tl (cons (protect V1359) ())) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons assoc-if-not ())) ())) ()))))) ()))))) (do (shen.record-kl drop (cons defun (cons drop (cons (cons (protect V1364) (cons (protect V1365) ())) (cons (cons cond (cons (cons (cons = (cons 0 (cons (protect V1364) ()))) (cons (protect V1365) ())) (cons (cons (cons cons? (cons (protect V1365) ())) (cons (cons drop (cons (cons - (cons (protect V1364) (cons 1 ()))) (cons (cons tl (cons (protect V1365) ())) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons drop ())) ())) ())))) ()))))) (do (shen.record-kl drop-last (cons defun (cons drop-last (cons (cons (protect V1369) (cons (protect V1370) ())) (cons (cons reverse (cons (cons drop (cons (protect V1369) (cons (cons reverse (cons (protect V1370) ())) ()))) ())) ()))))) (do (shen.record-kl index (cons defun (cons index (cons (cons (protect V1373) (cons (protect V1374) ())) (cons (cons list.index-h (cons (protect V1373) (cons (protect V1374) (cons 1 ())))) ()))))) (do (shen.record-kl list.index-h (cons defun (cons list.index-h (cons (cons (protect V1386) (cons (protect V1387) (cons (protect V1388) ()))) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V1387) ()))) (cons -1 ())) (cons (cons (cons and (cons (cons cons? (cons (protect V1387) ())) (cons (cons = (cons (protect V1386) (cons (cons hd (cons (protect V1387) ())) ()))) ()))) (cons (protect V1388) ())) (cons (cons (cons cons? (cons (protect V1387) ())) (cons (cons list.index-h (cons (protect V1386) (cons (cons tl (cons (protect V1387) ())) (cons (cons + (cons (protect V1388) (cons 1 ()))) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons list.index-h ())) ())) ()))))) ()))))) (do (shen.record-kl index-last (cons defun (cons index-last (cons (cons (protect V1393) (cons (protect V1394) ())) (cons (cons let (cons (protect W1395) (cons (cons length (cons (protect V1394) ())) (cons (cons let (cons (protect W1396) (cons (cons index (cons (protect V1393) (cons (cons reverse (cons (protect V1394) ())) ()))) (cons (cons if (cons (cons = (cons (protect W1396) (cons -1 ()))) (cons (protect W1396) (cons (cons + (cons (cons - (cons (protect W1395) (cons (protect W1396) ()))) (cons 1 ()))) ())))) ())))) ())))) ()))))) (do (shen.record-kl insert (cons defun (cons insert (cons (cons (protect V1401) (cons (protect V1402) (cons (protect V1403) ()))) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V1403) ()))) (cons (cons simple-error (cons (cons cn (cons "cannot insert " (cons (cons shen.app (cons (protect V1402) (cons " into list: index out of range -" (cons shen.s ())))) ()))) ())) ())) (cons (cons (cons = (cons 1 (cons (protect V1401) ()))) (cons (cons cons (cons (protect V1402) (cons (protect V1403) ()))) ())) (cons (cons (cons cons? (cons (protect V1403) ())) (cons (cons cons (cons (cons hd (cons (protect V1403) ())) (cons (cons insert (cons (cons - (cons (protect V1401) (cons 1 ()))) (cons (protect V1402) (cons (cons tl (cons (protect V1403) ())) ())))) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons insert ())) ())) ()))))) ()))))) (do (shen.record-kl remove-duplicates (cons defun (cons remove-duplicates (cons (cons (protect V1409) ()) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V1409) ()))) (cons () ())) (cons (cons (cons and (cons (cons cons? (cons (protect V1409) ())) (cons (cons element? (cons (cons hd (cons (protect V1409) ())) (cons (cons tl (cons (protect V1409) ())) ()))) ()))) (cons (cons remove-duplicates (cons (cons tl (cons (protect V1409) ())) ())) ())) (cons (cons (cons cons? (cons (protect V1409) ())) (cons (cons cons (cons (cons hd (cons (protect V1409) ())) (cons (cons remove-duplicates (cons (cons tl (cons (protect V1409) ())) ())) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons remove-duplicates ())) ())) ()))))) ()))))) (do (shen.record-kl trim-left-if (cons defun (cons trim-left-if (cons (cons (protect V1417) (cons (protect V1418) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V1418) ()))) (cons () ())) (cons (cons (cons and (cons (cons cons? (cons (protect V1418) ())) (cons (cons (protect V1417) (cons (cons hd (cons (protect V1418) ())) ())) ()))) (cons (cons trim-left-if (cons (protect V1417) (cons (cons tl (cons (protect V1418) ())) ()))) ())) (cons (cons true (cons (protect V1418) ())) ())))) ()))))) (do (shen.record-kl trim-right-if (cons defun (cons trim-right-if (cons (cons (protect V1421) (cons (protect V1422) ())) (cons (cons reverse (cons (cons trim-left-if (cons (protect V1421) (cons (cons reverse (cons (protect V1422) ())) ()))) ())) ()))))) (do (shen.record-kl trim-if (cons defun (cons trim-if (cons (cons (protect V1425) (cons (protect V1426) ())) (cons (cons trim-right-if (cons (protect V1425) (cons (cons trim-left-if (cons (protect V1425) (cons (protect V1426) ()))) ()))) ()))))) (do (shen.record-kl trim-left (cons defun (cons trim-left (cons (cons (protect V1433) (cons (protect V1434) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V1434) ()))) (cons () ())) (cons (cons (cons and (cons (cons cons? (cons (protect V1434) ())) (cons (cons element? (cons (cons hd (cons (protect V1434) ())) (cons (protect V1433) ()))) ()))) (cons (cons trim-left (cons (protect V1433) (cons (cons tl (cons (protect V1434) ())) ()))) ())) (cons (cons true (cons (protect V1434) ())) ())))) ()))))) (do (shen.record-kl trim-right (cons defun (cons trim-right (cons (cons (protect V1437) (cons (protect V1438) ())) (cons (cons reverse (cons (cons trim-left (cons (protect V1437) (cons (cons reverse (cons (protect V1438) ())) ()))) ())) ()))))) (do (shen.record-kl trim (cons defun (cons trim (cons (cons (protect V1441) (cons (protect V1442) ())) (cons (cons trim-right (cons (protect V1441) (cons (cons trim-left (cons (protect V1441) (cons (protect V1442) ()))) ()))) ()))))) (do (shen.record-kl prefix? (cons defun (cons prefix? (cons (cons (protect V1452) (cons (protect V1453) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V1452) ()))) (cons true ())) (cons (cons (cons and (cons (cons cons? (cons (protect V1452) ())) (cons (cons and (cons (cons cons? (cons (protect V1453) ())) (cons (cons = (cons (cons hd (cons (protect V1452) ())) (cons (cons hd (cons (protect V1453) ())) ()))) ()))) ()))) (cons (cons prefix? (cons (cons tl (cons (protect V1452) ())) (cons (cons tl (cons (protect V1453) ())) ()))) ())) (cons (cons true (cons false ())) ())))) ()))))) (do (shen.record-kl infix? (cons defun (cons infix? (cons (cons (protect V1462) (cons (protect V1463) ())) (cons (cons cond (cons (cons (cons prefix? (cons (protect V1462) (cons (protect V1463) ()))) (cons true ())) (cons (cons (cons = (cons () (cons (protect V1463) ()))) (cons false ())) (cons (cons (cons cons? (cons (protect V1463) ())) (cons (cons infix? (cons (protect V1462) (cons (cons tl (cons (protect V1463) ())) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons infix? ())) ())) ()))))) ()))))) (do (shen.record-kl suffix? (cons defun (cons suffix? (cons (cons (protect V1466) (cons (protect V1467) ())) (cons (cons prefix? (cons (cons reverse (cons (protect V1466) ())) (cons (cons reverse (cons (protect V1467) ())) ()))) ()))))) (do (shen.record-kl subset? (cons defun (cons subset? (cons (cons (protect V1477) (cons (protect V1478) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V1477) ()))) (cons true ())) (cons (cons (cons and (cons (cons cons? (cons (protect V1477) ())) (cons (cons element? (cons (cons hd (cons (protect V1477) ())) (cons (protect V1478) ()))) ()))) (cons (cons subset? (cons (cons tl (cons (protect V1477) ())) (cons (protect V1478) ()))) ())) (cons (cons true (cons false ())) ())))) ()))))) (do (shen.record-kl set=? (cons defun (cons set=? (cons (cons (protect V1481) (cons (protect V1482) ())) (cons (cons and (cons (cons subset? (cons (protect V1481) (cons (protect V1482) ()))) (cons (cons subset? (cons (protect V1482) (cons (protect V1481) ()))) ()))) ()))))) (do (shen.record-kl set? (cons defun (cons set? (cons (cons (protect V1487) ()) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V1487) ()))) (cons true ())) (cons (cons (cons and (cons (cons cons? (cons (protect V1487) ())) (cons (cons element? (cons (cons hd (cons (protect V1487) ())) (cons (cons tl (cons (protect V1487) ())) ()))) ()))) (cons false ())) (cons (cons (cons cons? (cons (protect V1487) ())) (cons (cons set? (cons (cons tl (cons (protect V1487) ())) ())) ())) (cons (cons true (cons (cons shen.f-error (cons set? ())) ())) ()))))) ()))))) (do (shen.record-kl n-times (cons defun (cons n-times (cons (cons (protect V1490) (cons (protect V1491) ())) (cons (cons list.n-times-h (cons (protect V1491) (cons (protect V1490) (cons () ())))) ()))))) (do (shen.record-kl list.n-times-h (cons defun (cons list.n-times-h (cons (cons (protect V1494) (cons (protect V1495) (cons (protect V1496) ()))) (cons (cons cond (cons (cons (cons = (cons 0 (cons (protect V1494) ()))) (cons (protect V1496) ())) (cons (cons true (cons (cons list.n-times-h (cons (cons - (cons (protect V1494) (cons 1 ()))) (cons (protect V1495) (cons (cons cons (cons (protect V1495) (cons (protect V1496) ()))) ())))) ())) ()))) ()))))) (do (shen.record-kl subbag? (cons defun (cons subbag? (cons (cons (protect V1501) (cons (protect V1502) ())) (cons (cons every? (cons (cons lambda (cons (protect Z1503) (cons (cons = (cons (cons count (cons (protect Z1503) (cons (protect V1501) ()))) (cons (cons count (cons (protect Z1503) (cons (protect V1502) ()))) ()))) ()))) (cons (protect V1501) ()))) ()))))) (do (shen.record-kl bag=? (cons defun (cons bag=? (cons (cons (protect V1507) (cons (protect V1508) ())) (cons (cons and (cons (cons subbag? (cons (protect V1507) (cons (protect V1508) ()))) (cons (cons subbag? (cons (protect V1508) (cons (protect V1507) ()))) ()))) ()))))) (do (shen.record-kl mapc (cons defun (cons mapc (cons (cons (protect V1513) (cons (protect V1514) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V1514) ()))) (cons () ())) (cons (cons (cons cons? (cons (protect V1514) ())) (cons (cons mapc (cons (cons do (cons (cons (protect V1513) (cons (cons hd (cons (protect V1514) ())) ())) (cons (protect V1513) ()))) (cons (cons tl (cons (protect V1514) ())) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons mapc ())) ())) ())))) ()))))) (do (shen.record-kl permute (cons defun (cons permute (cons (cons (protect V1518) ()) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V1518) ()))) (cons (cons cons (cons () (cons () ()))) ())) (cons (cons true (cons (cons mapcan (cons (cons lambda (cons (protect Z1519) (cons (cons map (cons (cons lambda (cons (protect Z1520) (cons (cons cons (cons (protect Z1519) (cons (protect Z1520) ()))) ()))) (cons (cons permute (cons (cons remove (cons (protect Z1519) (cons (protect V1518) ()))) ())) ()))) ()))) (cons (protect V1518) ()))) ())) ()))) ()))))) (do (shen.record-kl count-if (cons defun (cons count-if (cons (cons (protect V1522) (cons (protect V1523) ())) (cons (cons length (cons (cons mapcan (cons (cons lambda (cons (protect Z1524) (cons (cons if (cons (cons (protect V1522) (cons (protect Z1524) ())) (cons (cons cons (cons (protect Z1524) (cons () ()))) (cons () ())))) ()))) (cons (protect V1523) ()))) ())) ()))))) (do (shen.record-kl count (cons defun (cons count (cons (cons (protect V1528) (cons (protect V1529) ())) (cons (cons count-if (cons (cons lambda (cons (protect Z1530) (cons (cons = (cons (protect V1528) (cons (protect Z1530) ()))) ()))) (cons (protect V1529) ()))) ()))))) (do (shen.record-kl some? (cons defun (cons some? (cons (cons (protect V1538) (cons (protect V1539) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V1539) ()))) (cons false ())) (cons (cons (cons and (cons (cons cons? (cons (protect V1539) ())) (cons (cons (protect V1538) (cons (cons hd (cons (protect V1539) ())) ())) ()))) (cons true ())) (cons (cons (cons cons? (cons (protect V1539) ())) (cons (cons some? (cons (protect V1538) (cons (cons tl (cons (protect V1539) ())) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons some? ())) ())) ()))))) ()))))) (do (shen.record-kl every? (cons defun (cons every? (cons (cons (protect V1548) (cons (protect V1549) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V1549) ()))) (cons true ())) (cons (cons (cons and (cons (cons cons? (cons (protect V1549) ())) (cons (cons (protect V1548) (cons (cons hd (cons (protect V1549) ())) ())) ()))) (cons (cons every? (cons (protect V1548) (cons (cons tl (cons (protect V1549) ())) ()))) ())) (cons (cons true (cons false ())) ())))) ()))))) (do (shen.record-kl sort (cons defun (cons sort (cons (cons (protect V1556) (cons (protect V1557) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V1557) ()))) (cons () ())) (cons (cons (cons and (cons (cons cons? (cons (protect V1557) ())) (cons (cons = (cons () (cons (cons tl (cons (protect V1557) ())) ()))) ()))) (cons (protect V1557) ())) (cons (cons (cons cons? (cons (protect V1557) ())) (cons (cons let (cons (protect W1558) (cons (cons mapcan (cons (cons lambda (cons (protect Z1559) (cons (cons if (cons (cons (cons (protect V1556) (cons (protect Z1559) ())) (cons (cons hd (cons (protect V1557) ())) ())) (cons (cons cons (cons (protect Z1559) (cons () ()))) (cons () ())))) ()))) (cons (cons tl (cons (protect V1557) ())) ()))) (cons (cons let (cons (protect W1560) (cons (cons mapcan (cons (cons lambda (cons (protect Z1561) (cons (cons if (cons (cons not (cons (cons (cons (protect V1556) (cons (protect Z1561) ())) (cons (cons hd (cons (protect V1557) ())) ())) ())) (cons (cons cons (cons (protect Z1561) (cons () ()))) (cons () ())))) ()))) (cons (cons tl (cons (protect V1557) ())) ()))) (cons (cons append (cons (cons sort (cons (protect V1556) (cons (protect W1558) ()))) (cons (cons append (cons (cons cons (cons (cons hd (cons (protect V1557) ())) (cons () ()))) (cons (cons sort (cons (protect V1556) (cons (protect W1560) ()))) ()))) ()))) ())))) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons sort ())) ())) ()))))) ()))))) (do (shen.record-kl find (cons defun (cons find (cons (cons (protect V1573) (cons (protect V1574) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V1574) ()))) (cons (cons simple-error (cons "find has found no element -" ())) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V1574) ())) (cons (cons (protect V1573) (cons (cons hd (cons (protect V1574) ())) ())) ()))) (cons (cons hd (cons (protect V1574) ())) ())) (cons (cons (cons cons? (cons (protect V1574) ())) (cons (cons find (cons (protect V1573) (cons (cons tl (cons (protect V1574) ())) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons find ())) ())) ()))))) ()))))) (do (shen.record-kl foldr (cons defun (cons foldr (cons (cons (protect V1579) (cons (protect V1580) (cons (protect V1581) ()))) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V1581) ()))) (cons (protect V1580) ())) (cons (cons (cons cons? (cons (protect V1581) ())) (cons (cons foldr (cons (protect V1579) (cons (cons (cons (protect V1579) (cons (cons hd (cons (protect V1581) ())) ())) (cons (protect V1580) ())) (cons (cons tl (cons (protect V1581) ())) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons foldr ())) ())) ())))) ()))))) (do (shen.record-kl foldl (cons defun (cons foldl (cons (cons (protect V1588) (cons (protect V1589) (cons (protect V1590) ()))) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V1590) ()))) (cons (protect V1589) ())) (cons (cons (cons cons? (cons (protect V1590) ())) (cons (cons foldl (cons (protect V1588) (cons (cons (cons (protect V1588) (cons (protect V1589) ())) (cons (cons hd (cons (protect V1590) ())) ())) (cons (cons tl (cons (protect V1590) ())) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons foldl ())) ())) ())))) ()))))) (do (shen.record-kl mapf (cons defun (cons mapf (cons (cons (protect V1600) (cons (protect V1601) (cons (protect V1602) ()))) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V1601) ()))) (cons () ())) (cons (cons (cons cons? (cons (protect V1601) ())) (cons (cons (cons (protect V1602) (cons (cons (protect V1600) (cons (cons hd (cons (protect V1601) ())) ())) ())) (cons (cons mapf (cons (protect V1600) (cons (cons tl (cons (protect V1601) ())) (cons (protect V1602) ())))) ())) ())) (cons (cons true (cons (cons shen.f-error (cons mapf ())) ())) ())))) ()))))) (do (shen.record-kl filter (cons defun (cons filter (cons (cons (protect V1609) (cons (protect V1610) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V1610) ()))) (cons () ())) (cons (cons (cons cons? (cons (protect V1610) ())) (cons (cons if (cons (cons (protect V1609) (cons (cons hd (cons (protect V1610) ())) ())) (cons (cons cons (cons (cons hd (cons (protect V1610) ())) (cons (cons filter (cons (protect V1609) (cons (cons tl (cons (protect V1610) ())) ()))) ()))) (cons (cons filter (cons (protect V1609) (cons (cons tl (cons (protect V1610) ())) ()))) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons filter ())) ())) ())))) ()))))) (do (shen.record-kl remove-if (cons defun (cons remove-if (cons (cons (protect V1616) (cons (protect V1617) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V1617) ()))) (cons () ())) (cons (cons (cons cons? (cons (protect V1617) ())) (cons (cons if (cons (cons (protect V1616) (cons (cons hd (cons (protect V1617) ())) ())) (cons (cons remove-if (cons (protect V1616) (cons (cons tl (cons (protect V1617) ())) ()))) (cons (cons cons (cons (cons hd (cons (protect V1617) ())) (cons (cons remove-if (cons (protect V1616) (cons (cons tl (cons (protect V1617) ())) ()))) ()))) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons remove-if ())) ())) ())))) ()))))) (do (shen.record-kl list.reduce (cons defun (cons list.reduce (cons (cons (protect V1621) (cons (protect V1622) (cons (protect V1623) ()))) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V1623) ()))) (cons (protect V1622) ())) (cons (cons (cons cons? (cons (protect V1623) ())) (cons (cons list.reduce (cons (protect V1621) (cons (cons (cons (protect V1621) (cons (protect V1622) ())) (cons (cons hd (cons (protect V1623) ())) ())) (cons (cons tl (cons (protect V1623) ())) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons list.reduce ())) ())) ())))) ()))))) (do (shen.record-kl take (cons defun (cons take (cons (cons (protect V1633) (cons (protect V1634) ())) (cons (cons cond (cons (cons (cons = (cons 0 (cons (protect V1633) ()))) (cons () ())) (cons (cons (cons = (cons () (cons (protect V1634) ()))) (cons () ())) (cons (cons (cons cons? (cons (protect V1634) ())) (cons (cons cons (cons (cons hd (cons (protect V1634) ())) (cons (cons take (cons (cons - (cons (protect V1633) (cons 1 ()))) (cons (cons tl (cons (protect V1634) ())) ()))) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons take ())) ())) ()))))) ()))))) (do (shen.record-kl take-last (cons defun (cons take-last (cons (cons (protect V1639) (cons (protect V1640) ())) (cons (cons reverse (cons (cons take (cons (protect V1639) (cons (cons reverse (cons (protect V1640) ())) ()))) ())) ()))))) (do (shen.record-kl cartprod (cons defun (cons cartprod (cons (cons (protect V1645) (cons (protect V1646) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V1645) ()))) (cons () ())) (cons (cons (cons cons? (cons (protect V1645) ())) (cons (cons append (cons (cons map (cons (cons lambda (cons (protect Z1647) (cons (cons cons (cons (cons hd (cons (protect V1645) ())) (cons (cons cons (cons (protect Z1647) (cons () ()))) ()))) ()))) (cons (protect V1646) ()))) (cons (cons cartprod (cons (cons tl (cons (protect V1645) ())) (cons (protect V1646) ()))) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons cartprod ())) ())) ())))) ()))))) (do (shen.record-kl powerset (cons defun (cons powerset (cons (cons (protect V1651) ()) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V1651) ()))) (cons (cons cons (cons () (cons () ()))) ())) (cons (cons (cons cons? (cons (protect V1651) ())) (cons (cons let (cons (protect W1652) (cons (cons powerset (cons (cons tl (cons (protect V1651) ())) ())) (cons (cons append (cons (protect W1652) (cons (cons map (cons (cons lambda (cons (protect Z1653) (cons (cons cons (cons (cons hd (cons (protect V1651) ())) (cons (protect Z1653) ()))) ()))) (cons (protect W1652) ()))) ()))) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons powerset ())) ())) ())))) ()))))) (do (shen.record-kl partition (cons defun (cons partition (cons (cons (protect V1661) (cons (protect V1662) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V1662) ()))) (cons () ())) (cons (cons (cons cons? (cons (protect V1662) ())) (cons (cons let (cons (protect W1663) (cons (cons mapcan (cons (cons lambda (cons (protect Z1664) (cons (cons if (cons (cons (cons (protect V1661) (cons (cons hd (cons (protect V1662) ())) ())) (cons (protect Z1664) ())) (cons (cons cons (cons (protect Z1664) (cons () ()))) (cons () ())))) ()))) (cons (protect V1662) ()))) (cons (cons let (cons (protect W1665) (cons (cons difference (cons (protect V1662) (cons (protect W1663) ()))) (cons (cons cons (cons (protect W1663) (cons (cons partition (cons (protect V1661) (cons (protect W1665) ()))) ()))) ())))) ())))) ())) (cons (cons true (cons (cons simple-error (cons "partition equires a list" ())) ())) ())))) ()))))) (do (shen.record-kl transitive-closure (cons defun (cons transitive-closure (cons (cons (protect V1668) ()) (cons (cons let (cons (protect W1669) (cons (cons list.transitive-pass (cons (protect V1668) (cons (protect V1668) ()))) (cons (cons if (cons (cons = (cons (protect W1669) (cons (protect V1668) ()))) (cons (protect W1669) (cons (cons list.transitive-pass (cons (protect W1669) (cons (protect W1669) ()))) ())))) ())))) ()))))) (do (shen.record-kl list.transitive-pass (cons defun (cons list.transitive-pass (cons (cons (protect V1671) (cons (protect V1672) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V1671) ()))) (cons (protect V1672) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V1671) ())) (cons (cons tuple? (cons (cons hd (cons (protect V1671) ())) ())) ()))) (cons (cons let (cons (protect W1673) (cons (cons list.find-trans (cons (cons fst (cons (cons hd (cons (protect V1671) ())) ())) (cons (cons snd (cons (cons hd (cons (protect V1671) ())) ())) (cons (protect V1672) ())))) (cons (cons union (cons (protect W1673) (cons (cons list.transitive-pass (cons (cons tl (cons (protect V1671) ())) (cons (protect V1672) ()))) ()))) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons list.transitive-pass ())) ())) ())))) ()))))) (do (shen.record-kl list.find-trans (cons defun (cons list.find-trans (cons (cons (protect V1684) (cons (protect V1685) (cons (protect V1686) ()))) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V1686) ()))) (cons () ())) (cons (cons (cons and (cons (cons cons? (cons (protect V1686) ())) (cons (cons and (cons (cons tuple? (cons (cons hd (cons (protect V1686) ())) ())) (cons (cons = (cons (protect V1685) (cons (cons fst (cons (cons hd (cons (protect V1686) ())) ())) ()))) ()))) ()))) (cons (cons cons (cons (cons @p (cons (protect V1684) (cons (cons snd (cons (cons hd (cons (protect V1686) ())) ())) ()))) (cons (cons list.find-trans (cons (protect V1684) (cons (cons fst (cons (cons hd (cons (protect V1686) ())) ())) (cons (cons tl (cons (protect V1686) ())) ())))) ()))) ())) (cons (cons (cons cons? (cons (protect V1686) ())) (cons (cons list.find-trans (cons (protect V1684) (cons (protect V1685) (cons (cons tl (cons (protect V1686) ())) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons list.find-trans ())) ())) ()))))) ()))))) (do (shen.record-kl x->ascii (cons defun (cons x->ascii (cons (cons (protect V1693) ()) (cons (cons map (cons (cons lambda (cons (protect Z1694) (cons (cons string->n (cons (protect Z1694) ())) ()))) (cons (cons explode (cons (protect V1693) ())) ()))) ()))))) (do (shen.record-kl splice (cons defun (cons splice (cons (cons (protect V1696) (cons (protect V1697) (cons (protect V1698) ()))) (cons (cons cond (cons (cons (cons = (cons 1 (cons (protect V1696) ()))) (cons (cons append (cons (protect V1697) (cons (protect V1698) ()))) ())) (cons (cons (cons cons? (cons (protect V1698) ())) (cons (cons cons (cons (cons hd (cons (protect V1698) ())) (cons (cons splice (cons (cons - (cons (protect V1696) (cons 1 ()))) (cons (protect V1697) (cons (cons tl (cons (protect V1698) ())) ())))) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons splice ())) ())) ())))) ()))))) (do (shen.record-kl string-macros (cons defun (cons string-macros (cons (cons (protect V1704) ()) (cons (cons cond (cons (cons (cons and (cons (cons cons? (cons (protect V1704) ())) (cons (cons and (cons (cons = (cons s-op1 (cons (cons hd (cons (protect V1704) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V1704) ())) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (protect V1704) ())) ())) ())) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V1704) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) (cons (cons cons (cons s-op1 (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect V1704) ())) ())) (cons (cons cons (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V1704) ())) ())) ())) (cons (cons cons (cons (cons cons (cons /. (cons (cons cons (cons (protect X) (cons (cons cons (cons (protect X) (cons () ()))) ()))) ()))) (cons () ()))) ()))) ()))) ()))) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V1704) ())) (cons (cons and (cons (cons = (cons s-op2 (cons (cons hd (cons (protect V1704) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V1704) ())) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (protect V1704) ())) ())) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V1704) ())) ())) ())) ())) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V1704) ())) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) ()))) (cons (cons cons (cons s-op2 (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect V1704) ())) ())) (cons (cons cons (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V1704) ())) ())) ())) (cons (cons cons (cons (cons hd (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V1704) ())) ())) ())) ())) (cons (cons cons (cons (cons cons (cons /. (cons (cons cons (cons (protect X) (cons (cons cons (cons (protect X) (cons () ()))) ()))) ()))) (cons () ()))) ()))) ()))) ()))) ()))) ())) (cons (cons true (cons (protect V1704) ())) ())))) ()))))) (do (shen.record-kl string->list (cons defun (cons string->list (cons (cons (protect V1800) ()) (cons (cons cond (cons (cons (cons = (cons "" (cons (protect V1800) ()))) (cons () ())) (cons (cons true (cons (cons string.s->l-h (cons (protect V1800) (cons 1 (cons (cons pos (cons (protect V1800) (cons 0 ()))) (cons () ()))))) ())) ()))) ()))))) (do (shen.record-kl string.s->l-h (cons defun (cons string.s->l-h (cons (cons (protect V1802) (cons (protect V1803) (cons (protect V1804) (cons (protect V1805) ())))) (cons (cons cond (cons (cons (cons = (cons "" (cons (protect V1804) ()))) (cons (cons reverse (cons (protect V1805) ())) ())) (cons (cons true (cons (cons string.s->l-h (cons (protect V1802) (cons (cons + (cons (protect V1803) (cons 1 ()))) (cons (cons trap-error (cons (cons pos (cons (protect V1802) (cons (protect V1803) ()))) (cons (cons lambda (cons (protect Z1806) (cons "" ()))) ()))) (cons (cons cons (cons (protect V1804) (cons (protect V1805) ()))) ()))))) ())) ()))) ()))))) (do (shen.record-kl list->string (cons defun (cons list->string (cons (cons (protect V1813) ()) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V1813) ()))) (cons "" ())) (cons (cons (cons cons? (cons (protect V1813) ())) (cons (cons cn (cons (cons hd (cons (protect V1813) ())) (cons (cons list->string (cons (cons tl (cons (protect V1813) ())) ())) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons list->string ())) ())) ())))) ()))))) (do (shen.record-kl s-op1 (cons defun (cons s-op1 (cons (cons (protect V1816) (cons (protect V1817) (cons (protect V1818) ()))) (cons (cons (protect V1818) (cons (cons (protect V1816) (cons (cons string->list (cons (protect V1817) ())) ())) ())) ()))))) (do (shen.record-kl s-op2 (cons defun (cons s-op2 (cons (cons (protect V1822) (cons (protect V1823) (cons (protect V1824) (cons (protect V1825) ())))) (cons (cons (protect V1825) (cons (cons (cons (protect V1822) (cons (cons string->list (cons (protect V1823) ())) ())) (cons (cons string->list (cons (protect V1824) ())) ())) ())) ()))))) (do (shen.record-kl string.count (cons defun (cons string.count (cons (cons (protect V1836) (cons (protect V1837) ())) (cons (cons cond (cons (cons (cons = (cons "" (cons (protect V1837) ()))) (cons 0 ())) (cons (cons (cons and (cons (cons shen.+string? (cons (protect V1837) ())) (cons (cons = (cons (protect V1836) (cons (cons hdstr (cons (protect V1837) ())) ()))) ()))) (cons (cons + (cons 1 (cons (cons string.count (cons (cons hdstr (cons (protect V1837) ())) (cons (cons tlstr (cons (protect V1837) ())) ()))) ()))) ())) (cons (cons (cons shen.+string? (cons (protect V1837) ())) (cons (cons string.count (cons (protect V1836) (cons (cons tlstr (cons (protect V1837) ())) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons string.count ())) ())) ()))))) ()))))) (do (shen.record-kl string.reverse (cons defun (cons string.reverse (cons (cons (protect V1843) ()) (cons (cons s-op1 (cons (cons lambda (cons (protect Z1844) (cons (cons reverse (cons (protect Z1844) ())) ()))) (cons (protect V1843) (cons (cons lambda (cons (protect Z1845) (cons (cons list->string (cons (protect Z1845) ())) ()))) ())))) ()))))) (do (shen.record-kl string.element? (cons defun (cons string.element? (cons (cons (protect V1847) (cons (protect V1848) ())) (cons (cons s-op1 (cons (cons lambda (cons (protect Z1849) (cons (cons element? (cons (protect V1847) (cons (protect Z1849) ()))) ()))) (cons (protect V1848) (cons (cons lambda (cons (protect Z1850) (cons (protect Z1850) ()))) ())))) ()))))) (do (shen.record-kl string.prefix? (cons defun (cons string.prefix? (cons (cons (protect V1855) (cons (protect V1856) ())) (cons (cons s-op2 (cons (cons lambda (cons (protect Z1857) (cons (cons lambda (cons (protect Z1858) (cons (cons prefix? (cons (protect Z1857) (cons (protect Z1858) ()))) ()))) ()))) (cons (protect V1855) (cons (protect V1856) (cons (cons lambda (cons (protect Z1859) (cons (protect Z1859) ()))) ()))))) ()))))) (do (shen.record-kl string.infix? (cons defun (cons string.infix? (cons (cons (protect V1864) (cons (protect V1865) ())) (cons (cons s-op2 (cons (cons lambda (cons (protect Z1866) (cons (cons lambda (cons (protect Z1867) (cons (cons infix? (cons (protect Z1866) (cons (protect Z1867) ()))) ()))) ()))) (cons (protect V1864) (cons (protect V1865) (cons (cons lambda (cons (protect Z1868) (cons (protect Z1868) ()))) ()))))) ()))))) (do (shen.record-kl string.suffix? (cons defun (cons string.suffix? (cons (cons (protect V1873) (cons (protect V1874) ())) (cons (cons s-op2 (cons (cons lambda (cons (protect Z1875) (cons (cons lambda (cons (protect Z1876) (cons (cons suffix? (cons (protect Z1875) (cons (protect Z1876) ()))) ()))) ()))) (cons (protect V1873) (cons (protect V1874) (cons (cons lambda (cons (protect Z1877) (cons (protect Z1877) ()))) ()))))) ()))))) (do (shen.record-kl string.subset? (cons defun (cons string.subset? (cons (cons (protect V1882) (cons (protect V1883) ())) (cons (cons s-op2 (cons (cons lambda (cons (protect Z1884) (cons (cons lambda (cons (protect Z1885) (cons (cons subset? (cons (protect Z1884) (cons (protect Z1885) ()))) ()))) ()))) (cons (protect V1882) (cons (protect V1883) (cons (cons lambda (cons (protect Z1886) (cons (protect Z1886) ()))) ()))))) ()))))) (do (shen.record-kl string.set=? (cons defun (cons string.set=? (cons (cons (protect V1891) (cons (protect V1892) ())) (cons (cons s-op2 (cons (cons lambda (cons (protect Z1893) (cons (cons lambda (cons (protect Z1894) (cons (cons set=? (cons (protect Z1893) (cons (protect Z1894) ()))) ()))) ()))) (cons (protect V1891) (cons (protect V1892) (cons (cons lambda (cons (protect Z1895) (cons (protect Z1895) ()))) ()))))) ()))))) (do (shen.record-kl string.set? (cons defun (cons string.set? (cons (cons (protect V1899) ()) (cons (cons s-op1 (cons (cons lambda (cons (protect Z1900) (cons (cons set? (cons (protect Z1900) ())) ()))) (cons (protect V1899) (cons (cons lambda (cons (protect Z1901) (cons (protect Z1901) ()))) ())))) ()))))) (do (shen.record-kl file-extension (cons defun (cons file-extension (cons (cons (protect V1903) (cons (protect V1904) ())) (cons (cons cn (cons (cons strip-extension (cons (protect V1903) ())) (cons (protect V1904) ()))) ()))))) (do (shen.record-kl strip-extension (cons defun (cons strip-extension (cons (cons (protect V1909) ()) (cons (cons cond (cons (cons (cons = (cons "" (cons (protect V1909) ()))) (cons "" ())) (cons (cons (cons and (cons (cons shen.+string? (cons (protect V1909) ())) (cons (cons = (cons "." (cons (cons hdstr (cons (protect V1909) ())) ()))) ()))) (cons "" ())) (cons (cons (cons shen.+string? (cons (protect V1909) ())) (cons (cons @s (cons (cons hdstr (cons (protect V1909) ())) (cons (cons strip-extension (cons (cons tlstr (cons (protect V1909) ())) ())) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons strip-extension ())) ())) ()))))) ()))))) (do (shen.record-kl string.length (cons defun (cons string.length (cons (cons (protect V1913) ()) (cons (cons s-op1 (cons (cons lambda (cons (protect Z1914) (cons (cons length (cons (protect Z1914) ())) ()))) (cons (protect V1913) (cons (cons lambda (cons (protect Z1915) (cons (protect Z1915) ()))) ())))) ()))))) (do (shen.record-kl string.trim (cons defun (cons string.trim (cons (cons (protect V1919) (cons (protect V1920) ())) (cons (cons s-op1 (cons (cons lambda (cons (protect Z1921) (cons (cons trim (cons (protect V1919) (cons (protect Z1921) ()))) ()))) (cons (protect V1920) (cons (cons lambda (cons (protect Z1922) (cons (cons list->string (cons (protect Z1922) ())) ()))) ())))) ()))))) (do (shen.record-kl string.trim-if (cons defun (cons string.trim-if (cons (cons (protect V1927) (cons (protect V1928) ())) (cons (cons s-op1 (cons (cons lambda (cons (protect Z1929) (cons (cons trim-if (cons (protect V1927) (cons (protect Z1929) ()))) ()))) (cons (protect V1928) (cons (cons lambda (cons (protect Z1930) (cons (cons list->string (cons (protect Z1930) ())) ()))) ())))) ()))))) (do (shen.record-kl string.trim-right-if (cons defun (cons string.trim-right-if (cons (cons (protect V1935) (cons (protect V1936) ())) (cons (cons s-op1 (cons (cons lambda (cons (protect Z1937) (cons (cons trim-right-if (cons (protect V1935) (cons (protect Z1937) ()))) ()))) (cons (protect V1936) (cons (cons lambda (cons (protect Z1938) (cons (cons list->string (cons (protect Z1938) ())) ()))) ())))) ()))))) (do (shen.record-kl string.trim-left-if (cons defun (cons string.trim-left-if (cons (cons (protect V1943) (cons (protect V1944) ())) (cons (cons s-op1 (cons (cons lambda (cons (protect Z1945) (cons (cons trim-left-if (cons (protect V1943) (cons (protect Z1945) ()))) ()))) (cons (protect V1944) (cons (cons lambda (cons (protect Z1946) (cons (cons list->string (cons (protect Z1946) ())) ()))) ())))) ()))))) (do (shen.record-kl string.trim-right (cons defun (cons string.trim-right (cons (cons (protect V1951) (cons (protect V1952) ())) (cons (cons s-op1 (cons (cons lambda (cons (protect Z1953) (cons (cons trim-right (cons (protect V1951) (cons (protect Z1953) ()))) ()))) (cons (protect V1952) (cons (cons lambda (cons (protect Z1954) (cons (cons list->string (cons (protect Z1954) ())) ()))) ())))) ()))))) (do (shen.record-kl string.trim-left (cons defun (cons string.trim-left (cons (cons (protect V1959) (cons (protect V1960) ())) (cons (cons s-op1 (cons (cons lambda (cons (protect Z1961) (cons (cons trim-left (cons (protect V1959) (cons (protect Z1961) ()))) ()))) (cons (protect V1960) (cons (cons lambda (cons (protect Z1962) (cons (cons list->string (cons (protect Z1962) ())) ()))) ())))) ()))))) (do (shen.record-kl string.some? (cons defun (cons string.some? (cons (cons (protect V1967) (cons (protect V1968) ())) (cons (cons cond (cons (cons (cons = (cons "" (cons (protect V1968) ()))) (cons false ())) (cons (cons (cons shen.+string? (cons (protect V1968) ())) (cons (cons or (cons (cons (protect V1967) (cons (cons hdstr (cons (protect V1968) ())) ())) (cons (cons string.some? (cons (protect V1967) (cons (cons tlstr (cons (protect V1968) ())) ()))) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons string.some? ())) ())) ())))) ()))))) (do (shen.record-kl string.every? (cons defun (cons string.every? (cons (cons (protect V1973) (cons (protect V1974) ())) (cons (cons cond (cons (cons (cons = (cons "" (cons (protect V1974) ()))) (cons true ())) (cons (cons (cons shen.+string? (cons (protect V1974) ())) (cons (cons and (cons (cons (protect V1973) (cons (cons hdstr (cons (protect V1974) ())) ())) (cons (cons string.every? (cons (protect V1973) (cons (cons tlstr (cons (protect V1974) ())) ()))) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons string.every? ())) ())) ())))) ()))))) (do (shen.record-kl string.difference (cons defun (cons string.difference (cons (cons (protect V1980) (cons (protect V1981) ())) (cons (cons s-op2 (cons (cons lambda (cons (protect Z1982) (cons (cons lambda (cons (protect Z1983) (cons (cons difference (cons (protect Z1982) (cons (protect Z1983) ()))) ()))) ()))) (cons (protect V1980) (cons (protect V1981) (cons (cons lambda (cons (protect Z1984) (cons (cons list->string (cons (protect Z1984) ())) ()))) ()))))) ()))))) (do (shen.record-kl string.intersection (cons defun (cons string.intersection (cons (cons (protect V1990) (cons (protect V1991) ())) (cons (cons s-op2 (cons (cons lambda (cons (protect Z1992) (cons (cons lambda (cons (protect Z1993) (cons (cons intersection (cons (protect Z1992) (cons (protect Z1993) ()))) ()))) ()))) (cons (protect V1990) (cons (protect V1991) (cons (cons lambda (cons (protect Z1994) (cons (cons list->string (cons (protect Z1994) ())) ()))) ()))))) ()))))) (do (shen.record-kl string.nth (cons defun (cons string.nth (cons (cons (protect V1997) (cons (protect V1998) ())) (cons (cons pos (cons (protect V1998) (cons (cons + (cons (protect V1997) (cons 1 ()))) ()))) ()))))) (do (shen.record-kl whitespace? (cons defun (cons whitespace? (cons (cons (protect V2003) ()) (cons (cons cond (cons (cons (cons shen.+string? (cons (protect V2003) ())) (cons (cons let (cons (protect W2004) (cons (cons string->n (cons (cons hdstr (cons (protect V2003) ())) ())) (cons (cons element? (cons (protect W2004) (cons (cons cons (cons 9 (cons (cons cons (cons 10 (cons (cons cons (cons 13 (cons (cons cons (cons 32 (cons () ()))) ()))) ()))) ()))) ()))) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons whitespace? ())) ())) ()))) ()))))) (do (shen.record-kl uppercase? (cons defun (cons uppercase? (cons (cons (protect V2008) ()) (cons (cons cond (cons (cons (cons shen.+string? (cons (protect V2008) ())) (cons (cons let (cons (protect W2009) (cons (cons string->n (cons (cons hdstr (cons (protect V2008) ())) ())) (cons (cons and (cons (cons > (cons (protect W2009) (cons 64 ()))) (cons (cons < (cons (protect W2009) (cons 91 ()))) ()))) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons uppercase? ())) ())) ()))) ()))))) (do (shen.record-kl lowercase? (cons defun (cons lowercase? (cons (cons (protect V2013) ()) (cons (cons cond (cons (cons (cons shen.+string? (cons (protect V2013) ())) (cons (cons let (cons (protect W2014) (cons (cons string->n (cons (cons hdstr (cons (protect V2013) ())) ())) (cons (cons and (cons (cons > (cons (protect W2014) (cons 96 ()))) (cons (cons < (cons (protect W2014) (cons 123 ()))) ()))) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons lowercase? ())) ())) ()))) ()))))) (do (shen.record-kl digit? (cons defun (cons digit? (cons (cons (protect V2018) ()) (cons (cons cond (cons (cons (cons shen.+string? (cons (protect V2018) ())) (cons (cons let (cons (protect W2019) (cons (cons string->n (cons (cons hdstr (cons (protect V2018) ())) ())) (cons (cons and (cons (cons > (cons (protect W2019) (cons 47 ()))) (cons (cons < (cons (protect W2019) (cons 58 ()))) ()))) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons digit? ())) ())) ()))) ()))))) (do (shen.record-kl alpha? (cons defun (cons alpha? (cons (cons (protect V2025) ()) (cons (cons cond (cons (cons (cons shen.+string? (cons (protect V2025) ())) (cons (cons let (cons (protect W2026) (cons (cons string->n (cons (cons hdstr (cons (protect V2025) ())) ())) (cons (cons or (cons (cons and (cons (cons > (cons (protect W2026) (cons 64 ()))) (cons (cons < (cons (protect W2026) (cons 91 ()))) ()))) (cons (cons and (cons (cons > (cons (protect W2026) (cons 96 ()))) (cons (cons < (cons (protect W2026) (cons 123 ()))) ()))) ()))) ())))) ())) (cons (cons true (cons false ())) ()))) ()))))) (do (shen.record-kl alphanum? (cons defun (cons alphanum? (cons (cons (protect V2032) ()) (cons (cons cond (cons (cons (cons shen.+string? (cons (protect V2032) ())) (cons (cons let (cons (protect W2033) (cons (cons string->n (cons (cons hdstr (cons (protect V2032) ())) ())) (cons (cons or (cons (cons and (cons (cons > (cons (protect W2033) (cons 64 ()))) (cons (cons < (cons (protect W2033) (cons 91 ()))) ()))) (cons (cons or (cons (cons and (cons (cons > (cons (protect W2033) (cons 96 ()))) (cons (cons < (cons (protect W2033) (cons 123 ()))) ()))) (cons (cons and (cons (cons > (cons (protect W2033) (cons 47 ()))) (cons (cons < (cons (protect W2033) (cons 58 ()))) ()))) ()))) ()))) ())))) ())) (cons (cons true (cons false ())) ()))) ()))))) (do (shen.record-kl tokenise (cons defun (cons tokenise (cons (cons (protect V2035) (cons (protect V2036) ())) (cons (cons string.tokenise-h (cons (protect V2035) (cons (protect V2036) (cons "" ())))) ()))))) (do (shen.record-kl string.tokenise-h (cons defun (cons string.tokenise-h (cons (cons (protect V2041) (cons (protect V2042) (cons (protect V2043) ()))) (cons (cons cond (cons (cons (cons = (cons "" (cons (protect V2042) ()))) (cons (cons cons (cons (protect V2043) (cons () ()))) ())) (cons (cons (cons and (cons (cons shen.+string? (cons (protect V2042) ())) (cons (cons (protect V2041) (cons (cons hdstr (cons (protect V2042) ())) ())) ()))) (cons (cons cons (cons (protect V2043) (cons (cons string.tokenise-h (cons (protect V2041) (cons (cons tlstr (cons (protect V2042) ())) (cons "" ())))) ()))) ())) (cons (cons (cons shen.+string? (cons (protect V2042) ())) (cons (cons string.tokenise-h (cons (protect V2041) (cons (cons tlstr (cons (protect V2042) ())) (cons (cons @s (cons (protect V2043) (cons (cons hdstr (cons (protect V2042) ())) ()))) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons string.tokenise-h ())) ())) ()))))) ()))))) (do (shen.record-kl uppercase (cons defun (cons uppercase (cons (cons (protect V2048) ()) (cons (cons cond (cons (cons (cons shen.+string? (cons (protect V2048) ())) (cons (cons if (cons (cons lowercase? (cons (cons hdstr (cons (protect V2048) ())) ())) (cons (cons @s (cons (cons n->string (cons (cons - (cons (cons string->n (cons (cons hdstr (cons (protect V2048) ())) ())) (cons 32 ()))) ())) (cons (cons tlstr (cons (protect V2048) ())) ()))) (cons (protect V2048) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons uppercase ())) ())) ()))) ()))))) (do (shen.record-kl lowercase (cons defun (cons lowercase (cons (cons (protect V2051) ()) (cons (cons cond (cons (cons (cons shen.+string? (cons (protect V2051) ())) (cons (cons if (cons (cons uppercase? (cons (cons hdstr (cons (protect V2051) ())) ())) (cons (cons @s (cons (cons n->string (cons (cons + (cons (cons string->n (cons (cons hdstr (cons (protect V2051) ())) ())) (cons 32 ()))) ())) (cons (cons tlstr (cons (protect V2051) ())) ()))) (cons (protect V2051) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons lowercase ())) ())) ()))) ()))))) (do (shen.record-kl string.map (cons defun (cons string.map (cons (cons (protect V2056) (cons (protect V2057) ())) (cons (cons cond (cons (cons (cons = (cons "" (cons (protect V2057) ()))) (cons "" ())) (cons (cons (cons shen.+string? (cons (protect V2057) ())) (cons (cons @s (cons (cons (protect V2056) (cons (cons hdstr (cons (protect V2057) ())) ())) (cons (cons string.map (cons (protect V2056) (cons (cons tlstr (cons (protect V2057) ())) ()))) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons string.map ())) ())) ())))) ()))))) (do (shen.record-kl spell-number (cons defun (cons spell-number (cons (cons (protect V2062) ()) (cons (cons cond (cons (cons (cons = (cons 0 (cons (protect V2062) ()))) (cons "zero" ())) (cons (cons true (cons (cons string.scale (cons (cons map (cons (cons lambda (cons (protect Z2063) (cons (cons string.digits (cons (protect Z2063) ())) ()))) (cons (cons string.triples (cons (cons explode (cons (protect V2062) ())) ())) ()))) ())) ())) ()))) ()))))) (do (shen.record-kl string.digit (cons defun (cons string.digit (cons (cons (protect V2065) ()) (cons (cons cond (cons (cons (cons = (cons "0" (cons (protect V2065) ()))) (cons "" ())) (cons (cons (cons = (cons "1" (cons (protect V2065) ()))) (cons "one" ())) (cons (cons (cons = (cons "2" (cons (protect V2065) ()))) (cons "two" ())) (cons (cons (cons = (cons "3" (cons (protect V2065) ()))) (cons "three" ())) (cons (cons (cons = (cons "4" (cons (protect V2065) ()))) (cons "four" ())) (cons (cons (cons = (cons "5" (cons (protect V2065) ()))) (cons "five" ())) (cons (cons (cons = (cons "6" (cons (protect V2065) ()))) (cons "six" ())) (cons (cons (cons = (cons "7" (cons (protect V2065) ()))) (cons "seven" ())) (cons (cons (cons = (cons "8" (cons (protect V2065) ()))) (cons "eight" ())) (cons (cons (cons = (cons "9" (cons (protect V2065) ()))) (cons "nine" ())) (cons (cons true (cons (cons shen.f-error (cons string.digit ())) ())) ())))))))))))) ()))))) (do (shen.record-kl string.triples (cons defun (cons string.triples (cons (cons (protect V2067) ()) (cons (cons string.triples-h (cons (cons reverse (cons (protect V2067) ())) (cons () ()))) ()))))) (do (shen.record-kl string.triples-h (cons defun (cons string.triples-h (cons (cons (protect V2069) (cons (protect V2070) ())) (cons (cons cond (cons (cons (cons and (cons (cons cons? (cons (protect V2069) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V2069) ())) ())) (cons (cons cons? (cons (cons tl (cons (cons tl (cons (protect V2069) ())) ())) ())) ()))) ()))) (cons (cons string.triples-h (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V2069) ())) ())) ())) (cons (cons cons (cons (cons reverse (cons (cons cons (cons (cons hd (cons (protect V2069) ())) (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect V2069) ())) ())) (cons (cons cons (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V2069) ())) ())) ())) (cons () ()))) ()))) ()))) ())) (cons (protect V2070) ()))) ()))) ())) (cons (cons true (cons (cons cons (cons (cons reverse (cons (protect V2069) ())) (cons (protect V2070) ()))) ())) ()))) ()))))) (do (shen.record-kl string.digits (cons defun (cons string.digits (cons (cons (protect V2076) ()) (cons (cons cond (cons (cons (cons and (cons (cons cons? (cons (protect V2076) ())) (cons (cons and (cons (cons = (cons "0" (cons (cons hd (cons (protect V2076) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V2076) ())) ())) (cons (cons and (cons (cons = (cons "0" (cons (cons hd (cons (cons tl (cons (protect V2076) ())) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (protect V2076) ())) ())) ())) (cons (cons and (cons (cons = (cons "0" (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V2076) ())) ())) ())) ()))) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V2076) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) ()))) ()))) (cons "" ())) (cons (cons (cons and (cons (cons cons? (cons (protect V2076) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V2076) ())) ())) (cons (cons and (cons (cons = (cons "0" (cons (cons hd (cons (cons tl (cons (protect V2076) ())) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (protect V2076) ())) ())) ())) (cons (cons and (cons (cons = (cons "0" (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V2076) ())) ())) ())) ()))) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V2076) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) ()))) (cons (cons @s (cons (cons string.digit (cons (cons hd (cons (protect V2076) ())) ())) (cons (cons @s (cons " " (cons "hundred" ()))) ()))) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V2076) ())) (cons (cons and (cons (cons = (cons "0" (cons (cons hd (cons (protect V2076) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V2076) ())) ())) (cons (cons and (cons (cons = (cons "0" (cons (cons hd (cons (cons tl (cons (protect V2076) ())) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (protect V2076) ())) ())) ())) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V2076) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) ()))) (cons (cons @s (cons "a" (cons (cons @s (cons "n" (cons (cons @s (cons "d" (cons (cons @s (cons " " (cons (cons string.digit (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V2076) ())) ())) ())) ())) ()))) ()))) ()))) ()))) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V2076) ())) (cons (cons and (cons (cons = (cons "0" (cons (cons hd (cons (protect V2076) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V2076) ())) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (protect V2076) ())) ())) ())) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V2076) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) (cons (cons @s (cons "a" (cons (cons @s (cons "n" (cons (cons @s (cons "d" (cons (cons @s (cons " " (cons (cons string.tens (cons (cons hd (cons (cons tl (cons (protect V2076) ())) ())) (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V2076) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V2076) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V2076) ())) ())) (cons (cons and (cons (cons = (cons "0" (cons (cons hd (cons (cons tl (cons (protect V2076) ())) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (protect V2076) ())) ())) ())) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V2076) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) (cons (cons @s (cons (cons string.digit (cons (cons hd (cons (protect V2076) ())) ())) (cons (cons @s (cons " " (cons (cons @s (cons "h" (cons (cons @s (cons "u" (cons (cons @s (cons "n" (cons (cons @s (cons "d" (cons (cons @s (cons "r" (cons (cons @s (cons "e" (cons (cons @s (cons "d" (cons (cons @s (cons " " (cons (cons @s (cons "a" (cons (cons @s (cons "n" (cons (cons @s (cons "d" (cons (cons @s (cons " " (cons (cons string.digit (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V2076) ())) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V2076) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V2076) ())) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (protect V2076) ())) ())) ())) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V2076) ())) ())) ())) ()))) ()))) ()))) ()))) (cons (cons @s (cons (cons string.digit (cons (cons hd (cons (protect V2076) ())) ())) (cons (cons @s (cons " " (cons (cons @s (cons "h" (cons (cons @s (cons "u" (cons (cons @s (cons "n" (cons (cons @s (cons "d" (cons (cons @s (cons "r" (cons (cons @s (cons "e" (cons (cons @s (cons "d" (cons (cons @s (cons " " (cons (cons @s (cons "a" (cons (cons @s (cons "n" (cons (cons @s (cons "d" (cons (cons @s (cons " " (cons (cons string.tens (cons (cons hd (cons (cons tl (cons (protect V2076) ())) ())) (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V2076) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V2076) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V2076) ())) ())) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (protect V2076) ())) ())) ()))) ()))) ()))) (cons (cons string.tens (cons (cons hd (cons (protect V2076) ())) (cons (cons hd (cons (cons tl (cons (protect V2076) ())) ())) ()))) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V2076) ())) (cons (cons = (cons () (cons (cons tl (cons (protect V2076) ())) ()))) ()))) (cons (cons string.digit (cons (cons hd (cons (protect V2076) ())) ())) ())) (cons (cons (cons = (cons () (cons (protect V2076) ()))) (cons "" ())) (cons (cons true (cons (cons shen.f-error (cons string.digits ())) ())) ()))))))))))) ()))))) (do (shen.record-kl string.tens (cons defun (cons string.tens (cons (cons (protect V2084) (cons (protect V2085) ())) (cons (cons cond (cons (cons (cons = (cons "1" (cons (protect V2084) ()))) (cons (cons if (cons (cons = (cons (protect V2085) (cons "0" ()))) (cons "ten" (cons (cons if (cons (cons = (cons (protect V2085) (cons "1" ()))) (cons "eleven" (cons (cons if (cons (cons = (cons (protect V2085) (cons "2" ()))) (cons "twelve" (cons (cons if (cons (cons = (cons (protect V2085) (cons "3" ()))) (cons "thirteen" (cons (cons if (cons (cons = (cons (protect V2085) (cons "4" ()))) (cons "fourteen" (cons (cons if (cons (cons = (cons (protect V2085) (cons "5" ()))) (cons "fifteen" (cons (cons if (cons (cons = (cons (protect V2085) (cons "6" ()))) (cons "sixteen" (cons (cons if (cons (cons = (cons (protect V2085) (cons "7" ()))) (cons "seventeen" (cons (cons if (cons (cons = (cons (protect V2085) (cons "8" ()))) (cons "eighteen" (cons (cons if (cons (cons = (cons (protect V2085) (cons "9" ()))) (cons "nineteen" (cons (cons simple-error (cons "error: cases exhausted" ())) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())) (cons (cons (cons = (cons "2" (cons (protect V2084) ()))) (cons (cons @s (cons "t" (cons (cons @s (cons "w" (cons (cons @s (cons "e" (cons (cons @s (cons "n" (cons (cons @s (cons "t" (cons (cons @s (cons "y" (cons (cons @s (cons " " (cons (cons string.digit (cons (protect V2085) ())) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ())) (cons (cons (cons = (cons "3" (cons (protect V2084) ()))) (cons (cons @s (cons "t" (cons (cons @s (cons "h" (cons (cons @s (cons "i" (cons (cons @s (cons "r" (cons (cons @s (cons "t" (cons (cons @s (cons "y" (cons (cons @s (cons " " (cons (cons string.digit (cons (protect V2085) ())) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ())) (cons (cons (cons = (cons "4" (cons (protect V2084) ()))) (cons (cons @s (cons "f" (cons (cons @s (cons "o" (cons (cons @s (cons "r" (cons (cons @s (cons "t" (cons (cons @s (cons "y" (cons (cons @s (cons " " (cons (cons string.digit (cons (protect V2085) ())) ()))) ()))) ()))) ()))) ()))) ()))) ())) (cons (cons (cons = (cons "5" (cons (protect V2084) ()))) (cons (cons @s (cons "f" (cons (cons @s (cons "i" (cons (cons @s (cons "f" (cons (cons @s (cons "t" (cons (cons @s (cons "y" (cons (cons @s (cons " " (cons (cons string.digit (cons (protect V2085) ())) ()))) ()))) ()))) ()))) ()))) ()))) ())) (cons (cons (cons = (cons "6" (cons (protect V2084) ()))) (cons (cons @s (cons "s" (cons (cons @s (cons "i" (cons (cons @s (cons "x" (cons (cons @s (cons "t" (cons (cons @s (cons "y" (cons (cons @s (cons " " (cons (cons string.digit (cons (protect V2085) ())) ()))) ()))) ()))) ()))) ()))) ()))) ())) (cons (cons (cons = (cons "7" (cons (protect V2084) ()))) (cons (cons @s (cons "s" (cons (cons @s (cons "e" (cons (cons @s (cons "v" (cons (cons @s (cons "e" (cons (cons @s (cons "n" (cons (cons @s (cons "t" (cons (cons @s (cons "y" (cons (cons @s (cons " " (cons (cons string.digit (cons (protect V2085) ())) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ())) (cons (cons (cons = (cons "8" (cons (protect V2084) ()))) (cons (cons @s (cons "e" (cons (cons @s (cons "i" (cons (cons @s (cons "g" (cons (cons @s (cons "h" (cons (cons @s (cons "t" (cons (cons @s (cons "y" (cons (cons @s (cons " " (cons (cons string.digit (cons (protect V2085) ())) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ())) (cons (cons (cons = (cons "9" (cons (protect V2084) ()))) (cons (cons @s (cons "n" (cons (cons @s (cons "i" (cons (cons @s (cons "n" (cons (cons @s (cons "e" (cons (cons @s (cons "t" (cons (cons @s (cons "y" (cons (cons @s (cons " " (cons (cons string.digit (cons (protect V2085) ())) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons string.tens ())) ())) ()))))))))))) ()))))) (do (shen.record-kl string.scale (cons defun (cons string.scale (cons (cons (protect V2088) ()) (cons (cons cond (cons (cons (cons and (cons (cons cons? (cons (protect V2088) ())) (cons (cons = (cons () (cons (cons tl (cons (protect V2088) ())) ()))) ()))) (cons (cons hd (cons (protect V2088) ())) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V2088) ())) (cons (cons = (cons "" (cons (cons hd (cons (protect V2088) ())) ()))) ()))) (cons (cons string.scale (cons (cons tl (cons (protect V2088) ())) ())) ())) (cons (cons (cons cons? (cons (protect V2088) ())) (cons (cons @s (cons (cons hd (cons (protect V2088) ())) (cons (cons @s (cons (cons string.units (cons (cons length (cons (protect V2088) ())) ())) (cons (cons string.scale (cons (cons tl (cons (protect V2088) ())) ())) ()))) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons string.scale ())) ())) ()))))) ()))))) (do (shen.record-kl string.units (cons defun (cons string.units (cons (cons (protect V2094) ()) (cons (cons cond (cons (cons (cons = (cons 2 (cons (protect V2094) ()))) (cons " thousand " ())) (cons (cons (cons = (cons 3 (cons (protect V2094) ()))) (cons " million " ())) (cons (cons (cons = (cons 4 (cons (protect V2094) ()))) (cons " billion " ())) (cons (cons (cons = (cons 5 (cons (protect V2094) ()))) (cons " trillion " ())) (cons (cons true (cons (cons simple-error (cons "this number has a magnitude beyond our text representation" ())) ())) ())))))) ()))))) (do (shen.record-kl string>? (cons defun (cons string>? (cons (cons (protect V2100) (cons (protect V2101) ())) (cons (cons cond (cons (cons (cons = (cons "" (cons (protect V2100) ()))) (cons false ())) (cons (cons (cons = (cons "" (cons (protect V2101) ()))) (cons true ())) (cons (cons (cons and (cons (cons shen.+string? (cons (protect V2100) ())) (cons (cons shen.+string? (cons (protect V2101) ())) ()))) (cons (cons let (cons (protect W2102) (cons (cons string->n (cons (cons hdstr (cons (protect V2100) ())) ())) (cons (cons let (cons (protect W2103) (cons (cons string->n (cons (cons hdstr (cons (protect V2101) ())) ())) (cons (cons if (cons (cons > (cons (protect W2102) (cons (protect W2103) ()))) (cons true (cons (cons if (cons (cons < (cons (protect W2102) (cons (protect W2103) ()))) (cons false (cons (cons string>? (cons (cons tlstr (cons (protect V2100) ())) (cons (cons tlstr (cons (protect V2101) ())) ()))) ())))) ())))) ())))) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons string>? ())) ())) ()))))) ()))))) (do (shen.record-kl stringn (cons (cons hdstr (cons (protect V2111) ())) ())) (cons (cons let (cons (protect W2114) (cons (cons string->n (cons (cons hdstr (cons (protect V2112) ())) ())) (cons (cons if (cons (cons < (cons (protect W2113) (cons (protect W2114) ()))) (cons true (cons (cons if (cons (cons > (cons (protect W2113) (cons (protect W2114) ()))) (cons false (cons (cons string=? (cons defun (cons string>=? (cons (cons (protect V2118) (cons (protect V2119) ())) (cons (cons or (cons (cons = (cons (protect V2118) (cons (protect V2119) ()))) (cons (cons string>? (cons (protect V2118) (cons (protect V2119) ()))) ()))) ()))))) (do (shen.record-kl string<=? (cons defun (cons string<=? (cons (cons (protect V2122) (cons (protect V2123) ())) (cons (cons or (cons (cons = (cons (protect V2122) (cons (protect V2123) ()))) (cons (cons stringstrings (cons (protect W2137) (cons () ()))) (cons (cons let (cons (protect W2139) (cons (cons compile (cons (cons lambda (cons (protect Z2140) (cons (cons string. (cons (protect Z2140) ())) ()))) (cons (protect W2138) ()))) (cons (cons let (cons (protect W2141) (cons (cons file-extension (cons (protect V2135) (cons (protect V2136) ()))) (cons (cons let (cons (protect W2142) (cons (cons write-to-file (cons (protect W2141) (cons (protect W2139) ()))) (cons (protect W2141) ())))) ())))) ())))) ())))) ())))) ()))))) (do (shen.record-kl string.bytes->strings (cons defun (cons string.bytes->strings (cons (cons (protect V2145) (cons (protect V2146) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2145) ()))) (cons (cons reverse (cons (protect V2146) ())) ())) (cons (cons (cons cons? (cons (protect V2145) ())) (cons (cons string.bytes->strings (cons (cons tl (cons (protect V2145) ())) (cons (cons cons (cons (cons n->string (cons (cons hd (cons (protect V2145) ())) ())) (cons (protect V2146) ()))) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons string.bytes->strings ())) ())) ())))) ()))))) (do (shen.record-kl render (cons defun (cons render (cons (cons (protect V2151) ()) (cons (cons compile (cons (cons lambda (cons (protect Z2152) (cons (cons string. (cons (protect Z2152) ())) ()))) (cons (cons string->list (cons (protect V2151) ())) ()))) ()))))) (do (shen.record-kl string.rendered? (cons defun (cons string.rendered? (cons (cons (protect V2158) ()) (cons (cons cond (cons (cons (cons = (cons "" (cons (protect V2158) ()))) (cons true ())) (cons (cons (cons and (cons (cons shen.+string? (cons (protect V2158) ())) (cons (cons = (cons "{" (cons (cons hdstr (cons (protect V2158) ())) ()))) ()))) (cons false ())) (cons (cons (cons shen.+string? (cons (protect V2158) ())) (cons (cons string.rendered? (cons (cons tlstr (cons (protect V2158) ())) ())) ())) (cons (cons true (cons (cons shen.f-error (cons string.rendered? ())) ())) ()))))) ()))))) (do (shen.record-kl string. (cons defun (cons string. (cons (cons (protect V2165) ()) (cons (cons let (cons (protect W2166) (cons (cons if (cons (cons shen.hds=? (cons (protect V2165) (cons "{" ()))) (cons (cons let (cons (protect W2167) (cons (cons tail (cons (protect V2165) ())) (cons (cons let (cons (protect W2168) (cons (cons string. (cons (protect W2167) ())) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W2168) ())) (cons (cons shen.parse-failure ()) (cons (cons let (cons (protect W2169) (cons (cons shen.<-out (cons (protect W2168) ())) (cons (cons let (cons (protect W2170) (cons (cons shen.in-> (cons (protect W2168) ())) (cons (cons let (cons (protect W2171) (cons (cons string. (cons (protect W2170) ())) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W2171) ())) (cons (cons shen.parse-failure ()) (cons (cons let (cons (protect W2172) (cons (cons shen.in-> (cons (protect W2171) ())) (cons (cons let (cons (protect W2173) (cons (cons string. (cons (protect W2172) ())) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W2173) ())) (cons (cons shen.parse-failure ()) (cons (cons let (cons (protect W2174) (cons (cons shen.<-out (cons (protect W2173) ())) (cons (cons let (cons (protect W2175) (cons (cons shen.in-> (cons (protect W2173) ())) (cons (cons if (cons (cons shen.hds=? (cons (protect W2175) (cons "}" ()))) (cons (cons let (cons (protect W2176) (cons (cons tail (cons (protect W2175) ())) (cons (cons let (cons (protect W2177) (cons (cons string. (cons (protect W2176) ())) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W2177) ())) (cons (cons shen.parse-failure ()) (cons (cons let (cons (protect W2178) (cons (cons shen.<-out (cons (protect W2177) ())) (cons (cons let (cons (protect W2179) (cons (cons shen.in-> (cons (protect W2177) ())) (cons (cons shen.comb (cons (protect W2179) (cons (cons cn (cons (cons string.recapply (cons (cons fn (cons (cons intern (cons (protect W2169) ())) ())) (cons (protect W2174) ()))) (cons (protect W2178) ()))) ()))) ())))) ())))) ())))) ())))) ())))) (cons (cons shen.parse-failure ()) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) (cons (cons shen.parse-failure ()) ())))) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W2166) ())) (cons (cons let (cons (protect W2180) (cons (cons if (cons (cons shen.hds=? (cons (protect V2165) (cons "{" ()))) (cons (cons let (cons (protect W2181) (cons (cons tail (cons (protect V2165) ())) (cons (cons let (cons (protect W2182) (cons (cons string. (cons (protect W2181) ())) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W2182) ())) (cons (cons shen.parse-failure ()) (cons (cons let (cons (protect W2183) (cons (cons shen.<-out (cons (protect W2182) ())) (cons (cons let (cons (protect W2184) (cons (cons shen.in-> (cons (protect W2182) ())) (cons (cons if (cons (cons shen.hds=? (cons (protect W2184) (cons "}" ()))) (cons (cons let (cons (protect W2185) (cons (cons tail (cons (protect W2184) ())) (cons (cons let (cons (protect W2186) (cons (cons string. (cons (protect W2185) ())) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W2186) ())) (cons (cons shen.parse-failure ()) (cons (cons let (cons (protect W2187) (cons (cons shen.<-out (cons (protect W2186) ())) (cons (cons let (cons (protect W2188) (cons (cons shen.in-> (cons (protect W2186) ())) (cons (cons shen.comb (cons (protect W2188) (cons (cons cn (cons (cons (cons intern (cons (protect W2183) ())) ()) (cons (protect W2187) ()))) ()))) ())))) ())))) ())))) ())))) ())))) (cons (cons shen.parse-failure ()) ())))) ())))) ())))) ())))) ())))) ())))) (cons (cons shen.parse-failure ()) ())))) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W2180) ())) (cons (cons let (cons (protect W2189) (cons (cons let (cons (protect W2190) (cons (cons string. (cons (protect V2165) ())) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W2190) ())) (cons (cons shen.parse-failure ()) (cons (cons let (cons (protect W2191) (cons (cons shen.<-out (cons (protect W2190) ())) (cons (cons let (cons (protect W2192) (cons (cons shen.in-> (cons (protect W2190) ())) (cons (cons let (cons (protect W2193) (cons (cons string. (cons (protect W2192) ())) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W2193) ())) (cons (cons shen.parse-failure ()) (cons (cons let (cons (protect W2194) (cons (cons shen.<-out (cons (protect W2193) ())) (cons (cons let (cons (protect W2195) (cons (cons shen.in-> (cons (protect W2193) ())) (cons (cons shen.comb (cons (protect W2195) (cons (cons cn (cons (protect W2191) (cons (protect W2194) ()))) ()))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W2189) ())) (cons (cons let (cons (protect W2196) (cons (cons let (cons (protect W2197) (cons (cons (cons (protect V2165) ())) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W2197) ())) (cons (cons shen.parse-failure ()) (cons (cons let (cons (protect W2198) (cons (cons shen.in-> (cons (protect W2197) ())) (cons (cons shen.comb (cons (protect W2198) (cons "" ()))) ())))) ())))) ())))) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W2196) ())) (cons (cons shen.parse-failure ()) (cons (protect W2196) ())))) ())))) (cons (protect W2189) ())))) ())))) (cons (protect W2180) ())))) ())))) (cons (protect W2166) ())))) ())))) ()))))) (do (shen.record-kl string. (cons defun (cons string. (cons (cons (protect V2202) ()) (cons (cons let (cons (protect W2203) (cons (cons if (cons (cons cons? (cons (protect V2202) ())) (cons (cons let (cons (protect W2204) (cons (cons head (cons (protect V2202) ())) (cons (cons let (cons (protect W2205) (cons (cons tail (cons (protect V2202) ())) (cons (cons if (cons (cons and (cons (cons not (cons (cons = (cons (protect W2204) (cons "}" ()))) ())) (cons (cons not (cons (cons = (cons (protect W2204) (cons "\" ()))) ())) ()))) (cons (cons shen.comb (cons (protect W2205) (cons (protect W2204) ()))) (cons (cons shen.parse-failure ()) ())))) ())))) ())))) (cons (cons shen.parse-failure ()) ())))) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W2203) ())) (cons (cons shen.parse-failure ()) (cons (protect W2203) ())))) ())))) ()))))) (do (shen.record-kl string.recapply (cons defun (cons string.recapply (cons (cons (protect V2207) (cons (protect V2208) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2208) ()))) (cons (protect V2207) ())) (cons (cons (cons cons? (cons (protect V2208) ())) (cons (cons string.recapply (cons (cons (protect V2207) (cons (cons hd (cons (protect V2208) ())) ())) (cons (cons tl (cons (protect V2208) ())) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons string.recapply ())) ())) ())))) ()))))) (do (shen.record-kl string. (cons defun (cons string. (cons (cons (protect V2214) ()) (cons (cons let (cons (protect W2215) (cons (cons let (cons (protect W2216) (cons (cons string. (cons (protect V2214) ())) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W2216) ())) (cons (cons shen.parse-failure ()) (cons (cons let (cons (protect W2217) (cons (cons shen.<-out (cons (protect W2216) ())) (cons (cons let (cons (protect W2218) (cons (cons shen.in-> (cons (protect W2216) ())) (cons (cons if (cons (cons shen.hds=? (cons (protect W2218) (cons "\" ()))) (cons (cons let (cons (protect W2219) (cons (cons tail (cons (protect W2218) ())) (cons (cons let (cons (protect W2220) (cons (cons string. (cons (protect W2219) ())) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W2220) ())) (cons (cons shen.parse-failure ()) (cons (cons let (cons (protect W2221) (cons (cons shen.<-out (cons (protect W2220) ())) (cons (cons let (cons (protect W2222) (cons (cons shen.in-> (cons (protect W2220) ())) (cons (cons shen.comb (cons (protect W2222) (cons (cons cons (cons (protect W2217) (cons (protect W2221) ()))) ()))) ())))) ())))) ())))) ())))) ())))) (cons (cons shen.parse-failure ()) ())))) ())))) ())))) ())))) ())))) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W2215) ())) (cons (cons let (cons (protect W2223) (cons (cons let (cons (protect W2224) (cons (cons string. (cons (protect V2214) ())) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W2224) ())) (cons (cons shen.parse-failure ()) (cons (cons let (cons (protect W2225) (cons (cons shen.<-out (cons (protect W2224) ())) (cons (cons let (cons (protect W2226) (cons (cons shen.in-> (cons (protect W2224) ())) (cons (cons shen.comb (cons (protect W2226) (cons (cons cons (cons (protect W2225) (cons () ()))) ()))) ())))) ())))) ())))) ())))) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W2223) ())) (cons (cons shen.parse-failure ()) (cons (protect W2223) ())))) ())))) (cons (protect W2215) ())))) ())))) ()))))) (do (shen.record-kl string. (cons defun (cons string. (cons (cons (protect V2229) ()) (cons (cons let (cons (protect W2230) (cons (cons let (cons (protect W2231) (cons (cons string. (cons (protect V2229) ())) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W2231) ())) (cons (cons shen.parse-failure ()) (cons (cons let (cons (protect W2232) (cons (cons shen.<-out (cons (protect W2231) ())) (cons (cons let (cons (protect W2233) (cons (cons shen.in-> (cons (protect W2231) ())) (cons (cons shen.comb (cons (protect W2233) (cons (protect W2232) ()))) ())))) ())))) ())))) ())))) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W2230) ())) (cons (cons shen.parse-failure ()) (cons (protect W2230) ())))) ())))) ()))))) (do (shen.record-kl string. (cons defun (cons string. (cons (cons (protect V2237) ()) (cons (cons let (cons (protect W2238) (cons (cons if (cons (cons cons? (cons (protect V2237) ())) (cons (cons let (cons (protect W2239) (cons (cons head (cons (protect V2237) ())) (cons (cons let (cons (protect W2240) (cons (cons tail (cons (protect V2237) ())) (cons (cons if (cons (cons and (cons (cons not (cons (cons = (cons (protect W2239) (cons "}" ()))) ())) (cons (cons not (cons (cons = (cons (protect W2239) (cons "\" ()))) ())) ()))) (cons (cons shen.comb (cons (protect W2240) (cons (protect W2239) ()))) (cons (cons shen.parse-failure ()) ())))) ())))) ())))) (cons (cons shen.parse-failure ()) ())))) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W2238) ())) (cons (cons shen.parse-failure ()) (cons (protect W2238) ())))) ())))) ()))))) (do (shen.record-kl string. (cons defun (cons string. (cons (cons (protect V2244) ()) (cons (cons let (cons (protect W2245) (cons (cons if (cons (cons cons? (cons (protect V2244) ())) (cons (cons let (cons (protect W2246) (cons (cons head (cons (protect V2244) ())) (cons (cons let (cons (protect W2247) (cons (cons tail (cons (protect V2244) ())) (cons (cons if (cons (cons whitespace? (cons (protect W2246) ())) (cons (cons shen.comb (cons (protect W2247) (cons string.skip ()))) (cons (cons shen.parse-failure ()) ())))) ())))) ())))) (cons (cons shen.parse-failure ()) ())))) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W2245) ())) (cons (cons shen.parse-failure ()) (cons (protect W2245) ())))) ())))) ()))))) (do (shen.record-kl string. (cons defun (cons string. (cons (cons (protect V2250) ()) (cons (cons let (cons (protect W2251) (cons (cons let (cons (protect W2252) (cons (cons string. (cons (protect V2250) ())) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W2252) ())) (cons (cons shen.parse-failure ()) (cons (cons let (cons (protect W2253) (cons (cons shen.<-out (cons (protect W2252) ())) (cons (cons let (cons (protect W2254) (cons (cons shen.in-> (cons (protect W2252) ())) (cons (cons let (cons (protect W2255) (cons (cons string. (cons (protect W2254) ())) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W2255) ())) (cons (cons shen.parse-failure ()) (cons (cons let (cons (protect W2256) (cons (cons shen.<-out (cons (protect W2255) ())) (cons (cons let (cons (protect W2257) (cons (cons shen.in-> (cons (protect W2255) ())) (cons (cons shen.comb (cons (protect W2257) (cons (cons cn (cons (protect W2253) (cons (protect W2256) ()))) ()))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W2251) ())) (cons (cons let (cons (protect W2258) (cons (cons let (cons (protect W2259) (cons (cons (cons (protect V2250) ())) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W2259) ())) (cons (cons shen.parse-failure ()) (cons (cons let (cons (protect W2260) (cons (cons shen.in-> (cons (protect W2259) ())) (cons (cons shen.comb (cons (protect W2260) (cons "" ()))) ())))) ())))) ())))) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W2258) ())) (cons (cons shen.parse-failure ()) (cons (protect W2258) ())))) ())))) (cons (protect W2251) ())))) ())))) ()))))) (do (shen.record-kl string. (cons defun (cons string. (cons (cons (protect V2264) ()) (cons (cons let (cons (protect W2265) (cons (cons if (cons (cons cons? (cons (protect V2264) ())) (cons (cons let (cons (protect W2266) (cons (cons head (cons (protect V2264) ())) (cons (cons let (cons (protect W2267) (cons (cons tail (cons (protect V2264) ())) (cons (cons if (cons (cons and (cons (cons not (cons (cons = (cons (protect W2266) (cons "}" ()))) ())) (cons (cons and (cons (cons not (cons (cons = (cons (protect W2266) (cons "\" ()))) ())) (cons (cons not (cons (cons whitespace? (cons (protect W2266) ())) ())) ()))) ()))) (cons (cons shen.comb (cons (protect W2267) (cons (protect W2266) ()))) (cons (cons shen.parse-failure ()) ())))) ())))) ())))) (cons (cons shen.parse-failure ()) ())))) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W2265) ())) (cons (cons shen.parse-failure ()) (cons (protect W2265) ())))) ())))) ()))))) (do (shen.record-kl vector.vector-macros (cons defun (cons vector.vector-macros (cons (cons (protect V2269) ()) (cons (cons let (cons (protect GoTo2273) (cons (cons freeze (cons (protect V2269) ())) (cons (cons if (cons (cons cons? (cons (protect V2269) ())) (cons (cons let (cons (protect Select2315) (cons (cons hd (cons (protect V2269) ())) (cons (cons let (cons (protect Select2316) (cons (cons tl (cons (protect V2269) ())) (cons (cons let (cons (protect GoTo2300) (cons (cons freeze (cons (cons let (cons (protect GoTo2286) (cons (cons freeze (cons (cons if (cons (cons = (cons array (cons (protect Select2315) ()))) (cons (cons if (cons (cons cons? (cons (protect Select2316) ())) (cons (cons let (cons (protect Select2284) (cons (cons hd (cons (protect Select2316) ())) (cons (cons let (cons (protect Select2285) (cons (cons tl (cons (protect Select2316) ())) (cons (cons if (cons (cons cons? (cons (protect Select2284) ())) (cons (cons let (cons (protect Select2283) (cons (cons tl (cons (protect Select2284) ())) (cons (cons if (cons (cons = (cons cons (cons (cons hd (cons (protect Select2284) ())) ()))) (cons (cons if (cons (cons cons? (cons (protect Select2283) ())) (cons (cons let (cons (protect Select2281) (cons (cons hd (cons (protect Select2283) ())) (cons (cons let (cons (protect Select2282) (cons (cons tl (cons (protect Select2283) ())) (cons (cons if (cons (cons cons? (cons (protect Select2282) ())) (cons (cons let (cons (protect Select2280) (cons (cons tl (cons (protect Select2282) ())) (cons (cons if (cons (cons and (cons (cons = (cons () (cons (cons hd (cons (protect Select2282) ())) ()))) (cons (cons and (cons (cons = (cons () (cons (protect Select2280) ()))) (cons (cons = (cons () (cons (protect Select2285) ()))) ()))) ()))) (cons (cons cons (cons vector (cons (cons cons (cons (protect Select2281) (cons () ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons () (cons (protect Select2280) ()))) (cons (cons = (cons () (cons (protect Select2285) ()))) ()))) (cons (cons let (cons (protect W2271) (cons (cons newv ()) (cons (cons let (cons (protect W2272) (cons (cons newv ()) (cons (cons cons (cons let (cons (cons cons (cons (protect W2271) (cons (cons cons (cons (cons cons (cons vector (cons (cons cons (cons (protect Select2281) (cons () ()))) ()))) (cons (cons cons (cons (cons cons (cons do (cons (cons cons (cons (cons cons (cons for (cons (cons cons (cons (protect W2272) (cons (cons cons (cons = (cons (cons cons (cons 1 (cons (cons cons (cons to (cons (cons cons (cons (protect Select2281) (cons (cons cons (cons (cons cons (cons vector-> (cons (cons cons (cons (protect W2271) (cons (cons cons (cons (protect W2272) (cons (cons cons (cons (cons cons (cons array (cons (protect Select2282) ()))) (cons () ()))) ()))) ()))) ()))) (cons () ()))) ()))) ()))) ()))) ()))) ()))) ()))) (cons (cons cons (cons (protect W2271) (cons () ()))) ()))) ()))) (cons () ()))) ()))) ()))) ()))) ())))) ())))) (cons (cons thaw (cons (protect GoTo2273) ())) ())))) ())))) ())))) (cons (cons thaw (cons (protect GoTo2273) ())) ())))) ())))) ())))) (cons (cons thaw (cons (protect GoTo2273) ())) ())))) (cons (cons thaw (cons (protect GoTo2273) ())) ())))) ())))) (cons (cons thaw (cons (protect GoTo2273) ())) ())))) ())))) ())))) (cons (cons thaw (cons (protect GoTo2273) ())) ())))) (cons (cons thaw (cons (protect GoTo2273) ())) ())))) ())) (cons (cons if (cons (cons cons? (cons (protect Select2316) ())) (cons (cons let (cons (protect Select2298) (cons (cons hd (cons (protect Select2316) ())) (cons (cons let (cons (protect Select2299) (cons (cons tl (cons (protect Select2316) ())) (cons (cons if (cons (cons cons? (cons (protect Select2298) ())) (cons (cons let (cons (protect Select2297) (cons (cons tl (cons (protect Select2298) ())) (cons (cons if (cons (cons = (cons cons (cons (cons hd (cons (protect Select2298) ())) ()))) (cons (cons if (cons (cons cons? (cons (protect Select2297) ())) (cons (cons let (cons (protect Select2295) (cons (cons hd (cons (protect Select2297) ())) (cons (cons let (cons (protect Select2296) (cons (cons tl (cons (protect Select2297) ())) (cons (cons if (cons (cons cons? (cons (protect Select2296) ())) (cons (cons let (cons (protect Select2293) (cons (cons hd (cons (protect Select2296) ())) (cons (cons let (cons (protect Select2294) (cons (cons tl (cons (protect Select2296) ())) (cons (cons if (cons (cons and (cons (cons = (cons () (cons (protect Select2293) ()))) (cons (cons and (cons (cons = (cons () (cons (protect Select2294) ()))) (cons (cons and (cons (cons cons? (cons (protect Select2299) ())) (cons (cons let (cons (protect Select2291) (cons (cons tl (cons (protect Select2299) ())) (cons (cons and (cons (cons = (cons := (cons (cons hd (cons (protect Select2299) ())) ()))) (cons (cons and (cons (cons cons? (cons (protect Select2291) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select2291) ())) ()))) ()))) ()))) ())))) ()))) ()))) ()))) (cons (cons cons (cons vector-> (cons (cons cons (cons (protect Select2315) (cons (cons cons (cons (protect Select2295) (cons (cons tl (cons (protect Select2299) ())) ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons () (cons (protect Select2294) ()))) (cons (cons and (cons (cons cons? (cons (protect Select2299) ())) (cons (cons let (cons (protect Select2292) (cons (cons tl (cons (protect Select2299) ())) (cons (cons and (cons (cons = (cons := (cons (cons hd (cons (protect Select2299) ())) ()))) (cons (cons and (cons (cons cons? (cons (protect Select2292) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select2292) ())) ()))) ()))) ()))) ())))) ()))) ()))) (cons (cons let (cons (protect W2270) (cons (cons newv ()) (cons (cons cons (cons let (cons (cons cons (cons (protect W2270) (cons (cons cons (cons (cons cons (cons <-vector (cons (cons cons (cons (protect Select2315) (cons (cons cons (cons (protect Select2295) (cons () ()))) ()))) ()))) (cons (cons cons (cons (cons cons (cons (protect W2270) (cons (cons cons (cons (protect Select2293) (cons (protect Select2299) ()))) ()))) (cons () ()))) ()))) ()))) ()))) ())))) (cons (cons thaw (cons (protect GoTo2286) ())) ())))) ())))) ())))) ())))) (cons (cons thaw (cons (protect GoTo2286) ())) ())))) ())))) ())))) (cons (cons thaw (cons (protect GoTo2286) ())) ())))) (cons (cons thaw (cons (protect GoTo2286) ())) ())))) ())))) (cons (cons thaw (cons (protect GoTo2286) ())) ())))) ())))) ())))) (cons (cons thaw (cons (protect GoTo2286) ())) ())))) ())))) ())) (cons (cons if (cons (cons = (cons := (cons (protect Select2315) ()))) (cons (cons if (cons (cons cons? (cons (protect Select2316) ())) (cons (cons let (cons (protect Select2313) (cons (cons hd (cons (protect Select2316) ())) (cons (cons let (cons (protect Select2314) (cons (cons tl (cons (protect Select2316) ())) (cons (cons if (cons (cons cons? (cons (protect Select2314) ())) (cons (cons let (cons (protect Select2311) (cons (cons hd (cons (protect Select2314) ())) (cons (cons let (cons (protect Select2312) (cons (cons tl (cons (protect Select2314) ())) (cons (cons if (cons (cons cons? (cons (protect Select2311) ())) (cons (cons let (cons (protect Select2310) (cons (cons tl (cons (protect Select2311) ())) (cons (cons if (cons (cons = (cons cons (cons (cons hd (cons (protect Select2311) ())) ()))) (cons (cons if (cons (cons cons? (cons (protect Select2310) ())) (cons (cons let (cons (protect Select2308) (cons (cons hd (cons (protect Select2310) ())) (cons (cons let (cons (protect Select2309) (cons (cons tl (cons (protect Select2310) ())) (cons (cons if (cons (cons cons? (cons (protect Select2309) ())) (cons (cons let (cons (protect Select2307) (cons (cons tl (cons (protect Select2309) ())) (cons (cons if (cons (cons and (cons (cons = (cons () (cons (cons hd (cons (protect Select2309) ())) ()))) (cons (cons and (cons (cons = (cons () (cons (protect Select2307) ()))) (cons (cons = (cons () (cons (protect Select2312) ()))) ()))) ()))) (cons (cons cons (cons <-vector (cons (cons cons (cons (protect Select2313) (cons (cons cons (cons (protect Select2308) (cons () ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons () (cons (protect Select2307) ()))) (cons (cons = (cons () (cons (protect Select2312) ()))) ()))) (cons (cons cons (cons := (cons (cons cons (cons (cons cons (cons <-vector (cons (cons cons (cons (protect Select2313) (cons (cons cons (cons (protect Select2308) (cons () ()))) ()))) ()))) (cons (protect Select2309) ()))) ()))) (cons (cons thaw (cons (protect GoTo2300) ())) ())))) ())))) ())))) (cons (cons thaw (cons (protect GoTo2300) ())) ())))) ())))) ())))) (cons (cons thaw (cons (protect GoTo2300) ())) ())))) (cons (cons thaw (cons (protect GoTo2300) ())) ())))) ())))) (cons (cons thaw (cons (protect GoTo2300) ())) ())))) ())))) ())))) (cons (cons thaw (cons (protect GoTo2300) ())) ())))) ())))) ())))) (cons (cons thaw (cons (protect GoTo2300) ())) ())))) (cons (cons thaw (cons (protect GoTo2300) ())) ())))) ())))) ())))) ())))) (cons (cons thaw (cons (protect GoTo2273) ())) ())))) ())))) ()))))) (do (shen.record-kl print.pprint-macro (cons defun (cons print.pprint-macro (cons (cons (protect V2396) ()) (cons (cons cond (cons (cons (cons and (cons (cons cons? (cons (protect V2396) ())) (cons (cons and (cons (cons = (cons pprint (cons (cons hd (cons (protect V2396) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V2396) ())) ())) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (protect V2396) ())) ())) ()))) ()))) ()))) ()))) (cons (cons cons (cons pprint (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect V2396) ())) ())) (cons (cons cons (cons (cons cons (cons stoutput (cons () ()))) (cons () ()))) ()))) ()))) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V2396) ())) (cons (cons and (cons (cons = (cons pps (cons (cons hd (cons (protect V2396) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V2396) ())) ())) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (protect V2396) ())) ())) ()))) ()))) ()))) ()))) (cons (cons cons (cons pps (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect V2396) ())) ())) (cons (cons cons (cons (cons cons (cons stoutput (cons () ()))) (cons () ()))) ()))) ()))) ())) (cons (cons true (cons (protect V2396) ())) ())))) ()))))) (do (shen.record-kl linelength (cons defun (cons linelength (cons () (cons (cons value (cons print.*linelength* ())) ()))))) (do (shen.record-kl indentation (cons defun (cons indentation (cons () (cons (cons value (cons print.*indentation* ())) ()))))) (do (shen.record-kl set-linelength (cons defun (cons set-linelength (cons (cons (protect V2400) ()) (cons (cons cond (cons (cons (cons and (cons (cons positive? (cons (protect V2400) ())) (cons (cons integer? (cons (protect V2400) ())) ()))) (cons (cons set (cons print.*linelength* (cons (protect V2400) ()))) ())) (cons (cons true (cons (cons simple-error (cons "line length must be a positive integer -" ())) ())) ()))) ()))))) (do (shen.record-kl set-indentation (cons defun (cons set-indentation (cons (cons (protect V2402) ()) (cons (cons cond (cons (cons (cons and (cons (cons positive? (cons (protect V2402) ())) (cons (cons integer? (cons (protect V2402) ())) ()))) (cons (cons set (cons print.*indentation* (cons (protect V2402) ()))) ())) (cons (cons true (cons (cons simple-error (cons "indentation must be a positive integer -" ())) ())) ()))) ()))))) (do (shen.record-kl pps (cons defun (cons pps (cons (cons (protect V2404) (cons (protect V2405) ())) (cons (cons let (cons (protect W2406) (cons (cons ps (cons (protect V2404) ())) (cons (cons let (cons (protect W2407) (cons (cons shen.app (cons (protect W2406) (cons "" (cons shen.r ())))) (cons (cons let (cons (protect W2408) (cons (cons pretty-string (cons (protect W2407) ())) (cons (cons let (cons (protect W2409) (cons (cons pr (cons (protect W2408) (cons (protect V2405) ()))) (cons (cons let (cons (protect W2410) (cons (cons nl (cons 1 ())) (cons (protect V2404) ())))) ())))) ())))) ())))) ())))) ()))))) (do (shen.record-kl pprint (cons defun (cons pprint (cons (cons (protect V2413) (cons (protect V2414) ())) (cons (cons let (cons (protect W2415) (cons (cons shen.app (cons (protect V2413) (cons "" (cons shen.s ())))) (cons (cons let (cons (protect W2416) (cons (cons pretty-string (cons (protect W2415) ())) (cons (cons let (cons (protect W2417) (cons (cons pr (cons (protect W2416) (cons (protect V2414) ()))) (cons (cons let (cons (protect W2418) (cons (cons nl (cons 1 ())) (cons (protect V2413) ())))) ())))) ())))) ())))) ()))))) (do (shen.record-kl pretty-string (cons defun (cons pretty-string (cons (cons (protect V2421) ()) (cons (cons print.pretty-string-h (cons (protect V2421) (cons 0 (cons 0 ())))) ()))))) (do (shen.record-kl print.pretty-string-h (cons defun (cons print.pretty-string-h (cons (cons (protect V2427) (cons (protect V2428) (cons (protect V2429) ()))) (cons (cons cond (cons (cons (cons = (cons "" (cons (protect V2427) ()))) (cons "" ())) (cons (cons (cons and (cons (cons shen.+string? (cons (protect V2427) ())) (cons (cons = (cons "[" (cons (cons hdstr (cons (protect V2427) ())) ()))) ()))) (cons (cons @s (cons (cons print.indent (cons (protect V2428) ())) (cons (cons @s (cons "[" (cons (cons print.pretty-string-h (cons (cons tlstr (cons (protect V2427) ())) (cons (cons + (cons (protect V2428) (cons 1 ()))) (cons 0 ())))) ()))) ()))) ())) (cons (cons (cons and (cons (cons shen.+string? (cons (protect V2427) ())) (cons (cons = (cons "(" (cons (cons hdstr (cons (protect V2427) ())) ()))) ()))) (cons (cons @s (cons (cons print.indent (cons (protect V2428) ())) (cons (cons @s (cons "(" (cons (cons print.pretty-string-h (cons (cons tlstr (cons (protect V2427) ())) (cons (cons + (cons (protect V2428) (cons 1 ()))) (cons 0 ())))) ()))) ()))) ())) (cons (cons (cons and (cons (cons shen.+string? (cons (protect V2427) ())) (cons (cons = (cons "]" (cons (cons hdstr (cons (protect V2427) ())) ()))) ()))) (cons (cons @s (cons "]" (cons (cons print.pretty-string-h (cons (cons tlstr (cons (protect V2427) ())) (cons (cons - (cons (protect V2428) (cons 1 ()))) (cons 0 ())))) ()))) ())) (cons (cons (cons and (cons (cons shen.+string? (cons (protect V2427) ())) (cons (cons = (cons ")" (cons (cons hdstr (cons (protect V2427) ())) ()))) ()))) (cons (cons @s (cons ")" (cons (cons print.pretty-string-h (cons (cons tlstr (cons (protect V2427) ())) (cons (cons - (cons (protect V2428) (cons 1 ()))) (cons 0 ())))) ()))) ())) (cons (cons (cons and (cons (cons shen.+string? (cons (protect V2427) ())) (cons (cons and (cons (cons = (cons " " (cons (cons hdstr (cons (protect V2427) ())) ()))) (cons (cons > (cons (protect V2429) (cons (cons linelength ()) ()))) ()))) ()))) (cons (cons @s (cons (cons print.indent (cons (protect V2428) ())) (cons (cons print.pretty-string-h (cons (cons tlstr (cons (protect V2427) ())) (cons (protect V2428) (cons 0 ())))) ()))) ())) (cons (cons (cons shen.+string? (cons (protect V2427) ())) (cons (cons @s (cons (cons hdstr (cons (protect V2427) ())) (cons (cons print.pretty-string-h (cons (cons tlstr (cons (protect V2427) ())) (cons (protect V2428) (cons (cons + (cons (protect V2429) (cons 1 ()))) ())))) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons print.pretty-string-h ())) ())) ()))))))))) ()))))) (do (shen.record-kl print.indent (cons defun (cons print.indent (cons (cons (protect V2442) ()) (cons (cons cond (cons (cons (cons = (cons 0 (cons (protect V2442) ()))) (cons "" ())) (cons (cons true (cons (cons @s (cons " -" (cons (cons print.indent-h (cons (protect V2442) ())) ()))) ())) ()))) ()))))) (do (shen.record-kl print.indent-h (cons defun (cons print.indent-h (cons (cons (protect V2444) ()) (cons (cons cond (cons (cons (cons = (cons 0 (cons (protect V2444) ()))) (cons "" ())) (cons (cons true (cons (cons cn (cons (cons print.n-space (cons (cons indentation ()) ())) (cons (cons print.indent-h (cons (cons - (cons (protect V2444) (cons 1 ()))) ())) ()))) ())) ()))) ()))))) (do (shen.record-kl print.n-space (cons defun (cons print.n-space (cons (cons (protect V2447) ()) (cons (cons cond (cons (cons (cons = (cons 0 (cons (protect V2447) ()))) (cons "" ())) (cons (cons true (cons (cons cn (cons " " (cons (cons print.n-space (cons (cons - (cons (protect V2447) (cons 1 ()))) ())) ()))) ())) ()))) ()))))) (do (shen.record-kl delete-file (cons defun (cons delete-file (cons (cons (protect V2450) ()) (cons (cons if (cons (cons = (cons (cons language ()) (cons "Common Lisp" ()))) (cons (cons (cons fn (cons lisp.delete-file ())) (cons (protect V2450) ())) (cons (cons close (cons (cons open (cons (protect V2450) (cons out ()))) ())) ())))) ()))))) (do (shen.record-kl file.file-macro (cons defun (cons file.file-macro (cons (cons (protect V2478) ()) (cons (cons cond (cons (cons (cons and (cons (cons cons? (cons (protect V2478) ())) (cons (cons and (cons (cons = (cons errout (cons (cons hd (cons (protect V2478) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V2478) ())) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (protect V2478) ())) ())) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V2478) ())) ())) ())) ())) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V2478) ())) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) ()))) (cons (cons let (cons (protect W2479) (cons (cons newv ()) (cons (cons let (cons (protect W2480) (cons (cons newv ()) (cons (cons let (cons (protect W2481) (cons (cons newv ()) (cons (cons let (cons (protect W2482) (cons (cons newv ()) (cons (cons let (cons (protect W2483) (cons (cons newv ()) (cons (cons cons (cons trap-error (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect V2478) ())) ())) (cons (cons cons (cons (cons cons (cons /. (cons (cons cons (cons (protect W2483) (cons (cons cons (cons (cons cons (cons let (cons (cons cons (cons (protect W2479) (cons (cons cons (cons (cons cons (cons error-to-string (cons (cons cons (cons (protect W2483) (cons () ()))) ()))) (cons (cons cons (cons (protect W2480) (cons (cons cons (cons (cons cons (cons trap-error (cons (cons cons (cons (cons cons (cons reopen (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V2478) ())) ())) ())) ()))) (cons (cons cons (cons (cons cons (cons /. (cons (cons cons (cons (protect W2483) (cons (cons cons (cons (cons cons (cons open (cons (cons cons (cons (cons hd (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V2478) ())) ())) ())) ())) (cons (cons cons (cons out (cons () ()))) ()))) ()))) (cons () ()))) ()))) ()))) (cons () ()))) ()))) ()))) (cons (cons cons (cons (protect W2481) (cons (cons cons (cons (cons cons (cons pr (cons (cons cons (cons (protect W2479) (cons (cons cons (cons (protect W2480) (cons () ()))) ()))) ()))) (cons (cons cons (cons (protect W2482) (cons (cons cons (cons (cons cons (cons close (cons (cons cons (cons (protect W2480) (cons () ()))) ()))) (cons (cons cons (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V2478) ())) ())) ())) (cons () ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) (cons () ()))) ()))) ()))) (cons () ()))) ()))) ()))) ())))) ())))) ())))) ())))) ())))) ())) (cons (cons true (cons (protect V2478) ())) ()))) ()))))) (do (shen.record-kl append-files (cons defun (cons append-files (cons (cons (protect V2491) (cons (protect V2492) ())) (cons (cons let (cons (protect W2493) (cons (cons append-files-with-open-stream (cons (protect V2491) (cons (protect V2492) ()))) (cons (cons let (cons (protect W2494) (cons (cons close (cons (protect W2493) ())) (cons (protect V2492) ())))) ())))) ()))))) (do (shen.record-kl append-files-with-open-stream (cons defun (cons append-files-with-open-stream (cons (cons (protect V2497) (cons (protect V2498) ())) (cons (cons cond (cons (cons (cons element? (cons (protect V2498) (cons (protect V2497) ()))) (cons (cons simple-error (cons (cons cn (cons "cannot read and write to " (cons (cons shen.app (cons (protect V2498) (cons " at the same time -" (cons shen.a ())))) ()))) ())) ())) (cons (cons true (cons (cons let (cons (protect W2499) (cons (cons open (cons (protect V2498) (cons out ()))) (cons (cons let (cons (protect W2500) (cons (cons mapc (cons (cons lambda (cons (protect Z2501) (cons (cons file.read&write (cons (cons open (cons (protect Z2501) (cons in ()))) (cons (protect W2499) ()))) ()))) (cons (protect V2497) ()))) (cons (protect W2499) ())))) ())))) ())) ()))) ()))))) (do (shen.record-kl file.read&write (cons defun (cons file.read&write (cons (cons (protect V2504) (cons (protect V2505) ())) (cons (cons file.read&write-h (cons (cons read-byte (cons (protect V2504) ())) (cons (protect V2504) (cons (protect V2505) ())))) ()))))) (do (shen.record-kl file.read&write-h (cons defun (cons file.read&write-h (cons (cons (protect V2508) (cons (protect V2509) (cons (protect V2510) ()))) (cons (cons cond (cons (cons (cons = (cons -1 (cons (protect V2508) ()))) (cons -1 ())) (cons (cons true (cons (cons file.read&write-h (cons (cons read-byte (cons (protect V2509) ())) (cons (protect V2509) (cons (cons do (cons (cons write-byte (cons (protect V2508) (cons (protect V2510) ()))) (cons (protect V2510) ()))) ())))) ())) ()))) ()))))) (do (shen.record-kl reopen (cons defun (cons reopen (cons (cons (protect V2515) ()) (cons (cons let (cons (protect W2516) (cons (cons read-file-as-bytelist (cons (protect V2515) ())) (cons (cons let (cons (protect W2517) (cons (cons open (cons (protect V2515) (cons out ()))) (cons (cons let (cons (protect W2518) (cons (cons mapc (cons (cons lambda (cons (protect Z2519) (cons (cons write-byte (cons (protect Z2519) (cons (protect W2517) ()))) ()))) (cons (protect W2516) ()))) (cons (protect W2517) ())))) ())))) ())))) ()))))) (do (shen.record-kl copy-file (cons defun (cons copy-file (cons (cons (protect V2521) (cons (protect V2522) ())) (cons (cons append-files (cons (cons cons (cons (protect V2521) (cons () ()))) (cons (protect V2522) ()))) ()))))) (do (shen.record-kl copy-file-with-open-stream (cons defun (cons copy-file-with-open-stream (cons (cons (protect V2525) (cons (protect V2526) ())) (cons (cons append-files-with-open-stream (cons (cons cons (cons (protect V2525) (cons () ()))) (cons (protect V2526) ()))) ()))))) (do (shen.record-kl file-exists? (cons defun (cons file-exists? (cons (cons (protect V2529) ()) (cons (cons trap-error (cons (cons do (cons (cons close (cons (cons open (cons (protect V2529) (cons in ()))) ())) (cons true ()))) (cons (cons lambda (cons (protect Z2530) (cons false ()))) ()))) ()))))) (do (shen.record-kl file-size (cons defun (cons file-size (cons (cons (protect V2532) ()) (cons (cons let (cons (protect W2533) (cons (cons open (cons (protect V2532) (cons in ()))) (cons (cons let (cons (protect W2534) (cons (cons file.file-size-loop (cons (protect W2533) (cons 0 (cons (cons read-byte (cons (protect W2533) ())) ())))) (cons (cons let (cons (protect W2535) (cons (cons close (cons (protect W2533) ())) (cons (protect W2534) ())))) ())))) ())))) ()))))) (do (shen.record-kl file.file-size-loop (cons defun (cons file.file-size-loop (cons (cons (protect V2541) (cons (protect V2542) (cons (protect V2543) ()))) (cons (cons cond (cons (cons (cons = (cons -1 (cons (protect V2543) ()))) (cons (protect V2542) ())) (cons (cons true (cons (cons file.file-size-loop (cons (protect V2541) (cons (cons + (cons 1 (cons (protect V2542) ()))) (cons (cons read-byte (cons (protect V2541) ())) ())))) ())) ()))) ()))))) (do (shen.record-kl ascii (cons defun (cons ascii (cons (cons (protect V2548) (cons (protect V2549) (cons (protect V2550) ()))) (cons (cons let (cons (protect W2551) (cons (cons read-file-as-bytelist (cons (protect V2550) ())) (cons (cons file.scan-bytes (cons (protect V2548) (cons (protect V2549) (cons (protect W2551) (cons "" ()))))) ())))) ()))))) (do (shen.record-kl file.scan-bytes (cons defun (cons file.scan-bytes (cons (cons (protect V2557) (cons (protect V2558) (cons (protect V2559) (cons (protect V2560) ())))) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2559) ()))) (cons (protect V2560) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V2559) ())) (cons (cons and (cons (cons >= (cons (cons hd (cons (protect V2559) ())) (cons (protect V2557) ()))) (cons (cons <= (cons (cons hd (cons (protect V2559) ())) (cons (protect V2558) ()))) ()))) ()))) (cons (cons file.scan-bytes (cons (protect V2557) (cons (protect V2558) (cons (cons tl (cons (protect V2559) ())) (cons (cons cn (cons (protect V2560) (cons (cons n->string (cons (cons hd (cons (protect V2559) ())) ())) ()))) ()))))) ())) (cons (cons (cons cons? (cons (protect V2559) ())) (cons (cons simple-error (cons (cons cn (cons "character has code " (cons (cons shen.app (cons (cons hd (cons (protect V2559) ())) (cons (cons cn (cons ": parsed to here - -" (cons (cons shen.app (cons (protect V2560) (cons "" (cons shen.a ())))) ()))) (cons shen.a ())))) ()))) ())) ())) (cons (cons true (cons (cons shen.f-error (cons file.scan-bytes ())) ())) ()))))) ()))))) (do (shen.record-kl pairoff (cons defun (cons pairoff (cons (cons (protect V2581) (cons (protect V2582) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2581) ()))) (cons () ())) (cons (cons (cons = (cons () (cons (protect V2582) ()))) (cons () ())) (cons (cons (cons and (cons (cons cons? (cons (protect V2581) ())) (cons (cons cons? (cons (protect V2582) ())) ()))) (cons (cons cons (cons (cons @p (cons (cons hd (cons (protect V2581) ())) (cons (cons hd (cons (protect V2582) ())) ()))) (cons (cons pairoff (cons (cons tl (cons (protect V2581) ())) (cons (cons tl (cons (protect V2582) ())) ()))) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons pairoff ())) ())) ()))))) ()))))) (do (shen.record-kl assocp (cons defun (cons assocp (cons (cons (protect V2595) (cons (protect V2596) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2596) ()))) (cons (cons simple-error (cons "pair not found -" ())) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V2596) ())) (cons (cons and (cons (cons tuple? (cons (cons hd (cons (protect V2596) ())) ())) (cons (cons = (cons (protect V2595) (cons (cons fst (cons (cons hd (cons (protect V2596) ())) ())) ()))) ()))) ()))) (cons (cons hd (cons (protect V2596) ())) ())) (cons (cons (cons cons? (cons (protect V2596) ())) (cons (cons assocp (cons (protect V2595) (cons (cons tl (cons (protect V2596) ())) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons assocp ())) ())) ()))))) ()))))) (do (shen.record-kl cartprodp (cons defun (cons cartprodp (cons (cons (protect V2601) (cons (protect V2602) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2601) ()))) (cons () ())) (cons (cons (cons cons? (cons (protect V2601) ())) (cons (cons append (cons (cons map (cons (cons lambda (cons (protect Z2603) (cons (cons @p (cons (cons hd (cons (protect V2601) ())) (cons (protect Z2603) ()))) ()))) (cons (protect V2602) ()))) (cons (cons cartprodp (cons (cons tl (cons (protect V2601) ())) (cons (protect V2602) ()))) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons cartprodp ())) ())) ())))) ()))))) (do (shen.record-kl assocp-if (cons defun (cons assocp-if (cons (cons (protect V2612) (cons (protect V2613) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2613) ()))) (cons (cons simple-error (cons "pair not found -" ())) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V2613) ())) (cons (cons and (cons (cons tuple? (cons (cons hd (cons (protect V2613) ())) ())) (cons (cons (protect V2612) (cons (cons fst (cons (cons hd (cons (protect V2613) ())) ())) ())) ()))) ()))) (cons (cons hd (cons (protect V2613) ())) ())) (cons (cons (cons cons? (cons (protect V2613) ())) (cons (cons assocp-if (cons (protect V2612) (cons (cons tl (cons (protect V2613) ())) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons assocp-if ())) ())) ()))))) ()))))) (shen.record-kl assocp-if-not (cons defun (cons assocp-if-not (cons (cons (protect V2621) (cons (protect V2622) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2622) ()))) (cons (cons simple-error (cons "pair not found -" ())) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V2622) ())) (cons (cons and (cons (cons tuple? (cons (cons hd (cons (protect V2622) ())) ())) (cons (cons not (cons (cons (protect V2621) (cons (cons fst (cons (cons hd (cons (protect V2622) ())) ())) ())) ())) ()))) ()))) (cons (cons hd (cons (protect V2622) ())) ())) (cons (cons (cons cons? (cons (protect V2622) ())) (cons (cons assocp-if-not (cons (protect V2621) (cons (cons tl (cons (protect V2622) ())) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons assocp-if-not ())) ())) ()))))) ())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) - -(defun stlib.initialise-final () (do (let External (external stlib) (let ExternalF (filter (lambda X (> (arity X) -1)) External) (let SystemfResult (map (lambda Y2626 (systemf Y2626)) ExternalF) ok))) (do (preclude-all-but ()) (do (set shen.*userdefs* ()) (do (cd "") (tc -)))))) +" (cons shen.a ())))) ()))) ())) ())))) ())))) ()))))) (do (shen.record-kl newv (cons defun (cons newv (cons () (cons (cons gensym (cons (protect X) ())) ()))))) (do (shen.record-kl maths.maths-macro (cons defun (cons maths.maths-macro (cons (cons (protect V25) ()) (cons (cons let (cons (protect GoTo26) (cons (cons freeze (cons (protect V25) ())) (cons (cons if (cons (cons cons? (cons (protect V25) ())) (cons (cons let (cons (protect Select45) (cons (cons hd (cons (protect V25) ())) (cons (cons let (cons (protect Select46) (cons (cons tl (cons (protect V25) ())) (cons (cons if (cons (cons and (cons (cons = (cons log10 (cons (protect Select45) ()))) (cons (cons and (cons (cons cons? (cons (protect Select46) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select46) ())) ()))) ()))) ()))) (cons (cons cons (cons log10 (cons (cons cons (cons (cons hd (cons (protect Select46) ())) (cons (cons cons (cons (cons cons (cons tolerance (cons () ()))) (cons () ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons log2 (cons (protect Select45) ()))) (cons (cons and (cons (cons cons? (cons (protect Select46) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select46) ())) ()))) ()))) ()))) (cons (cons cons (cons log2 (cons (cons cons (cons (cons hd (cons (protect Select46) ())) (cons (cons cons (cons (cons cons (cons tolerance (cons () ()))) (cons () ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons loge (cons (protect Select45) ()))) (cons (cons and (cons (cons cons? (cons (protect Select46) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select46) ())) ()))) ()))) ()))) (cons (cons cons (cons loge (cons (cons cons (cons (cons hd (cons (protect Select46) ())) (cons (cons cons (cons (cons cons (cons tolerance (cons () ()))) (cons () ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons log (cons (protect Select45) ()))) (cons (cons and (cons (cons cons? (cons (protect Select46) ())) (cons (cons let (cons (protect Select27) (cons (cons tl (cons (protect Select46) ())) (cons (cons and (cons (cons cons? (cons (protect Select27) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select27) ())) ()))) ()))) ())))) ()))) ()))) (cons (cons cons (cons log (cons (cons cons (cons (cons hd (cons (protect Select46) ())) (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect Select46) ())) ())) (cons (cons cons (cons (cons cons (cons tolerance (cons () ()))) (cons () ()))) ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons sin (cons (protect Select45) ()))) (cons (cons and (cons (cons cons? (cons (protect Select46) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select46) ())) ()))) ()))) ()))) (cons (cons cons (cons sin (cons (cons cons (cons (cons hd (cons (protect Select46) ())) (cons (cons cons (cons (cons cons (cons tolerance (cons () ()))) (cons () ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons tan (cons (protect Select45) ()))) (cons (cons and (cons (cons cons? (cons (protect Select46) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select46) ())) ()))) ()))) ()))) (cons (cons cons (cons tan (cons (cons cons (cons (cons hd (cons (protect Select46) ())) (cons (cons cons (cons (cons cons (cons tolerance (cons () ()))) (cons () ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons cos (cons (protect Select45) ()))) (cons (cons and (cons (cons cons? (cons (protect Select46) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select46) ())) ()))) ()))) ()))) (cons (cons cons (cons cos (cons (cons cons (cons (cons hd (cons (protect Select46) ())) (cons (cons cons (cons (cons cons (cons tolerance (cons () ()))) (cons () ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons tanh (cons (protect Select45) ()))) (cons (cons and (cons (cons cons? (cons (protect Select46) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select46) ())) ()))) ()))) ()))) (cons (cons cons (cons tanh (cons (cons cons (cons (cons hd (cons (protect Select46) ())) (cons (cons cons (cons (cons cons (cons tolerance (cons () ()))) (cons () ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons cosh (cons (protect Select45) ()))) (cons (cons and (cons (cons cons? (cons (protect Select46) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select46) ())) ()))) ()))) ()))) (cons (cons cons (cons cosh (cons (cons cons (cons (cons hd (cons (protect Select46) ())) (cons (cons cons (cons (cons cons (cons tolerance (cons () ()))) (cons () ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons sinh (cons (protect Select45) ()))) (cons (cons and (cons (cons cons? (cons (protect Select46) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select46) ())) ()))) ()))) ()))) (cons (cons cons (cons sinh (cons (cons cons (cons (cons hd (cons (protect Select46) ())) (cons (cons cons (cons (cons cons (cons tolerance (cons () ()))) (cons () ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons sech (cons (protect Select45) ()))) (cons (cons and (cons (cons cons? (cons (protect Select46) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select46) ())) ()))) ()))) ()))) (cons (cons cons (cons sech (cons (cons cons (cons (cons hd (cons (protect Select46) ())) (cons (cons cons (cons (cons cons (cons tolerance (cons () ()))) (cons () ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons csch (cons (protect Select45) ()))) (cons (cons and (cons (cons cons? (cons (protect Select46) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select46) ())) ()))) ()))) ()))) (cons (cons cons (cons csch (cons (cons cons (cons (cons hd (cons (protect Select46) ())) (cons (cons cons (cons (cons cons (cons tolerance (cons () ()))) (cons () ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons coth (cons (protect Select45) ()))) (cons (cons and (cons (cons cons? (cons (protect Select46) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select46) ())) ()))) ()))) ()))) (cons (cons cons (cons coth (cons (cons cons (cons (cons hd (cons (protect Select46) ())) (cons (cons cons (cons (cons cons (cons tolerance (cons () ()))) (cons () ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons nthrt (cons (protect Select45) ()))) (cons (cons and (cons (cons cons? (cons (protect Select46) ())) (cons (cons let (cons (protect Select28) (cons (cons tl (cons (protect Select46) ())) (cons (cons and (cons (cons cons? (cons (protect Select28) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select28) ())) ()))) ()))) ())))) ()))) ()))) (cons (cons cons (cons nthrt (cons (cons cons (cons (cons hd (cons (protect Select46) ())) (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect Select46) ())) ())) (cons (cons cons (cons (cons cons (cons tolerance (cons () ()))) (cons () ()))) ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons sqrt (cons (protect Select45) ()))) (cons (cons and (cons (cons cons? (cons (protect Select46) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select46) ())) ()))) ()))) ()))) (cons (cons cons (cons sqrt (cons (cons cons (cons (cons hd (cons (protect Select46) ())) (cons (cons cons (cons (cons cons (cons tolerance (cons () ()))) (cons () ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons expt (cons (protect Select45) ()))) (cons (cons and (cons (cons cons? (cons (protect Select46) ())) (cons (cons let (cons (protect Select29) (cons (cons tl (cons (protect Select46) ())) (cons (cons and (cons (cons cons? (cons (protect Select29) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select29) ())) ()))) ()))) ())))) ()))) ()))) (cons (cons cons (cons expt (cons (cons cons (cons (cons hd (cons (protect Select46) ())) (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect Select46) ())) ())) (cons (cons cons (cons (cons cons (cons tolerance (cons () ()))) (cons () ()))) ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons max (cons (protect Select45) ()))) (cons (cons and (cons (cons cons? (cons (protect Select46) ())) (cons (cons let (cons (protect Select30) (cons (cons tl (cons (protect Select46) ())) (cons (cons and (cons (cons cons? (cons (protect Select30) ())) (cons (cons cons? (cons (cons tl (cons (protect Select30) ())) ())) ()))) ())))) ()))) ()))) (cons (cons cons (cons max (cons (cons cons (cons (cons hd (cons (protect Select46) ())) (cons (cons cons (cons (cons cons (cons max (cons (cons tl (cons (protect Select46) ())) ()))) (cons () ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons min (cons (protect Select45) ()))) (cons (cons and (cons (cons cons? (cons (protect Select46) ())) (cons (cons let (cons (protect Select31) (cons (cons tl (cons (protect Select46) ())) (cons (cons and (cons (cons cons? (cons (protect Select31) ())) (cons (cons cons? (cons (cons tl (cons (protect Select31) ())) ())) ()))) ())))) ()))) ()))) (cons (cons cons (cons min (cons (cons cons (cons (cons hd (cons (protect Select46) ())) (cons (cons cons (cons (cons cons (cons min (cons (cons tl (cons (protect Select46) ())) ()))) (cons () ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons tolerance (cons (protect Select45) ()))) (cons (cons and (cons (cons cons? (cons (protect Select46) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select46) ())) ()))) ()))) ()))) (cons (cons cons (cons maths.tolerance=n (cons (protect Select46) ()))) (cons (cons if (cons (cons = (cons for (cons (protect Select45) ()))) (cons (cons if (cons (cons cons? (cons (protect Select46) ())) (cons (cons let (cons (protect Select43) (cons (cons hd (cons (protect Select46) ())) (cons (cons let (cons (protect Select44) (cons (cons tl (cons (protect Select46) ())) (cons (cons if (cons (cons cons? (cons (protect Select44) ())) (cons (cons let (cons (protect Select42) (cons (cons tl (cons (protect Select44) ())) (cons (cons if (cons (cons = (cons = (cons (cons hd (cons (protect Select44) ())) ()))) (cons (cons if (cons (cons cons? (cons (protect Select42) ())) (cons (cons let (cons (protect Select40) (cons (cons hd (cons (protect Select42) ())) (cons (cons let (cons (protect Select41) (cons (cons tl (cons (protect Select42) ())) (cons (cons if (cons (cons cons? (cons (protect Select41) ())) (cons (cons let (cons (protect Select38) (cons (cons hd (cons (protect Select41) ())) (cons (cons let (cons (protect Select39) (cons (cons tl (cons (protect Select41) ())) (cons (cons if (cons (cons and (cons (cons = (cons stop (cons (protect Select38) ()))) (cons (cons cons? (cons (protect Select39) ())) ()))) (cons (cons cons (cons maths.upto (cons (cons cons (cons (protect Select40) (cons (cons cons (cons (cons hd (cons (protect Select39) ())) (cons (cons maths.process-options (cons (protect Select43) (cons (cons tl (cons (protect Select39) ())) ()))) ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons to (cons (protect Select38) ()))) (cons (cons cons? (cons (protect Select39) ())) ()))) (cons (cons cons (cons maths.upto (cons (cons cons (cons (protect Select40) (cons (cons cons (cons (cons cons (cons < (cons (cons cons (cons (cons hd (cons (protect Select39) ())) (cons () ()))) ()))) (cons (cons maths.process-options (cons (protect Select43) (cons (cons tl (cons (protect Select39) ())) ()))) ()))) ()))) ()))) (cons (cons thaw (cons (protect GoTo26) ())) ())))) ())))) ())))) ())))) (cons (cons thaw (cons (protect GoTo26) ())) ())))) ())))) ())))) (cons (cons thaw (cons (protect GoTo26) ())) ())))) (cons (cons thaw (cons (protect GoTo26) ())) ())))) ())))) (cons (cons thaw (cons (protect GoTo26) ())) ())))) ())))) ())))) (cons (cons thaw (cons (protect GoTo26) ())) ())))) (cons (cons thaw (cons (protect GoTo26) ())) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) (cons (cons thaw (cons (protect GoTo26) ())) ())))) ())))) ()))))) (do (shen.record-kl maths.process-options (cons defun (cons maths.process-options (cons (cons (protect V71) (cons (protect V72) ())) (cons (cons append (cons (cons maths.step-option (cons (protect V72) ())) (cons (cons append (cons (cons maths.constructor-option (cons (protect V72) ())) (cons (cons append (cons (cons maths.end-option (cons (protect V72) ())) (cons (cons maths.process (cons (protect V71) (cons (protect V72) ()))) ()))) ()))) ()))) ()))))) (do (shen.record-kl maths.step-option (cons defun (cons maths.step-option (cons (cons (protect V82) ()) (cons (cons if (cons (cons = (cons () (cons (protect V82) ()))) (cons (cons cons (cons (cons cons (cons + (cons (cons cons (cons 1 (cons () ()))) ()))) (cons () ()))) (cons (cons let (cons (protect GoTo83) (cons (cons freeze (cons (cons shen.f-error (cons maths.step-option ())) ())) (cons (cons if (cons (cons cons? (cons (protect V82) ())) (cons (cons let (cons (protect Select84) (cons (cons tl (cons (protect V82) ())) (cons (cons if (cons (cons and (cons (cons = (cons step (cons (cons hd (cons (protect V82) ())) ()))) (cons (cons cons? (cons (protect Select84) ())) ()))) (cons (cons cons (cons (cons hd (cons (protect Select84) ())) (cons () ()))) (cons (cons maths.step-option (cons (protect Select84) ())) ())))) ())))) (cons (cons thaw (cons (protect GoTo83) ())) ())))) ())))) ())))) ()))))) (do (shen.record-kl maths.constructor-option (cons defun (cons maths.constructor-option (cons (cons (protect V90) ()) (cons (cons if (cons (cons = (cons () (cons (protect V90) ()))) (cons (cons cons (cons (cons cons (cons fn (cons (cons cons (cons do (cons () ()))) ()))) (cons () ()))) (cons (cons let (cons (protect GoTo91) (cons (cons freeze (cons (cons shen.f-error (cons maths.constructor-option ())) ())) (cons (cons if (cons (cons cons? (cons (protect V90) ())) (cons (cons let (cons (protect Select92) (cons (cons tl (cons (protect V90) ())) (cons (cons if (cons (cons and (cons (cons = (cons constructor (cons (cons hd (cons (protect V90) ())) ()))) (cons (cons cons? (cons (protect Select92) ())) ()))) (cons (cons cons (cons (cons hd (cons (protect Select92) ())) (cons () ()))) (cons (cons maths.constructor-option (cons (protect Select92) ())) ())))) ())))) (cons (cons thaw (cons (protect GoTo91) ())) ())))) ())))) ())))) ()))))) (do (shen.record-kl maths.end-option (cons defun (cons maths.end-option (cons (cons (protect V98) ()) (cons (cons if (cons (cons = (cons () (cons (protect V98) ()))) (cons (cons cons (cons done (cons () ()))) (cons (cons let (cons (protect GoTo99) (cons (cons freeze (cons (cons shen.f-error (cons maths.end-option ())) ())) (cons (cons if (cons (cons cons? (cons (protect V98) ())) (cons (cons let (cons (protect Select100) (cons (cons tl (cons (protect V98) ())) (cons (cons if (cons (cons and (cons (cons = (cons end (cons (cons hd (cons (protect V98) ())) ()))) (cons (cons cons? (cons (protect Select100) ())) ()))) (cons (cons cons (cons (cons hd (cons (protect Select100) ())) (cons () ()))) (cons (cons maths.end-option (cons (protect Select100) ())) ())))) ())))) (cons (cons thaw (cons (protect GoTo99) ())) ())))) ())))) ())))) ()))))) (do (shen.record-kl maths.process (cons defun (cons maths.process (cons (cons (protect V104) (cons (protect V105) ())) (cons (cons let (cons (protect GoTo106) (cons (cons freeze (cons (cons shen.f-error (cons maths.process ())) ())) (cons (cons if (cons (cons cons? (cons (protect V105) ())) (cons (cons let (cons (protect Select107) (cons (cons tl (cons (protect V105) ())) (cons (cons if (cons (cons = (cons () (cons (protect Select107) ()))) (cons (cons cons (cons (cons cons (cons /. (cons (cons cons (cons (protect V104) (cons (protect V105) ()))) ()))) (cons () ()))) (cons (cons maths.process (cons (protect V104) (cons (protect Select107) ()))) ())))) ())))) (cons (cons thaw (cons (protect GoTo106) ())) ())))) ())))) ()))))) (do (shen.record-kl set-tolerance (cons defun (cons set-tolerance (cons (cons (protect V334) ()) (cons (cons set (cons maths.*tolerance* (cons (protect V334) ()))) ()))))) (do (shen.record-kl tolerance (cons defun (cons tolerance (cons () (cons (cons value (cons maths.*tolerance* ())) ()))))) (do (shen.record-kl sq (cons defun (cons sq (cons (cons (protect V346) ()) (cons (cons * (cons (protect V346) (cons (protect V346) ()))) ()))))) (do (shen.record-kl cube (cons defun (cons cube (cons (cons (protect V353) ()) (cons (cons * (cons (protect V353) (cons (cons * (cons (protect V353) (cons (protect V353) ()))) ()))) ()))))) (do (shen.record-kl for (cons defun (cons for (cons (cons (protect V360) (cons (protect V361) (cons (protect V362) (cons (protect V363) (cons (protect V364) ()))))) (cons (cons maths.for-h (cons (cons (protect V363) (cons (protect V360) ())) (cons (protect V361) (cons (protect V362) (cons (protect V363) (cons (protect V364) (cons (cons (protect V362) (cons (protect V360) ())) ()))))))) ()))))) (do (shen.record-kl maths.for-h (cons defun (cons maths.for-h (cons (cons (protect V385) (cons (protect V386) (cons (protect V387) (cons (protect V388) (cons (protect V389) (cons (protect V390) ())))))) (cons (cons cond (cons (cons (cons not (cons (cons (protect V386) (cons (protect V385) ())) ())) (cons (protect V390) ())) (cons (cons true (cons (cons maths.for-h (cons (cons (protect V388) (cons (protect V385) ())) (cons (protect V386) (cons (protect V387) (cons (protect V388) (cons (protect V389) (cons (cons (cons (protect V389) (cons (protect V390) ())) (cons (cons (protect V387) (cons (protect V385) ())) ())) ()))))))) ())) ()))) ()))))) (do (shen.record-kl maths.lazyfor-and (cons defun (cons maths.lazyfor-and (cons (cons (protect V421) (cons (protect V422) (cons (protect V423) (cons (protect V424) ())))) (cons (cons cond (cons (cons (cons not (cons (cons (protect V422) (cons (protect V421) ())) ())) (cons true ())) (cons (cons (cons (protect V423) (cons (protect V421) ())) (cons (cons maths.lazyfor-and (cons (cons (protect V424) (cons (protect V421) ())) (cons (protect V422) (cons (protect V423) (cons (protect V424) ()))))) ())) (cons (cons true (cons false ())) ())))) ()))))) (do (shen.record-kl maths.lazyfor-or (cons defun (cons maths.lazyfor-or (cons (cons (protect V438) (cons (protect V439) (cons (protect V440) (cons (protect V441) ())))) (cons (cons cond (cons (cons (cons not (cons (cons (protect V439) (cons (protect V438) ())) ())) (cons false ())) (cons (cons (cons (protect V440) (cons (protect V438) ())) (cons true ())) (cons (cons true (cons (cons maths.lazyfor-or (cons (cons (protect V441) (cons (protect V438) ())) (cons (protect V439) (cons (protect V440) (cons (protect V441) ()))))) ())) ())))) ()))))) (do (shen.record-kl max (cons defun (cons max (cons (cons (protect V455) (cons (protect V456) ())) (cons (cons cond (cons (cons (cons > (cons (protect V456) (cons (protect V455) ()))) (cons (protect V456) ())) (cons (cons true (cons (protect V455) ())) ()))) ()))))) (do (shen.record-kl min (cons defun (cons min (cons (cons (protect V466) (cons (protect V467) ())) (cons (cons cond (cons (cons (cons < (cons (protect V467) (cons (protect V466) ()))) (cons (protect V467) ())) (cons (cons true (cons (protect V466) ())) ()))) ()))))) (do (shen.record-kl expt (cons defun (cons expt (cons (cons (protect V475) (cons (protect V476) (cons (protect V477) ()))) (cons (cons if (cons (cons = (cons (protect V476) (cons 0 ()))) (cons 1 (cons (cons if (cons (cons positive? (cons (protect V476) ())) (cons (cons maths.expt-h (cons (protect V475) (cons (cons maths.n->r (cons (protect V476) (cons 1 ()))) (cons (protect V477) ())))) (cons (cons / (cons 1 (cons (cons maths.expt-h (cons (protect V475) (cons (cons maths.n->r (cons (cons ~ (cons (protect V476) ())) (cons 1 ()))) (cons (protect V477) ())))) ()))) ())))) ())))) ()))))) (do (shen.record-kl maths.n->r (cons defun (cons maths.n->r (cons (cons (protect V486) (cons (protect V487) ())) (cons (cons cond (cons (cons (cons integer? (cons (protect V486) ())) (cons (cons @p (cons (protect V486) (cons (protect V487) ()))) ())) (cons (cons true (cons (cons maths.n->r (cons (cons * (cons (protect V486) (cons 10 ()))) (cons (cons * (cons (protect V487) (cons 10 ()))) ()))) ())) ()))) ()))))) (do (shen.record-kl maths.expt-h (cons defun (cons maths.expt-h (cons (cons (protect V496) (cons (protect V497) (cons (protect V498) ()))) (cons (cons cond (cons (cons (cons tuple? (cons (protect V497) ())) (cons (cons power (cons (cons nthrt (cons (protect V496) (cons (cons snd (cons (protect V497) ())) (cons (protect V498) ())))) (cons (cons fst (cons (protect V497) ())) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons maths.expt-h ())) ())) ()))) ()))))) (do (shen.record-kl gcd (cons defun (cons gcd (cons (cons (protect V509) (cons (protect V510) ())) (cons (cons if (cons (cons and (cons (cons integer? (cons (protect V509) ())) (cons (cons integer? (cons (protect V510) ())) ()))) (cons (cons let (cons (protect W511) (cons (cons abs (cons (protect V509) ())) (cons (cons let (cons (protect W512) (cons (cons abs (cons (protect V510) ())) (cons (cons if (cons (cons > (cons (protect W511) (cons (protect W512) ()))) (cons (cons maths.gcd-help (cons (cons - (cons (protect W511) (cons (protect W512) ()))) (cons (protect W512) ()))) (cons (cons maths.gcd-help (cons (protect W511) (cons (cons - (cons (protect W512) (cons (protect W511) ()))) ()))) ())))) ())))) ())))) (cons (cons simple-error (cons "gcd expects integer inputs" ())) ())))) ()))))) (do (shen.record-kl maths.gcd-help (cons defun (cons maths.gcd-help (cons (cons (protect V520) (cons (protect V521) ())) (cons (cons if (cons (cons > (cons (protect V520) (cons (protect V521) ()))) (cons (cons maths.gcd-loop (cons (protect V520) (cons (protect V521) (cons (protect V521) ())))) (cons (cons maths.gcd-loop (cons (protect V520) (cons (protect V521) (cons (protect V520) ())))) ())))) ()))))) (do (shen.record-kl maths.gcd-loop (cons defun (cons maths.gcd-loop (cons (cons (protect V533) (cons (protect V534) (cons (protect V535) ()))) (cons (cons cond (cons (cons (cons = (cons 1 (cons (protect V535) ()))) (cons 1 ())) (cons (cons (cons and (cons (cons integer? (cons (cons / (cons (protect V533) (cons (protect V535) ()))) ())) (cons (cons integer? (cons (cons / (cons (protect V534) (cons (protect V535) ()))) ())) ()))) (cons (protect V535) ())) (cons (cons true (cons (cons maths.gcd-loop (cons (protect V533) (cons (protect V534) (cons (cons - (cons (protect V535) (cons 1 ()))) ())))) ())) ())))) ()))))) (do (shen.record-kl lcd (cons defun (cons lcd (cons (cons (protect V544) (cons (protect V545) ())) (cons (cons cond (cons (cons (cons and (cons (cons even? (cons (protect V544) ())) (cons (cons even? (cons (protect V545) ())) ()))) (cons 2 ())) (cons (cons true (cons (cons maths.lcd-loop (cons (protect V544) (cons (protect V545) (cons (cons if (cons (cons > (cons (protect V544) (cons (protect V545) ()))) (cons (protect V545) (cons (protect V544) ())))) (cons 3 ()))))) ())) ()))) ()))))) (do (shen.record-kl maths.lcd-loop (cons defun (cons maths.lcd-loop (cons (cons (protect V556) (cons (protect V557) (cons (protect V558) (cons (protect V559) ())))) (cons (cons cond (cons (cons (cons > (cons (protect V559) (cons (protect V558) ()))) (cons 1 ())) (cons (cons (cons and (cons (cons integer? (cons (cons / (cons (protect V556) (cons (protect V559) ()))) ())) (cons (cons integer? (cons (cons / (cons (protect V557) (cons (protect V559) ()))) ())) ()))) (cons (protect V559) ())) (cons (cons true (cons (cons maths.lcd-loop (cons (protect V556) (cons (protect V557) (cons (protect V558) (cons (cons + (cons 2 (cons (protect V559) ()))) ()))))) ())) ())))) ()))))) (do (shen.record-kl isqrt (cons defun (cons isqrt (cons (cons (protect V569) ()) (cons (cons maths.isqrt-loop (cons (protect V569) (cons 0 ()))) ()))))) (do (shen.record-kl maths.isqrt-loop (cons defun (cons maths.isqrt-loop (cons (cons (protect V576) (cons (protect V577) ())) (cons (cons cond (cons (cons (cons = (cons (cons * (cons (protect V577) (cons (protect V577) ()))) (cons (protect V576) ()))) (cons (protect V577) ())) (cons (cons (cons > (cons (cons * (cons (protect V577) (cons (protect V577) ()))) (cons (protect V576) ()))) (cons (cons - (cons (protect V577) (cons 1 ()))) ())) (cons (cons true (cons (cons maths.isqrt-loop (cons (protect V576) (cons (cons + (cons (protect V577) (cons 1 ()))) ()))) ())) ())))) ()))))) (do (shen.record-kl div (cons defun (cons div (cons (cons (protect V585) (cons (protect V586) ())) (cons (cons floor (cons (cons / (cons (protect V585) (cons (protect V586) ()))) ())) ()))))) (do (shen.record-kl modf (cons defun (cons modf (cons (cons (protect V594) ()) (cons (cons let (cons (protect W595) (cons (cons floor (cons (protect V594) ())) (cons (cons @p (cons (protect W595) (cons (cons - (cons (protect V594) (cons (protect W595) ()))) ()))) ())))) ()))))) (do (shen.record-kl floor (cons defun (cons floor (cons (cons (protect V602) ()) (cons (cons cond (cons (cons (cons negative? (cons (protect V602) ())) (cons (cons ~ (cons (cons ceiling (cons (cons ~ (cons (protect V602) ())) ())) ())) ())) (cons (cons true (cons (cons maths.rounding-loop (cons floor (cons (protect V602) (cons 15 (cons 0 ()))))) ())) ()))) ()))))) (do (shen.record-kl maths.rounding-loop (cons defun (cons maths.rounding-loop (cons (cons (protect V612) (cons (protect V613) (cons (protect V614) (cons (protect V615) ())))) (cons (cons cond (cons (cons (cons and (cons (cons = (cons 0 (cons (protect V614) ()))) (cons (cons = (cons (protect V613) (cons (protect V615) ()))) ()))) (cons (protect V615) ())) (cons (cons (cons and (cons (cons = (cons 0 (cons (protect V614) ()))) (cons (cons > (cons (protect V615) (cons (protect V613) ()))) ()))) (cons (cons if (cons (cons = (cons (protect V612) (cons floor ()))) (cons (cons - (cons (protect V615) (cons 1 ()))) (cons (cons if (cons (cons = (cons (protect V612) (cons ceiling ()))) (cons (protect V615) (cons (cons if (cons (cons = (cons (protect V612) (cons round ()))) (cons (cons let (cons (protect W616) (cons (cons - (cons (protect V615) (cons (protect V613) ()))) (cons (cons let (cons (protect W617) (cons (cons - (cons (protect V613) (cons (cons - (cons (protect V615) (cons 1 ()))) ()))) (cons (cons if (cons (cons > (cons (protect W616) (cons (protect W617) ()))) (cons (cons - (cons (protect V615) (cons 1 ()))) (cons (protect V615) ())))) ())))) ())))) (cons (cons simple-error (cons "error: cases exhausted" ())) ())))) ())))) ())))) ())) (cons (cons (cons > (cons (protect V613) (cons (protect V615) ()))) (cons (cons maths.rounding-loop (cons (protect V612) (cons (protect V613) (cons (protect V614) (cons (cons + (cons (protect V615) (cons (cons power (cons 10 (cons (protect V614) ()))) ()))) ()))))) ())) (cons (cons true (cons (cons maths.rounding-loop (cons (protect V612) (cons (protect V613) (cons (cons - (cons (protect V614) (cons 1 ()))) (cons (cons - (cons (protect V615) (cons (cons power (cons 10 (cons (protect V614) ()))) ()))) ()))))) ())) ()))))) ()))))) (do (shen.record-kl maths.float->pair (cons defun (cons maths.float->pair (cons (cons (protect V628) ()) (cons (cons let (cons (protect W629) (cons (cons floor (cons (protect V628) ())) (cons (cons @p (cons (protect W629) (cons (cons - (cons (protect V628) (cons (protect W629) ()))) ()))) ())))) ()))))) (do (shen.record-kl ceiling (cons defun (cons ceiling (cons (cons (protect V636) ()) (cons (cons cond (cons (cons (cons negative? (cons (protect V636) ())) (cons (cons ~ (cons (cons floor (cons (cons ~ (cons (protect V636) ())) ())) ())) ())) (cons (cons true (cons (cons maths.rounding-loop (cons ceiling (cons (protect V636) (cons 15 (cons 0 ()))))) ())) ()))) ()))))) (do (shen.record-kl round (cons defun (cons round (cons (cons (protect V643) ()) (cons (cons cond (cons (cons (cons negative? (cons (protect V643) ())) (cons (cons ~ (cons (cons round (cons (cons ~ (cons (protect V643) ())) ())) ())) ())) (cons (cons true (cons (cons maths.rounding-loop (cons round (cons (protect V643) (cons 15 (cons 0 ()))))) ())) ()))) ()))))) (do (shen.record-kl mod (cons defun (cons mod (cons (cons (protect V650) (cons (protect V651) ())) (cons (cons let (cons (protect W652) (cons (cons / (cons (protect V650) (cons (protect V651) ()))) (cons (cons let (cons (protect W653) (cons (cons floor (cons (protect W652) ())) (cons (cons if (cons (cons and (cons (cons integer? (cons (protect V650) ())) (cons (cons integer? (cons (protect V651) ())) ()))) (cons (cons round (cons (cons * (cons (protect V651) (cons (cons - (cons (protect W652) (cons (protect W653) ()))) ()))) ())) (cons (cons * (cons (protect V651) (cons (cons - (cons (protect W652) (cons (protect W653) ()))) ()))) ())))) ())))) ())))) ()))))) (do (shen.record-kl lcm (cons defun (cons lcm (cons (cons (protect V661) ()) (cons (cons let (cons (protect W662) (cons (cons maths.greatest (cons (protect V661) ())) (cons (cons maths.lcm-h (cons (protect W662) (cons (protect W662) (cons (protect V661) ())))) ())))) ()))))) (do (shen.record-kl maths.greatest (cons defun (cons maths.greatest (cons (cons (protect V671) ()) (cons (cons cond (cons (cons (cons and (cons (cons cons? (cons (protect V671) ())) (cons (cons = (cons () (cons (cons tl (cons (protect V671) ())) ()))) ()))) (cons (cons hd (cons (protect V671) ())) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V671) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V671) ())) ())) (cons (cons > (cons (cons hd (cons (protect V671) ())) (cons (cons hd (cons (cons tl (cons (protect V671) ())) ())) ()))) ()))) ()))) (cons (cons maths.greatest (cons (cons cons (cons (cons hd (cons (protect V671) ())) (cons (cons tl (cons (cons tl (cons (protect V671) ())) ())) ()))) ())) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V671) ())) (cons (cons cons? (cons (cons tl (cons (protect V671) ())) ())) ()))) (cons (cons maths.greatest (cons (cons tl (cons (protect V671) ())) ())) ())) (cons (cons true (cons (cons shen.f-error (cons maths.greatest ())) ())) ()))))) ()))))) (do (shen.record-kl maths.lcm-h (cons defun (cons maths.lcm-h (cons (cons (protect V680) (cons (protect V681) (cons (protect V682) ()))) (cons (cons cond (cons (cons (cons maths.lcm? (cons (protect V680) (cons (protect V682) ()))) (cons (protect V680) ())) (cons (cons true (cons (cons maths.lcm-h (cons (cons + (cons (protect V680) (cons (protect V681) ()))) (cons (protect V681) (cons (protect V682) ())))) ())) ()))) ()))))) (do (shen.record-kl maths.lcm? (cons defun (cons maths.lcm? (cons (cons (protect V693) (cons (protect V694) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V694) ()))) (cons true ())) (cons (cons (cons cons? (cons (protect V694) ())) (cons (cons and (cons (cons integer? (cons (cons / (cons (protect V693) (cons (cons hd (cons (protect V694) ())) ()))) ())) (cons (cons maths.lcm? (cons (protect V693) (cons (cons tl (cons (protect V694) ())) ()))) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons maths.lcm? ())) ())) ())))) ()))))) (do (shen.record-kl random (cons defun (cons random (cons (cons (protect V702) (cons (protect V703) ())) (cons (cons let (cons (protect W704) (cons (cons maths.bbs (cons (cons value (cons maths.*seed* ())) ())) (cons (cons let (cons (protect W705) (cons (cons set (cons maths.*seed* (cons (protect W704) ()))) (cons (cons let (cons (protect W706) (cons (cons min (cons (protect V702) (cons (protect V703) ()))) (cons (cons + (cons (protect W706) (cons (cons mod (cons (protect W705) (cons (cons abs (cons (cons + (cons 1 (cons (cons - (cons (protect V703) (cons (protect V702) ()))) ()))) ())) ()))) ()))) ())))) ())))) ())))) ()))))) (do (shen.record-kl min (cons defun (cons min (cons (cons (protect V716) (cons (protect V717) ())) (cons (cons cond (cons (cons (cons > (cons (protect V716) (cons (protect V717) ()))) (cons (protect V717) ())) (cons (cons true (cons (protect V716) ())) ()))) ()))))) (do (shen.record-kl reseed (cons defun (cons reseed (cons () (cons (cons set (cons maths.*seed* (cons (cons get-time (cons unix ())) ()))) ()))))) (do (shen.record-kl maths.bbs (cons defun (cons maths.bbs (cons (cons (protect V730) ()) (cons (cons let (cons (protect W731) (cons (cons * (cons 1201 (cons 1213 ()))) (cons (cons mod (cons (cons * (cons (protect V730) (cons (protect V730) ()))) (cons (protect W731) ()))) ())))) ()))))) (do (shen.record-kl ~ (cons defun (cons ~ (cons (cons (protect V738) ()) (cons (cons - (cons 0 (cons (protect V738) ()))) ()))))) (do (shen.record-kl positive? (cons defun (cons positive? (cons (cons (protect V745) ()) (cons (cons > (cons (protect V745) (cons 0 ()))) ()))))) (do (shen.record-kl negative? (cons defun (cons negative? (cons (cons (protect V752) ()) (cons (cons < (cons (protect V752) (cons 0 ()))) ()))))) (do (shen.record-kl natural? (cons defun (cons natural? (cons (cons (protect V759) ()) (cons (cons cond (cons (cons (cons = (cons 0 (cons (protect V759) ()))) (cons true ())) (cons (cons true (cons (cons and (cons (cons integer? (cons (protect V759) ())) (cons (cons positive? (cons (protect V759) ())) ()))) ())) ()))) ()))))) (do (shen.record-kl converge (cons defun (cons converge (cons (cons (protect V766) (cons (protect V767) (cons (protect V768) ()))) (cons (cons maths.converge-help (cons (protect V767) (cons (cons (protect V767) (cons (protect V766) ())) (cons (protect V766) (cons (protect V768) ()))))) ()))))) (do (shen.record-kl maths.converge-help (cons defun (cons maths.converge-help (cons (cons (protect V785) (cons (protect V786) (cons (protect V787) (cons (protect V788) ())))) (cons (cons cond (cons (cons (cons (cons (protect V788) (cons (protect V787) ())) (cons (protect V786) ())) (cons (protect V786) ())) (cons (cons true (cons (cons maths.converge-help (cons (protect V785) (cons (cons (protect V785) (cons (protect V786) ())) (cons (protect V786) (cons (protect V788) ()))))) ())) ()))) ()))))) (do (shen.record-kl nthrt (cons defun (cons nthrt (cons (cons (protect V808) (cons (protect V809) (cons (protect V810) ()))) (cons (cons cond (cons (cons (cons positive? (cons (protect V808) ())) (cons (cons converge (cons (protect V808) (cons (cons lambda (cons (protect Z811) (cons (cons maths.compute-nthrt (cons (protect V808) (cons (protect Z811) (cons (protect V809) (cons (protect V810) ()))))) ()))) (cons (cons approx (cons (protect V810) ())) ())))) ())) (cons (cons true (cons (cons simple-error (cons (cons cn (cons "nthrt: negA must be a positive numberneg%" (cons "" ()))) ())) ())) ()))) ()))))) (do (shen.record-kl sqrt (cons defun (cons sqrt (cons (cons (protect V820) (cons (protect V821) ())) (cons (cons nthrt (cons (protect V820) (cons 2 (cons (protect V821) ())))) ()))))) (do (shen.record-kl maths.compute-nthrt (cons defun (cons maths.compute-nthrt (cons (cons (protect V829) (cons (protect V830) (cons (protect V831) (cons (protect V832) ())))) (cons (cons let (cons (protect W833) (cons (cons / (cons 1 (cons (protect V831) ()))) (cons (cons let (cons (protect W834) (cons (cons * (cons (cons - (cons (protect V831) (cons 1 ()))) (cons (protect V830) ()))) (cons (cons let (cons (protect W835) (cons (cons expt (cons (protect V830) (cons (cons - (cons (protect V831) (cons 1 ()))) (cons (protect V832) ())))) (cons (cons let (cons (protect W836) (cons (cons / (cons (protect V829) (cons (protect W835) ()))) (cons (cons let (cons (protect W837) (cons (cons + (cons (protect W834) (cons (protect W836) ()))) (cons (cons * (cons (protect W833) (cons (protect W837) ()))) ())))) ())))) ())))) ())))) ())))) ()))))) (do (shen.record-kl approx (cons defun (cons approx (cons (cons (protect V847) ()) (cons (cons lambda (cons (protect Z848) (cons (cons lambda (cons (protect Z849) (cons (cons let (cons (protect W850) (cons (cons - (cons (protect Z848) (cons (protect Z849) ()))) (cons (cons >= (cons (protect V847) (cons (cons abs (cons (protect W850) ())) ()))) ())))) ()))) ()))) ()))))) (do (shen.record-kl abs (cons defun (cons abs (cons (cons (protect V857) ()) (cons (cons if (cons (cons >= (cons (protect V857) (cons 0 ()))) (cons (protect V857) (cons (cons - (cons 0 (cons (protect V857) ()))) ())))) ()))))) (do (shen.record-kl series (cons defun (cons series (cons (cons (protect V864) (cons (protect V865) (cons (protect V866) (cons (protect V867) ())))) (cons (cons maths.series-h (cons (cons + (cons (protect V864) (cons 1 ()))) (cons (protect V866) (cons (protect V865) (cons (cons (protect V865) (cons (protect V864) ())) (cons (protect V867) ())))))) ()))))) (do (shen.record-kl maths.series-h (cons defun (cons maths.series-h (cons (cons (protect V879) (cons (protect V880) (cons (protect V881) (cons (protect V882) (cons (protect V883) ()))))) (cons (cons let (cons (protect W884) (cons (cons (cons (protect V883) (cons (cons (protect V881) (cons (protect V879) ())) ())) (cons (protect V882) ())) (cons (cons if (cons (cons <= (cons (cons abs (cons (cons - (cons (protect V882) (cons (protect W884) ()))) ())) (cons (protect V880) ()))) (cons (protect W884) (cons (cons maths.series-h (cons (cons + (cons (protect V879) (cons 1 ()))) (cons (protect V880) (cons (protect V881) (cons (protect W884) (cons (protect V883) ())))))) ())))) ())))) ()))))) (do (shen.record-kl product (cons defun (cons product (cons (cons (protect V898) (cons (protect V899) (cons (protect V900) ()))) (cons (cons series (cons (protect V898) (cons (protect V899) (cons (protect V900) (cons (cons lambda (cons (protect Z901) (cons (cons lambda (cons (protect Z902) (cons (cons * (cons (protect Z901) (cons (protect Z902) ()))) ()))) ()))) ()))))) ()))))) (do (shen.record-kl summation (cons defun (cons summation (cons (cons (protect V914) (cons (protect V915) (cons (protect V916) ()))) (cons (cons series (cons (protect V914) (cons (protect V915) (cons (protect V916) (cons (cons lambda (cons (protect Z917) (cons (cons lambda (cons (protect Z918) (cons (cons + (cons (protect Z917) (cons (protect Z918) ()))) ()))) ()))) ()))))) ()))))) (do (shen.record-kl odd? (cons defun (cons odd? (cons (cons (protect V928) ()) (cons (cons and (cons (cons integer? (cons (protect V928) ())) (cons (cons not (cons (cons integer? (cons (cons / (cons (protect V928) (cons 2 ()))) ())) ())) ()))) ()))))) (do (shen.record-kl even? (cons defun (cons even? (cons (cons (protect V935) ()) (cons (cons and (cons (cons integer? (cons (protect V935) ())) (cons (cons integer? (cons (cons / (cons (protect V935) (cons 2 ()))) ())) ()))) ()))))) (do (shen.record-kl maths.compute-sine (cons defun (cons maths.compute-sine (cons (cons (protect V942) (cons (protect V943) ())) (cons (cons let (cons (protect W944) (cons (cons + (cons (cons * (cons 2 (cons (protect V943) ()))) (cons 1 ()))) (cons (cons let (cons (protect W945) (cons (cons * (cons (cons power (cons -1 (cons (protect V943) ()))) (cons (cons power (cons (protect V942) (cons (protect W944) ()))) ()))) (cons (cons let (cons (protect W946) (cons (cons factorial (cons (protect W944) ())) (cons (cons / (cons (protect W945) (cons (protect W946) ()))) ())))) ())))) ())))) ()))))) (do (shen.record-kl maths.compute-cos (cons defun (cons maths.compute-cos (cons (cons (protect V955) (cons (protect V956) ())) (cons (cons let (cons (protect W957) (cons (cons * (cons 2 (cons (protect V956) ()))) (cons (cons let (cons (protect W958) (cons (cons * (cons (cons power (cons -1 (cons (protect V956) ()))) (cons (cons power (cons (protect V955) (cons (protect W957) ()))) ()))) (cons (cons let (cons (protect W959) (cons (cons factorial (cons (protect W957) ())) (cons (cons / (cons (protect W958) (cons (protect W959) ()))) ())))) ())))) ())))) ()))))) (do (shen.record-kl cos (cons defun (cons cos (cons (cons (protect V969) (cons (protect V970) ())) (cons (cons let (cons (protect W971) (cons (cons radians (cons (protect V969) ())) (cons (cons summation (cons 0 (cons (cons lambda (cons (protect Z972) (cons (cons maths.compute-cos (cons (protect W971) (cons (protect Z972) ()))) ()))) (cons (protect V970) ())))) ())))) ()))))) (do (shen.record-kl sin (cons defun (cons sin (cons (cons (protect V981) (cons (protect V982) ())) (cons (cons let (cons (protect W983) (cons (cons radians (cons (protect V981) ())) (cons (cons summation (cons 0 (cons (cons lambda (cons (protect Z984) (cons (cons maths.compute-sine (cons (protect W983) (cons (protect Z984) ()))) ()))) (cons (protect V982) ())))) ())))) ()))))) (do (shen.record-kl tan (cons defun (cons tan (cons (cons (protect V992) (cons (protect V993) ())) (cons (cons / (cons (cons sin (cons (protect V992) (cons (protect V993) ()))) (cons (cons cos (cons (protect V992) (cons (protect V993) ()))) ()))) ()))))) (do (shen.record-kl radians (cons defun (cons radians (cons (cons (protect V1002) ()) (cons (cons * (cons (cons / (cons (protect V1002) (cons 180 ()))) (cons (cons pi ()) ()))) ()))))) (do (shen.record-kl g (cons defun (cons g (cons () (cons 1.6180339887498 ()))))) (do (shen.record-kl pi (cons defun (cons pi (cons () (cons 3.1415926535897 ()))))) (do (shen.record-kl e (cons defun (cons e (cons () (cons 2.7182818284590002 ()))))) (do (shen.record-kl tan30 (cons defun (cons tan30 (cons () (cons 0.5773502691896 ()))))) (do (shen.record-kl cos30 (cons defun (cons cos30 (cons () (cons 0.8660254037844001 ()))))) (do (shen.record-kl cos45 (cons defun (cons cos45 (cons () (cons 0.70710678118651 ()))))) (do (shen.record-kl sin45 (cons defun (cons sin45 (cons () (cons 0.7071067811865 ()))))) (do (shen.record-kl sqrt2 (cons defun (cons sqrt2 (cons () (cons 1.4142135623731 ()))))) (do (shen.record-kl tan60 (cons defun (cons tan60 (cons () (cons 1.7320508075692 ()))))) (do (shen.record-kl maths.sin60 (cons defun (cons maths.sin60 (cons () (cons 0.8660254037844001 ()))))) (do (shen.record-kl sin120 (cons defun (cons sin120 (cons () (cons 0.8660254037844001 ()))))) (do (shen.record-kl tan120 (cons defun (cons tan120 (cons () (cons -1.7320508075692 ()))))) (do (shen.record-kl sin135 (cons defun (cons sin135 (cons () (cons 0.7071067811865 ()))))) (do (shen.record-kl cos135 (cons defun (cons cos135 (cons () (cons -0.7071067811865 ()))))) (do (shen.record-kl cos150 (cons defun (cons cos150 (cons () (cons -0.8660254037844001 ()))))) (do (shen.record-kl tan150 (cons defun (cons tan150 (cons () (cons -0.5773502691905 ()))))) (do (shen.record-kl cos210 (cons defun (cons cos210 (cons () (cons -0.8660254037844001 ()))))) (do (shen.record-kl tan210 (cons defun (cons tan210 (cons () (cons 0.5773502691905 ()))))) (do (shen.record-kl sin225 (cons defun (cons sin225 (cons () (cons -0.7071067811865 ()))))) (do (shen.record-kl cos225 (cons defun (cons cos225 (cons () (cons -0.7071067811865 ()))))) (do (shen.record-kl sin240 (cons defun (cons sin240 (cons () (cons -0.8660254037844001 ()))))) (do (shen.record-kl tan240 (cons defun (cons tan240 (cons () (cons 1.7320508075692 ()))))) (do (shen.record-kl sin300 (cons defun (cons sin300 (cons () (cons -0.8660254037844001 ()))))) (do (shen.record-kl tan300 (cons defun (cons tan300 (cons () (cons -1.7320508075692 ()))))) (do (shen.record-kl sin315 (cons defun (cons sin315 (cons () (cons -0.7071067811865 ()))))) (do (shen.record-kl cos315 (cons defun (cons cos315 (cons () (cons 0.7071067811865 ()))))) (do (shen.record-kl cos330 (cons defun (cons cos330 (cons () (cons 0.8660254037844001 ()))))) (do (shen.record-kl tan330 (cons defun (cons tan330 (cons () (cons -0.5773502691905 ()))))) (do (shen.record-kl coth (cons defun (cons coth (cons (cons (protect V1150) (cons (protect V1151) ())) (cons (cons let (cons (protect W1152) (cons (cons e ()) (cons (cons let (cons (protect W1153) (cons (cons expt (cons (protect W1152) (cons (cons ~ (cons (cons * (cons 2 (cons (protect V1150) ()))) ())) (cons (protect V1151) ())))) (cons (cons / (cons (cons + (cons 1 (cons (protect W1153) ()))) (cons (cons - (cons 1 (cons (protect W1153) ()))) ()))) ())))) ())))) ()))))) (do (shen.record-kl sinh (cons defun (cons sinh (cons (cons (protect V1162) (cons (protect V1163) ())) (cons (cons let (cons (protect W1164) (cons (cons e ()) (cons (cons let (cons (protect W1165) (cons (cons expt (cons (protect W1164) (cons (protect V1162) (cons (protect V1163) ())))) (cons (cons let (cons (protect W1166) (cons (cons expt (cons (protect W1164) (cons (cons ~ (cons (protect V1162) ())) (cons (protect V1163) ())))) (cons (cons let (cons (protect W1167) (cons (cons - (cons (protect W1165) (cons (protect W1166) ()))) (cons (cons / (cons (protect W1167) (cons 2 ()))) ())))) ())))) ())))) ())))) ()))))) (do (shen.record-kl cosh (cons defun (cons cosh (cons (cons (protect V1175) (cons (protect V1176) ())) (cons (cons let (cons (protect W1177) (cons (cons e ()) (cons (cons let (cons (protect W1178) (cons (cons expt (cons (protect W1177) (cons (protect V1175) (cons (protect V1176) ())))) (cons (cons let (cons (protect W1179) (cons (cons expt (cons (protect W1177) (cons (cons ~ (cons (protect V1175) ())) (cons (protect V1176) ())))) (cons (cons let (cons (protect W1180) (cons (cons + (cons (protect W1178) (cons (protect W1179) ()))) (cons (cons / (cons (protect W1180) (cons 2 ()))) ())))) ())))) ())))) ())))) ()))))) (do (shen.record-kl tanh (cons defun (cons tanh (cons (cons (protect V1188) (cons (protect V1189) ())) (cons (cons / (cons (cons sinh (cons (protect V1188) (cons (protect V1189) ()))) (cons (cons cosh (cons (protect V1188) (cons (protect V1189) ()))) ()))) ()))))) (do (shen.record-kl sech (cons defun (cons sech (cons (cons (protect V1198) (cons (protect V1199) ())) (cons (cons / (cons 1 (cons (cons cosh (cons (protect V1198) (cons (protect V1199) ()))) ()))) ()))))) (do (shen.record-kl csch (cons defun (cons csch (cons (cons (protect V1207) (cons (protect V1208) ())) (cons (cons / (cons 1 (cons (cons sinh (cons (protect V1207) (cons (protect V1208) ()))) ()))) ()))))) (do (shen.record-kl power (cons defun (cons power (cons (cons (protect V1218) (cons (protect V1219) ())) (cons (cons cond (cons (cons (cons = (cons 0 (cons (protect V1219) ()))) (cons 1 ())) (cons (cons true (cons (cons * (cons (protect V1218) (cons (cons power (cons (protect V1218) (cons (cons - (cons (protect V1219) (cons 1 ()))) ()))) ()))) ())) ()))) ()))))) (do (shen.record-kl factorial (cons defun (cons factorial (cons (cons (protect V1227) ()) (cons (cons cond (cons (cons (cons = (cons 0 (cons (protect V1227) ()))) (cons 1 ())) (cons (cons true (cons (cons * (cons (protect V1227) (cons (cons factorial (cons (cons - (cons (protect V1227) (cons 1 ()))) ())) ()))) ())) ()))) ()))))) (do (shen.record-kl prime? (cons defun (cons prime? (cons (cons (protect V1234) ()) (cons (cons cond (cons (cons (cons = (cons 2 (cons (protect V1234) ()))) (cons true ())) (cons (cons (cons even? (cons (protect V1234) ())) (cons false ())) (cons (cons true (cons (cons maths.prime-h (cons (protect V1234) (cons (cons isqrt (cons (protect V1234) ())) (cons 3 ())))) ())) ())))) ()))))) (do (shen.record-kl maths.prime-h (cons defun (cons maths.prime-h (cons (cons (protect V1242) (cons (protect V1243) (cons (protect V1244) ()))) (cons (cons cond (cons (cons (cons > (cons (protect V1244) (cons (protect V1243) ()))) (cons true ())) (cons (cons (cons integer? (cons (cons / (cons (protect V1242) (cons (protect V1244) ()))) ())) (cons false ())) (cons (cons true (cons (cons maths.prime-h (cons (protect V1242) (cons (protect V1243) (cons (cons + (cons (protect V1244) (cons 2 ()))) ())))) ())) ())))) ()))))) (do (shen.record-kl maths.sign (cons defun (cons maths.sign (cons (cons (protect V1255) ()) (cons (cons cond (cons (cons (cons = (cons 0 (cons (protect V1255) ()))) (cons 0 ())) (cons (cons (cons positive? (cons (protect V1255) ())) (cons 1 ())) (cons (cons true (cons -1 ())) ())))) ()))))) (do (shen.record-kl log (cons defun (cons log (cons (cons (protect V1262) (cons (protect V1263) (cons (protect V1264) ()))) (cons (cons / (cons (cons log10 (cons (protect V1262) (cons (protect V1264) ()))) (cons (cons log10 (cons (protect V1263) (cons (protect V1264) ()))) ()))) ()))))) (do (shen.record-kl loge (cons defun (cons loge (cons (cons (protect V1274) (cons (protect V1275) ())) (cons (cons log (cons (protect V1274) (cons (cons e ()) (cons (protect V1275) ())))) ()))))) (do (shen.record-kl log2 (cons defun (cons log2 (cons (cons (protect V1283) (cons (protect V1284) ())) (cons (cons log (cons (protect V1283) (cons 2 (cons (protect V1284) ())))) ()))))) (do (shen.record-kl log10 (cons defun (cons log10 (cons (cons (protect V1292) (cons (protect V1293) ())) (cons (cons if (cons (cons >= (cons (protect V1292) (cons 1 ()))) (cons (cons maths.log10+ (cons (protect V1292) (cons (protect V1293) ()))) (cons (cons ~ (cons (cons maths.log10+ (cons (cons / (cons 1 (cons (protect V1292) ()))) (cons (protect V1293) ()))) ())) ())))) ()))))) (do (shen.record-kl maths.log10+ (cons defun (cons maths.log10+ (cons (cons (protect V1301) (cons (protect V1302) ())) (cons (cons cond (cons (cons (cons <= (cons (cons abs (cons (protect V1301) ())) (cons (protect V1302) ()))) (cons 0 ())) (cons (cons (cons >= (cons (protect V1301) (cons 10 ()))) (cons (cons + (cons 1 (cons (cons maths.log10+ (cons (cons / (cons (protect V1301) (cons 10 ()))) (cons (protect V1302) ()))) ()))) ())) (cons (cons true (cons (cons * (cons 0.1 (cons (cons maths.log10+ (cons (cons power (cons (protect V1301) (cons 10 ()))) (cons (cons * (cons 10 (cons (protect V1302) ()))) ()))) ()))) ())) ())))) ()))))) (do (shen.record-kl maths.upto (cons defun (cons maths.upto (cons (cons (protect V1314) (cons (protect V1315) (cons (protect V1316) (cons (protect V1317) (cons (protect V1318) (cons (protect V1319) ())))))) (cons (cons cond (cons (cons (cons (protect V1315) (cons (protect V1314) ())) (cons (protect V1318) ())) (cons (cons true (cons (cons (cons (protect V1317) (cons (cons (protect V1319) (cons (protect V1314) ())) ())) (cons (cons maths.upto (cons (cons (protect V1316) (cons (protect V1314) ())) (cons (protect V1315) (cons (protect V1316) (cons (protect V1317) (cons (protect V1318) (cons (protect V1319) ()))))))) ())) ())) ()))) ()))))) (do (shen.record-kl r# (cons defun (cons r# (cons (cons (protect V1348) (cons (protect V1349) ())) (cons (cons cond (cons (cons (cons and (cons (cons integer? (cons (protect V1348) ())) (cons (cons integer? (cons (protect V1349) ())) ()))) (cons (cons let (cons (protect W1350) (cons (cons absvector (cons 3 ())) (cons (cons let (cons (protect W1351) (cons (cons address-> (cons (protect W1350) (cons 0 (cons rational.print-rational ())))) (cons (cons let (cons (protect W1352) (cons (cons address-> (cons (protect W1350) (cons 1 (cons (protect V1348) ())))) (cons (cons let (cons (protect W1353) (cons (cons address-> (cons (protect W1350) (cons 2 (cons (protect V1349) ())))) (cons (protect W1350) ())))) ())))) ())))) ())))) ())) (cons (cons true (cons (cons simple-error (cons (cons cn (cons "numerator " (cons (cons shen.app (cons (protect V1348) (cons (cons cn (cons " and divisor " (cons (cons shen.app (cons (protect V1349) (cons " must be integers +" (cons shen.s ())))) ()))) (cons shen.s ())))) ()))) ())) ())) ()))) ()))))) (do (shen.record-kl rational.print-rational (cons defun (cons rational.print-rational (cons (cons (protect V1359) ()) (cons (cons shen.app (cons (cons <-address (cons (protect V1359) (cons 1 ()))) (cons (cons cn (cons "/" (cons (cons shen.app (cons (cons <-address (cons (protect V1359) (cons 2 ()))) (cons "" (cons shen.s ())))) ()))) (cons shen.s ())))) ()))))) (do (shen.record-kl rational? (cons defun (cons rational? (cons (cons (protect V1362) ()) (cons (cons trap-error (cons (cons and (cons (cons absvector? (cons (protect V1362) ())) (cons (cons and (cons (cons = (cons (cons <-address (cons (protect V1362) (cons 0 ()))) (cons rational.print-rational ()))) (cons (cons and (cons (cons integer? (cons (cons <-address (cons (protect V1362) (cons 1 ()))) ())) (cons (cons integer? (cons (cons <-address (cons (protect V1362) (cons 2 ()))) ())) ()))) ()))) ()))) (cons (cons lambda (cons (protect Z1363) (cons false ()))) ()))) ()))))) (do (shen.record-kl numerator (cons defun (cons numerator (cons (cons (protect V1365) ()) (cons (cons <-address (cons (protect V1365) (cons 1 ()))) ()))))) (do (shen.record-kl denominator (cons defun (cons denominator (cons (cons (protect V1367) ()) (cons (cons <-address (cons (protect V1367) (cons 2 ()))) ()))))) (do (shen.record-kl r-op1 (cons defun (cons r-op1 (cons (cons (protect V1429) (cons (protect V1430) ())) (cons (cons n->r (cons (cons (protect V1429) (cons (cons r->n (cons (protect V1430) ())) ())) ())) ()))))) (do (shen.record-kl r-op2 (cons defun (cons r-op2 (cons (cons (protect V1439) (cons (protect V1440) (cons (protect V1441) ()))) (cons (cons n->r (cons (cons (cons (protect V1439) (cons (cons r->n (cons (protect V1440) ())) ())) (cons (cons r->n (cons (protect V1441) ())) ())) ())) ()))))) (do (shen.record-kl r->n (cons defun (cons r->n (cons (cons (protect V1452) ()) (cons (cons / (cons (cons numerator (cons (protect V1452) ())) (cons (cons denominator (cons (protect V1452) ())) ()))) ()))))) (do (shen.record-kl r->pair (cons defun (cons r->pair (cons (cons (protect V1460) ()) (cons (cons @p (cons (cons numerator (cons (protect V1460) ())) (cons (cons denominator (cons (protect V1460) ())) ()))) ()))))) (do (shen.record-kl n->r (cons defun (cons n->r (cons (cons (protect V1468) ()) (cons (cons let (cons (protect W1469) (cons (cons maths.n->r (cons (protect V1468) (cons 1 ()))) (cons (cons r# (cons (cons fst (cons (protect W1469) ())) (cons (cons snd (cons (protect W1469) ())) ()))) ())))) ()))))) (do (shen.record-kl r-reduce (cons defun (cons r-reduce (cons (cons (protect V1477) ()) (cons (cons rational.r-reduce-help (cons (cons numerator (cons (protect V1477) ())) (cons (cons denominator (cons (protect V1477) ())) ()))) ()))))) (do (shen.record-kl rational.r-reduce-help (cons defun (cons rational.r-reduce-help (cons (cons (protect V1485) (cons (protect V1486) ())) (cons (cons let (cons (protect W1487) (cons (cons lcd (cons (protect V1485) (cons (protect V1486) ()))) (cons (cons if (cons (cons = (cons (protect W1487) (cons 1 ()))) (cons (cons r# (cons (protect V1485) (cons (protect V1486) ()))) (cons (cons rational.r-reduce-help (cons (cons / (cons (protect V1485) (cons (protect W1487) ()))) (cons (cons / (cons (protect V1486) (cons (protect W1487) ()))) ()))) ())))) ())))) ()))))) (do (shen.record-kl r= (cons defun (cons r= (cons (cons (protect V1496) (cons (protect V1497) ())) (cons (cons let (cons (protect W1498) (cons (cons numerator (cons (protect V1496) ())) (cons (cons let (cons (protect W1499) (cons (cons denominator (cons (protect V1496) ())) (cons (cons let (cons (protect W1500) (cons (cons numerator (cons (protect V1497) ())) (cons (cons let (cons (protect W1501) (cons (cons denominator (cons (protect V1497) ())) (cons (cons = (cons (cons * (cons (protect W1498) (cons (protect W1501) ()))) (cons (cons * (cons (protect W1499) (cons (protect W1500) ()))) ()))) ())))) ())))) ())))) ())))) ()))))) (do (shen.record-kl r< (cons defun (cons r< (cons (cons (protect V1510) (cons (protect V1511) ())) (cons (cons let (cons (protect W1512) (cons (cons numerator (cons (protect V1510) ())) (cons (cons let (cons (protect W1513) (cons (cons denominator (cons (protect V1510) ())) (cons (cons let (cons (protect W1514) (cons (cons numerator (cons (protect V1511) ())) (cons (cons let (cons (protect W1515) (cons (cons denominator (cons (protect V1511) ())) (cons (cons < (cons (cons * (cons (protect W1512) (cons (protect W1515) ()))) (cons (cons * (cons (protect W1513) (cons (protect W1514) ()))) ()))) ())))) ())))) ())))) ())))) ()))))) (do (shen.record-kl r> (cons defun (cons r> (cons (cons (protect V1524) (cons (protect V1525) ())) (cons (cons not (cons (cons or (cons (cons r= (cons (protect V1524) (cons (protect V1525) ()))) (cons (cons r< (cons (protect V1524) (cons (protect V1525) ()))) ()))) ())) ()))))) (do (shen.record-kl r>= (cons defun (cons r>= (cons (cons (protect V1533) (cons (protect V1534) ())) (cons (cons or (cons (cons r= (cons (protect V1533) (cons (protect V1534) ()))) (cons (cons r> (cons (protect V1533) (cons (protect V1534) ()))) ()))) ()))))) (do (shen.record-kl r<= (cons defun (cons r<= (cons (cons (protect V1542) (cons (protect V1543) ())) (cons (cons or (cons (cons r= (cons (protect V1542) (cons (protect V1543) ()))) (cons (cons r< (cons (protect V1542) (cons (protect V1543) ()))) ()))) ()))))) (do (shen.record-kl r+ (cons defun (cons r+ (cons (cons (protect V1551) (cons (protect V1552) ())) (cons (cons let (cons (protect W1553) (cons (cons numerator (cons (protect V1551) ())) (cons (cons let (cons (protect W1554) (cons (cons denominator (cons (protect V1551) ())) (cons (cons let (cons (protect W1555) (cons (cons numerator (cons (protect V1552) ())) (cons (cons let (cons (protect W1556) (cons (cons denominator (cons (protect V1552) ())) (cons (cons r# (cons (cons + (cons (cons * (cons (protect W1553) (cons (protect W1556) ()))) (cons (cons * (cons (protect W1554) (cons (protect W1555) ()))) ()))) (cons (cons * (cons (protect W1554) (cons (protect W1556) ()))) ()))) ())))) ())))) ())))) ())))) ()))))) (do (shen.record-kl r- (cons defun (cons r- (cons (cons (protect V1566) (cons (protect V1567) ())) (cons (cons let (cons (protect W1568) (cons (cons numerator (cons (protect V1566) ())) (cons (cons let (cons (protect W1569) (cons (cons denominator (cons (protect V1566) ())) (cons (cons let (cons (protect W1570) (cons (cons numerator (cons (protect V1567) ())) (cons (cons let (cons (protect W1571) (cons (cons denominator (cons (protect V1567) ())) (cons (cons r# (cons (cons - (cons (cons * (cons (protect W1568) (cons (protect W1571) ()))) (cons (cons * (cons (protect W1569) (cons (protect W1570) ()))) ()))) (cons (cons * (cons (protect W1569) (cons (protect W1571) ()))) ()))) ())))) ())))) ())))) ())))) ()))))) (do (shen.record-kl r* (cons defun (cons r* (cons (cons (protect V1581) (cons (protect V1582) ())) (cons (cons let (cons (protect W1583) (cons (cons numerator (cons (protect V1581) ())) (cons (cons let (cons (protect W1584) (cons (cons denominator (cons (protect V1581) ())) (cons (cons let (cons (protect W1585) (cons (cons numerator (cons (protect V1582) ())) (cons (cons let (cons (protect W1586) (cons (cons denominator (cons (protect V1582) ())) (cons (cons r# (cons (cons * (cons (protect W1583) (cons (protect W1585) ()))) (cons (cons * (cons (protect W1584) (cons (protect W1586) ()))) ()))) ())))) ())))) ())))) ())))) ()))))) (do (shen.record-kl +-inverse (cons defun (cons +-inverse (cons (cons (protect V1595) ()) (cons (cons let (cons (protect W1596) (cons (cons numerator (cons (protect V1595) ())) (cons (cons let (cons (protect W1597) (cons (cons denominator (cons (protect V1595) ())) (cons (cons r# (cons (cons ~ (cons (protect W1596) ())) (cons (protect W1597) ()))) ())))) ())))) ()))))) (do (shen.record-kl *-inverse (cons defun (cons *-inverse (cons (cons (protect V1604) ()) (cons (cons let (cons (protect W1605) (cons (cons numerator (cons (protect V1604) ())) (cons (cons let (cons (protect W1606) (cons (cons denominator (cons (protect V1604) ())) (cons (cons r# (cons (protect W1606) (cons (protect W1605) ()))) ())))) ())))) ()))))) (do (shen.record-kl r/ (cons defun (cons r/ (cons (cons (protect V1613) (cons (protect V1614) ())) (cons (cons r* (cons (protect V1613) (cons (cons *-inverse (cons (protect V1614) ())) ()))) ()))))) (do (shen.record-kl r-expt (cons defun (cons r-expt (cons (cons (protect V1624) (cons (protect V1625) ())) (cons (cons cond (cons (cons (cons natural? (cons (protect V1625) ())) (cons (cons let (cons (protect W1626) (cons (cons numerator (cons (protect V1624) ())) (cons (cons let (cons (protect W1627) (cons (cons denominator (cons (protect V1624) ())) (cons (cons r# (cons (cons power (cons (protect W1626) (cons (protect V1625) ()))) (cons (cons power (cons (protect W1627) (cons (protect V1625) ()))) ()))) ())))) ())))) ())) (cons (cons (cons and (cons (cons integer? (cons (protect V1625) ())) (cons (cons negative? (cons (protect V1625) ())) ()))) (cons (cons let (cons (protect W1628) (cons (cons numerator (cons (protect V1624) ())) (cons (cons let (cons (protect W1629) (cons (cons denominator (cons (protect V1624) ())) (cons (cons r# (cons (cons power (cons (protect W1629) (cons (cons ~ (cons (protect V1625) ())) ()))) (cons (cons power (cons (protect W1628) (cons (cons ~ (cons (protect V1625) ())) ()))) ()))) ())))) ())))) ())) (cons (cons true (cons (cons simple-error (cons (cons cn (cons "cannot exponentiate a rational by a non-integer " (cons (cons shen.app (cons (protect V1625) (cons " +" (cons shen.a ())))) ()))) ())) ())) ())))) ()))))) (do (shen.record-kl r-approx (cons defun (cons r-approx (cons (cons (protect V1639) (cons (protect V1640) ())) (cons (cons rational.approx-r-h (cons (cons r->n (cons (protect V1639) ())) (cons (protect V1640) (cons 0 ())))) ()))))) (do (shen.record-kl rational.approx-r-h (cons defun (cons rational.approx-r-h (cons (cons (protect V1648) (cons (protect V1649) (cons (protect V1650) ()))) (cons (cons cond (cons (cons (cons > (cons (cons / (cons (protect V1650) (cons (protect V1649) ()))) (cons (protect V1648) ()))) (cons (cons r# (cons (protect V1650) (cons (protect V1649) ()))) ())) (cons (cons true (cons (cons rational.approx-r-h (cons (protect V1648) (cons (protect V1649) (cons (cons + (cons (protect V1650) (cons 1 ()))) ())))) ())) ()))) ()))))) (do (shen.record-kl c# (cons defun (cons c# (cons (cons (protect V1665) (cons (protect V1666) ())) (cons (cons cond (cons (cons (cons and (cons (cons number? (cons (protect V1665) ())) (cons (cons number? (cons (protect V1666) ())) ()))) (cons (cons let (cons (protect W1667) (cons (cons absvector (cons 3 ())) (cons (cons let (cons (protect W1668) (cons (cons address-> (cons (protect W1667) (cons 0 (cons complex.print-complex ())))) (cons (cons let (cons (protect W1669) (cons (cons address-> (cons (protect W1667) (cons 1 (cons (protect V1665) ())))) (cons (cons let (cons (protect W1670) (cons (cons address-> (cons (protect W1667) (cons 2 (cons (protect V1666) ())))) (cons (protect W1667) ())))) ())))) ())))) ())))) ())) (cons (cons true (cons (cons simple-error (cons (cons cn (cons "real " (cons (cons shen.app (cons (protect V1665) (cons (cons cn (cons " and imaginary " (cons (cons shen.app (cons (protect V1666) (cons " must be numbers +" (cons shen.a ())))) ()))) (cons shen.a ())))) ()))) ())) ())) ()))) ()))))) (do (shen.record-kl complex.print-complex (cons defun (cons complex.print-complex (cons (cons (protect V1676) ()) (cons (cons shen.insert (cons (cons <-address (cons (protect V1676) (cons 2 ()))) (cons (cons shen.insert (cons (cons <-address (cons (protect V1676) (cons 1 ()))) (cons (cons shen.proc-nl (cons (cons cn (cons "(c" (cons "# ~A ~A)" ()))) ())) ()))) ()))) ()))))) (do (shen.record-kl complex? (cons defun (cons complex? (cons (cons (protect V1680) ()) (cons (cons trap-error (cons (cons and (cons (cons absvector? (cons (protect V1680) ())) (cons (cons and (cons (cons = (cons (cons <-address (cons (protect V1680) (cons 0 ()))) (cons complex.print-complex ()))) (cons (cons and (cons (cons number? (cons (cons <-address (cons (protect V1680) (cons 1 ()))) ())) (cons (cons number? (cons (cons <-address (cons (protect V1680) (cons 2 ()))) ())) ()))) ()))) ()))) (cons (cons lambda (cons (protect Z1681) (cons false ()))) ()))) ()))))) (do (shen.record-kl real (cons defun (cons real (cons (cons (protect V1683) ()) (cons (cons <-address (cons (protect V1683) (cons 1 ()))) ()))))) (do (shen.record-kl imaginary (cons defun (cons imaginary (cons (cons (protect V1685) ()) (cons (cons <-address (cons (protect V1685) (cons 2 ()))) ()))))) (do (shen.record-kl c+ (cons defun (cons c+ (cons (cons (protect V1717) (cons (protect V1718) ())) (cons (cons let (cons (protect W1719) (cons (cons real (cons (protect V1717) ())) (cons (cons let (cons (protect W1720) (cons (cons imaginary (cons (protect V1717) ())) (cons (cons let (cons (protect W1721) (cons (cons real (cons (protect V1718) ())) (cons (cons let (cons (protect W1722) (cons (cons imaginary (cons (protect V1718) ())) (cons (cons c# (cons (cons + (cons (protect W1719) (cons (protect W1721) ()))) (cons (cons + (cons (protect W1720) (cons (protect W1722) ()))) ()))) ())))) ())))) ())))) ())))) ()))))) (do (shen.record-kl c- (cons defun (cons c- (cons (cons (protect V1731) (cons (protect V1732) ())) (cons (cons let (cons (protect W1733) (cons (cons real (cons (protect V1731) ())) (cons (cons let (cons (protect W1734) (cons (cons imaginary (cons (protect V1731) ())) (cons (cons let (cons (protect W1735) (cons (cons real (cons (protect V1732) ())) (cons (cons let (cons (protect W1736) (cons (cons imaginary (cons (protect V1732) ())) (cons (cons c# (cons (cons - (cons (protect W1733) (cons (protect W1735) ()))) (cons (cons - (cons (protect W1734) (cons (protect W1736) ()))) ()))) ())))) ())))) ())))) ())))) ()))))) (do (shen.record-kl c* (cons defun (cons c* (cons (cons (protect V1745) (cons (protect V1746) ())) (cons (cons let (cons (protect W1747) (cons (cons real (cons (protect V1745) ())) (cons (cons let (cons (protect W1748) (cons (cons imaginary (cons (protect V1745) ())) (cons (cons let (cons (protect W1749) (cons (cons real (cons (protect V1746) ())) (cons (cons let (cons (protect W1750) (cons (cons imaginary (cons (protect V1746) ())) (cons (cons c# (cons (cons - (cons (cons * (cons (protect W1747) (cons (protect W1749) ()))) (cons (cons * (cons (protect W1748) (cons (protect W1750) ()))) ()))) (cons (cons + (cons (cons * (cons (protect W1748) (cons (protect W1749) ()))) (cons (cons * (cons (protect W1747) (cons (protect W1750) ()))) ()))) ()))) ())))) ())))) ())))) ())))) ()))))) (do (shen.record-kl c/ (cons defun (cons c/ (cons (cons (protect V1761) (cons (protect V1762) ())) (cons (cons let (cons (protect W1763) (cons (cons real (cons (protect V1761) ())) (cons (cons let (cons (protect W1764) (cons (cons imaginary (cons (protect V1761) ())) (cons (cons let (cons (protect W1765) (cons (cons real (cons (protect V1762) ())) (cons (cons let (cons (protect W1766) (cons (cons imaginary (cons (protect V1762) ())) (cons (cons c# (cons (cons / (cons (cons + (cons (cons * (cons (protect W1763) (cons (protect W1765) ()))) (cons (cons * (cons (protect W1764) (cons (protect W1766) ()))) ()))) (cons (cons + (cons (cons * (cons (protect W1765) (cons (protect W1765) ()))) (cons (cons * (cons (protect W1766) (cons (protect W1766) ()))) ()))) ()))) (cons (cons / (cons (cons - (cons (cons * (cons (protect W1764) (cons (protect W1765) ()))) (cons (cons * (cons (protect W1763) (cons (protect W1766) ()))) ()))) (cons (cons + (cons (cons * (cons (protect W1765) (cons (protect W1765) ()))) (cons (cons * (cons (protect W1766) (cons (protect W1766) ()))) ()))) ()))) ()))) ())))) ())))) ())))) ())))) ()))))) (do (shen.record-kl n# (cons defun (cons n# (cons (cons (protect V1792) (cons (protect V1793) ())) (cons (cons cond (cons (cons (cons and (cons (cons natural? (cons (protect V1792) ())) (cons (cons and (cons (cons natural? (cons (protect V1793) ())) (cons (cons > (cons (protect V1793) (cons 0 ()))) ()))) ()))) (cons (cons let (cons (protect W1794) (cons (cons absvector (cons 4 ())) (cons (cons let (cons (protect W1795) (cons (cons address-> (cons (protect W1794) (cons 0 (cons numerals.print-numeral ())))) (cons (cons let (cons (protect W1796) (cons (cons address-> (cons (protect W1794) (cons 1 (cons (cons numerals.n->numeral (cons (protect V1792) (cons (protect V1793) ()))) ())))) (cons (cons let (cons (protect W1797) (cons (cons address-> (cons (protect W1794) (cons 2 (cons (protect V1793) ())))) (cons (cons let (cons (protect W1798) (cons (cons address-> (cons (protect W1794) (cons 3 (cons (protect V1792) ())))) (cons (protect W1794) ())))) ())))) ())))) ())))) ())))) ())) (cons (cons true (cons (cons simple-error (cons (cons cn (cons "N = " (cons (cons shen.app (cons (protect V1792) (cons (cons cn (cons ", Radix = " (cons (cons shen.app (cons (protect V1793) (cons "; N and Radix must be natural numbers where Radix > 0 +" (cons shen.a ())))) ()))) (cons shen.a ())))) ()))) ())) ())) ()))) ()))))) (do (shen.record-kl radix (cons defun (cons radix (cons (cons (protect V1805) ()) (cons (cons <-address (cons (protect V1805) (cons 2 ()))) ()))))) (do (shen.record-kl numerals.numerals (cons defun (cons numerals.numerals (cons (cons (protect V1807) ()) (cons (cons <-address (cons (protect V1807) (cons 1 ()))) ()))))) (do (shen.record-kl n#->n (cons defun (cons n#->n (cons (cons (protect V1809) ()) (cons (cons <-address (cons (protect V1809) (cons 3 ()))) ()))))) (do (shen.record-kl n#->ns (cons defun (cons n#->ns (cons (cons (protect V1836) ()) (cons (cons <-address (cons (protect V1836) (cons 1 ()))) ()))))) (do (shen.record-kl numerals.print-numeral (cons defun (cons numerals.print-numeral (cons (cons (protect V1838) ()) (cons (cons let (cons (protect W1839) (cons (cons radix (cons (protect V1838) ())) (cons (cons let (cons (protect W1840) (cons (cons numerals.numerals (cons (protect V1838) ())) (cons (cons @s (cons (cons numerals.numeric->string (cons (protect W1840) (cons (protect W1839) ()))) (cons (cons @s (cons "#" (cons (cons str (cons (protect W1839) ())) ()))) ()))) ())))) ())))) ()))))) (do (shen.record-kl numerals.numeric->string (cons defun (cons numerals.numeric->string (cons (cons (protect V1845) (cons (protect V1846) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V1845) ()))) (cons "" ())) (cons (cons (cons cons? (cons (protect V1845) ())) (cons (cons let (cons (protect W1847) (cons (cons if (cons (cons < (cons (cons hd (cons (protect V1845) ())) (cons 10 ()))) (cons (cons str (cons (cons hd (cons (protect V1845) ())) ())) (cons (cons if (cons (cons > (cons (protect V1846) (cons 36 ()))) (cons (cons cn (cons (cons str (cons (cons hd (cons (protect V1845) ())) ())) (cons " " ()))) (cons (cons n->string (cons (cons + (cons (cons hd (cons (protect V1845) ())) (cons 55 ()))) ())) ())))) ())))) (cons (cons cn (cons (protect W1847) (cons (cons numerals.numeric->string (cons (cons tl (cons (protect V1845) ())) (cons (protect V1846) ()))) ()))) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons numerals.numeric->string ())) ())) ())))) ()))))) (do (shen.record-kl numeral? (cons defun (cons numeral? (cons (cons (protect V1850) ()) (cons (cons and (cons (cons absvector? (cons (protect V1850) ())) (cons (cons = (cons numerals.print-numeral (cons (cons <-address (cons (protect V1850) (cons 0 ()))) ()))) ()))) ()))))) (do (shen.record-kl numerals.numeral-macro (cons defun (cons numerals.numeral-macro (cons (cons (protect V1889) ()) (cons (cons cond (cons (cons (cons and (cons (cons cons? (cons (protect V1889) ())) (cons (cons and (cons (cons = (cons n-op2 (cons (cons hd (cons (protect V1889) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V1889) ())) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (protect V1889) ())) ())) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V1889) ())) ())) ())) ())) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V1889) ())) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) ()))) (cons (cons cons (cons n-op2 (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect V1889) ())) ())) (cons (cons cons (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V1889) ())) ())) ())) (cons (cons cons (cons (cons hd (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V1889) ())) ())) ())) ())) (cons (cons cons (cons (cons cons (cons radix (cons (cons cons (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V1889) ())) ())) ())) (cons () ()))) ()))) (cons () ()))) ()))) ()))) ()))) ()))) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V1889) ())) (cons (cons and (cons (cons = (cons n-op1 (cons (cons hd (cons (protect V1889) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V1889) ())) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (protect V1889) ())) ())) ())) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V1889) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) (cons (cons cons (cons n-op1 (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect V1889) ())) ())) (cons (cons cons (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V1889) ())) ())) ())) (cons (cons cons (cons (cons cons (cons radix (cons (cons tl (cons (cons tl (cons (protect V1889) ())) ())) ()))) (cons () ()))) ()))) ()))) ()))) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V1889) ())) (cons (cons and (cons (cons = (cons n+ (cons (cons hd (cons (protect V1889) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V1889) ())) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (protect V1889) ())) ())) ())) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V1889) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) (cons (cons cons (cons n+ (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect V1889) ())) ())) (cons (cons cons (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V1889) ())) ())) ())) (cons (cons cons (cons (cons cons (cons radix (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect V1889) ())) ())) (cons () ()))) ()))) (cons () ()))) ()))) ()))) ()))) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V1889) ())) (cons (cons and (cons (cons = (cons n- (cons (cons hd (cons (protect V1889) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V1889) ())) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (protect V1889) ())) ())) ())) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V1889) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) (cons (cons cons (cons n- (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect V1889) ())) ())) (cons (cons cons (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V1889) ())) ())) ())) (cons (cons cons (cons (cons cons (cons radix (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect V1889) ())) ())) (cons () ()))) ()))) (cons () ()))) ()))) ()))) ()))) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V1889) ())) (cons (cons and (cons (cons = (cons n* (cons (cons hd (cons (protect V1889) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V1889) ())) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (protect V1889) ())) ())) ())) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V1889) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) (cons (cons cons (cons n* (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect V1889) ())) ())) (cons (cons cons (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V1889) ())) ())) ())) (cons (cons cons (cons (cons cons (cons radix (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect V1889) ())) ())) (cons () ()))) ()))) (cons () ()))) ()))) ()))) ()))) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V1889) ())) (cons (cons and (cons (cons = (cons n/ (cons (cons hd (cons (protect V1889) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V1889) ())) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (protect V1889) ())) ())) ())) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V1889) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) (cons (cons cons (cons n/ (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect V1889) ())) ())) (cons (cons cons (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V1889) ())) ())) ())) (cons (cons cons (cons (cons cons (cons radix (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect V1889) ())) ())) (cons () ()))) ()))) (cons () ()))) ()))) ()))) ()))) ())) (cons (cons true (cons (protect V1889) ())) ())))))))) ()))))) (do (shen.record-kl n-op2 (cons defun (cons n-op2 (cons (cons (protect V1904) (cons (protect V1905) (cons (protect V1906) (cons (protect V1907) ())))) (cons (cons n# (cons (cons (cons (protect V1904) (cons (cons n#->n (cons (protect V1905) ())) ())) (cons (cons n#->n (cons (protect V1906) ())) ())) (cons (protect V1907) ()))) ()))))) (do (shen.record-kl n-op1 (cons defun (cons n-op1 (cons (cons (protect V1919) (cons (protect V1920) (cons (protect V1921) ()))) (cons (cons n# (cons (cons (protect V1919) (cons (cons n#->n (cons (protect V1920) ())) ())) (cons (protect V1921) ()))) ()))))) (do (shen.record-kl n+ (cons defun (cons n+ (cons (cons (protect V1933) (cons (protect V1934) (cons (protect V1935) ()))) (cons (cons n-op2 (cons (cons lambda (cons (protect Z1936) (cons (cons lambda (cons (protect Z1937) (cons (cons + (cons (protect Z1936) (cons (protect Z1937) ()))) ()))) ()))) (cons (protect V1933) (cons (protect V1934) (cons (protect V1935) ()))))) ()))))) (do (shen.record-kl n* (cons defun (cons n* (cons (cons (protect V1948) (cons (protect V1949) (cons (protect V1950) ()))) (cons (cons n-op2 (cons (cons lambda (cons (protect Z1951) (cons (cons lambda (cons (protect Z1952) (cons (cons * (cons (protect Z1951) (cons (protect Z1952) ()))) ()))) ()))) (cons (protect V1948) (cons (protect V1949) (cons (protect V1950) ()))))) ()))))) (do (shen.record-kl n- (cons defun (cons n- (cons (cons (protect V1963) (cons (protect V1964) (cons (protect V1965) ()))) (cons (cons n-op2 (cons (cons lambda (cons (protect Z1966) (cons (cons lambda (cons (protect Z1967) (cons (cons - (cons (protect Z1966) (cons (protect Z1967) ()))) ()))) ()))) (cons (protect V1963) (cons (protect V1964) (cons (protect V1965) ()))))) ()))))) (do (shen.record-kl n/ (cons defun (cons n/ (cons (cons (protect V1978) (cons (protect V1979) (cons (protect V1980) ()))) (cons (cons n-op2 (cons (cons lambda (cons (protect Z1981) (cons (cons lambda (cons (protect Z1982) (cons (cons / (cons (protect Z1981) (cons (protect Z1982) ()))) ()))) ()))) (cons (protect V1978) (cons (protect V1979) (cons (protect V1980) ()))))) ()))))) (do (shen.record-kl binary (cons defun (cons binary (cons (cons (protect V1991) ()) (cons (cons n# (cons (protect V1991) (cons 2 ()))) ()))))) (do (shen.record-kl hex (cons defun (cons hex (cons (cons (protect V1998) ()) (cons (cons n# (cons (protect V1998) (cons 16 ()))) ()))))) (do (shen.record-kl octal (cons defun (cons octal (cons (cons (protect V2005) ()) (cons (cons n# (cons (protect V2005) (cons 8 ()))) ()))))) (do (shen.record-kl duodecimal (cons defun (cons duodecimal (cons (cons (protect V2012) ()) (cons (cons n# (cons (protect V2012) (cons 12 ()))) ()))))) (do (shen.record-kl numerals.n->numeral (cons defun (cons numerals.n->numeral (cons (cons (protect V2019) (cons (protect V2020) ())) (cons (cons cond (cons (cons (cons > (cons (protect V2020) (cons (protect V2019) ()))) (cons (cons cons (cons (protect V2019) (cons () ()))) ())) (cons (cons true (cons (cons let (cons (protect W2021) (cons (cons numerals.largest-expt (cons (protect V2019) (cons (protect V2020) (cons 0 ())))) (cons (cons let (cons (protect W2022) (cons (cons power (cons (protect V2020) (cons (protect W2021) ()))) (cons (cons let (cons (protect W2023) (cons (cons div (cons (protect V2019) (cons (protect W2022) ()))) (cons (cons let (cons (protect W2024) (cons (cons cons (cons (protect W2023) (cons (cons numerals.n-zeros (cons (protect W2021) ())) ()))) (cons (cons let (cons (protect W2025) (cons (cons - (cons (protect V2019) (cons (cons * (cons (protect W2023) (cons (protect W2022) ()))) ()))) (cons (cons numerals.add (cons (protect W2024) (cons (cons numerals.n->numeral (cons (protect W2025) (cons (protect V2020) ()))) (cons (protect V2020) ())))) ())))) ())))) ())))) ())))) ())))) ())) ()))) ()))))) (do (shen.record-kl numerals.largest-expt (cons defun (cons numerals.largest-expt (cons (cons (protect V2033) (cons (protect V2034) (cons (protect V2035) ()))) (cons (cons cond (cons (cons (cons > (cons (cons power (cons (protect V2034) (cons (protect V2035) ()))) (cons (protect V2033) ()))) (cons (cons - (cons (protect V2035) (cons 1 ()))) ())) (cons (cons true (cons (cons numerals.largest-expt (cons (protect V2033) (cons (protect V2034) (cons (cons + (cons (protect V2035) (cons 1 ()))) ())))) ())) ()))) ()))))) (do (shen.record-kl numerals.n-zeros (cons defun (cons numerals.n-zeros (cons (cons (protect V2044) ()) (cons (cons cond (cons (cons (cons = (cons 0 (cons (protect V2044) ()))) (cons () ())) (cons (cons true (cons (cons cons (cons 0 (cons (cons numerals.n-zeros (cons (cons - (cons (protect V2044) (cons 1 ()))) ())) ()))) ())) ()))) ()))))) (do (shen.record-kl numerals.add (cons defun (cons numerals.add (cons (cons (protect V2051) (cons (protect V2052) (cons (protect V2053) ()))) (cons (cons reverse (cons (cons numerals.add-h (cons (cons reverse (cons (protect V2051) ())) (cons (cons reverse (cons (protect V2052) ())) (cons (protect V2053) (cons 0 ()))))) ())) ()))))) (do (shen.record-kl numerals.add-h (cons defun (cons numerals.add-h (cons (cons (protect V2069) (cons (protect V2070) (cons (protect V2071) (cons (protect V2072) ())))) (cons (cons cond (cons (cons (cons and (cons (cons = (cons () (cons (protect V2069) ()))) (cons (cons and (cons (cons = (cons () (cons (protect V2070) ()))) (cons (cons = (cons 0 (cons (protect V2072) ()))) ()))) ()))) (cons () ())) (cons (cons (cons and (cons (cons = (cons () (cons (protect V2069) ()))) (cons (cons = (cons () (cons (protect V2070) ()))) ()))) (cons (cons cons (cons (protect V2072) (cons () ()))) ())) (cons (cons (cons = (cons () (cons (protect V2069) ()))) (cons (cons numerals.add-h (cons (cons cons (cons 0 (cons () ()))) (cons (protect V2070) (cons (protect V2071) (cons (protect V2072) ()))))) ())) (cons (cons (cons = (cons () (cons (protect V2070) ()))) (cons (cons numerals.add-h (cons (protect V2069) (cons (cons cons (cons 0 (cons () ()))) (cons (protect V2071) (cons (protect V2072) ()))))) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V2069) ())) (cons (cons cons? (cons (protect V2070) ())) ()))) (cons (cons let (cons (protect W2073) (cons (cons + (cons (cons hd (cons (protect V2069) ())) (cons (cons + (cons (cons hd (cons (protect V2070) ())) (cons (protect V2072) ()))) ()))) (cons (cons if (cons (cons < (cons (protect W2073) (cons (protect V2071) ()))) (cons (cons cons (cons (protect W2073) (cons (cons numerals.add-h (cons (cons tl (cons (protect V2069) ())) (cons (cons tl (cons (protect V2070) ())) (cons (protect V2071) (cons 0 ()))))) ()))) (cons (cons cons (cons (cons - (cons (protect V2071) (cons (protect W2073) ()))) (cons (cons numerals.add-h (cons (cons tl (cons (protect V2069) ())) (cons (cons tl (cons (protect V2070) ())) (cons (protect V2071) (cons 1 ()))))) ()))) ())))) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons numerals.add-h ())) ())) ()))))))) ()))))) (do (shen.record-kl assoc-if (cons defun (cons assoc-if (cons (cons (protect V2195) (cons (protect V2196) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2196) ()))) (cons () ())) (cons (cons (cons and (cons (cons cons? (cons (protect V2196) ())) (cons (cons and (cons (cons cons? (cons (cons hd (cons (protect V2196) ())) ())) (cons (cons (protect V2195) (cons (cons hd (cons (cons hd (cons (protect V2196) ())) ())) ())) ()))) ()))) (cons (cons hd (cons (protect V2196) ())) ())) (cons (cons (cons cons? (cons (protect V2196) ())) (cons (cons assoc-if (cons (protect V2195) (cons (cons tl (cons (protect V2196) ())) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons assoc-if ())) ())) ()))))) ()))))) (do (shen.record-kl assoc-if-not (cons defun (cons assoc-if-not (cons (cons (protect V2211) (cons (protect V2212) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2212) ()))) (cons () ())) (cons (cons (cons and (cons (cons cons? (cons (protect V2212) ())) (cons (cons and (cons (cons cons? (cons (cons hd (cons (protect V2212) ())) ())) (cons (cons not (cons (cons (protect V2211) (cons (cons hd (cons (cons hd (cons (protect V2212) ())) ())) ())) ())) ()))) ()))) (cons (cons hd (cons (protect V2212) ())) ())) (cons (cons (cons cons? (cons (protect V2212) ())) (cons (cons assoc-if (cons (protect V2211) (cons (cons tl (cons (protect V2212) ())) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons assoc-if-not ())) ())) ()))))) ()))))) (do (shen.record-kl drop (cons defun (cons drop (cons (cons (protect V2224) (cons (protect V2225) ())) (cons (cons cond (cons (cons (cons = (cons 0 (cons (protect V2224) ()))) (cons (protect V2225) ())) (cons (cons (cons cons? (cons (protect V2225) ())) (cons (cons drop (cons (cons - (cons (protect V2224) (cons 1 ()))) (cons (cons tl (cons (protect V2225) ())) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons drop ())) ())) ())))) ()))))) (do (shen.record-kl drop-last (cons defun (cons drop-last (cons (cons (protect V2235) (cons (protect V2236) ())) (cons (cons reverse (cons (cons drop (cons (protect V2235) (cons (cons reverse (cons (protect V2236) ())) ()))) ())) ()))))) (do (shen.record-kl index (cons defun (cons index (cons (cons (protect V2245) (cons (protect V2246) ())) (cons (cons list.index-h (cons (protect V2245) (cons (protect V2246) (cons 1 ())))) ()))))) (do (shen.record-kl list.index-h (cons defun (cons list.index-h (cons (cons (protect V2264) (cons (protect V2265) (cons (protect V2266) ()))) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2265) ()))) (cons -1 ())) (cons (cons (cons and (cons (cons cons? (cons (protect V2265) ())) (cons (cons = (cons (protect V2264) (cons (cons hd (cons (protect V2265) ())) ()))) ()))) (cons (protect V2266) ())) (cons (cons (cons cons? (cons (protect V2265) ())) (cons (cons list.index-h (cons (protect V2264) (cons (cons tl (cons (protect V2265) ())) (cons (cons + (cons (protect V2266) (cons 1 ()))) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons list.index-h ())) ())) ()))))) ()))))) (do (shen.record-kl index-last (cons defun (cons index-last (cons (cons (protect V2278) (cons (protect V2279) ())) (cons (cons let (cons (protect W2280) (cons (cons length (cons (protect V2279) ())) (cons (cons let (cons (protect W2281) (cons (cons index (cons (protect V2278) (cons (cons reverse (cons (protect V2279) ())) ()))) (cons (cons if (cons (cons = (cons (protect W2281) (cons -1 ()))) (cons (protect W2281) (cons (cons + (cons (cons - (cons (protect W2280) (cons (protect W2281) ()))) (cons 1 ()))) ())))) ())))) ())))) ()))))) (do (shen.record-kl insert (cons defun (cons insert (cons (cons (protect V2292) (cons (protect V2293) (cons (protect V2294) ()))) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2294) ()))) (cons (cons simple-error (cons (cons cn (cons "cannot insert " (cons (cons shen.app (cons (protect V2293) (cons " into list: index out of range +" (cons shen.s ())))) ()))) ())) ())) (cons (cons (cons = (cons 1 (cons (protect V2292) ()))) (cons (cons cons (cons (protect V2293) (cons (protect V2294) ()))) ())) (cons (cons (cons cons? (cons (protect V2294) ())) (cons (cons cons (cons (cons hd (cons (protect V2294) ())) (cons (cons insert (cons (cons - (cons (protect V2292) (cons 1 ()))) (cons (protect V2293) (cons (cons tl (cons (protect V2294) ())) ())))) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons insert ())) ())) ()))))) ()))))) (do (shen.record-kl remove-duplicates (cons defun (cons remove-duplicates (cons (cons (protect V2307) ()) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2307) ()))) (cons () ())) (cons (cons (cons and (cons (cons cons? (cons (protect V2307) ())) (cons (cons element? (cons (cons hd (cons (protect V2307) ())) (cons (cons tl (cons (protect V2307) ())) ()))) ()))) (cons (cons remove-duplicates (cons (cons tl (cons (protect V2307) ())) ())) ())) (cons (cons (cons cons? (cons (protect V2307) ())) (cons (cons cons (cons (cons hd (cons (protect V2307) ())) (cons (cons remove-duplicates (cons (cons tl (cons (protect V2307) ())) ())) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons remove-duplicates ())) ())) ()))))) ()))))) (do (shen.record-kl trim-left-if (cons defun (cons trim-left-if (cons (cons (protect V2321) (cons (protect V2322) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2322) ()))) (cons () ())) (cons (cons (cons and (cons (cons cons? (cons (protect V2322) ())) (cons (cons (protect V2321) (cons (cons hd (cons (protect V2322) ())) ())) ()))) (cons (cons trim-left-if (cons (protect V2321) (cons (cons tl (cons (protect V2322) ())) ()))) ())) (cons (cons true (cons (protect V2322) ())) ())))) ()))))) (do (shen.record-kl trim-right-if (cons defun (cons trim-right-if (cons (cons (protect V2332) (cons (protect V2333) ())) (cons (cons reverse (cons (cons trim-left-if (cons (protect V2332) (cons (cons reverse (cons (protect V2333) ())) ()))) ())) ()))))) (do (shen.record-kl trim-if (cons defun (cons trim-if (cons (cons (protect V2343) (cons (protect V2344) ())) (cons (cons trim-right-if (cons (protect V2343) (cons (cons trim-left-if (cons (protect V2343) (cons (protect V2344) ()))) ()))) ()))))) (do (shen.record-kl trim-left (cons defun (cons trim-left (cons (cons (protect V2358) (cons (protect V2359) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2359) ()))) (cons () ())) (cons (cons (cons and (cons (cons cons? (cons (protect V2359) ())) (cons (cons element? (cons (cons hd (cons (protect V2359) ())) (cons (protect V2358) ()))) ()))) (cons (cons trim-left (cons (protect V2358) (cons (cons tl (cons (protect V2359) ())) ()))) ())) (cons (cons true (cons (protect V2359) ())) ())))) ()))))) (do (shen.record-kl trim-right (cons defun (cons trim-right (cons (cons (protect V2369) (cons (protect V2370) ())) (cons (cons reverse (cons (cons trim-left (cons (protect V2369) (cons (cons reverse (cons (protect V2370) ())) ()))) ())) ()))))) (do (shen.record-kl trim (cons defun (cons trim (cons (cons (protect V2380) (cons (protect V2381) ())) (cons (cons trim-right (cons (protect V2380) (cons (cons trim-left (cons (protect V2380) (cons (protect V2381) ()))) ()))) ()))))) (do (shen.record-kl prefix? (cons defun (cons prefix? (cons (cons (protect V2398) (cons (protect V2399) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2398) ()))) (cons true ())) (cons (cons (cons and (cons (cons cons? (cons (protect V2398) ())) (cons (cons and (cons (cons cons? (cons (protect V2399) ())) (cons (cons = (cons (cons hd (cons (protect V2398) ())) (cons (cons hd (cons (protect V2399) ())) ()))) ()))) ()))) (cons (cons prefix? (cons (cons tl (cons (protect V2398) ())) (cons (cons tl (cons (protect V2399) ())) ()))) ())) (cons (cons true (cons false ())) ())))) ()))))) (do (shen.record-kl infix? (cons defun (cons infix? (cons (cons (protect V2414) (cons (protect V2415) ())) (cons (cons cond (cons (cons (cons prefix? (cons (protect V2414) (cons (protect V2415) ()))) (cons true ())) (cons (cons (cons = (cons () (cons (protect V2415) ()))) (cons false ())) (cons (cons (cons cons? (cons (protect V2415) ())) (cons (cons infix? (cons (protect V2414) (cons (cons tl (cons (protect V2415) ())) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons infix? ())) ())) ()))))) ()))))) (do (shen.record-kl suffix? (cons defun (cons suffix? (cons (cons (protect V2424) (cons (protect V2425) ())) (cons (cons prefix? (cons (cons reverse (cons (protect V2424) ())) (cons (cons reverse (cons (protect V2425) ())) ()))) ()))))) (do (shen.record-kl subset? (cons defun (cons subset? (cons (cons (protect V2441) (cons (protect V2442) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2441) ()))) (cons true ())) (cons (cons (cons and (cons (cons cons? (cons (protect V2441) ())) (cons (cons element? (cons (cons hd (cons (protect V2441) ())) (cons (protect V2442) ()))) ()))) (cons (cons subset? (cons (cons tl (cons (protect V2441) ())) (cons (protect V2442) ()))) ())) (cons (cons true (cons false ())) ())))) ()))))) (do (shen.record-kl set=? (cons defun (cons set=? (cons (cons (protect V2451) (cons (protect V2452) ())) (cons (cons and (cons (cons subset? (cons (protect V2451) (cons (protect V2452) ()))) (cons (cons subset? (cons (protect V2452) (cons (protect V2451) ()))) ()))) ()))))) (do (shen.record-kl set? (cons defun (cons set? (cons (cons (protect V2463) ()) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2463) ()))) (cons true ())) (cons (cons (cons and (cons (cons cons? (cons (protect V2463) ())) (cons (cons element? (cons (cons hd (cons (protect V2463) ())) (cons (cons tl (cons (protect V2463) ())) ()))) ()))) (cons false ())) (cons (cons (cons cons? (cons (protect V2463) ())) (cons (cons set? (cons (cons tl (cons (protect V2463) ())) ())) ())) (cons (cons true (cons (cons shen.f-error (cons set? ())) ())) ()))))) ()))))) (do (shen.record-kl n-times (cons defun (cons n-times (cons (cons (protect V2471) (cons (protect V2472) ())) (cons (cons list.n-times-h (cons (protect V2472) (cons (protect V2471) (cons () ())))) ()))))) (do (shen.record-kl list.n-times-h (cons defun (cons list.n-times-h (cons (cons (protect V2481) (cons (protect V2482) (cons (protect V2483) ()))) (cons (cons cond (cons (cons (cons = (cons 0 (cons (protect V2481) ()))) (cons (protect V2483) ())) (cons (cons true (cons (cons list.n-times-h (cons (cons - (cons (protect V2481) (cons 1 ()))) (cons (protect V2482) (cons (cons cons (cons (protect V2482) (cons (protect V2483) ()))) ())))) ())) ()))) ()))))) (do (shen.record-kl subbag? (cons defun (cons subbag? (cons (cons (protect V2495) (cons (protect V2496) ())) (cons (cons every? (cons (cons lambda (cons (protect Z2497) (cons (cons = (cons (cons count (cons (protect Z2497) (cons (protect V2495) ()))) (cons (cons count (cons (protect Z2497) (cons (protect V2496) ()))) ()))) ()))) (cons (protect V2495) ()))) ()))))) (do (shen.record-kl bag=? (cons defun (cons bag=? (cons (cons (protect V2507) (cons (protect V2508) ())) (cons (cons and (cons (cons subbag? (cons (protect V2507) (cons (protect V2508) ()))) (cons (cons subbag? (cons (protect V2508) (cons (protect V2507) ()))) ()))) ()))))) (do (shen.record-kl mapc (cons defun (cons mapc (cons (cons (protect V2519) (cons (protect V2520) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2520) ()))) (cons () ())) (cons (cons (cons cons? (cons (protect V2520) ())) (cons (cons mapc (cons (cons do (cons (cons (protect V2519) (cons (cons hd (cons (protect V2520) ())) ())) (cons (protect V2519) ()))) (cons (cons tl (cons (protect V2520) ())) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons mapc ())) ())) ())))) ()))))) (do (shen.record-kl permute (cons defun (cons permute (cons (cons (protect V2532) ()) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2532) ()))) (cons (cons cons (cons () (cons () ()))) ())) (cons (cons true (cons (cons mapcan (cons (cons lambda (cons (protect Z2533) (cons (cons map (cons (cons lambda (cons (protect Z2534) (cons (cons cons (cons (protect Z2533) (cons (protect Z2534) ()))) ()))) (cons (cons permute (cons (cons remove (cons (protect Z2533) (cons (protect V2532) ()))) ())) ()))) ()))) (cons (protect V2532) ()))) ())) ()))) ()))))) (do (shen.record-kl count-if (cons defun (cons count-if (cons (cons (protect V2542) (cons (protect V2543) ())) (cons (cons length (cons (cons mapcan (cons (cons lambda (cons (protect Z2544) (cons (cons if (cons (cons (protect V2542) (cons (protect Z2544) ())) (cons (cons cons (cons (protect Z2544) (cons () ()))) (cons () ())))) ()))) (cons (protect V2543) ()))) ())) ()))))) (do (shen.record-kl count (cons defun (cons count (cons (cons (protect V2554) (cons (protect V2555) ())) (cons (cons count-if (cons (cons lambda (cons (protect Z2556) (cons (cons = (cons (protect V2554) (cons (protect Z2556) ()))) ()))) (cons (protect V2555) ()))) ()))))) (do (shen.record-kl some? (cons defun (cons some? (cons (cons (protect V2570) (cons (protect V2571) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2571) ()))) (cons false ())) (cons (cons (cons and (cons (cons cons? (cons (protect V2571) ())) (cons (cons (protect V2570) (cons (cons hd (cons (protect V2571) ())) ())) ()))) (cons true ())) (cons (cons (cons cons? (cons (protect V2571) ())) (cons (cons some? (cons (protect V2570) (cons (cons tl (cons (protect V2571) ())) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons some? ())) ())) ()))))) ()))))) (do (shen.record-kl every? (cons defun (cons every? (cons (cons (protect V2586) (cons (protect V2587) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2587) ()))) (cons true ())) (cons (cons (cons and (cons (cons cons? (cons (protect V2587) ())) (cons (cons (protect V2586) (cons (cons hd (cons (protect V2587) ())) ())) ()))) (cons (cons every? (cons (protect V2586) (cons (cons tl (cons (protect V2587) ())) ()))) ())) (cons (cons true (cons false ())) ())))) ()))))) (do (shen.record-kl sort (cons defun (cons sort (cons (cons (protect V2600) (cons (protect V2601) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2601) ()))) (cons () ())) (cons (cons (cons and (cons (cons cons? (cons (protect V2601) ())) (cons (cons = (cons () (cons (cons tl (cons (protect V2601) ())) ()))) ()))) (cons (protect V2601) ())) (cons (cons (cons cons? (cons (protect V2601) ())) (cons (cons let (cons (protect W2602) (cons (cons mapcan (cons (cons lambda (cons (protect Z2603) (cons (cons if (cons (cons (cons (protect V2600) (cons (protect Z2603) ())) (cons (cons hd (cons (protect V2601) ())) ())) (cons (cons cons (cons (protect Z2603) (cons () ()))) (cons () ())))) ()))) (cons (cons tl (cons (protect V2601) ())) ()))) (cons (cons let (cons (protect W2604) (cons (cons mapcan (cons (cons lambda (cons (protect Z2605) (cons (cons if (cons (cons not (cons (cons (cons (protect V2600) (cons (protect Z2605) ())) (cons (cons hd (cons (protect V2601) ())) ())) ())) (cons (cons cons (cons (protect Z2605) (cons () ()))) (cons () ())))) ()))) (cons (cons tl (cons (protect V2601) ())) ()))) (cons (cons append (cons (cons sort (cons (protect V2600) (cons (protect W2602) ()))) (cons (cons append (cons (cons cons (cons (cons hd (cons (protect V2601) ())) (cons () ()))) (cons (cons sort (cons (protect V2600) (cons (protect W2604) ()))) ()))) ()))) ())))) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons sort ())) ())) ()))))) ()))))) (do (shen.record-kl find (cons defun (cons find (cons (cons (protect V2625) (cons (protect V2626) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2626) ()))) (cons (cons simple-error (cons "find has found no element +" ())) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V2626) ())) (cons (cons (protect V2625) (cons (cons hd (cons (protect V2626) ())) ())) ()))) (cons (cons hd (cons (protect V2626) ())) ())) (cons (cons (cons cons? (cons (protect V2626) ())) (cons (cons find (cons (protect V2625) (cons (cons tl (cons (protect V2626) ())) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons find ())) ())) ()))))) ()))))) (do (shen.record-kl foldr (cons defun (cons foldr (cons (cons (protect V2638) (cons (protect V2639) (cons (protect V2640) ()))) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2640) ()))) (cons (protect V2639) ())) (cons (cons (cons cons? (cons (protect V2640) ())) (cons (cons foldr (cons (protect V2638) (cons (cons (cons (protect V2638) (cons (cons hd (cons (protect V2640) ())) ())) (cons (protect V2639) ())) (cons (cons tl (cons (protect V2640) ())) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons foldr ())) ())) ())))) ()))))) (do (shen.record-kl foldl (cons defun (cons foldl (cons (cons (protect V2657) (cons (protect V2658) (cons (protect V2659) ()))) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2659) ()))) (cons (protect V2658) ())) (cons (cons (cons cons? (cons (protect V2659) ())) (cons (cons foldl (cons (protect V2657) (cons (cons (cons (protect V2657) (cons (protect V2658) ())) (cons (cons hd (cons (protect V2659) ())) ())) (cons (cons tl (cons (protect V2659) ())) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons foldl ())) ())) ())))) ()))))) (do (shen.record-kl mapf (cons defun (cons mapf (cons (cons (protect V2679) (cons (protect V2680) (cons (protect V2681) ()))) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2680) ()))) (cons () ())) (cons (cons (cons cons? (cons (protect V2680) ())) (cons (cons (cons (protect V2681) (cons (cons (protect V2679) (cons (cons hd (cons (protect V2680) ())) ())) ())) (cons (cons mapf (cons (protect V2679) (cons (cons tl (cons (protect V2680) ())) (cons (protect V2681) ())))) ())) ())) (cons (cons true (cons (cons shen.f-error (cons mapf ())) ())) ())))) ()))))) (do (shen.record-kl filter (cons defun (cons filter (cons (cons (protect V2699) (cons (protect V2700) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2700) ()))) (cons () ())) (cons (cons (cons cons? (cons (protect V2700) ())) (cons (cons if (cons (cons (protect V2699) (cons (cons hd (cons (protect V2700) ())) ())) (cons (cons cons (cons (cons hd (cons (protect V2700) ())) (cons (cons filter (cons (protect V2699) (cons (cons tl (cons (protect V2700) ())) ()))) ()))) (cons (cons filter (cons (protect V2699) (cons (cons tl (cons (protect V2700) ())) ()))) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons filter ())) ())) ())))) ()))))) (do (shen.record-kl remove-if (cons defun (cons remove-if (cons (cons (protect V2713) (cons (protect V2714) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2714) ()))) (cons () ())) (cons (cons (cons cons? (cons (protect V2714) ())) (cons (cons if (cons (cons (protect V2713) (cons (cons hd (cons (protect V2714) ())) ())) (cons (cons remove-if (cons (protect V2713) (cons (cons tl (cons (protect V2714) ())) ()))) (cons (cons cons (cons (cons hd (cons (protect V2714) ())) (cons (cons remove-if (cons (protect V2713) (cons (cons tl (cons (protect V2714) ())) ()))) ()))) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons remove-if ())) ())) ())))) ()))))) (do (shen.record-kl list.reduce (cons defun (cons list.reduce (cons (cons (protect V2725) (cons (protect V2726) (cons (protect V2727) ()))) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2727) ()))) (cons (protect V2726) ())) (cons (cons (cons cons? (cons (protect V2727) ())) (cons (cons list.reduce (cons (protect V2725) (cons (cons (cons (protect V2725) (cons (protect V2726) ())) (cons (cons hd (cons (protect V2727) ())) ())) (cons (cons tl (cons (protect V2727) ())) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons list.reduce ())) ())) ())))) ()))))) (do (shen.record-kl take (cons defun (cons take (cons (cons (protect V2747) (cons (protect V2748) ())) (cons (cons cond (cons (cons (cons = (cons 0 (cons (protect V2747) ()))) (cons () ())) (cons (cons (cons = (cons () (cons (protect V2748) ()))) (cons () ())) (cons (cons (cons cons? (cons (protect V2748) ())) (cons (cons cons (cons (cons hd (cons (protect V2748) ())) (cons (cons take (cons (cons - (cons (protect V2747) (cons 1 ()))) (cons (cons tl (cons (protect V2748) ())) ()))) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons take ())) ())) ()))))) ()))))) (do (shen.record-kl take-last (cons defun (cons take-last (cons (cons (protect V2759) (cons (protect V2760) ())) (cons (cons reverse (cons (cons take (cons (protect V2759) (cons (cons reverse (cons (protect V2760) ())) ()))) ())) ()))))) (do (shen.record-kl cartprod (cons defun (cons cartprod (cons (cons (protect V2771) (cons (protect V2772) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2771) ()))) (cons () ())) (cons (cons (cons cons? (cons (protect V2771) ())) (cons (cons append (cons (cons map (cons (cons lambda (cons (protect Z2773) (cons (cons cons (cons (cons hd (cons (protect V2771) ())) (cons (cons cons (cons (protect Z2773) (cons () ()))) ()))) ()))) (cons (protect V2772) ()))) (cons (cons cartprod (cons (cons tl (cons (protect V2771) ())) (cons (protect V2772) ()))) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons cartprod ())) ())) ())))) ()))))) (do (shen.record-kl powerset (cons defun (cons powerset (cons (cons (protect V2784) ()) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2784) ()))) (cons (cons cons (cons () (cons () ()))) ())) (cons (cons (cons cons? (cons (protect V2784) ())) (cons (cons let (cons (protect W2785) (cons (cons powerset (cons (cons tl (cons (protect V2784) ())) ())) (cons (cons append (cons (protect W2785) (cons (cons map (cons (cons lambda (cons (protect Z2786) (cons (cons cons (cons (cons hd (cons (protect V2784) ())) (cons (protect Z2786) ()))) ()))) (cons (protect W2785) ()))) ()))) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons powerset ())) ())) ())))) ()))))) (do (shen.record-kl partition (cons defun (cons partition (cons (cons (protect V2800) (cons (protect V2801) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2801) ()))) (cons () ())) (cons (cons (cons cons? (cons (protect V2801) ())) (cons (cons let (cons (protect W2802) (cons (cons mapcan (cons (cons lambda (cons (protect Z2803) (cons (cons if (cons (cons (cons (protect V2800) (cons (cons hd (cons (protect V2801) ())) ())) (cons (protect Z2803) ())) (cons (cons cons (cons (protect Z2803) (cons () ()))) (cons () ())))) ()))) (cons (protect V2801) ()))) (cons (cons let (cons (protect W2804) (cons (cons difference (cons (protect V2801) (cons (protect W2802) ()))) (cons (cons cons (cons (protect W2802) (cons (cons partition (cons (protect V2800) (cons (protect W2804) ()))) ()))) ())))) ())))) ())) (cons (cons true (cons (cons simple-error (cons "partition equires a list" ())) ())) ())))) ()))))) (do (shen.record-kl transitive-closure (cons defun (cons transitive-closure (cons (cons (protect V2815) ()) (cons (cons let (cons (protect W2816) (cons (cons list.transitive-pass (cons (protect V2815) (cons (protect V2815) ()))) (cons (cons if (cons (cons = (cons (protect W2816) (cons (protect V2815) ()))) (cons (protect W2816) (cons (cons list.transitive-pass (cons (protect W2816) (cons (protect W2816) ()))) ())))) ())))) ()))))) (do (shen.record-kl list.transitive-pass (cons defun (cons list.transitive-pass (cons (cons (protect V2826) (cons (protect V2827) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2826) ()))) (cons (protect V2827) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V2826) ())) (cons (cons tuple? (cons (cons hd (cons (protect V2826) ())) ())) ()))) (cons (cons let (cons (protect W2828) (cons (cons list.find-trans (cons (cons fst (cons (cons hd (cons (protect V2826) ())) ())) (cons (cons snd (cons (cons hd (cons (protect V2826) ())) ())) (cons (protect V2827) ())))) (cons (cons union (cons (protect W2828) (cons (cons list.transitive-pass (cons (cons tl (cons (protect V2826) ())) (cons (protect V2827) ()))) ()))) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons list.transitive-pass ())) ())) ())))) ()))))) (do (shen.record-kl list.find-trans (cons defun (cons list.find-trans (cons (cons (protect V2849) (cons (protect V2850) (cons (protect V2851) ()))) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V2851) ()))) (cons () ())) (cons (cons (cons and (cons (cons cons? (cons (protect V2851) ())) (cons (cons and (cons (cons tuple? (cons (cons hd (cons (protect V2851) ())) ())) (cons (cons = (cons (protect V2850) (cons (cons fst (cons (cons hd (cons (protect V2851) ())) ())) ()))) ()))) ()))) (cons (cons cons (cons (cons @p (cons (protect V2849) (cons (cons snd (cons (cons hd (cons (protect V2851) ())) ())) ()))) (cons (cons list.find-trans (cons (protect V2849) (cons (cons fst (cons (cons hd (cons (protect V2851) ())) ())) (cons (cons tl (cons (protect V2851) ())) ())))) ()))) ())) (cons (cons (cons cons? (cons (protect V2851) ())) (cons (cons list.find-trans (cons (protect V2849) (cons (protect V2850) (cons (cons tl (cons (protect V2851) ())) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons list.find-trans ())) ())) ()))))) ()))))) (do (shen.record-kl x->ascii (cons defun (cons x->ascii (cons (cons (protect V2868) ()) (cons (cons map (cons (cons lambda (cons (protect Z2869) (cons (cons string->n (cons (protect Z2869) ())) ()))) (cons (cons explode (cons (protect V2868) ())) ()))) ()))))) (do (shen.record-kl splice (cons defun (cons splice (cons (cons (protect V2877) (cons (protect V2878) (cons (protect V2879) ()))) (cons (cons cond (cons (cons (cons = (cons 1 (cons (protect V2877) ()))) (cons (cons append (cons (protect V2878) (cons (protect V2879) ()))) ())) (cons (cons (cons cons? (cons (protect V2879) ())) (cons (cons cons (cons (cons hd (cons (protect V2879) ())) (cons (cons splice (cons (cons - (cons (protect V2877) (cons 1 ()))) (cons (protect V2878) (cons (cons tl (cons (protect V2879) ())) ())))) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons splice ())) ())) ())))) ()))))) (do (shen.record-kl string-macros (cons defun (cons string-macros (cons (cons (protect V2892) ()) (cons (cons cond (cons (cons (cons and (cons (cons cons? (cons (protect V2892) ())) (cons (cons and (cons (cons = (cons s-op1 (cons (cons hd (cons (protect V2892) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V2892) ())) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (protect V2892) ())) ())) ())) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V2892) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) (cons (cons cons (cons s-op1 (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect V2892) ())) ())) (cons (cons cons (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V2892) ())) ())) ())) (cons (cons cons (cons (cons cons (cons /. (cons (cons cons (cons (protect X) (cons (cons cons (cons (protect X) (cons () ()))) ()))) ()))) (cons () ()))) ()))) ()))) ()))) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V2892) ())) (cons (cons and (cons (cons = (cons s-op2 (cons (cons hd (cons (protect V2892) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V2892) ())) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (protect V2892) ())) ())) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V2892) ())) ())) ())) ())) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V2892) ())) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) ()))) (cons (cons cons (cons s-op2 (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect V2892) ())) ())) (cons (cons cons (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V2892) ())) ())) ())) (cons (cons cons (cons (cons hd (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V2892) ())) ())) ())) ())) (cons (cons cons (cons (cons cons (cons /. (cons (cons cons (cons (protect X) (cons (cons cons (cons (protect X) (cons () ()))) ()))) ()))) (cons () ()))) ()))) ()))) ()))) ()))) ())) (cons (cons true (cons (protect V2892) ())) ())))) ()))))) (do (shen.record-kl string->list (cons defun (cons string->list (cons (cons (protect V2988) ()) (cons (cons cond (cons (cons (cons = (cons "" (cons (protect V2988) ()))) (cons () ())) (cons (cons true (cons (cons string.s->l-h (cons (protect V2988) (cons 1 (cons (cons pos (cons (protect V2988) (cons 0 ()))) (cons () ()))))) ())) ()))) ()))))) (do (shen.record-kl string.s->l-h (cons defun (cons string.s->l-h (cons (cons (protect V2995) (cons (protect V2996) (cons (protect V2997) (cons (protect V2998) ())))) (cons (cons cond (cons (cons (cons = (cons "" (cons (protect V2997) ()))) (cons (cons reverse (cons (protect V2998) ())) ())) (cons (cons true (cons (cons string.s->l-h (cons (protect V2995) (cons (cons + (cons (protect V2996) (cons 1 ()))) (cons (cons trap-error (cons (cons pos (cons (protect V2995) (cons (protect V2996) ()))) (cons (cons lambda (cons (protect Z2999) (cons "" ()))) ()))) (cons (cons cons (cons (protect V2997) (cons (protect V2998) ()))) ()))))) ())) ()))) ()))))) (do (shen.record-kl list->string (cons defun (cons list->string (cons (cons (protect V3012) ()) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V3012) ()))) (cons "" ())) (cons (cons (cons cons? (cons (protect V3012) ())) (cons (cons cn (cons (cons hd (cons (protect V3012) ())) (cons (cons list->string (cons (cons tl (cons (protect V3012) ())) ())) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons list->string ())) ())) ())))) ()))))) (do (shen.record-kl s-op1 (cons defun (cons s-op1 (cons (cons (protect V3020) (cons (protect V3021) (cons (protect V3022) ()))) (cons (cons (protect V3022) (cons (cons (protect V3020) (cons (cons string->list (cons (protect V3021) ())) ())) ())) ()))))) (do (shen.record-kl s-op2 (cons defun (cons s-op2 (cons (cons (protect V3035) (cons (protect V3036) (cons (protect V3037) (cons (protect V3038) ())))) (cons (cons (protect V3038) (cons (cons (cons (protect V3035) (cons (cons string->list (cons (protect V3036) ())) ())) (cons (cons string->list (cons (protect V3037) ())) ())) ())) ()))))) (do (shen.record-kl string.count (cons defun (cons string.count (cons (cons (protect V3059) (cons (protect V3060) ())) (cons (cons cond (cons (cons (cons = (cons "" (cons (protect V3060) ()))) (cons 0 ())) (cons (cons (cons and (cons (cons shen.+string? (cons (protect V3060) ())) (cons (cons = (cons (protect V3059) (cons (cons hdstr (cons (protect V3060) ())) ()))) ()))) (cons (cons + (cons 1 (cons (cons string.count (cons (cons hdstr (cons (protect V3060) ())) (cons (cons tlstr (cons (protect V3060) ())) ()))) ()))) ())) (cons (cons (cons shen.+string? (cons (protect V3060) ())) (cons (cons string.count (cons (protect V3059) (cons (cons tlstr (cons (protect V3060) ())) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons string.count ())) ())) ()))))) ()))))) (do (shen.record-kl string.reverse (cons defun (cons string.reverse (cons (cons (protect V3071) ()) (cons (cons s-op1 (cons (cons lambda (cons (protect Z3072) (cons (cons reverse (cons (protect Z3072) ())) ()))) (cons (protect V3071) (cons (cons lambda (cons (protect Z3073) (cons (cons list->string (cons (protect Z3073) ())) ()))) ())))) ()))))) (do (shen.record-kl string.element? (cons defun (cons string.element? (cons (cons (protect V3080) (cons (protect V3081) ())) (cons (cons s-op1 (cons (cons lambda (cons (protect Z3082) (cons (cons element? (cons (protect V3080) (cons (protect Z3082) ()))) ()))) (cons (protect V3081) (cons (cons lambda (cons (protect Z3083) (cons (protect Z3083) ()))) ())))) ()))))) (do (shen.record-kl string.prefix? (cons defun (cons string.prefix? (cons (cons (protect V3093) (cons (protect V3094) ())) (cons (cons s-op2 (cons (cons lambda (cons (protect Z3095) (cons (cons lambda (cons (protect Z3096) (cons (cons prefix? (cons (protect Z3095) (cons (protect Z3096) ()))) ()))) ()))) (cons (protect V3093) (cons (protect V3094) (cons (cons lambda (cons (protect Z3097) (cons (protect Z3097) ()))) ()))))) ()))))) (do (shen.record-kl string.infix? (cons defun (cons string.infix? (cons (cons (protect V3107) (cons (protect V3108) ())) (cons (cons s-op2 (cons (cons lambda (cons (protect Z3109) (cons (cons lambda (cons (protect Z3110) (cons (cons infix? (cons (protect Z3109) (cons (protect Z3110) ()))) ()))) ()))) (cons (protect V3107) (cons (protect V3108) (cons (cons lambda (cons (protect Z3111) (cons (protect Z3111) ()))) ()))))) ()))))) (do (shen.record-kl string.suffix? (cons defun (cons string.suffix? (cons (cons (protect V3121) (cons (protect V3122) ())) (cons (cons s-op2 (cons (cons lambda (cons (protect Z3123) (cons (cons lambda (cons (protect Z3124) (cons (cons suffix? (cons (protect Z3123) (cons (protect Z3124) ()))) ()))) ()))) (cons (protect V3121) (cons (protect V3122) (cons (cons lambda (cons (protect Z3125) (cons (protect Z3125) ()))) ()))))) ()))))) (do (shen.record-kl string.subset? (cons defun (cons string.subset? (cons (cons (protect V3135) (cons (protect V3136) ())) (cons (cons s-op2 (cons (cons lambda (cons (protect Z3137) (cons (cons lambda (cons (protect Z3138) (cons (cons subset? (cons (protect Z3137) (cons (protect Z3138) ()))) ()))) ()))) (cons (protect V3135) (cons (protect V3136) (cons (cons lambda (cons (protect Z3139) (cons (protect Z3139) ()))) ()))))) ()))))) (do (shen.record-kl string.set=? (cons defun (cons string.set=? (cons (cons (protect V3149) (cons (protect V3150) ())) (cons (cons s-op2 (cons (cons lambda (cons (protect Z3151) (cons (cons lambda (cons (protect Z3152) (cons (cons set=? (cons (protect Z3151) (cons (protect Z3152) ()))) ()))) ()))) (cons (protect V3149) (cons (protect V3150) (cons (cons lambda (cons (protect Z3153) (cons (protect Z3153) ()))) ()))))) ()))))) (do (shen.record-kl string.set? (cons defun (cons string.set? (cons (cons (protect V3162) ()) (cons (cons s-op1 (cons (cons lambda (cons (protect Z3163) (cons (cons set? (cons (protect Z3163) ())) ()))) (cons (protect V3162) (cons (cons lambda (cons (protect Z3164) (cons (protect Z3164) ()))) ())))) ()))))) (do (shen.record-kl file-extension (cons defun (cons file-extension (cons (cons (protect V3171) (cons (protect V3172) ())) (cons (cons cn (cons (cons strip-extension (cons (protect V3171) ())) (cons (protect V3172) ()))) ()))))) (do (shen.record-kl strip-extension (cons defun (cons strip-extension (cons (cons (protect V3182) ()) (cons (cons cond (cons (cons (cons = (cons "" (cons (protect V3182) ()))) (cons "" ())) (cons (cons (cons and (cons (cons shen.+string? (cons (protect V3182) ())) (cons (cons = (cons "." (cons (cons hdstr (cons (protect V3182) ())) ()))) ()))) (cons "" ())) (cons (cons (cons shen.+string? (cons (protect V3182) ())) (cons (cons @s (cons (cons hdstr (cons (protect V3182) ())) (cons (cons strip-extension (cons (cons tlstr (cons (protect V3182) ())) ())) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons strip-extension ())) ())) ()))))) ()))))) (do (shen.record-kl string.length (cons defun (cons string.length (cons (cons (protect V3191) ()) (cons (cons s-op1 (cons (cons lambda (cons (protect Z3192) (cons (cons length (cons (protect Z3192) ())) ()))) (cons (protect V3191) (cons (cons lambda (cons (protect Z3193) (cons (protect Z3193) ()))) ())))) ()))))) (do (shen.record-kl string.trim (cons defun (cons string.trim (cons (cons (protect V3202) (cons (protect V3203) ())) (cons (cons s-op1 (cons (cons lambda (cons (protect Z3204) (cons (cons trim (cons (protect V3202) (cons (protect Z3204) ()))) ()))) (cons (protect V3203) (cons (cons lambda (cons (protect Z3205) (cons (cons list->string (cons (protect Z3205) ())) ()))) ())))) ()))))) (do (shen.record-kl string.trim-if (cons defun (cons string.trim-if (cons (cons (protect V3216) (cons (protect V3217) ())) (cons (cons s-op1 (cons (cons lambda (cons (protect Z3218) (cons (cons trim-if (cons (protect V3216) (cons (protect Z3218) ()))) ()))) (cons (protect V3217) (cons (cons lambda (cons (protect Z3219) (cons (cons list->string (cons (protect Z3219) ())) ()))) ())))) ()))))) (do (shen.record-kl string.trim-right-if (cons defun (cons string.trim-right-if (cons (cons (protect V3230) (cons (protect V3231) ())) (cons (cons s-op1 (cons (cons lambda (cons (protect Z3232) (cons (cons trim-right-if (cons (protect V3230) (cons (protect Z3232) ()))) ()))) (cons (protect V3231) (cons (cons lambda (cons (protect Z3233) (cons (cons list->string (cons (protect Z3233) ())) ()))) ())))) ()))))) (do (shen.record-kl string.trim-left-if (cons defun (cons string.trim-left-if (cons (cons (protect V3244) (cons (protect V3245) ())) (cons (cons s-op1 (cons (cons lambda (cons (protect Z3246) (cons (cons trim-left-if (cons (protect V3244) (cons (protect Z3246) ()))) ()))) (cons (protect V3245) (cons (cons lambda (cons (protect Z3247) (cons (cons list->string (cons (protect Z3247) ())) ()))) ())))) ()))))) (do (shen.record-kl string.trim-right (cons defun (cons string.trim-right (cons (cons (protect V3258) (cons (protect V3259) ())) (cons (cons s-op1 (cons (cons lambda (cons (protect Z3260) (cons (cons trim-right (cons (protect V3258) (cons (protect Z3260) ()))) ()))) (cons (protect V3259) (cons (cons lambda (cons (protect Z3261) (cons (cons list->string (cons (protect Z3261) ())) ()))) ())))) ()))))) (do (shen.record-kl string.trim-left (cons defun (cons string.trim-left (cons (cons (protect V3272) (cons (protect V3273) ())) (cons (cons s-op1 (cons (cons lambda (cons (protect Z3274) (cons (cons trim-left (cons (protect V3272) (cons (protect Z3274) ()))) ()))) (cons (protect V3273) (cons (cons lambda (cons (protect Z3275) (cons (cons list->string (cons (protect Z3275) ())) ()))) ())))) ()))))) (do (shen.record-kl string.some? (cons defun (cons string.some? (cons (cons (protect V3286) (cons (protect V3287) ())) (cons (cons cond (cons (cons (cons = (cons "" (cons (protect V3287) ()))) (cons false ())) (cons (cons (cons shen.+string? (cons (protect V3287) ())) (cons (cons or (cons (cons (protect V3286) (cons (cons hdstr (cons (protect V3287) ())) ())) (cons (cons string.some? (cons (protect V3286) (cons (cons tlstr (cons (protect V3287) ())) ()))) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons string.some? ())) ())) ())))) ()))))) (do (shen.record-kl string.every? (cons defun (cons string.every? (cons (cons (protect V3298) (cons (protect V3299) ())) (cons (cons cond (cons (cons (cons = (cons "" (cons (protect V3299) ()))) (cons true ())) (cons (cons (cons shen.+string? (cons (protect V3299) ())) (cons (cons and (cons (cons (protect V3298) (cons (cons hdstr (cons (protect V3299) ())) ())) (cons (cons string.every? (cons (protect V3298) (cons (cons tlstr (cons (protect V3299) ())) ()))) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons string.every? ())) ())) ())))) ()))))) (do (shen.record-kl string.difference (cons defun (cons string.difference (cons (cons (protect V3311) (cons (protect V3312) ())) (cons (cons s-op2 (cons (cons lambda (cons (protect Z3313) (cons (cons lambda (cons (protect Z3314) (cons (cons difference (cons (protect Z3313) (cons (protect Z3314) ()))) ()))) ()))) (cons (protect V3311) (cons (protect V3312) (cons (cons lambda (cons (protect Z3315) (cons (cons list->string (cons (protect Z3315) ())) ()))) ()))))) ()))))) (do (shen.record-kl string.intersection (cons defun (cons string.intersection (cons (cons (protect V3326) (cons (protect V3327) ())) (cons (cons s-op2 (cons (cons lambda (cons (protect Z3328) (cons (cons lambda (cons (protect Z3329) (cons (cons intersection (cons (protect Z3328) (cons (protect Z3329) ()))) ()))) ()))) (cons (protect V3326) (cons (protect V3327) (cons (cons lambda (cons (protect Z3330) (cons (cons list->string (cons (protect Z3330) ())) ()))) ()))))) ()))))) (do (shen.record-kl string.nth (cons defun (cons string.nth (cons (cons (protect V3338) (cons (protect V3339) ())) (cons (cons pos (cons (protect V3339) (cons (cons + (cons (protect V3338) (cons 1 ()))) ()))) ()))))) (do (shen.record-kl whitespace? (cons defun (cons whitespace? (cons (cons (protect V3349) ()) (cons (cons cond (cons (cons (cons shen.+string? (cons (protect V3349) ())) (cons (cons let (cons (protect W3350) (cons (cons string->n (cons (cons hdstr (cons (protect V3349) ())) ())) (cons (cons element? (cons (protect W3350) (cons (cons cons (cons 9 (cons (cons cons (cons 10 (cons (cons cons (cons 13 (cons (cons cons (cons 32 (cons () ()))) ()))) ()))) ()))) ()))) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons whitespace? ())) ())) ()))) ()))))) (do (shen.record-kl uppercase? (cons defun (cons uppercase? (cons (cons (protect V3359) ()) (cons (cons cond (cons (cons (cons shen.+string? (cons (protect V3359) ())) (cons (cons let (cons (protect W3360) (cons (cons string->n (cons (cons hdstr (cons (protect V3359) ())) ())) (cons (cons and (cons (cons > (cons (protect W3360) (cons 64 ()))) (cons (cons < (cons (protect W3360) (cons 91 ()))) ()))) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons uppercase? ())) ())) ()))) ()))))) (do (shen.record-kl lowercase? (cons defun (cons lowercase? (cons (cons (protect V3369) ()) (cons (cons cond (cons (cons (cons shen.+string? (cons (protect V3369) ())) (cons (cons let (cons (protect W3370) (cons (cons string->n (cons (cons hdstr (cons (protect V3369) ())) ())) (cons (cons and (cons (cons > (cons (protect W3370) (cons 96 ()))) (cons (cons < (cons (protect W3370) (cons 123 ()))) ()))) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons lowercase? ())) ())) ()))) ()))))) (do (shen.record-kl digit? (cons defun (cons digit? (cons (cons (protect V3379) ()) (cons (cons cond (cons (cons (cons shen.+string? (cons (protect V3379) ())) (cons (cons let (cons (protect W3380) (cons (cons string->n (cons (cons hdstr (cons (protect V3379) ())) ())) (cons (cons and (cons (cons > (cons (protect W3380) (cons 47 ()))) (cons (cons < (cons (protect W3380) (cons 58 ()))) ()))) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons digit? ())) ())) ()))) ()))))) (do (shen.record-kl alpha? (cons defun (cons alpha? (cons (cons (protect V3391) ()) (cons (cons cond (cons (cons (cons shen.+string? (cons (protect V3391) ())) (cons (cons let (cons (protect W3392) (cons (cons string->n (cons (cons hdstr (cons (protect V3391) ())) ())) (cons (cons or (cons (cons and (cons (cons > (cons (protect W3392) (cons 64 ()))) (cons (cons < (cons (protect W3392) (cons 91 ()))) ()))) (cons (cons and (cons (cons > (cons (protect W3392) (cons 96 ()))) (cons (cons < (cons (protect W3392) (cons 123 ()))) ()))) ()))) ())))) ())) (cons (cons true (cons false ())) ()))) ()))))) (do (shen.record-kl alphanum? (cons defun (cons alphanum? (cons (cons (protect V3403) ()) (cons (cons cond (cons (cons (cons shen.+string? (cons (protect V3403) ())) (cons (cons let (cons (protect W3404) (cons (cons string->n (cons (cons hdstr (cons (protect V3403) ())) ())) (cons (cons or (cons (cons and (cons (cons > (cons (protect W3404) (cons 64 ()))) (cons (cons < (cons (protect W3404) (cons 91 ()))) ()))) (cons (cons or (cons (cons and (cons (cons > (cons (protect W3404) (cons 96 ()))) (cons (cons < (cons (protect W3404) (cons 123 ()))) ()))) (cons (cons and (cons (cons > (cons (protect W3404) (cons 47 ()))) (cons (cons < (cons (protect W3404) (cons 58 ()))) ()))) ()))) ()))) ())))) ())) (cons (cons true (cons false ())) ()))) ()))))) (do (shen.record-kl tokenise (cons defun (cons tokenise (cons (cons (protect V3411) (cons (protect V3412) ())) (cons (cons string.tokenise-h (cons (protect V3411) (cons (protect V3412) (cons "" ())))) ()))))) (do (shen.record-kl string.tokenise-h (cons defun (cons string.tokenise-h (cons (cons (protect V3423) (cons (protect V3424) (cons (protect V3425) ()))) (cons (cons cond (cons (cons (cons = (cons "" (cons (protect V3424) ()))) (cons (cons cons (cons (protect V3425) (cons () ()))) ())) (cons (cons (cons and (cons (cons shen.+string? (cons (protect V3424) ())) (cons (cons (protect V3423) (cons (cons hdstr (cons (protect V3424) ())) ())) ()))) (cons (cons cons (cons (protect V3425) (cons (cons string.tokenise-h (cons (protect V3423) (cons (cons tlstr (cons (protect V3424) ())) (cons "" ())))) ()))) ())) (cons (cons (cons shen.+string? (cons (protect V3424) ())) (cons (cons string.tokenise-h (cons (protect V3423) (cons (cons tlstr (cons (protect V3424) ())) (cons (cons @s (cons (protect V3425) (cons (cons hdstr (cons (protect V3424) ())) ()))) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons string.tokenise-h ())) ())) ()))))) ()))))) (do (shen.record-kl uppercase (cons defun (cons uppercase (cons (cons (protect V3436) ()) (cons (cons cond (cons (cons (cons shen.+string? (cons (protect V3436) ())) (cons (cons if (cons (cons lowercase? (cons (cons hdstr (cons (protect V3436) ())) ())) (cons (cons @s (cons (cons n->string (cons (cons - (cons (cons string->n (cons (cons hdstr (cons (protect V3436) ())) ())) (cons 32 ()))) ())) (cons (cons tlstr (cons (protect V3436) ())) ()))) (cons (protect V3436) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons uppercase ())) ())) ()))) ()))))) (do (shen.record-kl lowercase (cons defun (cons lowercase (cons (cons (protect V3444) ()) (cons (cons cond (cons (cons (cons shen.+string? (cons (protect V3444) ())) (cons (cons if (cons (cons uppercase? (cons (cons hdstr (cons (protect V3444) ())) ())) (cons (cons @s (cons (cons n->string (cons (cons + (cons (cons string->n (cons (cons hdstr (cons (protect V3444) ())) ())) (cons 32 ()))) ())) (cons (cons tlstr (cons (protect V3444) ())) ()))) (cons (protect V3444) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons lowercase ())) ())) ()))) ()))))) (do (shen.record-kl string.map (cons defun (cons string.map (cons (cons (protect V3454) (cons (protect V3455) ())) (cons (cons cond (cons (cons (cons = (cons "" (cons (protect V3455) ()))) (cons "" ())) (cons (cons (cons shen.+string? (cons (protect V3455) ())) (cons (cons @s (cons (cons (protect V3454) (cons (cons hdstr (cons (protect V3455) ())) ())) (cons (cons string.map (cons (protect V3454) (cons (cons tlstr (cons (protect V3455) ())) ()))) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons string.map ())) ())) ())))) ()))))) (do (shen.record-kl spell-number (cons defun (cons spell-number (cons (cons (protect V3466) ()) (cons (cons cond (cons (cons (cons = (cons 0 (cons (protect V3466) ()))) (cons "zero" ())) (cons (cons true (cons (cons string.scale (cons (cons map (cons (cons lambda (cons (protect Z3467) (cons (cons string.digits (cons (protect Z3467) ())) ()))) (cons (cons string.triples (cons (cons explode (cons (protect V3466) ())) ())) ()))) ())) ())) ()))) ()))))) (do (shen.record-kl string.digit (cons defun (cons string.digit (cons (cons (protect V3474) ()) (cons (cons cond (cons (cons (cons = (cons "0" (cons (protect V3474) ()))) (cons "" ())) (cons (cons (cons = (cons "1" (cons (protect V3474) ()))) (cons "one" ())) (cons (cons (cons = (cons "2" (cons (protect V3474) ()))) (cons "two" ())) (cons (cons (cons = (cons "3" (cons (protect V3474) ()))) (cons "three" ())) (cons (cons (cons = (cons "4" (cons (protect V3474) ()))) (cons "four" ())) (cons (cons (cons = (cons "5" (cons (protect V3474) ()))) (cons "five" ())) (cons (cons (cons = (cons "6" (cons (protect V3474) ()))) (cons "six" ())) (cons (cons (cons = (cons "7" (cons (protect V3474) ()))) (cons "seven" ())) (cons (cons (cons = (cons "8" (cons (protect V3474) ()))) (cons "eight" ())) (cons (cons (cons = (cons "9" (cons (protect V3474) ()))) (cons "nine" ())) (cons (cons true (cons (cons shen.f-error (cons string.digit ())) ())) ())))))))))))) ()))))) (do (shen.record-kl string.triples (cons defun (cons string.triples (cons (cons (protect V3481) ()) (cons (cons string.triples-h (cons (cons reverse (cons (protect V3481) ())) (cons () ()))) ()))))) (do (shen.record-kl string.triples-h (cons defun (cons string.triples-h (cons (cons (protect V3489) (cons (protect V3490) ())) (cons (cons cond (cons (cons (cons and (cons (cons cons? (cons (protect V3489) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V3489) ())) ())) (cons (cons cons? (cons (cons tl (cons (cons tl (cons (protect V3489) ())) ())) ())) ()))) ()))) (cons (cons string.triples-h (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V3489) ())) ())) ())) (cons (cons cons (cons (cons reverse (cons (cons cons (cons (cons hd (cons (protect V3489) ())) (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect V3489) ())) ())) (cons (cons cons (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V3489) ())) ())) ())) (cons () ()))) ()))) ()))) ())) (cons (protect V3490) ()))) ()))) ())) (cons (cons true (cons (cons cons (cons (cons reverse (cons (protect V3489) ())) (cons (protect V3490) ()))) ())) ()))) ()))))) (do (shen.record-kl string.digits (cons defun (cons string.digits (cons (cons (protect V3503) ()) (cons (cons cond (cons (cons (cons and (cons (cons cons? (cons (protect V3503) ())) (cons (cons and (cons (cons = (cons "0" (cons (cons hd (cons (protect V3503) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V3503) ())) ())) (cons (cons and (cons (cons = (cons "0" (cons (cons hd (cons (cons tl (cons (protect V3503) ())) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (protect V3503) ())) ())) ())) (cons (cons and (cons (cons = (cons "0" (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V3503) ())) ())) ())) ()))) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V3503) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) ()))) ()))) (cons "" ())) (cons (cons (cons and (cons (cons cons? (cons (protect V3503) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V3503) ())) ())) (cons (cons and (cons (cons = (cons "0" (cons (cons hd (cons (cons tl (cons (protect V3503) ())) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (protect V3503) ())) ())) ())) (cons (cons and (cons (cons = (cons "0" (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V3503) ())) ())) ())) ()))) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V3503) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) ()))) (cons (cons @s (cons (cons string.digit (cons (cons hd (cons (protect V3503) ())) ())) (cons (cons @s (cons " " (cons "hundred" ()))) ()))) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V3503) ())) (cons (cons and (cons (cons = (cons "0" (cons (cons hd (cons (protect V3503) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V3503) ())) ())) (cons (cons and (cons (cons = (cons "0" (cons (cons hd (cons (cons tl (cons (protect V3503) ())) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (protect V3503) ())) ())) ())) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V3503) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) ()))) (cons (cons @s (cons "a" (cons (cons @s (cons "n" (cons (cons @s (cons "d" (cons (cons @s (cons " " (cons (cons string.digit (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V3503) ())) ())) ())) ())) ()))) ()))) ()))) ()))) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V3503) ())) (cons (cons and (cons (cons = (cons "0" (cons (cons hd (cons (protect V3503) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V3503) ())) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (protect V3503) ())) ())) ())) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V3503) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) (cons (cons @s (cons "a" (cons (cons @s (cons "n" (cons (cons @s (cons "d" (cons (cons @s (cons " " (cons (cons string.tens (cons (cons hd (cons (cons tl (cons (protect V3503) ())) ())) (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V3503) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V3503) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V3503) ())) ())) (cons (cons and (cons (cons = (cons "0" (cons (cons hd (cons (cons tl (cons (protect V3503) ())) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (protect V3503) ())) ())) ())) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V3503) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) (cons (cons @s (cons (cons string.digit (cons (cons hd (cons (protect V3503) ())) ())) (cons (cons @s (cons " " (cons (cons @s (cons "h" (cons (cons @s (cons "u" (cons (cons @s (cons "n" (cons (cons @s (cons "d" (cons (cons @s (cons "r" (cons (cons @s (cons "e" (cons (cons @s (cons "d" (cons (cons @s (cons " " (cons (cons @s (cons "a" (cons (cons @s (cons "n" (cons (cons @s (cons "d" (cons (cons @s (cons " " (cons (cons string.digit (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V3503) ())) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V3503) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V3503) ())) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (protect V3503) ())) ())) ())) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V3503) ())) ())) ())) ()))) ()))) ()))) ()))) (cons (cons @s (cons (cons string.digit (cons (cons hd (cons (protect V3503) ())) ())) (cons (cons @s (cons " " (cons (cons @s (cons "h" (cons (cons @s (cons "u" (cons (cons @s (cons "n" (cons (cons @s (cons "d" (cons (cons @s (cons "r" (cons (cons @s (cons "e" (cons (cons @s (cons "d" (cons (cons @s (cons " " (cons (cons @s (cons "a" (cons (cons @s (cons "n" (cons (cons @s (cons "d" (cons (cons @s (cons " " (cons (cons string.tens (cons (cons hd (cons (cons tl (cons (protect V3503) ())) ())) (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V3503) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V3503) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V3503) ())) ())) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (protect V3503) ())) ())) ()))) ()))) ()))) (cons (cons string.tens (cons (cons hd (cons (protect V3503) ())) (cons (cons hd (cons (cons tl (cons (protect V3503) ())) ())) ()))) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V3503) ())) (cons (cons = (cons () (cons (cons tl (cons (protect V3503) ())) ()))) ()))) (cons (cons string.digit (cons (cons hd (cons (protect V3503) ())) ())) ())) (cons (cons (cons = (cons () (cons (protect V3503) ()))) (cons "" ())) (cons (cons true (cons (cons shen.f-error (cons string.digits ())) ())) ()))))))))))) ()))))) (do (shen.record-kl string.tens (cons defun (cons string.tens (cons (cons (protect V3516) (cons (protect V3517) ())) (cons (cons cond (cons (cons (cons = (cons "1" (cons (protect V3516) ()))) (cons (cons if (cons (cons = (cons (protect V3517) (cons "0" ()))) (cons "ten" (cons (cons if (cons (cons = (cons (protect V3517) (cons "1" ()))) (cons "eleven" (cons (cons if (cons (cons = (cons (protect V3517) (cons "2" ()))) (cons "twelve" (cons (cons if (cons (cons = (cons (protect V3517) (cons "3" ()))) (cons "thirteen" (cons (cons if (cons (cons = (cons (protect V3517) (cons "4" ()))) (cons "fourteen" (cons (cons if (cons (cons = (cons (protect V3517) (cons "5" ()))) (cons "fifteen" (cons (cons if (cons (cons = (cons (protect V3517) (cons "6" ()))) (cons "sixteen" (cons (cons if (cons (cons = (cons (protect V3517) (cons "7" ()))) (cons "seventeen" (cons (cons if (cons (cons = (cons (protect V3517) (cons "8" ()))) (cons "eighteen" (cons (cons if (cons (cons = (cons (protect V3517) (cons "9" ()))) (cons "nineteen" (cons (cons simple-error (cons "error: cases exhausted" ())) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())) (cons (cons (cons = (cons "2" (cons (protect V3516) ()))) (cons (cons @s (cons "t" (cons (cons @s (cons "w" (cons (cons @s (cons "e" (cons (cons @s (cons "n" (cons (cons @s (cons "t" (cons (cons @s (cons "y" (cons (cons @s (cons " " (cons (cons string.digit (cons (protect V3517) ())) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ())) (cons (cons (cons = (cons "3" (cons (protect V3516) ()))) (cons (cons @s (cons "t" (cons (cons @s (cons "h" (cons (cons @s (cons "i" (cons (cons @s (cons "r" (cons (cons @s (cons "t" (cons (cons @s (cons "y" (cons (cons @s (cons " " (cons (cons string.digit (cons (protect V3517) ())) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ())) (cons (cons (cons = (cons "4" (cons (protect V3516) ()))) (cons (cons @s (cons "f" (cons (cons @s (cons "o" (cons (cons @s (cons "r" (cons (cons @s (cons "t" (cons (cons @s (cons "y" (cons (cons @s (cons " " (cons (cons string.digit (cons (protect V3517) ())) ()))) ()))) ()))) ()))) ()))) ()))) ())) (cons (cons (cons = (cons "5" (cons (protect V3516) ()))) (cons (cons @s (cons "f" (cons (cons @s (cons "i" (cons (cons @s (cons "f" (cons (cons @s (cons "t" (cons (cons @s (cons "y" (cons (cons @s (cons " " (cons (cons string.digit (cons (protect V3517) ())) ()))) ()))) ()))) ()))) ()))) ()))) ())) (cons (cons (cons = (cons "6" (cons (protect V3516) ()))) (cons (cons @s (cons "s" (cons (cons @s (cons "i" (cons (cons @s (cons "x" (cons (cons @s (cons "t" (cons (cons @s (cons "y" (cons (cons @s (cons " " (cons (cons string.digit (cons (protect V3517) ())) ()))) ()))) ()))) ()))) ()))) ()))) ())) (cons (cons (cons = (cons "7" (cons (protect V3516) ()))) (cons (cons @s (cons "s" (cons (cons @s (cons "e" (cons (cons @s (cons "v" (cons (cons @s (cons "e" (cons (cons @s (cons "n" (cons (cons @s (cons "t" (cons (cons @s (cons "y" (cons (cons @s (cons " " (cons (cons string.digit (cons (protect V3517) ())) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ())) (cons (cons (cons = (cons "8" (cons (protect V3516) ()))) (cons (cons @s (cons "e" (cons (cons @s (cons "i" (cons (cons @s (cons "g" (cons (cons @s (cons "h" (cons (cons @s (cons "t" (cons (cons @s (cons "y" (cons (cons @s (cons " " (cons (cons string.digit (cons (protect V3517) ())) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ())) (cons (cons (cons = (cons "9" (cons (protect V3516) ()))) (cons (cons @s (cons "n" (cons (cons @s (cons "i" (cons (cons @s (cons "n" (cons (cons @s (cons "e" (cons (cons @s (cons "t" (cons (cons @s (cons "y" (cons (cons @s (cons " " (cons (cons string.digit (cons (protect V3517) ())) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons string.tens ())) ())) ()))))))))))) ()))))) (do (shen.record-kl string.scale (cons defun (cons string.scale (cons (cons (protect V3525) ()) (cons (cons cond (cons (cons (cons and (cons (cons cons? (cons (protect V3525) ())) (cons (cons = (cons () (cons (cons tl (cons (protect V3525) ())) ()))) ()))) (cons (cons hd (cons (protect V3525) ())) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V3525) ())) (cons (cons = (cons "" (cons (cons hd (cons (protect V3525) ())) ()))) ()))) (cons (cons string.scale (cons (cons tl (cons (protect V3525) ())) ())) ())) (cons (cons (cons cons? (cons (protect V3525) ())) (cons (cons @s (cons (cons hd (cons (protect V3525) ())) (cons (cons @s (cons (cons string.units (cons (cons length (cons (protect V3525) ())) ())) (cons (cons string.scale (cons (cons tl (cons (protect V3525) ())) ())) ()))) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons string.scale ())) ())) ()))))) ()))))) (do (shen.record-kl string.units (cons defun (cons string.units (cons (cons (protect V3536) ()) (cons (cons cond (cons (cons (cons = (cons 2 (cons (protect V3536) ()))) (cons " thousand " ())) (cons (cons (cons = (cons 3 (cons (protect V3536) ()))) (cons " million " ())) (cons (cons (cons = (cons 4 (cons (protect V3536) ()))) (cons " billion " ())) (cons (cons (cons = (cons 5 (cons (protect V3536) ()))) (cons " trillion " ())) (cons (cons true (cons (cons simple-error (cons "this number has a magnitude beyond our text representation" ())) ())) ())))))) ()))))) (do (shen.record-kl string>? (cons defun (cons string>? (cons (cons (protect V3547) (cons (protect V3548) ())) (cons (cons cond (cons (cons (cons = (cons "" (cons (protect V3547) ()))) (cons false ())) (cons (cons (cons = (cons "" (cons (protect V3548) ()))) (cons true ())) (cons (cons (cons and (cons (cons shen.+string? (cons (protect V3547) ())) (cons (cons shen.+string? (cons (protect V3548) ())) ()))) (cons (cons let (cons (protect W3549) (cons (cons string->n (cons (cons hdstr (cons (protect V3547) ())) ())) (cons (cons let (cons (protect W3550) (cons (cons string->n (cons (cons hdstr (cons (protect V3548) ())) ())) (cons (cons if (cons (cons > (cons (protect W3549) (cons (protect W3550) ()))) (cons true (cons (cons if (cons (cons < (cons (protect W3549) (cons (protect W3550) ()))) (cons false (cons (cons string>? (cons (cons tlstr (cons (protect V3547) ())) (cons (cons tlstr (cons (protect V3548) ())) ()))) ())))) ())))) ())))) ())))) ())) (cons (cons true (cons (cons shen.f-error (cons string>? ())) ())) ()))))) ()))))) (do (shen.record-kl stringn (cons (cons hdstr (cons (protect V3563) ())) ())) (cons (cons let (cons (protect W3566) (cons (cons string->n (cons (cons hdstr (cons (protect V3564) ())) ())) (cons (cons if (cons (cons < (cons (protect W3565) (cons (protect W3566) ()))) (cons true (cons (cons if (cons (cons > (cons (protect W3565) (cons (protect W3566) ()))) (cons false (cons (cons string=? (cons defun (cons string>=? (cons (cons (protect V3575) (cons (protect V3576) ())) (cons (cons or (cons (cons = (cons (protect V3575) (cons (protect V3576) ()))) (cons (cons string>? (cons (protect V3575) (cons (protect V3576) ()))) ()))) ()))))) (do (shen.record-kl string<=? (cons defun (cons string<=? (cons (cons (protect V3584) (cons (protect V3585) ())) (cons (cons or (cons (cons = (cons (protect V3584) (cons (protect V3585) ()))) (cons (cons stringstrings (cons (protect W3614) (cons () ()))) (cons (cons let (cons (protect W3616) (cons (cons compile (cons (cons lambda (cons (protect Z3617) (cons (cons string. (cons (protect Z3617) ())) ()))) (cons (protect W3615) ()))) (cons (cons let (cons (protect W3618) (cons (cons file-extension (cons (protect V3612) (cons (protect V3613) ()))) (cons (cons let (cons (protect W3619) (cons (cons write-to-file (cons (protect W3618) (cons (protect W3616) ()))) (cons (protect W3618) ())))) ())))) ())))) ())))) ())))) ()))))) (do (shen.record-kl string.bytes->strings (cons defun (cons string.bytes->strings (cons (cons (protect V3622) (cons (protect V3623) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V3622) ()))) (cons (cons reverse (cons (protect V3623) ())) ())) (cons (cons (cons cons? (cons (protect V3622) ())) (cons (cons string.bytes->strings (cons (cons tl (cons (protect V3622) ())) (cons (cons cons (cons (cons n->string (cons (cons hd (cons (protect V3622) ())) ())) (cons (protect V3623) ()))) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons string.bytes->strings ())) ())) ())))) ()))))) (do (shen.record-kl render (cons defun (cons render (cons (cons (protect V3628) ()) (cons (cons compile (cons (cons lambda (cons (protect Z3629) (cons (cons string. (cons (protect Z3629) ())) ()))) (cons (cons string->list (cons (protect V3628) ())) ()))) ()))))) (do (shen.record-kl string.rendered? (cons defun (cons string.rendered? (cons (cons (protect V3635) ()) (cons (cons cond (cons (cons (cons = (cons "" (cons (protect V3635) ()))) (cons true ())) (cons (cons (cons and (cons (cons shen.+string? (cons (protect V3635) ())) (cons (cons = (cons "{" (cons (cons hdstr (cons (protect V3635) ())) ()))) ()))) (cons false ())) (cons (cons (cons shen.+string? (cons (protect V3635) ())) (cons (cons string.rendered? (cons (cons tlstr (cons (protect V3635) ())) ())) ())) (cons (cons true (cons (cons shen.f-error (cons string.rendered? ())) ())) ()))))) ()))))) (do (shen.record-kl string. (cons defun (cons string. (cons (cons (protect V3642) ()) (cons (cons let (cons (protect W3643) (cons (cons if (cons (cons shen.hds=? (cons (protect V3642) (cons "{" ()))) (cons (cons let (cons (protect W3644) (cons (cons tail (cons (protect V3642) ())) (cons (cons let (cons (protect W3645) (cons (cons string. (cons (protect W3644) ())) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W3645) ())) (cons (cons shen.parse-failure ()) (cons (cons let (cons (protect W3646) (cons (cons shen.<-out (cons (protect W3645) ())) (cons (cons let (cons (protect W3647) (cons (cons shen.in-> (cons (protect W3645) ())) (cons (cons let (cons (protect W3648) (cons (cons string. (cons (protect W3647) ())) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W3648) ())) (cons (cons shen.parse-failure ()) (cons (cons let (cons (protect W3649) (cons (cons shen.in-> (cons (protect W3648) ())) (cons (cons let (cons (protect W3650) (cons (cons string. (cons (protect W3649) ())) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W3650) ())) (cons (cons shen.parse-failure ()) (cons (cons let (cons (protect W3651) (cons (cons shen.<-out (cons (protect W3650) ())) (cons (cons let (cons (protect W3652) (cons (cons shen.in-> (cons (protect W3650) ())) (cons (cons if (cons (cons shen.hds=? (cons (protect W3652) (cons "}" ()))) (cons (cons let (cons (protect W3653) (cons (cons tail (cons (protect W3652) ())) (cons (cons let (cons (protect W3654) (cons (cons string. (cons (protect W3653) ())) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W3654) ())) (cons (cons shen.parse-failure ()) (cons (cons let (cons (protect W3655) (cons (cons shen.<-out (cons (protect W3654) ())) (cons (cons let (cons (protect W3656) (cons (cons shen.in-> (cons (protect W3654) ())) (cons (cons shen.comb (cons (protect W3656) (cons (cons cn (cons (cons string.recapply (cons (cons fn (cons (cons intern (cons (protect W3646) ())) ())) (cons (protect W3651) ()))) (cons (protect W3655) ()))) ()))) ())))) ())))) ())))) ())))) ())))) (cons (cons shen.parse-failure ()) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) (cons (cons shen.parse-failure ()) ())))) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W3643) ())) (cons (cons let (cons (protect W3657) (cons (cons if (cons (cons shen.hds=? (cons (protect V3642) (cons "{" ()))) (cons (cons let (cons (protect W3658) (cons (cons tail (cons (protect V3642) ())) (cons (cons let (cons (protect W3659) (cons (cons string. (cons (protect W3658) ())) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W3659) ())) (cons (cons shen.parse-failure ()) (cons (cons let (cons (protect W3660) (cons (cons shen.<-out (cons (protect W3659) ())) (cons (cons let (cons (protect W3661) (cons (cons shen.in-> (cons (protect W3659) ())) (cons (cons if (cons (cons shen.hds=? (cons (protect W3661) (cons "}" ()))) (cons (cons let (cons (protect W3662) (cons (cons tail (cons (protect W3661) ())) (cons (cons let (cons (protect W3663) (cons (cons string. (cons (protect W3662) ())) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W3663) ())) (cons (cons shen.parse-failure ()) (cons (cons let (cons (protect W3664) (cons (cons shen.<-out (cons (protect W3663) ())) (cons (cons let (cons (protect W3665) (cons (cons shen.in-> (cons (protect W3663) ())) (cons (cons shen.comb (cons (protect W3665) (cons (cons cn (cons (cons (cons intern (cons (protect W3660) ())) ()) (cons (protect W3664) ()))) ()))) ())))) ())))) ())))) ())))) ())))) (cons (cons shen.parse-failure ()) ())))) ())))) ())))) ())))) ())))) ())))) (cons (cons shen.parse-failure ()) ())))) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W3657) ())) (cons (cons let (cons (protect W3666) (cons (cons let (cons (protect W3667) (cons (cons string. (cons (protect V3642) ())) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W3667) ())) (cons (cons shen.parse-failure ()) (cons (cons let (cons (protect W3668) (cons (cons shen.<-out (cons (protect W3667) ())) (cons (cons let (cons (protect W3669) (cons (cons shen.in-> (cons (protect W3667) ())) (cons (cons let (cons (protect W3670) (cons (cons string. (cons (protect W3669) ())) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W3670) ())) (cons (cons shen.parse-failure ()) (cons (cons let (cons (protect W3671) (cons (cons shen.<-out (cons (protect W3670) ())) (cons (cons let (cons (protect W3672) (cons (cons shen.in-> (cons (protect W3670) ())) (cons (cons shen.comb (cons (protect W3672) (cons (cons cn (cons (protect W3668) (cons (protect W3671) ()))) ()))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W3666) ())) (cons (cons let (cons (protect W3673) (cons (cons let (cons (protect W3674) (cons (cons (cons (protect V3642) ())) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W3674) ())) (cons (cons shen.parse-failure ()) (cons (cons let (cons (protect W3675) (cons (cons shen.in-> (cons (protect W3674) ())) (cons (cons shen.comb (cons (protect W3675) (cons "" ()))) ())))) ())))) ())))) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W3673) ())) (cons (cons shen.parse-failure ()) (cons (protect W3673) ())))) ())))) (cons (protect W3666) ())))) ())))) (cons (protect W3657) ())))) ())))) (cons (protect W3643) ())))) ())))) ()))))) (do (shen.record-kl string. (cons defun (cons string. (cons (cons (protect V3679) ()) (cons (cons let (cons (protect W3680) (cons (cons if (cons (cons cons? (cons (protect V3679) ())) (cons (cons let (cons (protect W3681) (cons (cons head (cons (protect V3679) ())) (cons (cons let (cons (protect W3682) (cons (cons tail (cons (protect V3679) ())) (cons (cons if (cons (cons and (cons (cons not (cons (cons = (cons (protect W3681) (cons "}" ()))) ())) (cons (cons not (cons (cons = (cons (protect W3681) (cons "\" ()))) ())) ()))) (cons (cons shen.comb (cons (protect W3682) (cons (protect W3681) ()))) (cons (cons shen.parse-failure ()) ())))) ())))) ())))) (cons (cons shen.parse-failure ()) ())))) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W3680) ())) (cons (cons shen.parse-failure ()) (cons (protect W3680) ())))) ())))) ()))))) (do (shen.record-kl string.recapply (cons defun (cons string.recapply (cons (cons (protect V3684) (cons (protect V3685) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V3685) ()))) (cons (protect V3684) ())) (cons (cons (cons cons? (cons (protect V3685) ())) (cons (cons string.recapply (cons (cons (protect V3684) (cons (cons hd (cons (protect V3685) ())) ())) (cons (cons tl (cons (protect V3685) ())) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons string.recapply ())) ())) ())))) ()))))) (do (shen.record-kl string. (cons defun (cons string. (cons (cons (protect V3691) ()) (cons (cons let (cons (protect W3692) (cons (cons let (cons (protect W3693) (cons (cons string. (cons (protect V3691) ())) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W3693) ())) (cons (cons shen.parse-failure ()) (cons (cons let (cons (protect W3694) (cons (cons shen.<-out (cons (protect W3693) ())) (cons (cons let (cons (protect W3695) (cons (cons shen.in-> (cons (protect W3693) ())) (cons (cons if (cons (cons shen.hds=? (cons (protect W3695) (cons "\" ()))) (cons (cons let (cons (protect W3696) (cons (cons tail (cons (protect W3695) ())) (cons (cons let (cons (protect W3697) (cons (cons string. (cons (protect W3696) ())) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W3697) ())) (cons (cons shen.parse-failure ()) (cons (cons let (cons (protect W3698) (cons (cons shen.<-out (cons (protect W3697) ())) (cons (cons let (cons (protect W3699) (cons (cons shen.in-> (cons (protect W3697) ())) (cons (cons shen.comb (cons (protect W3699) (cons (cons cons (cons (protect W3694) (cons (protect W3698) ()))) ()))) ())))) ())))) ())))) ())))) ())))) (cons (cons shen.parse-failure ()) ())))) ())))) ())))) ())))) ())))) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W3692) ())) (cons (cons let (cons (protect W3700) (cons (cons let (cons (protect W3701) (cons (cons string. (cons (protect V3691) ())) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W3701) ())) (cons (cons shen.parse-failure ()) (cons (cons let (cons (protect W3702) (cons (cons shen.<-out (cons (protect W3701) ())) (cons (cons let (cons (protect W3703) (cons (cons shen.in-> (cons (protect W3701) ())) (cons (cons shen.comb (cons (protect W3703) (cons (cons cons (cons (protect W3702) (cons () ()))) ()))) ())))) ())))) ())))) ())))) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W3700) ())) (cons (cons shen.parse-failure ()) (cons (protect W3700) ())))) ())))) (cons (protect W3692) ())))) ())))) ()))))) (do (shen.record-kl string. (cons defun (cons string. (cons (cons (protect V3706) ()) (cons (cons let (cons (protect W3707) (cons (cons let (cons (protect W3708) (cons (cons string. (cons (protect V3706) ())) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W3708) ())) (cons (cons shen.parse-failure ()) (cons (cons let (cons (protect W3709) (cons (cons shen.<-out (cons (protect W3708) ())) (cons (cons let (cons (protect W3710) (cons (cons shen.in-> (cons (protect W3708) ())) (cons (cons shen.comb (cons (protect W3710) (cons (protect W3709) ()))) ())))) ())))) ())))) ())))) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W3707) ())) (cons (cons shen.parse-failure ()) (cons (protect W3707) ())))) ())))) ()))))) (do (shen.record-kl string. (cons defun (cons string. (cons (cons (protect V3714) ()) (cons (cons let (cons (protect W3715) (cons (cons if (cons (cons cons? (cons (protect V3714) ())) (cons (cons let (cons (protect W3716) (cons (cons head (cons (protect V3714) ())) (cons (cons let (cons (protect W3717) (cons (cons tail (cons (protect V3714) ())) (cons (cons if (cons (cons and (cons (cons not (cons (cons = (cons (protect W3716) (cons "}" ()))) ())) (cons (cons not (cons (cons = (cons (protect W3716) (cons "\" ()))) ())) ()))) (cons (cons shen.comb (cons (protect W3717) (cons (protect W3716) ()))) (cons (cons shen.parse-failure ()) ())))) ())))) ())))) (cons (cons shen.parse-failure ()) ())))) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W3715) ())) (cons (cons shen.parse-failure ()) (cons (protect W3715) ())))) ())))) ()))))) (do (shen.record-kl string. (cons defun (cons string. (cons (cons (protect V3721) ()) (cons (cons let (cons (protect W3722) (cons (cons if (cons (cons cons? (cons (protect V3721) ())) (cons (cons let (cons (protect W3723) (cons (cons head (cons (protect V3721) ())) (cons (cons let (cons (protect W3724) (cons (cons tail (cons (protect V3721) ())) (cons (cons if (cons (cons whitespace? (cons (protect W3723) ())) (cons (cons shen.comb (cons (protect W3724) (cons string.skip ()))) (cons (cons shen.parse-failure ()) ())))) ())))) ())))) (cons (cons shen.parse-failure ()) ())))) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W3722) ())) (cons (cons shen.parse-failure ()) (cons (protect W3722) ())))) ())))) ()))))) (do (shen.record-kl string. (cons defun (cons string. (cons (cons (protect V3727) ()) (cons (cons let (cons (protect W3728) (cons (cons let (cons (protect W3729) (cons (cons string. (cons (protect V3727) ())) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W3729) ())) (cons (cons shen.parse-failure ()) (cons (cons let (cons (protect W3730) (cons (cons shen.<-out (cons (protect W3729) ())) (cons (cons let (cons (protect W3731) (cons (cons shen.in-> (cons (protect W3729) ())) (cons (cons let (cons (protect W3732) (cons (cons string. (cons (protect W3731) ())) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W3732) ())) (cons (cons shen.parse-failure ()) (cons (cons let (cons (protect W3733) (cons (cons shen.<-out (cons (protect W3732) ())) (cons (cons let (cons (protect W3734) (cons (cons shen.in-> (cons (protect W3732) ())) (cons (cons shen.comb (cons (protect W3734) (cons (cons cn (cons (protect W3730) (cons (protect W3733) ()))) ()))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) ())))) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W3728) ())) (cons (cons let (cons (protect W3735) (cons (cons let (cons (protect W3736) (cons (cons (cons (protect V3727) ())) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W3736) ())) (cons (cons shen.parse-failure ()) (cons (cons let (cons (protect W3737) (cons (cons shen.in-> (cons (protect W3736) ())) (cons (cons shen.comb (cons (protect W3737) (cons "" ()))) ())))) ())))) ())))) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W3735) ())) (cons (cons shen.parse-failure ()) (cons (protect W3735) ())))) ())))) (cons (protect W3728) ())))) ())))) ()))))) (do (shen.record-kl string. (cons defun (cons string. (cons (cons (protect V3741) ()) (cons (cons let (cons (protect W3742) (cons (cons if (cons (cons cons? (cons (protect V3741) ())) (cons (cons let (cons (protect W3743) (cons (cons head (cons (protect V3741) ())) (cons (cons let (cons (protect W3744) (cons (cons tail (cons (protect V3741) ())) (cons (cons if (cons (cons and (cons (cons not (cons (cons = (cons (protect W3743) (cons "}" ()))) ())) (cons (cons and (cons (cons not (cons (cons = (cons (protect W3743) (cons "\" ()))) ())) (cons (cons not (cons (cons whitespace? (cons (protect W3743) ())) ())) ()))) ()))) (cons (cons shen.comb (cons (protect W3744) (cons (protect W3743) ()))) (cons (cons shen.parse-failure ()) ())))) ())))) ())))) (cons (cons shen.parse-failure ()) ())))) (cons (cons if (cons (cons shen.parse-failure? (cons (protect W3742) ())) (cons (cons shen.parse-failure ()) (cons (protect W3742) ())))) ())))) ()))))) (do (shen.record-kl vector.vector-macros (cons defun (cons vector.vector-macros (cons (cons (protect V3746) ()) (cons (cons let (cons (protect GoTo3750) (cons (cons freeze (cons (protect V3746) ())) (cons (cons if (cons (cons cons? (cons (protect V3746) ())) (cons (cons let (cons (protect Select3792) (cons (cons hd (cons (protect V3746) ())) (cons (cons let (cons (protect Select3793) (cons (cons tl (cons (protect V3746) ())) (cons (cons let (cons (protect GoTo3777) (cons (cons freeze (cons (cons let (cons (protect GoTo3763) (cons (cons freeze (cons (cons if (cons (cons = (cons array (cons (protect Select3792) ()))) (cons (cons if (cons (cons cons? (cons (protect Select3793) ())) (cons (cons let (cons (protect Select3761) (cons (cons hd (cons (protect Select3793) ())) (cons (cons let (cons (protect Select3762) (cons (cons tl (cons (protect Select3793) ())) (cons (cons if (cons (cons cons? (cons (protect Select3761) ())) (cons (cons let (cons (protect Select3760) (cons (cons tl (cons (protect Select3761) ())) (cons (cons if (cons (cons = (cons cons (cons (cons hd (cons (protect Select3761) ())) ()))) (cons (cons if (cons (cons cons? (cons (protect Select3760) ())) (cons (cons let (cons (protect Select3758) (cons (cons hd (cons (protect Select3760) ())) (cons (cons let (cons (protect Select3759) (cons (cons tl (cons (protect Select3760) ())) (cons (cons if (cons (cons cons? (cons (protect Select3759) ())) (cons (cons let (cons (protect Select3757) (cons (cons tl (cons (protect Select3759) ())) (cons (cons if (cons (cons and (cons (cons = (cons () (cons (cons hd (cons (protect Select3759) ())) ()))) (cons (cons and (cons (cons = (cons () (cons (protect Select3757) ()))) (cons (cons = (cons () (cons (protect Select3762) ()))) ()))) ()))) (cons (cons cons (cons vector (cons (cons cons (cons (protect Select3758) (cons () ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons () (cons (protect Select3757) ()))) (cons (cons = (cons () (cons (protect Select3762) ()))) ()))) (cons (cons let (cons (protect W3748) (cons (cons newv ()) (cons (cons let (cons (protect W3749) (cons (cons newv ()) (cons (cons cons (cons let (cons (cons cons (cons (protect W3748) (cons (cons cons (cons (cons cons (cons vector (cons (cons cons (cons (protect Select3758) (cons () ()))) ()))) (cons (cons cons (cons (cons cons (cons do (cons (cons cons (cons (cons cons (cons for (cons (cons cons (cons (protect W3749) (cons (cons cons (cons = (cons (cons cons (cons 1 (cons (cons cons (cons to (cons (cons cons (cons (protect Select3758) (cons (cons cons (cons (cons cons (cons vector-> (cons (cons cons (cons (protect W3748) (cons (cons cons (cons (protect W3749) (cons (cons cons (cons (cons cons (cons array (cons (protect Select3759) ()))) (cons () ()))) ()))) ()))) ()))) (cons () ()))) ()))) ()))) ()))) ()))) ()))) ()))) (cons (cons cons (cons (protect W3748) (cons () ()))) ()))) ()))) (cons () ()))) ()))) ()))) ()))) ())))) ())))) (cons (cons thaw (cons (protect GoTo3750) ())) ())))) ())))) ())))) (cons (cons thaw (cons (protect GoTo3750) ())) ())))) ())))) ())))) (cons (cons thaw (cons (protect GoTo3750) ())) ())))) (cons (cons thaw (cons (protect GoTo3750) ())) ())))) ())))) (cons (cons thaw (cons (protect GoTo3750) ())) ())))) ())))) ())))) (cons (cons thaw (cons (protect GoTo3750) ())) ())))) (cons (cons thaw (cons (protect GoTo3750) ())) ())))) ())) (cons (cons if (cons (cons cons? (cons (protect Select3793) ())) (cons (cons let (cons (protect Select3775) (cons (cons hd (cons (protect Select3793) ())) (cons (cons let (cons (protect Select3776) (cons (cons tl (cons (protect Select3793) ())) (cons (cons if (cons (cons cons? (cons (protect Select3775) ())) (cons (cons let (cons (protect Select3774) (cons (cons tl (cons (protect Select3775) ())) (cons (cons if (cons (cons = (cons cons (cons (cons hd (cons (protect Select3775) ())) ()))) (cons (cons if (cons (cons cons? (cons (protect Select3774) ())) (cons (cons let (cons (protect Select3772) (cons (cons hd (cons (protect Select3774) ())) (cons (cons let (cons (protect Select3773) (cons (cons tl (cons (protect Select3774) ())) (cons (cons if (cons (cons cons? (cons (protect Select3773) ())) (cons (cons let (cons (protect Select3770) (cons (cons hd (cons (protect Select3773) ())) (cons (cons let (cons (protect Select3771) (cons (cons tl (cons (protect Select3773) ())) (cons (cons if (cons (cons and (cons (cons = (cons () (cons (protect Select3770) ()))) (cons (cons and (cons (cons = (cons () (cons (protect Select3771) ()))) (cons (cons and (cons (cons cons? (cons (protect Select3776) ())) (cons (cons let (cons (protect Select3768) (cons (cons tl (cons (protect Select3776) ())) (cons (cons and (cons (cons = (cons := (cons (cons hd (cons (protect Select3776) ())) ()))) (cons (cons and (cons (cons cons? (cons (protect Select3768) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select3768) ())) ()))) ()))) ()))) ())))) ()))) ()))) ()))) (cons (cons cons (cons vector-> (cons (cons cons (cons (protect Select3792) (cons (cons cons (cons (protect Select3772) (cons (cons tl (cons (protect Select3776) ())) ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons () (cons (protect Select3771) ()))) (cons (cons and (cons (cons cons? (cons (protect Select3776) ())) (cons (cons let (cons (protect Select3769) (cons (cons tl (cons (protect Select3776) ())) (cons (cons and (cons (cons = (cons := (cons (cons hd (cons (protect Select3776) ())) ()))) (cons (cons and (cons (cons cons? (cons (protect Select3769) ())) (cons (cons = (cons () (cons (cons tl (cons (protect Select3769) ())) ()))) ()))) ()))) ())))) ()))) ()))) (cons (cons let (cons (protect W3747) (cons (cons newv ()) (cons (cons cons (cons let (cons (cons cons (cons (protect W3747) (cons (cons cons (cons (cons cons (cons <-vector (cons (cons cons (cons (protect Select3792) (cons (cons cons (cons (protect Select3772) (cons () ()))) ()))) ()))) (cons (cons cons (cons (cons cons (cons (protect W3747) (cons (cons cons (cons (protect Select3770) (cons (protect Select3776) ()))) ()))) (cons () ()))) ()))) ()))) ()))) ())))) (cons (cons thaw (cons (protect GoTo3763) ())) ())))) ())))) ())))) ())))) (cons (cons thaw (cons (protect GoTo3763) ())) ())))) ())))) ())))) (cons (cons thaw (cons (protect GoTo3763) ())) ())))) (cons (cons thaw (cons (protect GoTo3763) ())) ())))) ())))) (cons (cons thaw (cons (protect GoTo3763) ())) ())))) ())))) ())))) (cons (cons thaw (cons (protect GoTo3763) ())) ())))) ())))) ())) (cons (cons if (cons (cons = (cons := (cons (protect Select3792) ()))) (cons (cons if (cons (cons cons? (cons (protect Select3793) ())) (cons (cons let (cons (protect Select3790) (cons (cons hd (cons (protect Select3793) ())) (cons (cons let (cons (protect Select3791) (cons (cons tl (cons (protect Select3793) ())) (cons (cons if (cons (cons cons? (cons (protect Select3791) ())) (cons (cons let (cons (protect Select3788) (cons (cons hd (cons (protect Select3791) ())) (cons (cons let (cons (protect Select3789) (cons (cons tl (cons (protect Select3791) ())) (cons (cons if (cons (cons cons? (cons (protect Select3788) ())) (cons (cons let (cons (protect Select3787) (cons (cons tl (cons (protect Select3788) ())) (cons (cons if (cons (cons = (cons cons (cons (cons hd (cons (protect Select3788) ())) ()))) (cons (cons if (cons (cons cons? (cons (protect Select3787) ())) (cons (cons let (cons (protect Select3785) (cons (cons hd (cons (protect Select3787) ())) (cons (cons let (cons (protect Select3786) (cons (cons tl (cons (protect Select3787) ())) (cons (cons if (cons (cons cons? (cons (protect Select3786) ())) (cons (cons let (cons (protect Select3784) (cons (cons tl (cons (protect Select3786) ())) (cons (cons if (cons (cons and (cons (cons = (cons () (cons (cons hd (cons (protect Select3786) ())) ()))) (cons (cons and (cons (cons = (cons () (cons (protect Select3784) ()))) (cons (cons = (cons () (cons (protect Select3789) ()))) ()))) ()))) (cons (cons cons (cons <-vector (cons (cons cons (cons (protect Select3790) (cons (cons cons (cons (protect Select3785) (cons () ()))) ()))) ()))) (cons (cons if (cons (cons and (cons (cons = (cons () (cons (protect Select3784) ()))) (cons (cons = (cons () (cons (protect Select3789) ()))) ()))) (cons (cons cons (cons := (cons (cons cons (cons (cons cons (cons <-vector (cons (cons cons (cons (protect Select3790) (cons (cons cons (cons (protect Select3785) (cons () ()))) ()))) ()))) (cons (protect Select3786) ()))) ()))) (cons (cons thaw (cons (protect GoTo3777) ())) ())))) ())))) ())))) (cons (cons thaw (cons (protect GoTo3777) ())) ())))) ())))) ())))) (cons (cons thaw (cons (protect GoTo3777) ())) ())))) (cons (cons thaw (cons (protect GoTo3777) ())) ())))) ())))) (cons (cons thaw (cons (protect GoTo3777) ())) ())))) ())))) ())))) (cons (cons thaw (cons (protect GoTo3777) ())) ())))) ())))) ())))) (cons (cons thaw (cons (protect GoTo3777) ())) ())))) (cons (cons thaw (cons (protect GoTo3777) ())) ())))) ())))) ())))) ())))) (cons (cons thaw (cons (protect GoTo3750) ())) ())))) ())))) ()))))) (do (shen.record-kl print.pprint-macro (cons defun (cons print.pprint-macro (cons (cons (protect V3873) ()) (cons (cons cond (cons (cons (cons and (cons (cons cons? (cons (protect V3873) ())) (cons (cons and (cons (cons = (cons pprint (cons (cons hd (cons (protect V3873) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V3873) ())) ())) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (protect V3873) ())) ())) ()))) ()))) ()))) ()))) (cons (cons cons (cons pprint (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect V3873) ())) ())) (cons (cons cons (cons (cons cons (cons stoutput (cons () ()))) (cons () ()))) ()))) ()))) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V3873) ())) (cons (cons and (cons (cons = (cons pps (cons (cons hd (cons (protect V3873) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V3873) ())) ())) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (protect V3873) ())) ())) ()))) ()))) ()))) ()))) (cons (cons cons (cons pps (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect V3873) ())) ())) (cons (cons cons (cons (cons cons (cons stoutput (cons () ()))) (cons () ()))) ()))) ()))) ())) (cons (cons true (cons (protect V3873) ())) ())))) ()))))) (do (shen.record-kl linelength (cons defun (cons linelength (cons () (cons (cons value (cons print.*linelength* ())) ()))))) (do (shen.record-kl indentation (cons defun (cons indentation (cons () (cons (cons value (cons print.*indentation* ())) ()))))) (do (shen.record-kl set-linelength (cons defun (cons set-linelength (cons (cons (protect V3887) ()) (cons (cons cond (cons (cons (cons and (cons (cons positive? (cons (protect V3887) ())) (cons (cons integer? (cons (protect V3887) ())) ()))) (cons (cons set (cons print.*linelength* (cons (protect V3887) ()))) ())) (cons (cons true (cons (cons simple-error (cons "line length must be a positive integer +" ())) ())) ()))) ()))))) (do (shen.record-kl set-indentation (cons defun (cons set-indentation (cons (cons (protect V3894) ()) (cons (cons cond (cons (cons (cons and (cons (cons positive? (cons (protect V3894) ())) (cons (cons integer? (cons (protect V3894) ())) ()))) (cons (cons set (cons print.*indentation* (cons (protect V3894) ()))) ())) (cons (cons true (cons (cons simple-error (cons "indentation must be a positive integer +" ())) ())) ()))) ()))))) (do (shen.record-kl pps (cons defun (cons pps (cons (cons (protect V3901) (cons (protect V3902) ())) (cons (cons let (cons (protect W3903) (cons (cons ps (cons (protect V3901) ())) (cons (cons let (cons (protect W3904) (cons (cons shen.app (cons (protect W3903) (cons "" (cons shen.r ())))) (cons (cons let (cons (protect W3905) (cons (cons pretty-string (cons (protect W3904) ())) (cons (cons let (cons (protect W3906) (cons (cons pr (cons (protect W3905) (cons (protect V3902) ()))) (cons (cons let (cons (protect W3907) (cons (cons nl (cons 1 ())) (cons (protect V3901) ())))) ())))) ())))) ())))) ())))) ()))))) (do (shen.record-kl pprint (cons defun (cons pprint (cons (cons (protect V3915) (cons (protect V3916) ())) (cons (cons let (cons (protect W3917) (cons (cons shen.app (cons (protect V3915) (cons "" (cons shen.s ())))) (cons (cons let (cons (protect W3918) (cons (cons pretty-string (cons (protect W3917) ())) (cons (cons let (cons (protect W3919) (cons (cons pr (cons (protect W3918) (cons (protect V3916) ()))) (cons (cons let (cons (protect W3920) (cons (cons nl (cons 1 ())) (cons (protect V3915) ())))) ())))) ())))) ())))) ()))))) (do (shen.record-kl pretty-string (cons defun (cons pretty-string (cons (cons (protect V3930) ()) (cons (cons print.pretty-string-h (cons (protect V3930) (cons 0 (cons 0 ())))) ()))))) (do (shen.record-kl print.pretty-string-h (cons defun (cons print.pretty-string-h (cons (cons (protect V3941) (cons (protect V3942) (cons (protect V3943) ()))) (cons (cons cond (cons (cons (cons = (cons "" (cons (protect V3941) ()))) (cons "" ())) (cons (cons (cons and (cons (cons shen.+string? (cons (protect V3941) ())) (cons (cons = (cons "[" (cons (cons hdstr (cons (protect V3941) ())) ()))) ()))) (cons (cons @s (cons (cons print.indent (cons (protect V3942) ())) (cons (cons @s (cons "[" (cons (cons print.pretty-string-h (cons (cons tlstr (cons (protect V3941) ())) (cons (cons + (cons (protect V3942) (cons 1 ()))) (cons 0 ())))) ()))) ()))) ())) (cons (cons (cons and (cons (cons shen.+string? (cons (protect V3941) ())) (cons (cons = (cons "(" (cons (cons hdstr (cons (protect V3941) ())) ()))) ()))) (cons (cons @s (cons (cons print.indent (cons (protect V3942) ())) (cons (cons @s (cons "(" (cons (cons print.pretty-string-h (cons (cons tlstr (cons (protect V3941) ())) (cons (cons + (cons (protect V3942) (cons 1 ()))) (cons 0 ())))) ()))) ()))) ())) (cons (cons (cons and (cons (cons shen.+string? (cons (protect V3941) ())) (cons (cons = (cons "]" (cons (cons hdstr (cons (protect V3941) ())) ()))) ()))) (cons (cons @s (cons "]" (cons (cons print.pretty-string-h (cons (cons tlstr (cons (protect V3941) ())) (cons (cons - (cons (protect V3942) (cons 1 ()))) (cons 0 ())))) ()))) ())) (cons (cons (cons and (cons (cons shen.+string? (cons (protect V3941) ())) (cons (cons = (cons ")" (cons (cons hdstr (cons (protect V3941) ())) ()))) ()))) (cons (cons @s (cons ")" (cons (cons print.pretty-string-h (cons (cons tlstr (cons (protect V3941) ())) (cons (cons - (cons (protect V3942) (cons 1 ()))) (cons 0 ())))) ()))) ())) (cons (cons (cons and (cons (cons shen.+string? (cons (protect V3941) ())) (cons (cons and (cons (cons = (cons " " (cons (cons hdstr (cons (protect V3941) ())) ()))) (cons (cons > (cons (protect V3943) (cons (cons linelength ()) ()))) ()))) ()))) (cons (cons @s (cons (cons print.indent (cons (protect V3942) ())) (cons (cons print.pretty-string-h (cons (cons tlstr (cons (protect V3941) ())) (cons (protect V3942) (cons 0 ())))) ()))) ())) (cons (cons (cons shen.+string? (cons (protect V3941) ())) (cons (cons @s (cons (cons hdstr (cons (protect V3941) ())) (cons (cons print.pretty-string-h (cons (cons tlstr (cons (protect V3941) ())) (cons (protect V3942) (cons (cons + (cons (protect V3943) (cons 1 ()))) ())))) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons print.pretty-string-h ())) ())) ()))))))))) ()))))) (do (shen.record-kl print.indent (cons defun (cons print.indent (cons (cons (protect V3961) ()) (cons (cons cond (cons (cons (cons = (cons 0 (cons (protect V3961) ()))) (cons "" ())) (cons (cons true (cons (cons @s (cons " +" (cons (cons print.indent-h (cons (protect V3961) ())) ()))) ())) ()))) ()))))) (do (shen.record-kl print.indent-h (cons defun (cons print.indent-h (cons (cons (protect V3968) ()) (cons (cons cond (cons (cons (cons = (cons 0 (cons (protect V3968) ()))) (cons "" ())) (cons (cons true (cons (cons cn (cons (cons print.n-space (cons (cons indentation ()) ())) (cons (cons print.indent-h (cons (cons - (cons (protect V3968) (cons 1 ()))) ())) ()))) ())) ()))) ()))))) (do (shen.record-kl print.n-space (cons defun (cons print.n-space (cons (cons (protect V3976) ()) (cons (cons cond (cons (cons (cons = (cons 0 (cons (protect V3976) ()))) (cons "" ())) (cons (cons true (cons (cons cn (cons " " (cons (cons print.n-space (cons (cons - (cons (protect V3976) (cons 1 ()))) ())) ()))) ())) ()))) ()))))) (do (shen.record-kl delete-file (cons defun (cons delete-file (cons (cons (protect V3984) ()) (cons (cons if (cons (cons = (cons (cons language ()) (cons "Common Lisp" ()))) (cons (cons (cons fn (cons lisp.delete-file ())) (cons (protect V3984) ())) (cons (cons close (cons (cons open (cons (protect V3984) (cons out ()))) ())) ())))) ()))))) (do (shen.record-kl file.file-macro (cons defun (cons file.file-macro (cons (cons (protect V4017) ()) (cons (cons cond (cons (cons (cons and (cons (cons cons? (cons (protect V4017) ())) (cons (cons and (cons (cons = (cons errout (cons (cons hd (cons (protect V4017) ())) ()))) (cons (cons and (cons (cons cons? (cons (cons tl (cons (protect V4017) ())) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (protect V4017) ())) ())) ())) (cons (cons and (cons (cons cons? (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V4017) ())) ())) ())) ())) (cons (cons = (cons () (cons (cons tl (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V4017) ())) ())) ())) ())) ()))) ()))) ()))) ()))) ()))) ()))) (cons (cons let (cons (protect W4018) (cons (cons newv ()) (cons (cons let (cons (protect W4019) (cons (cons newv ()) (cons (cons let (cons (protect W4020) (cons (cons newv ()) (cons (cons let (cons (protect W4021) (cons (cons newv ()) (cons (cons let (cons (protect W4022) (cons (cons newv ()) (cons (cons cons (cons trap-error (cons (cons cons (cons (cons hd (cons (cons tl (cons (protect V4017) ())) ())) (cons (cons cons (cons (cons cons (cons /. (cons (cons cons (cons (protect W4022) (cons (cons cons (cons (cons cons (cons let (cons (cons cons (cons (protect W4018) (cons (cons cons (cons (cons cons (cons error-to-string (cons (cons cons (cons (protect W4022) (cons () ()))) ()))) (cons (cons cons (cons (protect W4019) (cons (cons cons (cons (cons cons (cons trap-error (cons (cons cons (cons (cons cons (cons reopen (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V4017) ())) ())) ())) ()))) (cons (cons cons (cons (cons cons (cons /. (cons (cons cons (cons (protect W4022) (cons (cons cons (cons (cons cons (cons open (cons (cons cons (cons (cons hd (cons (cons tl (cons (cons tl (cons (cons tl (cons (protect V4017) ())) ())) ())) ())) (cons (cons cons (cons out (cons () ()))) ()))) ()))) (cons () ()))) ()))) ()))) (cons () ()))) ()))) ()))) (cons (cons cons (cons (protect W4020) (cons (cons cons (cons (cons cons (cons pr (cons (cons cons (cons (protect W4018) (cons (cons cons (cons (protect W4019) (cons () ()))) ()))) ()))) (cons (cons cons (cons (protect W4021) (cons (cons cons (cons (cons cons (cons close (cons (cons cons (cons (protect W4019) (cons () ()))) ()))) (cons (cons cons (cons (cons hd (cons (cons tl (cons (cons tl (cons (protect V4017) ())) ())) ())) (cons () ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) ()))) (cons () ()))) ()))) ()))) (cons () ()))) ()))) ()))) ())))) ())))) ())))) ())))) ())))) ())) (cons (cons true (cons (protect V4017) ())) ()))) ()))))) (do (shen.record-kl append-files (cons defun (cons append-files (cons (cons (protect V4030) (cons (protect V4031) ())) (cons (cons let (cons (protect W4032) (cons (cons append-files-with-open-stream (cons (protect V4030) (cons (protect V4031) ()))) (cons (cons let (cons (protect W4033) (cons (cons close (cons (protect W4032) ())) (cons (protect V4031) ())))) ())))) ()))))) (do (shen.record-kl append-files-with-open-stream (cons defun (cons append-files-with-open-stream (cons (cons (protect V4042) (cons (protect V4043) ())) (cons (cons cond (cons (cons (cons element? (cons (protect V4043) (cons (protect V4042) ()))) (cons (cons simple-error (cons (cons cn (cons "cannot read and write to " (cons (cons shen.app (cons (protect V4043) (cons " at the same time +" (cons shen.a ())))) ()))) ())) ())) (cons (cons true (cons (cons let (cons (protect W4044) (cons (cons open (cons (protect V4043) (cons out ()))) (cons (cons let (cons (protect W4045) (cons (cons mapc (cons (cons lambda (cons (protect Z4046) (cons (cons file.read&write (cons (cons open (cons (protect Z4046) (cons in ()))) (cons (protect W4044) ()))) ()))) (cons (protect V4042) ()))) (cons (protect W4044) ())))) ())))) ())) ()))) ()))))) (do (shen.record-kl file.read&write (cons defun (cons file.read&write (cons (cons (protect V4055) (cons (protect V4056) ())) (cons (cons file.read&write-h (cons (cons read-byte (cons (protect V4055) ())) (cons (protect V4055) (cons (protect V4056) ())))) ()))))) (do (shen.record-kl file.read&write-h (cons defun (cons file.read&write-h (cons (cons (protect V4065) (cons (protect V4066) (cons (protect V4067) ()))) (cons (cons cond (cons (cons (cons = (cons -1 (cons (protect V4065) ()))) (cons -1 ())) (cons (cons true (cons (cons file.read&write-h (cons (cons read-byte (cons (protect V4066) ())) (cons (protect V4066) (cons (cons do (cons (cons write-byte (cons (protect V4065) (cons (protect V4067) ()))) (cons (protect V4067) ()))) ())))) ())) ()))) ()))))) (do (shen.record-kl reopen (cons defun (cons reopen (cons (cons (protect V4078) ()) (cons (cons let (cons (protect W4079) (cons (cons read-file-as-bytelist (cons (protect V4078) ())) (cons (cons let (cons (protect W4080) (cons (cons open (cons (protect V4078) (cons out ()))) (cons (cons let (cons (protect W4081) (cons (cons mapc (cons (cons lambda (cons (protect Z4082) (cons (cons write-byte (cons (protect Z4082) (cons (protect W4080) ()))) ()))) (cons (protect W4079) ()))) (cons (protect W4080) ())))) ())))) ())))) ()))))) (do (shen.record-kl copy-file (cons defun (cons copy-file (cons (cons (protect V4089) (cons (protect V4090) ())) (cons (cons append-files (cons (cons cons (cons (protect V4089) (cons () ()))) (cons (protect V4090) ()))) ()))))) (do (shen.record-kl copy-file-with-open-stream (cons defun (cons copy-file-with-open-stream (cons (cons (protect V4098) (cons (protect V4099) ())) (cons (cons append-files-with-open-stream (cons (cons cons (cons (protect V4098) (cons () ()))) (cons (protect V4099) ()))) ()))))) (do (shen.record-kl file-exists? (cons defun (cons file-exists? (cons (cons (protect V4107) ()) (cons (cons trap-error (cons (cons do (cons (cons close (cons (cons open (cons (protect V4107) (cons in ()))) ())) (cons true ()))) (cons (cons lambda (cons (protect Z4108) (cons false ()))) ()))) ()))))) (do (shen.record-kl file-size (cons defun (cons file-size (cons (cons (protect V4115) ()) (cons (cons let (cons (protect W4116) (cons (cons open (cons (protect V4115) (cons in ()))) (cons (cons let (cons (protect W4117) (cons (cons file.file-size-loop (cons (protect W4116) (cons 0 (cons (cons read-byte (cons (protect W4116) ())) ())))) (cons (cons let (cons (protect W4118) (cons (cons close (cons (protect W4116) ())) (cons (protect W4117) ())))) ())))) ())))) ()))))) (do (shen.record-kl file.file-size-loop (cons defun (cons file.file-size-loop (cons (cons (protect V4129) (cons (protect V4130) (cons (protect V4131) ()))) (cons (cons cond (cons (cons (cons = (cons -1 (cons (protect V4131) ()))) (cons (protect V4130) ())) (cons (cons true (cons (cons file.file-size-loop (cons (protect V4129) (cons (cons + (cons 1 (cons (protect V4130) ()))) (cons (cons read-byte (cons (protect V4129) ())) ())))) ())) ()))) ()))))) (do (shen.record-kl ascii (cons defun (cons ascii (cons (cons (protect V4142) (cons (protect V4143) (cons (protect V4144) ()))) (cons (cons let (cons (protect W4145) (cons (cons read-file-as-bytelist (cons (protect V4144) ())) (cons (cons file.scan-bytes (cons (protect V4142) (cons (protect V4143) (cons (protect W4145) (cons "" ()))))) ())))) ()))))) (do (shen.record-kl file.scan-bytes (cons defun (cons file.scan-bytes (cons (cons (protect V4156) (cons (protect V4157) (cons (protect V4158) (cons (protect V4159) ())))) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V4158) ()))) (cons (protect V4159) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V4158) ())) (cons (cons and (cons (cons >= (cons (cons hd (cons (protect V4158) ())) (cons (protect V4156) ()))) (cons (cons <= (cons (cons hd (cons (protect V4158) ())) (cons (protect V4157) ()))) ()))) ()))) (cons (cons file.scan-bytes (cons (protect V4156) (cons (protect V4157) (cons (cons tl (cons (protect V4158) ())) (cons (cons cn (cons (protect V4159) (cons (cons n->string (cons (cons hd (cons (protect V4158) ())) ())) ()))) ()))))) ())) (cons (cons (cons cons? (cons (protect V4158) ())) (cons (cons simple-error (cons (cons cn (cons "character has code " (cons (cons shen.app (cons (cons hd (cons (protect V4158) ())) (cons (cons cn (cons ": parsed to here + +" (cons (cons shen.app (cons (protect V4159) (cons "" (cons shen.a ())))) ()))) (cons shen.a ())))) ()))) ())) ())) (cons (cons true (cons (cons shen.f-error (cons file.scan-bytes ())) ())) ()))))) ()))))) (do (shen.record-kl pairoff (cons defun (cons pairoff (cons (cons (protect V4186) (cons (protect V4187) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V4186) ()))) (cons () ())) (cons (cons (cons = (cons () (cons (protect V4187) ()))) (cons () ())) (cons (cons (cons and (cons (cons cons? (cons (protect V4186) ())) (cons (cons cons? (cons (protect V4187) ())) ()))) (cons (cons cons (cons (cons @p (cons (cons hd (cons (protect V4186) ())) (cons (cons hd (cons (protect V4187) ())) ()))) (cons (cons pairoff (cons (cons tl (cons (protect V4186) ())) (cons (cons tl (cons (protect V4187) ())) ()))) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons pairoff ())) ())) ()))))) ()))))) (do (shen.record-kl assocp (cons defun (cons assocp (cons (cons (protect V4208) (cons (protect V4209) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V4209) ()))) (cons (cons simple-error (cons "pair not found +" ())) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V4209) ())) (cons (cons and (cons (cons tuple? (cons (cons hd (cons (protect V4209) ())) ())) (cons (cons = (cons (protect V4208) (cons (cons fst (cons (cons hd (cons (protect V4209) ())) ())) ()))) ()))) ()))) (cons (cons hd (cons (protect V4209) ())) ())) (cons (cons (cons cons? (cons (protect V4209) ())) (cons (cons assocp (cons (protect V4208) (cons (cons tl (cons (protect V4209) ())) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons assocp ())) ())) ()))))) ()))))) (do (shen.record-kl cartprodp (cons defun (cons cartprodp (cons (cons (protect V4223) (cons (protect V4224) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V4223) ()))) (cons () ())) (cons (cons (cons cons? (cons (protect V4223) ())) (cons (cons append (cons (cons map (cons (cons lambda (cons (protect Z4225) (cons (cons @p (cons (cons hd (cons (protect V4223) ())) (cons (protect Z4225) ()))) ()))) (cons (protect V4224) ()))) (cons (cons cartprodp (cons (cons tl (cons (protect V4223) ())) (cons (protect V4224) ()))) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons cartprodp ())) ())) ())))) ()))))) (do (shen.record-kl assocp-if (cons defun (cons assocp-if (cons (cons (protect V4242) (cons (protect V4243) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V4243) ()))) (cons (cons simple-error (cons "pair not found +" ())) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V4243) ())) (cons (cons and (cons (cons tuple? (cons (cons hd (cons (protect V4243) ())) ())) (cons (cons (protect V4242) (cons (cons fst (cons (cons hd (cons (protect V4243) ())) ())) ())) ()))) ()))) (cons (cons hd (cons (protect V4243) ())) ())) (cons (cons (cons cons? (cons (protect V4243) ())) (cons (cons assocp-if (cons (protect V4242) (cons (cons tl (cons (protect V4243) ())) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons assocp-if ())) ())) ()))))) ()))))) (shen.record-kl assocp-if-not (cons defun (cons assocp-if-not (cons (cons (protect V4260) (cons (protect V4261) ())) (cons (cons cond (cons (cons (cons = (cons () (cons (protect V4261) ()))) (cons (cons simple-error (cons "pair not found +" ())) ())) (cons (cons (cons and (cons (cons cons? (cons (protect V4261) ())) (cons (cons and (cons (cons tuple? (cons (cons hd (cons (protect V4261) ())) ())) (cons (cons not (cons (cons (protect V4260) (cons (cons fst (cons (cons hd (cons (protect V4261) ())) ())) ())) ())) ()))) ()))) (cons (cons hd (cons (protect V4261) ())) ())) (cons (cons (cons cons? (cons (protect V4261) ())) (cons (cons assocp-if-not (cons (protect V4260) (cons (cons tl (cons (protect V4261) ())) ()))) ())) (cons (cons true (cons (cons shen.f-error (cons assocp-if-not ())) ())) ()))))) ())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) + +(defun stlib.initialise-final () (do (let External (external stlib) (let ExternalF (filter (lambda X (> (arity X) -1)) External) (let SystemfResult (map (lambda Y4274 (systemf Y4274)) ExternalF) ok))) (do (preclude-all-but ()) (do (set shen.*userdefs* ()) (do (cd "") (tc -)))))) (defun stlib.initialise () (do (stlib.initialise-environment) (do (stlib.initialise-arities) (do (stlib.initialise-macros) (do (stlib.initialise-synonyms) (do (stlib.initialise-datatypes) (do (stlib.initialise-types) (do (stlib.initialise-sources) (stlib.initialise-final))))))))) diff --git a/klambda/sys.kl b/klambda/sys.kl index 24218a7..9f7080c 100644 --- a/klambda/sys.kl +++ b/klambda/sys.kl @@ -1,16 +1,16 @@ -(defun thaw (V3825) (V3825)) +(defun thaw (V3830) (V3830)) -(defun eval (V3826) (eval-kl (shen.shen->kl (shen.process-applications (macroexpand V3826) (shen.find-types V3826))))) +(defun eval (V3831) (eval-kl (shen.shen->kl (shen.process-applications (macroexpand V3831) (shen.find-types V3831))))) -(defun external (V3827) (cond ((= null V3827) ()) (true (trap-error (get V3827 shen.external-symbols (value *property-vector*)) (lambda Z3828 (simple-error (cn "package " (shen.app V3827 " does not exist. +(defun external (V3832) (cond ((= null V3832) ()) (true (trap-error (get V3832 shen.external-symbols (value *property-vector*)) (lambda Z3833 (simple-error (cn "package " (shen.app V3832 " does not exist. ;" shen.a)))))))) -(defun internal (V3829) (cond ((= null V3829) ()) (true (trap-error (get V3829 shen.internal-symbols (value *property-vector*)) (lambda Z3830 (simple-error (cn "package " (shen.app V3829 " does not exist. +(defun internal (V3834) (cond ((= null V3834) ()) (true (trap-error (get V3834 shen.internal-symbols (value *property-vector*)) (lambda Z3835 (simple-error (cn "package " (shen.app V3834 " does not exist. ;" shen.a)))))))) -(defun fail-if (V3831 V3832) (if (V3831 V3832) (fail) V3832)) +(defun fail-if (V3836 V3837) (if (V3836 V3837) (fail) V3837)) -(defun @s (V3833 V3834) (cn V3833 V3834)) +(defun @s (V3838 V3839) (cn V3838 V3839)) (defun tc? () (value shen.*tc*)) @@ -20,195 +20,195 @@ (defun tracked () (value shen.*tracking*)) -(defun ps (V3835) (trap-error (get V3835 shen.source (value *property-vector*)) (lambda Z3836 (simple-error (shen.app V3835 " not found. +(defun ps (V3840) (trap-error (get V3840 shen.source (value *property-vector*)) (lambda Z3841 (simple-error (shen.app V3840 " not found. " shen.a))))) (defun stinput () (value *stinput*)) -(defun vector (V3837) (let W3838 (absvector (+ V3837 1)) (let W3839 (address-> W3838 0 V3837) (let W3840 (if (= V3837 0) W3839 (shen.fillvector W3839 1 V3837 (fail))) W3840)))) +(defun vector (V3842) (let W3843 (absvector (+ V3842 1)) (let W3844 (address-> W3843 0 V3842) (let W3845 (if (= V3842 0) W3844 (shen.fillvector W3844 1 V3842 (fail))) W3845)))) -(defun shen.fillvector (V3842 V3843 V3844 V3845) (cond ((= V3843 V3844) (address-> V3842 V3844 V3845)) (true (shen.fillvector (address-> V3842 V3843 V3845) (+ 1 V3843) V3844 V3845)))) +(defun shen.fillvector (V3847 V3848 V3849 V3850) (cond ((= V3848 V3849) (address-> V3847 V3849 V3850)) (true (shen.fillvector (address-> V3847 V3848 V3850) (+ 1 V3848) V3849 V3850)))) -(defun vector? (V3846) (and (absvector? V3846) (let W3847 (trap-error (<-address V3846 0) (lambda Z3848 -1)) (and (number? W3847) (>= W3847 0))))) +(defun vector? (V3851) (and (absvector? V3851) (let W3852 (trap-error (<-address V3851 0) (lambda Z3853 -1)) (and (number? W3852) (>= W3852 0))))) -(defun vector-> (V3849 V3850 V3851) (if (= V3850 0) (simple-error "cannot access 0th element of a vector -") (address-> V3849 V3850 V3851))) +(defun vector-> (V3854 V3855 V3856) (if (= V3855 0) (simple-error "cannot access 0th element of a vector +") (address-> V3854 V3855 V3856))) -(defun <-vector (V3852 V3853) (if (= V3853 0) (simple-error "cannot access 0th element of a vector -") (let W3854 (<-address V3852 V3853) (if (= W3854 (fail)) (simple-error "vector element not found -") W3854)))) +(defun <-vector (V3857 V3858) (if (= V3858 0) (simple-error "cannot access 0th element of a vector +") (let W3859 (<-address V3857 V3858) (if (= W3859 (fail)) (simple-error "vector element not found +") W3859)))) -(defun shen.posint? (V3855) (and (integer? V3855) (>= V3855 0))) +(defun shen.posint? (V3860) (and (integer? V3860) (>= V3860 0))) -(defun limit (V3856) (<-address V3856 0)) +(defun limit (V3861) (<-address V3861 0)) -(defun symbol? (V3857) (cond ((or (boolean? V3857) (or (number? V3857) (or (string? V3857) (or (cons? V3857) (or (empty? V3857) (vector? V3857)))))) false) ((element? V3857 (cons { (cons } (cons (intern ":") (cons (intern ";") (cons (intern ",") ())))))) true) (true (trap-error (let W3858 (str V3857) (shen.analyse-symbol? W3858)) (lambda Z3859 false))))) +(defun symbol? (V3862) (cond ((or (boolean? V3862) (or (number? V3862) (or (string? V3862) (or (cons? V3862) (or (empty? V3862) (vector? V3862)))))) false) ((element? V3862 (cons { (cons } (cons (intern ":") (cons (intern ";") (cons (intern ",") ())))))) true) (true (trap-error (let W3863 (str V3862) (shen.analyse-symbol? W3863)) (lambda Z3864 false))))) -(defun shen.analyse-symbol? (V3862) (cond ((shen.+string? V3862) (and (shen.alpha? (string->n (hdstr V3862))) (shen.alphanums? (tlstr V3862)))) (true (simple-error "implementation error in shen.analyse-symbol?")))) +(defun shen.analyse-symbol? (V3867) (cond ((shen.+string? V3867) (and (shen.alpha? (string->n (hdstr V3867))) (shen.alphanums? (tlstr V3867)))) (true (simple-error "implementation error in shen.analyse-symbol?")))) -(defun shen.alphanums? (V3865) (cond ((= "" V3865) true) ((shen.+string? V3865) (let W3866 (string->n (hdstr V3865)) (and (or (shen.alpha? W3866) (shen.digit? W3866)) (shen.alphanums? (tlstr V3865))))) (true (simple-error "implementation error in shen.alphanums?")))) +(defun shen.alphanums? (V3870) (cond ((= "" V3870) true) ((shen.+string? V3870) (let W3871 (string->n (hdstr V3870)) (and (or (shen.alpha? W3871) (shen.digit? W3871)) (shen.alphanums? (tlstr V3870))))) (true (simple-error "implementation error in shen.alphanums?")))) -(defun variable? (V3867) (cond ((or (boolean? V3867) (or (number? V3867) (string? V3867))) false) (true (trap-error (let W3868 (str V3867) (shen.analyse-variable? W3868)) (lambda Z3869 false))))) +(defun variable? (V3872) (cond ((or (boolean? V3872) (or (number? V3872) (string? V3872))) false) (true (trap-error (let W3873 (str V3872) (shen.analyse-variable? W3873)) (lambda Z3874 false))))) -(defun shen.analyse-variable? (V3872) (cond ((shen.+string? V3872) (and (shen.uppercase? (string->n (hdstr V3872))) (shen.alphanums? (tlstr V3872)))) (true (simple-error "implementation error in shen.analyse-variable?")))) +(defun shen.analyse-variable? (V3877) (cond ((shen.+string? V3877) (and (shen.uppercase? (string->n (hdstr V3877))) (shen.alphanums? (tlstr V3877)))) (true (simple-error "implementation error in shen.analyse-variable?")))) -(defun gensym (V3873) (concat V3873 (set shen.*gensym* (+ 1 (value shen.*gensym*))))) +(defun gensym (V3878) (concat V3878 (set shen.*gensym* (+ 1 (value shen.*gensym*))))) -(defun concat (V3874 V3875) (intern (cn (str V3874) (str V3875)))) +(defun concat (V3879 V3880) (intern (cn (str V3879) (str V3880)))) -(defun @p (V3876 V3877) (let W3878 (absvector 3) (let W3879 (address-> W3878 0 shen.tuple) (let W3880 (address-> W3878 1 V3876) (let W3881 (address-> W3878 2 V3877) W3878))))) +(defun @p (V3881 V3882) (let W3883 (absvector 3) (let W3884 (address-> W3883 0 shen.tuple) (let W3885 (address-> W3883 1 V3881) (let W3886 (address-> W3883 2 V3882) W3883))))) -(defun fst (V3882) (<-address V3882 1)) +(defun fst (V3887) (<-address V3887 1)) -(defun snd (V3883) (<-address V3883 2)) +(defun snd (V3888) (<-address V3888 2)) -(defun tuple? (V3884) (and (absvector? V3884) (= shen.tuple (trap-error (<-address V3884 0) (lambda Z3885 shen.not-tuple))))) +(defun tuple? (V3889) (and (absvector? V3889) (= shen.tuple (trap-error (<-address V3889 0) (lambda Z3890 shen.not-tuple))))) -(defun append (V3890 V3891) (cond ((= () V3890) V3891) ((cons? V3890) (cons (hd V3890) (append (tl V3890) V3891))) (true (simple-error "attempt to append a non-list")))) +(defun append (V3895 V3896) (cond ((= () V3895) V3896) ((cons? V3895) (cons (hd V3895) (append (tl V3895) V3896))) (true (simple-error "attempt to append a non-list")))) -(defun @v (V3892 V3893) (let W3894 (limit V3893) (let W3895 (vector (+ W3894 1)) (let W3896 (vector-> W3895 1 V3892) (if (= W3894 0) W3896 (shen.@v-help V3893 1 W3894 W3896)))))) +(defun @v (V3897 V3898) (let W3899 (limit V3898) (let W3900 (vector (+ W3899 1)) (let W3901 (vector-> W3900 1 V3897) (if (= W3899 0) W3901 (shen.@v-help V3898 1 W3899 W3901)))))) -(defun shen.@v-help (V3898 V3899 V3900 V3901) (cond ((= V3899 V3900) (shen.copyfromvector V3898 V3901 V3900 (+ V3900 1))) (true (shen.@v-help V3898 (+ V3899 1) V3900 (shen.copyfromvector V3898 V3901 V3899 (+ V3899 1)))))) +(defun shen.@v-help (V3903 V3904 V3905 V3906) (cond ((= V3904 V3905) (shen.copyfromvector V3903 V3906 V3905 (+ V3905 1))) (true (shen.@v-help V3903 (+ V3904 1) V3905 (shen.copyfromvector V3903 V3906 V3904 (+ V3904 1)))))) -(defun shen.copyfromvector (V3902 V3903 V3904 V3905) (trap-error (vector-> V3903 V3905 (<-vector V3902 V3904)) (lambda Z3906 V3903))) +(defun shen.copyfromvector (V3907 V3908 V3909 V3910) (trap-error (vector-> V3908 V3910 (<-vector V3907 V3909)) (lambda Z3911 V3908))) -(defun hdv (V3907) (trap-error (<-vector V3907 1) (lambda Z3908 (simple-error "hdv needs a non-empty vector as an argument +(defun hdv (V3912) (trap-error (<-vector V3912 1) (lambda Z3913 (simple-error "hdv needs a non-empty vector as an argument ")))) -(defun tlv (V3909) (let W3910 (limit V3909) (if (= W3910 0) (simple-error "cannot take the tail of the empty vector -") (if (= W3910 1) (vector 0) (let W3911 (vector (- W3910 1)) (shen.tlv-help V3909 2 W3910 (vector (- W3910 1)))))))) +(defun tlv (V3914) (let W3915 (limit V3914) (if (= W3915 0) (simple-error "cannot take the tail of the empty vector +") (if (= W3915 1) (vector 0) (let W3916 (vector (- W3915 1)) (shen.tlv-help V3914 2 W3915 (vector (- W3915 1)))))))) -(defun shen.tlv-help (V3913 V3914 V3915 V3916) (cond ((= V3914 V3915) (shen.copyfromvector V3913 V3916 V3915 (- V3915 1))) (true (shen.tlv-help V3913 (+ V3914 1) V3915 (shen.copyfromvector V3913 V3916 V3914 (- V3914 1)))))) +(defun shen.tlv-help (V3918 V3919 V3920 V3921) (cond ((= V3919 V3920) (shen.copyfromvector V3918 V3921 V3920 (- V3920 1))) (true (shen.tlv-help V3918 (+ V3919 1) V3920 (shen.copyfromvector V3918 V3921 V3919 (- V3919 1)))))) -(defun assoc (V3928 V3929) (cond ((= () V3929) ()) ((and (cons? V3929) (and (cons? (hd V3929)) (= V3928 (hd (hd V3929))))) (hd V3929)) ((cons? V3929) (assoc V3928 (tl V3929))) (true (simple-error "attempt to search a non-list with assoc +(defun assoc (V3933 V3934) (cond ((= () V3934) ()) ((and (cons? V3934) (and (cons? (hd V3934)) (= V3933 (hd (hd V3934))))) (hd V3934)) ((cons? V3934) (assoc V3933 (tl V3934))) (true (simple-error "attempt to search a non-list with assoc ")))) -(defun shen.assoc-set (V3933 V3934 V3935) (cond ((= () V3935) (cons (cons V3933 V3934) ())) ((and (cons? V3935) (and (cons? (hd V3935)) (= V3933 (hd (hd V3935))))) (cons (cons (hd (hd V3935)) V3934) (tl V3935))) ((cons? V3935) (cons (hd V3935) (shen.assoc-set V3933 V3934 (tl V3935)))) (true (shen.f-error shen.assoc-set)))) +(defun shen.assoc-set (V3938 V3939 V3940) (cond ((= () V3940) (cons (cons V3938 V3939) ())) ((and (cons? V3940) (and (cons? (hd V3940)) (= V3938 (hd (hd V3940))))) (cons (cons (hd (hd V3940)) V3939) (tl V3940))) ((cons? V3940) (cons (hd V3940) (shen.assoc-set V3938 V3939 (tl V3940)))) (true (shen.f-error shen.assoc-set)))) -(defun shen.assoc-rm (V3939 V3940) (cond ((= () V3940) ()) ((and (cons? V3940) (and (cons? (hd V3940)) (= V3939 (hd (hd V3940))))) (tl V3940)) ((cons? V3940) (cons (hd V3940) (shen.assoc-rm V3939 (tl V3940)))) (true (shen.f-error shen.assoc-rm)))) +(defun shen.assoc-rm (V3944 V3945) (cond ((= () V3945) ()) ((and (cons? V3945) (and (cons? (hd V3945)) (= V3944 (hd (hd V3945))))) (tl V3945)) ((cons? V3945) (cons (hd V3945) (shen.assoc-rm V3944 (tl V3945)))) (true (shen.f-error shen.assoc-rm)))) -(defun boolean? (V3943) (cond ((= true V3943) true) ((= false V3943) true) (true false))) +(defun boolean? (V3948) (cond ((= true V3948) true) ((= false V3948) true) (true false))) -(defun nl (V3944) (cond ((= 0 V3944) 0) (true (do (pr " -" (stoutput)) (nl (- V3944 1)))))) +(defun nl (V3949) (cond ((= 0 V3949) 0) (true (do (pr " +" (stoutput)) (nl (- V3949 1)))))) -(defun difference (V3951 V3952) (cond ((= () V3951) ()) ((cons? V3951) (if (element? (hd V3951) V3952) (difference (tl V3951) V3952) (cons (hd V3951) (difference (tl V3951) V3952)))) (true (simple-error "attempt to find the difference with a non-list +(defun difference (V3956 V3957) (cond ((= () V3956) ()) ((cons? V3956) (if (element? (hd V3956) V3957) (difference (tl V3956) V3957) (cons (hd V3956) (difference (tl V3956) V3957)))) (true (simple-error "attempt to find the difference with a non-list ")))) -(defun do (V3953 V3954) V3954) +(defun do (V3958 V3959) V3959) -(defun element? (V3966 V3967) (cond ((= () V3967) false) ((and (cons? V3967) (= V3966 (hd V3967))) true) ((cons? V3967) (element? V3966 (tl V3967))) (true (simple-error "attempt to find an element in a non-list +(defun element? (V3971 V3972) (cond ((= () V3972) false) ((and (cons? V3972) (= V3971 (hd V3972))) true) ((cons? V3972) (element? V3971 (tl V3972))) (true (simple-error "attempt to find an element in a non-list ")))) -(defun empty? (V3970) (cond ((= () V3970) true) (true false))) +(defun empty? (V3975) (cond ((= () V3975) true) (true false))) -(defun fix (V3971 V3972) (shen.fix-help V3971 V3972 (V3971 V3972))) +(defun fix (V3976 V3977) (shen.fix-help V3976 V3977 (V3976 V3977))) -(defun shen.fix-help (V3978 V3979 V3980) (cond ((= V3979 V3980) V3980) (true (shen.fix-help V3978 V3980 (V3978 V3980))))) +(defun shen.fix-help (V3983 V3984 V3985) (cond ((= V3984 V3985) V3985) (true (shen.fix-help V3983 V3985 (V3983 V3985))))) -(defun put (V3981 V3982 V3983 V3984) (let W3985 (trap-error (shen.<-dict V3984 V3981) (lambda Z3986 ())) (let W3987 (shen.assoc-set V3982 V3983 W3985) (let W3988 (shen.dict-> V3984 V3981 W3987) V3983)))) +(defun put (V3986 V3987 V3988 V3989) (let W3990 (trap-error (shen.<-dict V3989 V3986) (lambda Z3991 ())) (let W3992 (shen.assoc-set V3987 V3988 W3990) (let W3993 (shen.dict-> V3989 V3986 W3992) V3988)))) -(defun unput (V3989 V3990 V3991) (let W3992 (trap-error (shen.<-dict V3991 V3989) (lambda Z3993 ())) (let W3994 (shen.assoc-rm V3990 W3992) (let W3995 (shen.dict-> V3991 V3989 W3994) V3989)))) +(defun unput (V3994 V3995 V3996) (let W3997 (trap-error (shen.<-dict V3996 V3994) (lambda Z3998 ())) (let W3999 (shen.assoc-rm V3995 W3997) (let W4000 (shen.dict-> V3996 V3994 W3999) V3994)))) -(defun get (V3996 V3997 V3998) (let W3999 (trap-error (shen.<-dict V3998 V3996) (lambda Z4000 (simple-error (shen.app V3996 (cn " has no attributes: " (shen.app V3997 " -" shen.s)) shen.a)))) (let W4001 (assoc V3997 W3999) (if (empty? W4001) (simple-error (cn "attribute " (shen.app V3997 (cn " not found for " (shen.app V3996 " -" shen.s)) shen.s))) (tl W4001))))) +(defun get (V4001 V4002 V4003) (let W4004 (trap-error (shen.<-dict V4003 V4001) (lambda Z4005 (simple-error (shen.app V4001 (cn " has no attributes: " (shen.app V4002 " +" shen.s)) shen.a)))) (let W4006 (assoc V4002 W4004) (if (empty? W4006) (simple-error (cn "attribute " (shen.app V4002 (cn " not found for " (shen.app V4001 " +" shen.s)) shen.s))) (tl W4006))))) -(defun hash (V4002 V4003) (let W4004 (shen.mod (shen.hashkey V4002) V4003) (if (= W4004 0) 1 W4004))) +(defun hash (V4007 V4008) (let W4009 (shen.mod (shen.hashkey V4007) V4008) (if (= W4009 0) 1 W4009))) -(defun shen.hashkey (V4005) (let W4006 (map (lambda Z4007 (string->n Z4007)) (explode V4005)) (shen.prodbutzero W4006 1))) +(defun shen.hashkey (V4010) (let W4011 (map (lambda Z4012 (string->n Z4012)) (explode V4010)) (shen.prodbutzero W4011 1))) -(defun shen.prodbutzero (V4008 V4009) (cond ((= () V4008) V4009) ((and (cons? V4008) (= 0 (hd V4008))) (shen.prodbutzero (tl V4008) V4009)) ((cons? V4008) (if (> V4009 10000000000) (shen.prodbutzero (tl V4008) (+ V4009 (hd V4008))) (shen.prodbutzero (tl V4008) (* V4009 (hd V4008))))) (true (shen.f-error shen.prodbutzero)))) +(defun shen.prodbutzero (V4013 V4014) (cond ((= () V4013) V4014) ((and (cons? V4013) (= 0 (hd V4013))) (shen.prodbutzero (tl V4013) V4014)) ((cons? V4013) (if (> V4014 10000000000) (shen.prodbutzero (tl V4013) (+ V4014 (hd V4013))) (shen.prodbutzero (tl V4013) (* V4014 (hd V4013))))) (true (shen.f-error shen.prodbutzero)))) -(defun shen.mod (V4010 V4011) (shen.modh V4010 (shen.multiples V4010 (cons V4011 ())))) +(defun shen.mod (V4015 V4016) (shen.modh V4015 (shen.multiples V4015 (cons V4016 ())))) -(defun shen.multiples (V4016 V4017) (cond ((and (cons? V4017) (> (hd V4017) V4016)) (tl V4017)) ((cons? V4017) (shen.multiples V4016 (cons (* 2 (hd V4017)) V4017))) (true (simple-error "implementation error in shen.multiples")))) +(defun shen.multiples (V4021 V4022) (cond ((and (cons? V4022) (> (hd V4022) V4021)) (tl V4022)) ((cons? V4022) (shen.multiples V4021 (cons (* 2 (hd V4022)) V4022))) (true (simple-error "implementation error in shen.multiples")))) -(defun shen.modh (V4024 V4025) (cond ((= 0 V4024) 0) ((= () V4025) V4024) ((and (cons? V4025) (> (hd V4025) V4024)) (if (empty? (tl V4025)) V4024 (shen.modh V4024 (tl V4025)))) ((cons? V4025) (shen.modh (- V4024 (hd V4025)) V4025)) (true (simple-error "implementation error in shen.modh")))) +(defun shen.modh (V4029 V4030) (cond ((= 0 V4029) 0) ((= () V4030) V4029) ((and (cons? V4030) (> (hd V4030) V4029)) (if (empty? (tl V4030)) V4029 (shen.modh V4029 (tl V4030)))) ((cons? V4030) (shen.modh (- V4029 (hd V4030)) V4030)) (true (simple-error "implementation error in shen.modh")))) -(defun sum (V4028) (cond ((= () V4028) 0) ((cons? V4028) (+ (hd V4028) (sum (tl V4028)))) (true (simple-error "attempt to sum a non-list +(defun sum (V4033) (cond ((= () V4033) 0) ((cons? V4033) (+ (hd V4033) (sum (tl V4033)))) (true (simple-error "attempt to sum a non-list ")))) -(defun head (V4033) (cond ((cons? V4033) (hd V4033)) (true (simple-error "head expects a non-empty list +(defun head (V4038) (cond ((cons? V4038) (hd V4038)) (true (simple-error "head expects a non-empty list ")))) -(defun tail (V4038) (cond ((cons? V4038) (tl V4038)) (true (simple-error "tail expects a non-empty list +(defun tail (V4043) (cond ((cons? V4043) (tl V4043)) (true (simple-error "tail expects a non-empty list ")))) -(defun hdstr (V4039) (pos V4039 0)) +(defun hdstr (V4044) (pos V4044 0)) -(defun intersection (V4046 V4047) (cond ((= () V4046) ()) ((cons? V4046) (if (element? (hd V4046) V4047) (cons (hd V4046) (intersection (tl V4046) V4047)) (intersection (tl V4046) V4047))) (true (simple-error "attempt to find the intersection with a non-list +(defun intersection (V4051 V4052) (cond ((= () V4051) ()) ((cons? V4051) (if (element? (hd V4051) V4052) (cons (hd V4051) (intersection (tl V4051) V4052)) (intersection (tl V4051) V4052))) (true (simple-error "attempt to find the intersection with a non-list ")))) -(defun reverse (V4048) (shen.reverse-help V4048 ())) +(defun reverse (V4053) (shen.reverse-help V4053 ())) -(defun shen.reverse-help (V4053 V4054) (cond ((= () V4053) V4054) ((cons? V4053) (shen.reverse-help (tl V4053) (cons (hd V4053) V4054))) (true (simple-error "attempt to reverse a non-list +(defun shen.reverse-help (V4058 V4059) (cond ((= () V4058) V4059) ((cons? V4058) (shen.reverse-help (tl V4058) (cons (hd V4058) V4059))) (true (simple-error "attempt to reverse a non-list ")))) -(defun union (V4059 V4060) (cond ((= () V4059) V4060) ((cons? V4059) (if (element? (hd V4059) V4060) (union (tl V4059) V4060) (cons (hd V4059) (union (tl V4059) V4060)))) (true (simple-error "attempt to find the union with a non-list +(defun union (V4064 V4065) (cond ((= () V4064) V4065) ((cons? V4064) (if (element? (hd V4064) V4065) (union (tl V4064) V4065) (cons (hd V4064) (union (tl V4064) V4065)))) (true (simple-error "attempt to find the union with a non-list ")))) -(defun y-or-n? (V4061) (let W4062 (pr (shen.proc-nl V4061) (stoutput)) (let W4063 (pr " (y/n) " (stoutput)) (let W4064 (shen.app (read (stinput)) "" shen.s) (if (= "y" W4064) true (if (= "n" W4064) false (do (pr "please answer y or n -" (stoutput)) (y-or-n? V4061)))))))) +(defun y-or-n? (V4066) (let W4067 (pr (shen.proc-nl V4066) (stoutput)) (let W4068 (pr " (y/n) " (stoutput)) (let W4069 (shen.app (read (stinput)) "" shen.s) (if (= "y" W4069) true (if (= "n" W4069) false (do (pr "please answer y or n +" (stoutput)) (y-or-n? V4066)))))))) -(defun not (V4065) (if V4065 false true)) +(defun not (V4070) (if V4070 false true)) (defun abort () (simple-error "")) -(defun subst (V4071 V4072 V4073) (cond ((= V4072 V4073) V4071) ((cons? V4073) (cons (subst V4071 V4072 (hd V4073)) (subst V4071 V4072 (tl V4073)))) (true V4073))) +(defun subst (V4076 V4077 V4078) (cond ((= V4077 V4078) V4076) ((cons? V4078) (cons (subst V4076 V4077 (hd V4078)) (subst V4076 V4077 (tl V4078)))) (true V4078))) -(defun explode (V4074) (shen.explode-h (shen.app V4074 "" shen.a))) +(defun explode (V4079) (shen.explode-h (shen.app V4079 "" shen.a))) -(defun shen.explode-h (V4077) (cond ((= "" V4077) ()) ((shen.+string? V4077) (cons (hdstr V4077) (shen.explode-h (tlstr V4077)))) (true (simple-error "implementation error in explode-h")))) +(defun shen.explode-h (V4082) (cond ((= "" V4082) ()) ((shen.+string? V4082) (cons (hdstr V4082) (shen.explode-h (tlstr V4082)))) (true (simple-error "implementation error in explode-h")))) -(defun cd (V4078) (set *home-directory* (if (= V4078 "") "" (shen.app V4078 "/" shen.a)))) +(defun cd (V4083) (set *home-directory* (if (= V4083 "") "" (shen.app V4083 "/" shen.a)))) -(defun shen.for-each (V4079 V4080) (cond ((= () V4080) true) ((cons? V4080) (let W4081 (V4079 (hd V4080)) (shen.for-each V4079 (tl V4080)))) (true (shen.f-error shen.for-each)))) +(defun shen.for-each (V4084 V4085) (cond ((= () V4085) true) ((cons? V4085) (let W4086 (V4084 (hd V4085)) (shen.for-each V4084 (tl V4085)))) (true (shen.f-error shen.for-each)))) -(defun map (V4082 V4083) (shen.map-h V4082 V4083 ())) +(defun map (V4087 V4088) (shen.map-h V4087 V4088 ())) -(defun shen.map-h (V4084 V4085 V4086) (cond ((= () V4085) (reverse V4086)) ((cons? V4085) (shen.map-h V4084 (tl V4085) (cons (V4084 (hd V4085)) V4086))) (true (shen.f-error shen.map-h)))) +(defun shen.map-h (V4089 V4090 V4091) (cond ((= () V4090) (reverse V4091)) ((cons? V4090) (shen.map-h V4089 (tl V4090) (cons (V4089 (hd V4090)) V4091))) (true (shen.f-error shen.map-h)))) -(defun length (V4087) (shen.length-h V4087 0)) +(defun length (V4092) (shen.length-h V4092 0)) -(defun shen.length-h (V4092 V4093) (cond ((= () V4092) V4093) (true (shen.length-h (tl V4092) (+ V4093 1))))) +(defun shen.length-h (V4097 V4098) (cond ((= () V4097) V4098) (true (shen.length-h (tl V4097) (+ V4098 1))))) -(defun occurrences (V4099 V4100) (cond ((= V4099 V4100) 1) ((cons? V4100) (+ (occurrences V4099 (hd V4100)) (occurrences V4099 (tl V4100)))) (true 0))) +(defun occurrences (V4104 V4105) (cond ((= V4104 V4105) 1) ((cons? V4105) (+ (occurrences V4104 (hd V4105)) (occurrences V4104 (tl V4105)))) (true 0))) -(defun nth (V4105 V4106) (cond ((and (= 1 V4105) (cons? V4106)) (hd V4106)) ((cons? V4106) (nth (- V4105 1) (tl V4106))) (true (simple-error (cn "nth applied to " (shen.app V4105 (cn ", " (shen.app V4106 " +(defun nth (V4110 V4111) (cond ((and (= 1 V4110) (cons? V4111)) (hd V4111)) ((cons? V4111) (nth (- V4110 1) (tl V4111))) (true (simple-error (cn "nth applied to " (shen.app V4110 (cn ", " (shen.app V4111 " " shen.a)) shen.a)))))) -(defun integer? (V4107) (and (number? V4107) (let W4108 (shen.abs V4107) (shen.integer-test? W4108 (shen.magless W4108 1))))) +(defun integer? (V4112) (and (number? V4112) (let W4113 (shen.abs V4112) (shen.integer-test? W4113 (shen.magless W4113 1))))) -(defun shen.abs (V4109) (if (> V4109 0) V4109 (- 0 V4109))) +(defun shen.abs (V4114) (if (> V4114 0) V4114 (- 0 V4114))) -(defun shen.magless (V4110 V4111) (let W4112 (* V4111 2) (if (> W4112 V4110) V4111 (shen.magless V4110 W4112)))) +(defun shen.magless (V4115 V4116) (let W4117 (* V4116 2) (if (> W4117 V4115) V4116 (shen.magless V4115 W4117)))) -(defun shen.integer-test? (V4116 V4117) (cond ((= 0 V4116) true) ((> 1 V4116) false) (true (let W4118 (- V4116 V4117) (if (> 0 W4118) (integer? V4116) (shen.integer-test? W4118 V4117)))))) +(defun shen.integer-test? (V4121 V4122) (cond ((= 0 V4121) true) ((> 1 V4121) false) (true (let W4123 (- V4121 V4122) (if (> 0 W4123) (integer? V4121) (shen.integer-test? W4123 V4122)))))) -(defun mapcan (V4125 V4126) (cond ((= () V4126) ()) ((cons? V4126) (append (V4125 (hd V4126)) (mapcan V4125 (tl V4126)))) (true (simple-error "attempt to mapcan over a non-list +(defun mapcan (V4130 V4131) (cond ((= () V4131) ()) ((cons? V4131) (append (V4130 (hd V4131)) (mapcan V4130 (tl V4131)))) (true (simple-error "attempt to mapcan over a non-list ")))) -(defun == (V4132 V4133) (cond ((= V4132 V4133) true) (true false))) +(defun == (V4137 V4138) (cond ((= V4137 V4138) true) (true false))) -(defun bound? (V4134) (and (symbol? V4134) (let W4135 (trap-error (value V4134) (lambda Z4136 shen.this-symbol-is-unbound)) (if (= W4135 shen.this-symbol-is-unbound) false true)))) +(defun bound? (V4139) (and (symbol? V4139) (let W4140 (trap-error (value V4139) (lambda Z4141 shen.this-symbol-is-unbound)) (if (= W4140 shen.this-symbol-is-unbound) false true)))) -(defun shen.string->bytes (V4137) (cond ((= "" V4137) ()) (true (cons (string->n (pos V4137 0)) (shen.string->bytes (tlstr V4137)))))) +(defun shen.string->bytes (V4142) (cond ((= "" V4142) ()) (true (cons (string->n (pos V4142 0)) (shen.string->bytes (tlstr V4142)))))) -(defun maxinferences (V4138) (if (< V4138 0) (value shen.*maxinferences*) (if (integer? V4138) (set shen.*maxinferences* V4138) (simple-error "maxinferences expects an integer value +(defun maxinferences (V4143) (if (< V4143 0) (value shen.*maxinferences*) (if (integer? V4143) (set shen.*maxinferences* V4143) (simple-error "maxinferences expects an integer value ")))) (defun inferences () (value shen.*infs*)) -(defun protect (V4139) V4139) +(defun protect (V4144) V4144) (defun sterror () (value *sterror*)) (defun stoutput () (value *stoutput*)) -(defun string->symbol (V4140) (let W4141 (intern V4140) (if (symbol? W4141) W4141 (simple-error (cn "cannot intern " (shen.app V4140 " to a symbol" shen.s)))))) +(defun string->symbol (V4145) (let W4146 (intern V4145) (if (symbol? W4146) W4146 (simple-error (cn "cannot intern " (shen.app V4145 " to a symbol" shen.s)))))) -(defun optimise (V4144) (cond ((= + V4144) (set shen.*optimise* true)) ((= - V4144) (set shen.*optimise* false)) (true (simple-error "optimise expects a + or a -. +(defun optimise (V4149) (cond ((= + V4149) (set shen.*optimise* true)) ((= - V4149) (set shen.*optimise* false)) (true (simple-error "optimise expects a + or a -. ")))) (defun os () (value *os*)) @@ -225,7 +225,7 @@ (defun release () (value *release*)) -(defun package? (V4145) (cond ((= null V4145) true) (true (trap-error (do (external V4145) true) (lambda Z4146 false))))) +(defun package? (V4150) (cond ((= null V4150) true) (true (trap-error (do (external V4150) true) (lambda Z4151 false))))) (defun fail () shen.fail!)(defun userdefs () (value shen.*userdefs*)) @@ -235,31 +235,35 @@ (defun system-S? () (value shen.*shen-type-theory-enabled?*)) -(defun enable-type-theory (V4149) (cond ((= + V4149) (set shen.*shen-type-theory-enabled?* true)) ((= - V4149) (set shen.*shen-type-theory-enabled?* false)) (true (simple-error "enable-type-theory expects a + or a - +(defun enable-type-theory (V4154) (cond ((= + V4154) (set shen.*shen-type-theory-enabled?* true)) ((= - V4154) (set shen.*shen-type-theory-enabled?* false)) (true (simple-error "enable-type-theory expects a + or a - ")))) -(defun hush (V4152) (cond ((= + V4152) (set *hush* true)) ((= - V4152) (set *hush* false)) (true (simple-error "hush expects a + or a - +(defun hush (V4157) (cond ((= + V4157) (set *hush* true)) ((= - V4157) (set *hush* false)) (true (simple-error "hush expects a + or a - ")))) -(defun tc (V4155) (cond ((= + V4155) (set shen.*tc* true)) ((= - V4155) (set shen.*tc* false)) (true (simple-error "tc expects a + or -")))) +(defun tc (V4160) (cond ((= + V4160) (set shen.*tc* true)) ((= - V4160) (set shen.*tc* false)) (true (simple-error "tc expects a + or -")))) -(defun destroy (V4156) (do (set shen.*sigf* (shen.unassoc V4156 (value shen.*sigf*))) V4156)) +(defun destroy (V4161) (do (set shen.*sigf* (shen.unassoc V4161 (value shen.*sigf*))) V4161)) -(defun shen.unassoc (V4166 V4167) (cond ((= () V4167) ()) ((and (cons? V4167) (and (cons? (hd V4167)) (= V4166 (hd (hd V4167))))) (tl V4167)) ((cons? V4167) (cons (hd V4167) (shen.unassoc V4166 (tl V4167)))) (true (simple-error "implementation error in shen.unassoc")))) +(defun shen.unassoc (V4171 V4172) (cond ((= () V4172) ()) ((and (cons? V4172) (and (cons? (hd V4172)) (= V4171 (hd (hd V4172))))) (tl V4172)) ((cons? V4172) (cons (hd V4172) (shen.unassoc V4171 (tl V4172)))) (true (simple-error "implementation error in shen.unassoc")))) -(defun in-package (V4168) (if (package? V4168) (set shen.*package* V4168) (simple-error (cn "package " (shen.app V4168 " does not exist +(defun in-package (V4173) (if (package? V4173) (set shen.*package* V4173) (simple-error (cn "package " (shen.app V4173 " does not exist " shen.a))))) -(defun write-to-file (V4169 V4170) (let W4171 (open V4169 out) (let W4172 (if (string? V4170) V4170 (shen.app V4170 "" shen.s)) (let W4173 (pr W4172 W4171) (let W4174 (close W4171) V4170))))) +(defun write-to-file (V4174 V4175) (let W4176 (open V4174 out) (let W4177 (if (string? V4175) V4175 (shen.app V4175 "" shen.s)) (let W4178 (pr W4177 W4176) (let W4179 (close W4176) V4175))))) (defun fresh () (shen.freshterm (gensym shen.t))) -(defun update-lambda-table (V4175 V4176) (let W4177 (put V4175 arity V4176 (value *property-vector*)) (let W4178 (shen.lambda-entry V4175) (let W4179 (if (empty? W4178) (unput V4175 shen.lambda-form (value *property-vector*)) (shen.set-lambda-form-entry W4178)) V4175)))) +(defun update-lambda-table (V4180 V4181) (let W4182 (put V4180 arity V4181 (value *property-vector*)) (let W4183 (shen.lambda-entry V4180) (let W4184 (if (empty? W4183) (unput V4180 shen.lambda-form (value *property-vector*)) (shen.set-lambda-form-entry W4183)) V4180)))) -(defun specialise (V4182 V4183) (cond ((= 0 V4183) (do (set shen.*special* (remove V4182 (value shen.*special*))) (do (set shen.*extraspecial* (remove V4182 (value shen.*extraspecial*))) V4182))) ((= 1 V4183) (do (set shen.*special* (adjoin V4182 (value shen.*special*))) (do (set shen.*extraspecial* (remove V4182 (value shen.*extraspecial*))) V4182))) ((= 2 V4183) (do (set shen.*special* (remove V4182 (value shen.*special*))) (do (set shen.*extraspecial* (adjoin V4182 (value shen.*extraspecial*))) V4182))) (true (simple-error "specialise requires values of 0, 1 or 2 +(defun shen.precompiled-function? (V4187) false) + +(defun shen.update-lambda-table/precompiled (V4188 V4189 V4190 V4191) (if V4191 (let W4192 (put V4188 arity V4189 (value *property-vector*)) (let W4193 (thaw V4190) (let W4194 (if (= V4189 0) (unput V4188 shen.lambda-form (value *property-vector*)) (shen.set-lambda-form-entry (cons V4188 W4193))) V4188))) (update-lambda-table V4188 V4189))) + +(defun specialise (V4197 V4198) (cond ((= 0 V4198) (do (set shen.*special* (remove V4197 (value shen.*special*))) (do (set shen.*extraspecial* (remove V4197 (value shen.*extraspecial*))) V4197))) ((= 1 V4198) (do (set shen.*special* (adjoin V4197 (value shen.*special*))) (do (set shen.*extraspecial* (remove V4197 (value shen.*extraspecial*))) V4197))) ((= 2 V4198) (do (set shen.*special* (remove V4197 (value shen.*special*))) (do (set shen.*extraspecial* (adjoin V4197 (value shen.*extraspecial*))) V4197))) (true (simple-error "specialise requires values of 0, 1 or 2 ")))) -(defun absolute (V4184) (set *absolute* (cons V4184 (value *absolute*)))) +(defun absolute (V4199) (set *absolute* (cons V4199 (value *absolute*)))) -(defun unabsolute (V4185) (set *absolute* (remove V4185 (value *absolute*)))) +(defun unabsolute (V4200) (set *absolute* (remove V4200 (value *absolute*)))) diff --git a/klambda/t-star.kl b/klambda/t-star.kl index f54b3d7..4b79980 100644 --- a/klambda/t-star.kl +++ b/klambda/t-star.kl @@ -1,112 +1,112 @@ -(defun shen.typecheck (V4915 V4916) (let W4917 (shen.extract-vars V4916) (let W4918 (shen.rectify-type V4916) (let W4919 (shen.curry V4915) (((((lambda Z4920 (lambda Z4921 (lambda Z4922 (lambda Z4923 (let W4924 (shen.newpv Z4920) (shen.gc Z4920 (do (shen.incinfs) (shen.insert-prolog-variables (receive (shen.deref W4917 Z4920)) (receive (shen.deref W4918 Z4920)) W4924 Z4920 Z4921 Z4922 (freeze (shen.toplevel-forms (receive (shen.deref W4919 Z4920)) W4924 Z4920 Z4921 Z4922 (freeze (return W4924 Z4920 Z4921 Z4922 Z4923)))))))))))) (shen.prolog-vector)) (@v true (@v 0 (vector 0)))) 0) (freeze true)))))) +(defun shen.typecheck (V4930 V4931) (let W4932 (shen.extract-vars V4931) (let W4933 (shen.rectify-type V4931) (let W4934 (shen.curry V4930) (((((lambda Z4935 (lambda Z4936 (lambda Z4937 (lambda Z4938 (let W4939 (shen.newpv Z4935) (shen.gc Z4935 (do (shen.incinfs) (shen.insert-prolog-variables (receive (shen.deref W4932 Z4935)) (receive (shen.deref W4933 Z4935)) W4939 Z4935 Z4936 Z4937 (freeze (shen.toplevel-forms (receive (shen.deref W4934 Z4935)) W4939 Z4935 Z4936 Z4937 (freeze (return W4939 Z4935 Z4936 Z4937 Z4938)))))))))))) (shen.prolog-vector)) (@v true (@v 0 (vector 0)))) 0) (freeze true)))))) -(defun shen.insert-prolog-variables (V4925 V4926 V4927 V4928 V4929 V4930 V4931) (let W4932 (if (shen.unlocked? V4929) (let W4933 (shen.lazyderef V4925 V4928) (if (= W4933 ()) (do (shen.incinfs) (is! V4926 V4927 V4928 V4929 V4930 V4931)) false)) false) (if (= W4932 false) (if (shen.unlocked? V4929) (let W4934 (shen.lazyderef V4925 V4928) (if (cons? W4934) (let W4935 (hd W4934) (let W4936 (tl W4934) (let W4937 (shen.newpv V4928) (shen.gc V4928 (do (shen.incinfs) (shen.insert-prolog-variables W4936 (subst (shen.deref W4937 V4928) W4935 V4926) V4927 V4928 V4929 V4930 V4931)))))) false)) false) W4932))) +(defun shen.insert-prolog-variables (V4940 V4941 V4942 V4943 V4944 V4945 V4946) (let W4947 (if (shen.unlocked? V4944) (let W4948 (shen.lazyderef V4940 V4943) (if (= W4948 ()) (do (shen.incinfs) (is! V4941 V4942 V4943 V4944 V4945 V4946)) false)) false) (if (= W4947 false) (if (shen.unlocked? V4944) (let W4949 (shen.lazyderef V4940 V4943) (if (cons? W4949) (let W4950 (hd W4949) (let W4951 (tl W4949) (let W4952 (shen.newpv V4943) (shen.gc V4943 (do (shen.incinfs) (shen.insert-prolog-variables W4951 (subst (shen.deref W4952 V4943) W4950 V4941) V4942 V4943 V4944 V4945 V4946)))))) false)) false) W4947))) -(defun shen.toplevel-forms (V4938 V4939 V4940 V4941 V4942 V4943) (let W4944 (+ V4942 1) (let W4945 (if (shen.unlocked? V4941) (let W4946 (shen.lazyderef V4938 V4940) (if (cons? W4946) (let W4947 (shen.lazyderef (hd W4946) V4940) (if (= W4947 define) (let W4948 (shen.lazyderef (tl W4946) V4940) (if (cons? W4948) (let W4949 (hd W4948) (let W4950 (tl W4948) (do (shen.incinfs) (when (shen.type-theory-enabled?) V4940 V4941 W4944 (freeze (shen.cut V4940 V4941 W4944 (freeze (shen.signal-def (value shen.*spy*) W4949 V4940 V4941 W4944 (freeze (shen.t* (cons define (cons W4949 W4950)) V4939 V4940 V4941 W4944 V4943)))))))))) false)) false)) false)) false) (if (= W4945 false) (let W4951 (if (shen.unlocked? V4941) (do (shen.incinfs) (shen.system-S (cons V4938 (cons (intern ":") (cons V4939 ()))) () V4940 V4941 W4944 V4943)) false) (if (= W4951 false) (shen.unlock V4941 W4944) W4951)) W4945)))) +(defun shen.toplevel-forms (V4953 V4954 V4955 V4956 V4957 V4958) (let W4959 (+ V4957 1) (let W4960 (if (shen.unlocked? V4956) (let W4961 (shen.lazyderef V4953 V4955) (if (cons? W4961) (let W4962 (shen.lazyderef (hd W4961) V4955) (if (= W4962 define) (let W4963 (shen.lazyderef (tl W4961) V4955) (if (cons? W4963) (let W4964 (hd W4963) (let W4965 (tl W4963) (do (shen.incinfs) (when (shen.type-theory-enabled?) V4955 V4956 W4959 (freeze (shen.cut V4955 V4956 W4959 (freeze (shen.signal-def (value shen.*spy*) W4964 V4955 V4956 W4959 (freeze (shen.t* (cons define (cons W4964 W4965)) V4954 V4955 V4956 W4959 V4958)))))))))) false)) false)) false)) false) (if (= W4960 false) (let W4966 (if (shen.unlocked? V4956) (do (shen.incinfs) (shen.system-S (cons V4953 (cons (intern ":") (cons V4954 ()))) () V4955 V4956 W4959 V4958)) false) (if (= W4966 false) (shen.unlock V4956 W4959) W4966)) W4960)))) -(defun shen.signal-def (V4952 V4953 V4954 V4955 V4956 V4957) (let W4958 (if (shen.unlocked? V4955) (let W4959 (shen.lazyderef V4952 V4954) (if (= W4959 false) (do (shen.incinfs) (thaw V4957)) false)) false) (if (= W4958 false) (if (shen.unlocked? V4955) (let W4960 (shen.lazyderef V4952 V4954) (if (= W4960 true) (let W4961 (shen.newpv V4954) (shen.gc V4954 (do (shen.incinfs) (is W4961 (pr (cn " -typechecking (fn " (shen.app (shen.deref V4953 V4954) ") -" shen.a)) (stoutput)) V4954 V4955 V4956 V4957)))) false)) false) W4958))) +(defun shen.signal-def (V4967 V4968 V4969 V4970 V4971 V4972) (let W4973 (if (shen.unlocked? V4970) (let W4974 (shen.lazyderef V4967 V4969) (if (= W4974 false) (do (shen.incinfs) (thaw V4972)) false)) false) (if (= W4973 false) (if (shen.unlocked? V4970) (let W4975 (shen.lazyderef V4967 V4969) (if (= W4975 true) (let W4976 (shen.newpv V4969) (shen.gc V4969 (do (shen.incinfs) (is W4976 (pr (cn " +typechecking (fn " (shen.app (shen.deref V4968 V4969) ") +" shen.a)) (stoutput)) V4969 V4970 V4971 V4972)))) false)) false) W4973))) -(defun shen.rectify-type (V4962) (shen.demodulate (shen.curry-type V4962))) +(defun shen.rectify-type (V4977) (shen.demodulate (shen.curry-type V4977))) -(defun shen.demodulate (V4963) (trap-error (let W4964 (shen.walk (lambda Z4965 (shen.demod Z4965)) V4963) (if (= W4964 V4963) V4963 (shen.demodulate W4964))) (lambda Z4966 V4963))) +(defun shen.demodulate (V4978) (trap-error (let W4979 (shen.walk (lambda Z4980 (shen.demod Z4980)) V4978) (if (= W4979 V4978) V4978 (shen.demodulate W4979))) (lambda Z4981 V4978))) -(defun shen.curry-type (V4967) (cond ((and (cons? V4967) (and (cons? (tl V4967)) (and (= --> (hd (tl V4967))) (and (cons? (tl (tl V4967))) (and (cons? (tl (tl (tl V4967)))) (= --> (hd (tl (tl (tl V4967)))))))))) (shen.curry-type (cons (hd V4967) (cons --> (cons (tl (tl V4967)) ()))))) ((and (cons? V4967) (and (cons? (hd V4967)) (and (= list (hd (hd V4967))) (and (cons? (tl (hd V4967))) (and (= () (tl (tl (hd V4967)))) (and (cons? (tl V4967)) (and (= ==> (hd (tl V4967))) (and (cons? (tl (tl V4967))) (= () (tl (tl (tl V4967)))))))))))) (shen.curry-type (cons (hd V4967) (cons --> (cons (cons str (cons (hd V4967) (tl (tl V4967)))) ()))))) ((and (cons? V4967) (and (cons? (tl V4967)) (and (= * (hd (tl V4967))) (and (cons? (tl (tl V4967))) (and (cons? (tl (tl (tl V4967)))) (= * (hd (tl (tl (tl V4967)))))))))) (shen.curry-type (cons (hd V4967) (cons * (cons (tl (tl V4967)) ()))))) ((cons? V4967) (map (lambda Z4968 (shen.curry-type Z4968)) V4967)) (true V4967))) +(defun shen.curry-type (V4982) (cond ((and (cons? V4982) (and (cons? (tl V4982)) (and (= --> (hd (tl V4982))) (and (cons? (tl (tl V4982))) (and (cons? (tl (tl (tl V4982)))) (= --> (hd (tl (tl (tl V4982)))))))))) (shen.curry-type (cons (hd V4982) (cons --> (cons (tl (tl V4982)) ()))))) ((and (cons? V4982) (and (cons? (hd V4982)) (and (= list (hd (hd V4982))) (and (cons? (tl (hd V4982))) (and (= () (tl (tl (hd V4982)))) (and (cons? (tl V4982)) (and (= ==> (hd (tl V4982))) (and (cons? (tl (tl V4982))) (= () (tl (tl (tl V4982)))))))))))) (shen.curry-type (cons (hd V4982) (cons --> (cons (cons str (cons (hd V4982) (tl (tl V4982)))) ()))))) ((and (cons? V4982) (and (cons? (tl V4982)) (and (= * (hd (tl V4982))) (and (cons? (tl (tl V4982))) (and (cons? (tl (tl (tl V4982)))) (= * (hd (tl (tl (tl V4982)))))))))) (shen.curry-type (cons (hd V4982) (cons * (cons (tl (tl V4982)) ()))))) ((cons? V4982) (map (lambda Z4983 (shen.curry-type Z4983)) V4982)) (true V4982))) -(defun shen.curry (V4969) (cond ((and (cons? V4969) (and (= define (hd V4969)) (cons? (tl V4969)))) V4969) ((and (cons? V4969) (and (= type (hd V4969)) (and (cons? (tl V4969)) (and (cons? (tl (tl V4969))) (= () (tl (tl (tl V4969)))))))) (cons type (cons (shen.curry (hd (tl V4969))) (tl (tl V4969))))) ((and (cons? V4969) (shen.special? (hd V4969))) (cons (hd V4969) (map (lambda Z4970 (shen.curry Z4970)) (tl V4969)))) ((and (cons? V4969) (shen.extraspecial? (hd V4969))) V4969) ((and (cons? V4969) (and (cons? (tl V4969)) (cons? (tl (tl V4969))))) (shen.curry (cons (cons (hd V4969) (cons (hd (tl V4969)) ())) (tl (tl V4969))))) ((and (cons? V4969) (and (cons? (tl V4969)) (= () (tl (tl V4969))))) (cons (shen.curry (hd V4969)) (cons (shen.curry (hd (tl V4969))) ()))) (true V4969))) +(defun shen.curry (V4984) (cond ((and (cons? V4984) (and (= define (hd V4984)) (cons? (tl V4984)))) V4984) ((and (cons? V4984) (and (= type (hd V4984)) (and (cons? (tl V4984)) (and (cons? (tl (tl V4984))) (= () (tl (tl (tl V4984)))))))) (cons type (cons (shen.curry (hd (tl V4984))) (tl (tl V4984))))) ((and (cons? V4984) (shen.special? (hd V4984))) (cons (hd V4984) (map (lambda Z4985 (shen.curry Z4985)) (tl V4984)))) ((and (cons? V4984) (shen.extraspecial? (hd V4984))) V4984) ((and (cons? V4984) (and (cons? (tl V4984)) (cons? (tl (tl V4984))))) (shen.curry (cons (cons (hd V4984) (cons (hd (tl V4984)) ())) (tl (tl V4984))))) ((and (cons? V4984) (and (cons? (tl V4984)) (= () (tl (tl V4984))))) (cons (shen.curry (hd V4984)) (cons (shen.curry (hd (tl V4984))) ()))) (true V4984))) -(defun shen.special? (V4971) (element? V4971 (value shen.*special*))) +(defun shen.special? (V4986) (element? V4986 (value shen.*special*))) -(defun shen.extraspecial? (V4972) (element? V4972 (value shen.*extraspecial*))) +(defun shen.extraspecial? (V4987) (element? V4987 (value shen.*extraspecial*))) -(defun shen.system-S (V4973 V4974 V4975 V4976 V4977 V4978) (let W4979 (+ V4977 1) (let W4980 (if (shen.unlocked? V4976) (do (shen.incinfs) (when (shen.maxinfexceeded?) V4975 V4976 W4979 V4978)) false) (if (= W4980 false) (let W4981 (if (shen.unlocked? V4976) (let W4982 (shen.lazyderef V4973 V4975) (if (cons? W4982) (let W4983 (hd W4982) (let W4984 (shen.lazyderef (tl W4982) V4975) (if (cons? W4984) (let W4985 (hd W4984) (let W4986 (shen.lazyderef (tl W4984) V4975) (if (cons? W4986) (let W4987 (hd W4986) (let W4988 (shen.lazyderef (tl W4986) V4975) (if (= W4988 ()) (do (shen.incinfs) (when (= (shen.deref W4985 V4975) (intern ":")) V4975 V4976 W4979 (freeze (when (shen.type-theory-enabled?) V4975 V4976 W4979 (freeze (shen.cut V4975 V4976 W4979 (freeze (shen.system-S-h W4983 W4987 V4974 V4975 V4976 W4979 V4978)))))))) false))) false))) false))) false)) false) (if (= W4981 false) (let W4989 (if (shen.unlocked? V4976) (do (shen.incinfs) (when (value shen.*spy*) V4975 V4976 W4979 (freeze (shen.show V4973 V4974 V4975 V4976 W4979 V4978)))) false) (if (= W4989 false) (let W4990 (if (shen.unlocked? V4976) (do (shen.incinfs) (shen.search-user-datatypes V4973 V4974 (value shen.*datatypes*) V4975 V4976 W4979 V4978)) false) (if (= W4990 false) (shen.unlock V4976 W4979) W4990)) W4989)) W4981)) W4980)))) +(defun shen.system-S (V4988 V4989 V4990 V4991 V4992 V4993) (let W4994 (+ V4992 1) (let W4995 (if (shen.unlocked? V4991) (do (shen.incinfs) (when (shen.maxinfexceeded?) V4990 V4991 W4994 V4993)) false) (if (= W4995 false) (let W4996 (if (shen.unlocked? V4991) (let W4997 (shen.lazyderef V4988 V4990) (if (cons? W4997) (let W4998 (hd W4997) (let W4999 (shen.lazyderef (tl W4997) V4990) (if (cons? W4999) (let W5000 (hd W4999) (let W5001 (shen.lazyderef (tl W4999) V4990) (if (cons? W5001) (let W5002 (hd W5001) (let W5003 (shen.lazyderef (tl W5001) V4990) (if (= W5003 ()) (do (shen.incinfs) (when (= (shen.deref W5000 V4990) (intern ":")) V4990 V4991 W4994 (freeze (when (shen.type-theory-enabled?) V4990 V4991 W4994 (freeze (shen.cut V4990 V4991 W4994 (freeze (shen.system-S-h W4998 W5002 V4989 V4990 V4991 W4994 V4993)))))))) false))) false))) false))) false)) false) (if (= W4996 false) (let W5004 (if (shen.unlocked? V4991) (do (shen.incinfs) (when (value shen.*spy*) V4990 V4991 W4994 (freeze (shen.show V4988 V4989 V4990 V4991 W4994 V4993)))) false) (if (= W5004 false) (let W5005 (if (shen.unlocked? V4991) (do (shen.incinfs) (shen.search-user-datatypes V4988 V4989 (value shen.*datatypes*) V4990 V4991 W4994 V4993)) false) (if (= W5005 false) (shen.unlock V4991 W4994) W5005)) W5004)) W4996)) W4995)))) -(defun shen.show (V4997 V4998 V4999 V5000 V5001 V5002) (do (shen.line) (do (shen.show-p (shen.deref V4997 V4999)) (do (nl 2) (do (shen.show-assumptions (shen.deref V4998 V4999) 1) (do (shen.pause-for-user) false)))))) +(defun shen.show (V5012 V5013 V5014 V5015 V5016 V5017) (do (shen.line) (do (shen.show-p (shen.deref V5012 V5014)) (do (nl 2) (do (shen.show-assumptions (shen.deref V5013 V5014) 1) (do (shen.pause-for-user) false)))))) -(defun shen.line () (let W5003 (inferences) (pr (cn "____________________________________________________________ " (shen.app W5003 (cn " inference" (shen.app (if (= 1 W5003) "" "s") " +(defun shen.line () (let W5018 (inferences) (pr (cn "____________________________________________________________ " (shen.app W5018 (cn " inference" (shen.app (if (= 1 W5018) "" "s") " ?- " shen.a)) shen.a)) (stoutput)))) -(defun shen.show-p (V5004) (cond ((and (cons? V5004) (and (cons? (tl V5004)) (and (cons? (tl (tl V5004))) (and (= () (tl (tl (tl V5004)))) (= (hd (tl V5004)) (intern ":")))))) (do (shen.prterm (hd V5004)) (do (pr " : " (stoutput)) (pr (shen.app (hd (tl (tl V5004))) "" shen.r) (stoutput))))) (true (shen.prterm V5004)))) +(defun shen.show-p (V5019) (cond ((and (cons? V5019) (and (cons? (tl V5019)) (and (cons? (tl (tl V5019))) (and (= () (tl (tl (tl V5019)))) (= (hd (tl V5019)) (intern ":")))))) (do (shen.prterm (hd V5019)) (do (pr " : " (stoutput)) (pr (shen.app (hd (tl (tl V5019))) "" shen.r) (stoutput))))) (true (shen.prterm V5019)))) -(defun shen.prterm (V5005) (cond ((and (cons? V5005) (and (= cons (hd V5005)) (and (cons? (tl V5005)) (and (cons? (tl (tl V5005))) (= () (tl (tl (tl V5005)))))))) (do (pr "[" (stoutput)) (do (shen.prterm (hd (tl V5005))) (do (shen.prtl (hd (tl (tl V5005)))) (pr "]" (stoutput)))))) ((cons? V5005) (do (pr "(" (stoutput)) (do (shen.prterm (hd V5005)) (do (map (lambda Z5006 (do (pr " " (stoutput)) (shen.prterm Z5006))) (tl V5005)) (pr ")" (stoutput)))))) (true (print V5005)))) +(defun shen.prterm (V5020) (cond ((and (cons? V5020) (and (= cons (hd V5020)) (and (cons? (tl V5020)) (and (cons? (tl (tl V5020))) (= () (tl (tl (tl V5020)))))))) (do (pr "[" (stoutput)) (do (shen.prterm (hd (tl V5020))) (do (shen.prtl (hd (tl (tl V5020)))) (pr "]" (stoutput)))))) ((cons? V5020) (do (pr "(" (stoutput)) (do (shen.prterm (hd V5020)) (do (map (lambda Z5021 (do (pr " " (stoutput)) (shen.prterm Z5021))) (tl V5020)) (pr ")" (stoutput)))))) (true (print V5020)))) -(defun shen.prtl (V5007) (cond ((= () V5007) "") ((and (cons? V5007) (and (= cons (hd V5007)) (and (cons? (tl V5007)) (and (cons? (tl (tl V5007))) (= () (tl (tl (tl V5007)))))))) (do (pr " " (stoutput)) (do (shen.prterm (hd (tl V5007))) (shen.prtl (hd (tl (tl V5007))))))) (true (do (pr " | " (stoutput)) (shen.prterm V5007))))) +(defun shen.prtl (V5022) (cond ((= () V5022) "") ((and (cons? V5022) (and (= cons (hd V5022)) (and (cons? (tl V5022)) (and (cons? (tl (tl V5022))) (= () (tl (tl (tl V5022)))))))) (do (pr " " (stoutput)) (do (shen.prterm (hd (tl V5022))) (shen.prtl (hd (tl (tl V5022))))))) (true (do (pr " | " (stoutput)) (shen.prterm V5022))))) -(defun shen.show-assumptions (V5014 V5015) (cond ((= () V5014) (pr " -> " (stoutput))) ((cons? V5014) (do (pr (shen.app V5015 ". " shen.a) (stoutput)) (do (shen.show-p (hd V5014)) (do (nl 1) (shen.show-assumptions (tl V5014) (+ V5015 1)))))) (true (simple-error "implementation error in shen.show-assumptions")))) +(defun shen.show-assumptions (V5029 V5030) (cond ((= () V5029) (pr " +> " (stoutput))) ((cons? V5029) (do (pr (shen.app V5030 ". " shen.a) (stoutput)) (do (shen.show-p (hd V5029)) (do (nl 1) (shen.show-assumptions (tl V5029) (+ V5030 1)))))) (true (simple-error "implementation error in shen.show-assumptions")))) -(defun shen.pause-for-user () (let W5016 (read-byte (stinput)) (if (= W5016 94) (simple-error "input aborted +(defun shen.pause-for-user () (let W5031 (read-byte (stinput)) (if (= W5031 94) (simple-error "input aborted ") (nl 1)))) (defun shen.type-theory-enabled? () (value shen.*shen-type-theory-enabled?*)) (defun shen.maxinfexceeded? () (if (> (inferences) (value shen.*maxinferences*)) (simple-error "maximum inferences exceeded") false)) -(defun shen.system-S-h (V5017 V5018 V5019 V5020 V5021 V5022 V5023) (let W5024 (+ V5022 1) (let W5025 (if (shen.unlocked? V5021) (do (shen.incinfs) (when (value shen.*spy*) V5020 V5021 W5024 (freeze (shen.show (cons V5017 (cons (intern ":") (cons V5018 ()))) V5019 V5020 V5021 W5024 V5023)))) false) (if (= W5025 false) (let W5026 (if (shen.unlocked? V5021) (do (shen.incinfs) (when (not (cons? (shen.lazyderef V5017 V5020))) V5020 V5021 W5024 (freeze (shen.primitive V5017 V5018 V5020 V5021 W5024 V5023)))) false) (if (= W5026 false) (let W5027 (if (shen.unlocked? V5021) (do (shen.incinfs) (shen.by-hypothesis V5017 V5018 V5019 V5020 V5021 W5024 V5023)) false) (if (= W5027 false) (let W5028 (if (shen.unlocked? V5021) (let W5029 (shen.lazyderef V5017 V5020) (if (cons? W5029) (let W5030 (hd W5029) (let W5031 (shen.lazyderef (tl W5029) V5020) (if (= W5031 ()) (do (shen.incinfs) (shen.lookupsig W5030 (cons --> (cons V5018 ())) V5020 V5021 W5024 V5023)) false))) false)) false) (if (= W5028 false) (let W5032 (if (shen.unlocked? V5021) (let W5033 (shen.lazyderef V5017 V5020) (if (cons? W5033) (let W5034 (shen.lazyderef (hd W5033) V5020) (if (= W5034 fn) (let W5035 (shen.lazyderef (tl W5033) V5020) (if (cons? W5035) (let W5036 (hd W5035) (let W5037 (shen.lazyderef (tl W5035) V5020) (if (= W5037 ()) (do (shen.incinfs) (when (= (arity (shen.deref W5036 V5020)) 0) V5020 V5021 W5024 (freeze (shen.cut V5020 V5021 W5024 (freeze (shen.system-S-h (cons W5036 ()) V5018 V5019 V5020 V5021 W5024 V5023)))))) false))) false)) false)) false)) false) (if (= W5032 false) (let W5038 (if (shen.unlocked? V5021) (let W5039 (shen.lazyderef V5017 V5020) (if (cons? W5039) (let W5040 (shen.lazyderef (hd W5039) V5020) (if (= W5040 fn) (let W5041 (shen.lazyderef (tl W5039) V5020) (if (cons? W5041) (let W5042 (hd W5041) (let W5043 (shen.lazyderef (tl W5041) V5020) (if (= W5043 ()) (do (shen.incinfs) (shen.lookupsig W5042 V5018 V5020 V5021 W5024 V5023)) false))) false)) false)) false)) false) (if (= W5038 false) (let W5044 (if (shen.unlocked? V5021) (let W5045 (shen.lazyderef V5017 V5020) (if (cons? W5045) (let W5046 (hd W5045) (let W5047 (shen.lazyderef (tl W5045) V5020) (if (cons? W5047) (let W5048 (hd W5047) (let W5049 (shen.lazyderef (tl W5047) V5020) (if (= W5049 ()) (let W5050 (shen.newpv V5020) (shen.gc V5020 (do (shen.incinfs) (when (not (cons? (shen.lazyderef W5046 V5020))) V5020 V5021 W5024 (freeze (shen.lookupsig W5046 (cons W5050 (cons --> (cons V5018 ()))) V5020 V5021 W5024 (freeze (shen.system-S-h W5048 W5050 V5019 V5020 V5021 W5024 V5023)))))))) false))) false))) false)) false) (if (= W5044 false) (let W5051 (if (shen.unlocked? V5021) (let W5052 (shen.lazyderef V5017 V5020) (if (cons? W5052) (let W5053 (hd W5052) (let W5054 (shen.lazyderef (tl W5052) V5020) (if (cons? W5054) (let W5055 (hd W5054) (let W5056 (shen.lazyderef (tl W5054) V5020) (if (= W5056 ()) (let W5057 (shen.newpv V5020) (shen.gc V5020 (do (shen.incinfs) (shen.system-S-h W5053 (cons W5057 (cons --> (cons V5018 ()))) V5019 V5020 V5021 W5024 (freeze (shen.system-S-h W5055 W5057 V5019 V5020 V5021 W5024 V5023)))))) false))) false))) false)) false) (if (= W5051 false) (let W5058 (if (shen.unlocked? V5021) (let W5059 (shen.lazyderef V5017 V5020) (if (cons? W5059) (let W5060 (shen.lazyderef (hd W5059) V5020) (if (= W5060 cons) (let W5061 (shen.lazyderef (tl W5059) V5020) (if (cons? W5061) (let W5062 (hd W5061) (let W5063 (shen.lazyderef (tl W5061) V5020) (if (cons? W5063) (let W5064 (hd W5063) (let W5065 (shen.lazyderef (tl W5063) V5020) (if (= W5065 ()) (let W5066 (shen.lazyderef V5018 V5020) (let W5067 (lambda Z5068 (do (shen.incinfs) (shen.system-S-h W5062 Z5068 V5019 V5020 V5021 W5024 (freeze (shen.system-S-h W5064 (cons list (cons Z5068 ())) V5019 V5020 V5021 W5024 V5023))))) (if (cons? W5066) (let W5069 (shen.lazyderef (hd W5066) V5020) (let W5070 (freeze (let W5071 (shen.lazyderef (tl W5066) V5020) (let W5072 (lambda Z5073 (W5067 Z5073)) (if (cons? W5071) (let W5074 (hd W5071) (let W5075 (shen.lazyderef (tl W5071) V5020) (let W5076 (freeze (W5072 W5074)) (if (= W5075 ()) (thaw W5076) (if (shen.pvar? W5075) (shen.bind! W5075 () V5020 W5076) false))))) (if (shen.pvar? W5071) (let W5077 (shen.newpv V5020) (shen.gc V5020 (shen.bind! W5071 (cons W5077 ()) V5020 (freeze (W5072 W5077))))) false))))) (if (= W5069 list) (thaw W5070) (if (shen.pvar? W5069) (shen.bind! W5069 list V5020 W5070) false)))) (if (shen.pvar? W5066) (let W5078 (shen.newpv V5020) (shen.gc V5020 (shen.bind! W5066 (cons list (cons W5078 ())) V5020 (freeze (W5067 W5078))))) false)))) false))) false))) false)) false)) false)) false) (if (= W5058 false) (let W5079 (if (shen.unlocked? V5021) (let W5080 (shen.lazyderef V5017 V5020) (if (cons? W5080) (let W5081 (shen.lazyderef (hd W5080) V5020) (if (= W5081 @p) (let W5082 (shen.lazyderef (tl W5080) V5020) (if (cons? W5082) (let W5083 (hd W5082) (let W5084 (shen.lazyderef (tl W5082) V5020) (if (cons? W5084) (let W5085 (hd W5084) (let W5086 (shen.lazyderef (tl W5084) V5020) (if (= W5086 ()) (let W5087 (shen.lazyderef V5018 V5020) (let W5088 (lambda Z5089 (lambda Z5090 (do (shen.incinfs) (shen.system-S-h W5083 Z5089 V5019 V5020 V5021 W5024 (freeze (shen.system-S-h W5085 Z5090 V5019 V5020 V5021 W5024 V5023)))))) (if (cons? W5087) (let W5091 (hd W5087) (let W5092 (shen.lazyderef (tl W5087) V5020) (let W5093 (lambda Z5094 ((W5088 W5091) Z5094)) (if (cons? W5092) (let W5095 (shen.lazyderef (hd W5092) V5020) (let W5096 (freeze (let W5097 (shen.lazyderef (tl W5092) V5020) (let W5098 (lambda Z5099 (W5093 Z5099)) (if (cons? W5097) (let W5100 (hd W5097) (let W5101 (shen.lazyderef (tl W5097) V5020) (let W5102 (freeze (W5098 W5100)) (if (= W5101 ()) (thaw W5102) (if (shen.pvar? W5101) (shen.bind! W5101 () V5020 W5102) false))))) (if (shen.pvar? W5097) (let W5103 (shen.newpv V5020) (shen.gc V5020 (shen.bind! W5097 (cons W5103 ()) V5020 (freeze (W5098 W5103))))) false))))) (if (= W5095 *) (thaw W5096) (if (shen.pvar? W5095) (shen.bind! W5095 * V5020 W5096) false)))) (if (shen.pvar? W5092) (let W5104 (shen.newpv V5020) (shen.gc V5020 (shen.bind! W5092 (cons * (cons W5104 ())) V5020 (freeze (W5093 W5104))))) false))))) (if (shen.pvar? W5087) (let W5105 (shen.newpv V5020) (shen.gc V5020 (let W5106 (shen.newpv V5020) (shen.gc V5020 (shen.bind! W5087 (cons W5105 (cons * (cons W5106 ()))) V5020 (freeze ((W5088 W5105) W5106))))))) false)))) false))) false))) false)) false)) false)) false) (if (= W5079 false) (let W5107 (if (shen.unlocked? V5021) (let W5108 (shen.lazyderef V5017 V5020) (if (cons? W5108) (let W5109 (shen.lazyderef (hd W5108) V5020) (if (= W5109 @v) (let W5110 (shen.lazyderef (tl W5108) V5020) (if (cons? W5110) (let W5111 (hd W5110) (let W5112 (shen.lazyderef (tl W5110) V5020) (if (cons? W5112) (let W5113 (hd W5112) (let W5114 (shen.lazyderef (tl W5112) V5020) (if (= W5114 ()) (let W5115 (shen.lazyderef V5018 V5020) (let W5116 (lambda Z5117 (do (shen.incinfs) (shen.system-S-h W5111 Z5117 V5019 V5020 V5021 W5024 (freeze (shen.system-S-h W5113 (cons vector (cons Z5117 ())) V5019 V5020 V5021 W5024 V5023))))) (if (cons? W5115) (let W5118 (shen.lazyderef (hd W5115) V5020) (let W5119 (freeze (let W5120 (shen.lazyderef (tl W5115) V5020) (let W5121 (lambda Z5122 (W5116 Z5122)) (if (cons? W5120) (let W5123 (hd W5120) (let W5124 (shen.lazyderef (tl W5120) V5020) (let W5125 (freeze (W5121 W5123)) (if (= W5124 ()) (thaw W5125) (if (shen.pvar? W5124) (shen.bind! W5124 () V5020 W5125) false))))) (if (shen.pvar? W5120) (let W5126 (shen.newpv V5020) (shen.gc V5020 (shen.bind! W5120 (cons W5126 ()) V5020 (freeze (W5121 W5126))))) false))))) (if (= W5118 vector) (thaw W5119) (if (shen.pvar? W5118) (shen.bind! W5118 vector V5020 W5119) false)))) (if (shen.pvar? W5115) (let W5127 (shen.newpv V5020) (shen.gc V5020 (shen.bind! W5115 (cons vector (cons W5127 ())) V5020 (freeze (W5116 W5127))))) false)))) false))) false))) false)) false)) false)) false) (if (= W5107 false) (let W5128 (if (shen.unlocked? V5021) (let W5129 (shen.lazyderef V5017 V5020) (if (cons? W5129) (let W5130 (shen.lazyderef (hd W5129) V5020) (if (= W5130 @s) (let W5131 (shen.lazyderef (tl W5129) V5020) (if (cons? W5131) (let W5132 (hd W5131) (let W5133 (shen.lazyderef (tl W5131) V5020) (if (cons? W5133) (let W5134 (hd W5133) (let W5135 (shen.lazyderef (tl W5133) V5020) (if (= W5135 ()) (let W5136 (shen.lazyderef V5018 V5020) (let W5137 (freeze (do (shen.incinfs) (shen.system-S-h W5132 string V5019 V5020 V5021 W5024 (freeze (shen.system-S-h W5134 string V5019 V5020 V5021 W5024 V5023))))) (if (= W5136 string) (thaw W5137) (if (shen.pvar? W5136) (shen.bind! W5136 string V5020 W5137) false)))) false))) false))) false)) false)) false)) false) (if (= W5128 false) (let W5138 (if (shen.unlocked? V5021) (let W5139 (shen.lazyderef V5017 V5020) (if (cons? W5139) (let W5140 (shen.lazyderef (hd W5139) V5020) (if (= W5140 lambda) (let W5141 (shen.lazyderef (tl W5139) V5020) (if (cons? W5141) (let W5142 (hd W5141) (let W5143 (shen.lazyderef (tl W5141) V5020) (if (cons? W5143) (let W5144 (hd W5143) (let W5145 (shen.lazyderef (tl W5143) V5020) (if (= W5145 ()) (let W5146 (shen.lazyderef V5018 V5020) (let W5147 (lambda Z5148 (lambda Z5149 (let W5150 (shen.newpv V5020) (shen.gc V5020 (let W5151 (shen.newpv V5020) (shen.gc V5020 (do (shen.incinfs) (bind W5151 (shen.freshterm (shen.lazyderef W5142 V5020)) V5020 V5021 W5024 (freeze (bind W5150 (shen.beta (shen.lazyderef W5142 V5020) (shen.deref W5151 V5020) (shen.deref W5144 V5020)) V5020 V5021 W5024 (freeze (shen.system-S-h W5150 Z5149 (cons (cons W5151 (cons (intern ":") (cons Z5148 ()))) V5019) V5020 V5021 W5024 V5023)))))))))))) (if (cons? W5146) (let W5152 (hd W5146) (let W5153 (shen.lazyderef (tl W5146) V5020) (let W5154 (lambda Z5155 ((W5147 W5152) Z5155)) (if (cons? W5153) (let W5156 (shen.lazyderef (hd W5153) V5020) (let W5157 (freeze (let W5158 (shen.lazyderef (tl W5153) V5020) (let W5159 (lambda Z5160 (W5154 Z5160)) (if (cons? W5158) (let W5161 (hd W5158) (let W5162 (shen.lazyderef (tl W5158) V5020) (let W5163 (freeze (W5159 W5161)) (if (= W5162 ()) (thaw W5163) (if (shen.pvar? W5162) (shen.bind! W5162 () V5020 W5163) false))))) (if (shen.pvar? W5158) (let W5164 (shen.newpv V5020) (shen.gc V5020 (shen.bind! W5158 (cons W5164 ()) V5020 (freeze (W5159 W5164))))) false))))) (if (= W5156 -->) (thaw W5157) (if (shen.pvar? W5156) (shen.bind! W5156 --> V5020 W5157) false)))) (if (shen.pvar? W5153) (let W5165 (shen.newpv V5020) (shen.gc V5020 (shen.bind! W5153 (cons --> (cons W5165 ())) V5020 (freeze (W5154 W5165))))) false))))) (if (shen.pvar? W5146) (let W5166 (shen.newpv V5020) (shen.gc V5020 (let W5167 (shen.newpv V5020) (shen.gc V5020 (shen.bind! W5146 (cons W5166 (cons --> (cons W5167 ()))) V5020 (freeze ((W5147 W5166) W5167))))))) false)))) false))) false))) false)) false)) false)) false) (if (= W5138 false) (let W5168 (if (shen.unlocked? V5021) (let W5169 (shen.lazyderef V5017 V5020) (if (cons? W5169) (let W5170 (shen.lazyderef (hd W5169) V5020) (if (= W5170 let) (let W5171 (shen.lazyderef (tl W5169) V5020) (if (cons? W5171) (let W5172 (hd W5171) (let W5173 (shen.lazyderef (tl W5171) V5020) (if (cons? W5173) (let W5174 (hd W5173) (let W5175 (shen.lazyderef (tl W5173) V5020) (if (cons? W5175) (let W5176 (hd W5175) (let W5177 (shen.lazyderef (tl W5175) V5020) (if (= W5177 ()) (let W5178 (shen.newpv V5020) (shen.gc V5020 (let W5179 (shen.newpv V5020) (shen.gc V5020 (let W5180 (shen.newpv V5020) (shen.gc V5020 (do (shen.incinfs) (shen.system-S-h W5174 W5180 V5019 V5020 V5021 W5024 (freeze (bind W5179 (shen.freshterm (shen.lazyderef W5172 V5020)) V5020 V5021 W5024 (freeze (bind W5178 (shen.beta (shen.lazyderef W5172 V5020) (shen.lazyderef W5179 V5020) (shen.lazyderef W5176 V5020)) V5020 V5021 W5024 (freeze (shen.system-S-h W5178 V5018 (cons (cons W5179 (cons (intern ":") (cons W5180 ()))) V5019) V5020 V5021 W5024 V5023)))))))))))))) false))) false))) false))) false)) false)) false)) false) (if (= W5168 false) (let W5181 (if (shen.unlocked? V5021) (let W5182 (shen.lazyderef V5017 V5020) (if (cons? W5182) (let W5183 (shen.lazyderef (hd W5182) V5020) (if (= W5183 open) (let W5184 (shen.lazyderef (tl W5182) V5020) (if (cons? W5184) (let W5185 (hd W5184) (let W5186 (shen.lazyderef (tl W5184) V5020) (if (cons? W5186) (let W5187 (hd W5186) (let W5188 (shen.lazyderef (tl W5186) V5020) (if (= W5188 ()) (let W5189 (shen.lazyderef V5018 V5020) (let W5190 (lambda Z5191 (do (shen.incinfs) (is! W5187 Z5191 V5020 V5021 W5024 (freeze (when (element? (shen.lazyderef Z5191 V5020) (cons in (cons out ()))) V5020 V5021 W5024 (freeze (shen.system-S-h W5185 string V5019 V5020 V5021 W5024 V5023))))))) (if (cons? W5189) (let W5192 (shen.lazyderef (hd W5189) V5020) (let W5193 (freeze (let W5194 (shen.lazyderef (tl W5189) V5020) (let W5195 (lambda Z5196 (W5190 Z5196)) (if (cons? W5194) (let W5197 (hd W5194) (let W5198 (shen.lazyderef (tl W5194) V5020) (let W5199 (freeze (W5195 W5197)) (if (= W5198 ()) (thaw W5199) (if (shen.pvar? W5198) (shen.bind! W5198 () V5020 W5199) false))))) (if (shen.pvar? W5194) (let W5200 (shen.newpv V5020) (shen.gc V5020 (shen.bind! W5194 (cons W5200 ()) V5020 (freeze (W5195 W5200))))) false))))) (if (= W5192 stream) (thaw W5193) (if (shen.pvar? W5192) (shen.bind! W5192 stream V5020 W5193) false)))) (if (shen.pvar? W5189) (let W5201 (shen.newpv V5020) (shen.gc V5020 (shen.bind! W5189 (cons stream (cons W5201 ())) V5020 (freeze (W5190 W5201))))) false)))) false))) false))) false)) false)) false)) false) (if (= W5181 false) (let W5202 (if (shen.unlocked? V5021) (let W5203 (shen.lazyderef V5017 V5020) (if (cons? W5203) (let W5204 (shen.lazyderef (hd W5203) V5020) (if (= W5204 type) (let W5205 (shen.lazyderef (tl W5203) V5020) (if (cons? W5205) (let W5206 (hd W5205) (let W5207 (shen.lazyderef (tl W5205) V5020) (if (cons? W5207) (let W5208 (hd W5207) (let W5209 (shen.lazyderef (tl W5207) V5020) (if (= W5209 ()) (do (shen.incinfs) (shen.cut V5020 V5021 W5024 (freeze (is! (shen.rectify-type (shen.deref W5208 V5020)) V5018 V5020 V5021 W5024 (freeze (shen.system-S-h W5206 V5018 V5019 V5020 V5021 W5024 V5023)))))) false))) false))) false)) false)) false)) false) (if (= W5202 false) (let W5210 (if (shen.unlocked? V5021) (let W5211 (shen.lazyderef V5017 V5020) (if (cons? W5211) (let W5212 (shen.lazyderef (hd W5211) V5020) (if (= W5212 shen.input-h+) (let W5213 (shen.lazyderef (tl W5211) V5020) (if (cons? W5213) (let W5214 (hd W5213) (let W5215 (shen.lazyderef (tl W5213) V5020) (if (cons? W5215) (let W5216 (hd W5215) (let W5217 (shen.lazyderef (tl W5215) V5020) (if (= W5217 ()) (do (shen.incinfs) (is V5018 (shen.rectify-type (shen.rdecons (shen.deref W5214 V5020))) V5020 V5021 W5024 (freeze (shen.system-S-h W5216 (cons stream (cons in ())) V5019 V5020 V5021 W5024 V5023)))) false))) false))) false)) false)) false)) false) (if (= W5210 false) (let W5218 (if (shen.unlocked? V5021) (let W5219 (shen.lazyderef V5017 V5020) (if (cons? W5219) (let W5220 (shen.lazyderef (hd W5219) V5020) (if (= W5220 set) (let W5221 (shen.lazyderef (tl W5219) V5020) (if (cons? W5221) (let W5222 (hd W5221) (let W5223 (shen.lazyderef (tl W5221) V5020) (if (cons? W5223) (let W5224 (hd W5223) (let W5225 (shen.lazyderef (tl W5223) V5020) (if (= W5225 ()) (do (shen.incinfs) (shen.system-S-h W5222 symbol V5019 V5020 V5021 W5024 (freeze (shen.system-S-h (cons value (cons W5222 ())) V5018 V5019 V5020 V5021 W5024 (freeze (shen.system-S-h W5224 V5018 V5019 V5020 V5021 W5024 V5023)))))) false))) false))) false)) false)) false)) false) (if (= W5218 false) (let W5226 (if (shen.unlocked? V5021) (let W5227 (shen.newpv V5020) (shen.gc V5020 (do (shen.incinfs) (shen.l-rules V5019 W5227 false V5020 V5021 W5024 (freeze (shen.cut V5020 V5021 W5024 (freeze (shen.system-S-h V5017 V5018 W5227 V5020 V5021 W5024 V5023)))))))) false) (if (= W5226 false) (let W5228 (if (shen.unlocked? V5021) (do (shen.incinfs) (shen.search-user-datatypes (cons V5017 (cons (intern ":") (cons V5018 ()))) V5019 (value shen.*datatypes*) V5020 V5021 W5024 V5023)) false) (if (= W5228 false) (shen.unlock V5021 W5024) W5228)) W5226)) W5218)) W5210)) W5202)) W5181)) W5168)) W5138)) W5128)) W5107)) W5079)) W5058)) W5051)) W5044)) W5038)) W5032)) W5028)) W5027)) W5026)) W5025)))) +(defun shen.system-S-h (V5032 V5033 V5034 V5035 V5036 V5037 V5038) (let W5039 (+ V5037 1) (let W5040 (if (shen.unlocked? V5036) (do (shen.incinfs) (when (value shen.*spy*) V5035 V5036 W5039 (freeze (shen.show (cons V5032 (cons (intern ":") (cons V5033 ()))) V5034 V5035 V5036 W5039 V5038)))) false) (if (= W5040 false) (let W5041 (if (shen.unlocked? V5036) (do (shen.incinfs) (when (not (cons? (shen.lazyderef V5032 V5035))) V5035 V5036 W5039 (freeze (shen.primitive V5032 V5033 V5035 V5036 W5039 V5038)))) false) (if (= W5041 false) (let W5042 (if (shen.unlocked? V5036) (do (shen.incinfs) (shen.by-hypothesis V5032 V5033 V5034 V5035 V5036 W5039 V5038)) false) (if (= W5042 false) (let W5043 (if (shen.unlocked? V5036) (let W5044 (shen.lazyderef V5032 V5035) (if (cons? W5044) (let W5045 (hd W5044) (let W5046 (shen.lazyderef (tl W5044) V5035) (if (= W5046 ()) (do (shen.incinfs) (shen.lookupsig W5045 (cons --> (cons V5033 ())) V5035 V5036 W5039 V5038)) false))) false)) false) (if (= W5043 false) (let W5047 (if (shen.unlocked? V5036) (let W5048 (shen.lazyderef V5032 V5035) (if (cons? W5048) (let W5049 (shen.lazyderef (hd W5048) V5035) (if (= W5049 fn) (let W5050 (shen.lazyderef (tl W5048) V5035) (if (cons? W5050) (let W5051 (hd W5050) (let W5052 (shen.lazyderef (tl W5050) V5035) (if (= W5052 ()) (do (shen.incinfs) (when (= (arity (shen.deref W5051 V5035)) 0) V5035 V5036 W5039 (freeze (shen.cut V5035 V5036 W5039 (freeze (shen.system-S-h (cons W5051 ()) V5033 V5034 V5035 V5036 W5039 V5038)))))) false))) false)) false)) false)) false) (if (= W5047 false) (let W5053 (if (shen.unlocked? V5036) (let W5054 (shen.lazyderef V5032 V5035) (if (cons? W5054) (let W5055 (shen.lazyderef (hd W5054) V5035) (if (= W5055 fn) (let W5056 (shen.lazyderef (tl W5054) V5035) (if (cons? W5056) (let W5057 (hd W5056) (let W5058 (shen.lazyderef (tl W5056) V5035) (if (= W5058 ()) (do (shen.incinfs) (shen.lookupsig W5057 V5033 V5035 V5036 W5039 V5038)) false))) false)) false)) false)) false) (if (= W5053 false) (let W5059 (if (shen.unlocked? V5036) (let W5060 (shen.lazyderef V5032 V5035) (if (cons? W5060) (let W5061 (hd W5060) (let W5062 (shen.lazyderef (tl W5060) V5035) (if (cons? W5062) (let W5063 (hd W5062) (let W5064 (shen.lazyderef (tl W5062) V5035) (if (= W5064 ()) (let W5065 (shen.newpv V5035) (shen.gc V5035 (do (shen.incinfs) (when (not (cons? (shen.lazyderef W5061 V5035))) V5035 V5036 W5039 (freeze (shen.lookupsig W5061 (cons W5065 (cons --> (cons V5033 ()))) V5035 V5036 W5039 (freeze (shen.system-S-h W5063 W5065 V5034 V5035 V5036 W5039 V5038)))))))) false))) false))) false)) false) (if (= W5059 false) (let W5066 (if (shen.unlocked? V5036) (let W5067 (shen.lazyderef V5032 V5035) (if (cons? W5067) (let W5068 (hd W5067) (let W5069 (shen.lazyderef (tl W5067) V5035) (if (cons? W5069) (let W5070 (hd W5069) (let W5071 (shen.lazyderef (tl W5069) V5035) (if (= W5071 ()) (let W5072 (shen.newpv V5035) (shen.gc V5035 (do (shen.incinfs) (shen.system-S-h W5068 (cons W5072 (cons --> (cons V5033 ()))) V5034 V5035 V5036 W5039 (freeze (shen.system-S-h W5070 W5072 V5034 V5035 V5036 W5039 V5038)))))) false))) false))) false)) false) (if (= W5066 false) (let W5073 (if (shen.unlocked? V5036) (let W5074 (shen.lazyderef V5032 V5035) (if (cons? W5074) (let W5075 (shen.lazyderef (hd W5074) V5035) (if (= W5075 cons) (let W5076 (shen.lazyderef (tl W5074) V5035) (if (cons? W5076) (let W5077 (hd W5076) (let W5078 (shen.lazyderef (tl W5076) V5035) (if (cons? W5078) (let W5079 (hd W5078) (let W5080 (shen.lazyderef (tl W5078) V5035) (if (= W5080 ()) (let W5081 (shen.lazyderef V5033 V5035) (let W5082 (lambda Z5083 (do (shen.incinfs) (shen.system-S-h W5077 Z5083 V5034 V5035 V5036 W5039 (freeze (shen.system-S-h W5079 (cons list (cons Z5083 ())) V5034 V5035 V5036 W5039 V5038))))) (if (cons? W5081) (let W5084 (shen.lazyderef (hd W5081) V5035) (let W5085 (freeze (let W5086 (shen.lazyderef (tl W5081) V5035) (let W5087 (lambda Z5088 (W5082 Z5088)) (if (cons? W5086) (let W5089 (hd W5086) (let W5090 (shen.lazyderef (tl W5086) V5035) (let W5091 (freeze (W5087 W5089)) (if (= W5090 ()) (thaw W5091) (if (shen.pvar? W5090) (shen.bind! W5090 () V5035 W5091) false))))) (if (shen.pvar? W5086) (let W5092 (shen.newpv V5035) (shen.gc V5035 (shen.bind! W5086 (cons W5092 ()) V5035 (freeze (W5087 W5092))))) false))))) (if (= W5084 list) (thaw W5085) (if (shen.pvar? W5084) (shen.bind! W5084 list V5035 W5085) false)))) (if (shen.pvar? W5081) (let W5093 (shen.newpv V5035) (shen.gc V5035 (shen.bind! W5081 (cons list (cons W5093 ())) V5035 (freeze (W5082 W5093))))) false)))) false))) false))) false)) false)) false)) false) (if (= W5073 false) (let W5094 (if (shen.unlocked? V5036) (let W5095 (shen.lazyderef V5032 V5035) (if (cons? W5095) (let W5096 (shen.lazyderef (hd W5095) V5035) (if (= W5096 @p) (let W5097 (shen.lazyderef (tl W5095) V5035) (if (cons? W5097) (let W5098 (hd W5097) (let W5099 (shen.lazyderef (tl W5097) V5035) (if (cons? W5099) (let W5100 (hd W5099) (let W5101 (shen.lazyderef (tl W5099) V5035) (if (= W5101 ()) (let W5102 (shen.lazyderef V5033 V5035) (let W5103 (lambda Z5104 (lambda Z5105 (do (shen.incinfs) (shen.system-S-h W5098 Z5104 V5034 V5035 V5036 W5039 (freeze (shen.system-S-h W5100 Z5105 V5034 V5035 V5036 W5039 V5038)))))) (if (cons? W5102) (let W5106 (hd W5102) (let W5107 (shen.lazyderef (tl W5102) V5035) (let W5108 (lambda Z5109 ((W5103 W5106) Z5109)) (if (cons? W5107) (let W5110 (shen.lazyderef (hd W5107) V5035) (let W5111 (freeze (let W5112 (shen.lazyderef (tl W5107) V5035) (let W5113 (lambda Z5114 (W5108 Z5114)) (if (cons? W5112) (let W5115 (hd W5112) (let W5116 (shen.lazyderef (tl W5112) V5035) (let W5117 (freeze (W5113 W5115)) (if (= W5116 ()) (thaw W5117) (if (shen.pvar? W5116) (shen.bind! W5116 () V5035 W5117) false))))) (if (shen.pvar? W5112) (let W5118 (shen.newpv V5035) (shen.gc V5035 (shen.bind! W5112 (cons W5118 ()) V5035 (freeze (W5113 W5118))))) false))))) (if (= W5110 *) (thaw W5111) (if (shen.pvar? W5110) (shen.bind! W5110 * V5035 W5111) false)))) (if (shen.pvar? W5107) (let W5119 (shen.newpv V5035) (shen.gc V5035 (shen.bind! W5107 (cons * (cons W5119 ())) V5035 (freeze (W5108 W5119))))) false))))) (if (shen.pvar? W5102) (let W5120 (shen.newpv V5035) (shen.gc V5035 (let W5121 (shen.newpv V5035) (shen.gc V5035 (shen.bind! W5102 (cons W5120 (cons * (cons W5121 ()))) V5035 (freeze ((W5103 W5120) W5121))))))) false)))) false))) false))) false)) false)) false)) false) (if (= W5094 false) (let W5122 (if (shen.unlocked? V5036) (let W5123 (shen.lazyderef V5032 V5035) (if (cons? W5123) (let W5124 (shen.lazyderef (hd W5123) V5035) (if (= W5124 @v) (let W5125 (shen.lazyderef (tl W5123) V5035) (if (cons? W5125) (let W5126 (hd W5125) (let W5127 (shen.lazyderef (tl W5125) V5035) (if (cons? W5127) (let W5128 (hd W5127) (let W5129 (shen.lazyderef (tl W5127) V5035) (if (= W5129 ()) (let W5130 (shen.lazyderef V5033 V5035) (let W5131 (lambda Z5132 (do (shen.incinfs) (shen.system-S-h W5126 Z5132 V5034 V5035 V5036 W5039 (freeze (shen.system-S-h W5128 (cons vector (cons Z5132 ())) V5034 V5035 V5036 W5039 V5038))))) (if (cons? W5130) (let W5133 (shen.lazyderef (hd W5130) V5035) (let W5134 (freeze (let W5135 (shen.lazyderef (tl W5130) V5035) (let W5136 (lambda Z5137 (W5131 Z5137)) (if (cons? W5135) (let W5138 (hd W5135) (let W5139 (shen.lazyderef (tl W5135) V5035) (let W5140 (freeze (W5136 W5138)) (if (= W5139 ()) (thaw W5140) (if (shen.pvar? W5139) (shen.bind! W5139 () V5035 W5140) false))))) (if (shen.pvar? W5135) (let W5141 (shen.newpv V5035) (shen.gc V5035 (shen.bind! W5135 (cons W5141 ()) V5035 (freeze (W5136 W5141))))) false))))) (if (= W5133 vector) (thaw W5134) (if (shen.pvar? W5133) (shen.bind! W5133 vector V5035 W5134) false)))) (if (shen.pvar? W5130) (let W5142 (shen.newpv V5035) (shen.gc V5035 (shen.bind! W5130 (cons vector (cons W5142 ())) V5035 (freeze (W5131 W5142))))) false)))) false))) false))) false)) false)) false)) false) (if (= W5122 false) (let W5143 (if (shen.unlocked? V5036) (let W5144 (shen.lazyderef V5032 V5035) (if (cons? W5144) (let W5145 (shen.lazyderef (hd W5144) V5035) (if (= W5145 @s) (let W5146 (shen.lazyderef (tl W5144) V5035) (if (cons? W5146) (let W5147 (hd W5146) (let W5148 (shen.lazyderef (tl W5146) V5035) (if (cons? W5148) (let W5149 (hd W5148) (let W5150 (shen.lazyderef (tl W5148) V5035) (if (= W5150 ()) (let W5151 (shen.lazyderef V5033 V5035) (let W5152 (freeze (do (shen.incinfs) (shen.system-S-h W5147 string V5034 V5035 V5036 W5039 (freeze (shen.system-S-h W5149 string V5034 V5035 V5036 W5039 V5038))))) (if (= W5151 string) (thaw W5152) (if (shen.pvar? W5151) (shen.bind! W5151 string V5035 W5152) false)))) false))) false))) false)) false)) false)) false) (if (= W5143 false) (let W5153 (if (shen.unlocked? V5036) (let W5154 (shen.lazyderef V5032 V5035) (if (cons? W5154) (let W5155 (shen.lazyderef (hd W5154) V5035) (if (= W5155 lambda) (let W5156 (shen.lazyderef (tl W5154) V5035) (if (cons? W5156) (let W5157 (hd W5156) (let W5158 (shen.lazyderef (tl W5156) V5035) (if (cons? W5158) (let W5159 (hd W5158) (let W5160 (shen.lazyderef (tl W5158) V5035) (if (= W5160 ()) (let W5161 (shen.lazyderef V5033 V5035) (let W5162 (lambda Z5163 (lambda Z5164 (let W5165 (shen.newpv V5035) (shen.gc V5035 (let W5166 (shen.newpv V5035) (shen.gc V5035 (do (shen.incinfs) (bind W5166 (shen.freshterm (shen.lazyderef W5157 V5035)) V5035 V5036 W5039 (freeze (bind W5165 (shen.beta (shen.lazyderef W5157 V5035) (shen.deref W5166 V5035) (shen.deref W5159 V5035)) V5035 V5036 W5039 (freeze (shen.system-S-h W5165 Z5164 (cons (cons W5166 (cons (intern ":") (cons Z5163 ()))) V5034) V5035 V5036 W5039 V5038)))))))))))) (if (cons? W5161) (let W5167 (hd W5161) (let W5168 (shen.lazyderef (tl W5161) V5035) (let W5169 (lambda Z5170 ((W5162 W5167) Z5170)) (if (cons? W5168) (let W5171 (shen.lazyderef (hd W5168) V5035) (let W5172 (freeze (let W5173 (shen.lazyderef (tl W5168) V5035) (let W5174 (lambda Z5175 (W5169 Z5175)) (if (cons? W5173) (let W5176 (hd W5173) (let W5177 (shen.lazyderef (tl W5173) V5035) (let W5178 (freeze (W5174 W5176)) (if (= W5177 ()) (thaw W5178) (if (shen.pvar? W5177) (shen.bind! W5177 () V5035 W5178) false))))) (if (shen.pvar? W5173) (let W5179 (shen.newpv V5035) (shen.gc V5035 (shen.bind! W5173 (cons W5179 ()) V5035 (freeze (W5174 W5179))))) false))))) (if (= W5171 -->) (thaw W5172) (if (shen.pvar? W5171) (shen.bind! W5171 --> V5035 W5172) false)))) (if (shen.pvar? W5168) (let W5180 (shen.newpv V5035) (shen.gc V5035 (shen.bind! W5168 (cons --> (cons W5180 ())) V5035 (freeze (W5169 W5180))))) false))))) (if (shen.pvar? W5161) (let W5181 (shen.newpv V5035) (shen.gc V5035 (let W5182 (shen.newpv V5035) (shen.gc V5035 (shen.bind! W5161 (cons W5181 (cons --> (cons W5182 ()))) V5035 (freeze ((W5162 W5181) W5182))))))) false)))) false))) false))) false)) false)) false)) false) (if (= W5153 false) (let W5183 (if (shen.unlocked? V5036) (let W5184 (shen.lazyderef V5032 V5035) (if (cons? W5184) (let W5185 (shen.lazyderef (hd W5184) V5035) (if (= W5185 let) (let W5186 (shen.lazyderef (tl W5184) V5035) (if (cons? W5186) (let W5187 (hd W5186) (let W5188 (shen.lazyderef (tl W5186) V5035) (if (cons? W5188) (let W5189 (hd W5188) (let W5190 (shen.lazyderef (tl W5188) V5035) (if (cons? W5190) (let W5191 (hd W5190) (let W5192 (shen.lazyderef (tl W5190) V5035) (if (= W5192 ()) (let W5193 (shen.newpv V5035) (shen.gc V5035 (let W5194 (shen.newpv V5035) (shen.gc V5035 (let W5195 (shen.newpv V5035) (shen.gc V5035 (do (shen.incinfs) (shen.system-S-h W5189 W5195 V5034 V5035 V5036 W5039 (freeze (bind W5194 (shen.freshterm (shen.lazyderef W5187 V5035)) V5035 V5036 W5039 (freeze (bind W5193 (shen.beta (shen.lazyderef W5187 V5035) (shen.lazyderef W5194 V5035) (shen.lazyderef W5191 V5035)) V5035 V5036 W5039 (freeze (shen.system-S-h W5193 V5033 (cons (cons W5194 (cons (intern ":") (cons W5195 ()))) V5034) V5035 V5036 W5039 V5038)))))))))))))) false))) false))) false))) false)) false)) false)) false) (if (= W5183 false) (let W5196 (if (shen.unlocked? V5036) (let W5197 (shen.lazyderef V5032 V5035) (if (cons? W5197) (let W5198 (shen.lazyderef (hd W5197) V5035) (if (= W5198 open) (let W5199 (shen.lazyderef (tl W5197) V5035) (if (cons? W5199) (let W5200 (hd W5199) (let W5201 (shen.lazyderef (tl W5199) V5035) (if (cons? W5201) (let W5202 (hd W5201) (let W5203 (shen.lazyderef (tl W5201) V5035) (if (= W5203 ()) (let W5204 (shen.lazyderef V5033 V5035) (let W5205 (lambda Z5206 (do (shen.incinfs) (is! W5202 Z5206 V5035 V5036 W5039 (freeze (when (element? (shen.lazyderef Z5206 V5035) (cons in (cons out ()))) V5035 V5036 W5039 (freeze (shen.system-S-h W5200 string V5034 V5035 V5036 W5039 V5038))))))) (if (cons? W5204) (let W5207 (shen.lazyderef (hd W5204) V5035) (let W5208 (freeze (let W5209 (shen.lazyderef (tl W5204) V5035) (let W5210 (lambda Z5211 (W5205 Z5211)) (if (cons? W5209) (let W5212 (hd W5209) (let W5213 (shen.lazyderef (tl W5209) V5035) (let W5214 (freeze (W5210 W5212)) (if (= W5213 ()) (thaw W5214) (if (shen.pvar? W5213) (shen.bind! W5213 () V5035 W5214) false))))) (if (shen.pvar? W5209) (let W5215 (shen.newpv V5035) (shen.gc V5035 (shen.bind! W5209 (cons W5215 ()) V5035 (freeze (W5210 W5215))))) false))))) (if (= W5207 stream) (thaw W5208) (if (shen.pvar? W5207) (shen.bind! W5207 stream V5035 W5208) false)))) (if (shen.pvar? W5204) (let W5216 (shen.newpv V5035) (shen.gc V5035 (shen.bind! W5204 (cons stream (cons W5216 ())) V5035 (freeze (W5205 W5216))))) false)))) false))) false))) false)) false)) false)) false) (if (= W5196 false) (let W5217 (if (shen.unlocked? V5036) (let W5218 (shen.lazyderef V5032 V5035) (if (cons? W5218) (let W5219 (shen.lazyderef (hd W5218) V5035) (if (= W5219 type) (let W5220 (shen.lazyderef (tl W5218) V5035) (if (cons? W5220) (let W5221 (hd W5220) (let W5222 (shen.lazyderef (tl W5220) V5035) (if (cons? W5222) (let W5223 (hd W5222) (let W5224 (shen.lazyderef (tl W5222) V5035) (if (= W5224 ()) (do (shen.incinfs) (shen.cut V5035 V5036 W5039 (freeze (is! (shen.rectify-type (shen.deref W5223 V5035)) V5033 V5035 V5036 W5039 (freeze (shen.system-S-h W5221 V5033 V5034 V5035 V5036 W5039 V5038)))))) false))) false))) false)) false)) false)) false) (if (= W5217 false) (let W5225 (if (shen.unlocked? V5036) (let W5226 (shen.lazyderef V5032 V5035) (if (cons? W5226) (let W5227 (shen.lazyderef (hd W5226) V5035) (if (= W5227 shen.input-h+) (let W5228 (shen.lazyderef (tl W5226) V5035) (if (cons? W5228) (let W5229 (hd W5228) (let W5230 (shen.lazyderef (tl W5228) V5035) (if (cons? W5230) (let W5231 (hd W5230) (let W5232 (shen.lazyderef (tl W5230) V5035) (if (= W5232 ()) (do (shen.incinfs) (is V5033 (shen.rectify-type (shen.rdecons (shen.deref W5229 V5035))) V5035 V5036 W5039 (freeze (shen.system-S-h W5231 (cons stream (cons in ())) V5034 V5035 V5036 W5039 V5038)))) false))) false))) false)) false)) false)) false) (if (= W5225 false) (let W5233 (if (shen.unlocked? V5036) (let W5234 (shen.lazyderef V5032 V5035) (if (cons? W5234) (let W5235 (shen.lazyderef (hd W5234) V5035) (if (= W5235 set) (let W5236 (shen.lazyderef (tl W5234) V5035) (if (cons? W5236) (let W5237 (hd W5236) (let W5238 (shen.lazyderef (tl W5236) V5035) (if (cons? W5238) (let W5239 (hd W5238) (let W5240 (shen.lazyderef (tl W5238) V5035) (if (= W5240 ()) (do (shen.incinfs) (shen.system-S-h W5237 symbol V5034 V5035 V5036 W5039 (freeze (shen.system-S-h (cons value (cons W5237 ())) V5033 V5034 V5035 V5036 W5039 (freeze (shen.system-S-h W5239 V5033 V5034 V5035 V5036 W5039 V5038)))))) false))) false))) false)) false)) false)) false) (if (= W5233 false) (let W5241 (if (shen.unlocked? V5036) (let W5242 (shen.newpv V5035) (shen.gc V5035 (do (shen.incinfs) (shen.l-rules V5034 W5242 false V5035 V5036 W5039 (freeze (shen.cut V5035 V5036 W5039 (freeze (shen.system-S-h V5032 V5033 W5242 V5035 V5036 W5039 V5038)))))))) false) (if (= W5241 false) (let W5243 (if (shen.unlocked? V5036) (do (shen.incinfs) (shen.search-user-datatypes (cons V5032 (cons (intern ":") (cons V5033 ()))) V5034 (value shen.*datatypes*) V5035 V5036 W5039 V5038)) false) (if (= W5243 false) (shen.unlock V5036 W5039) W5243)) W5241)) W5233)) W5225)) W5217)) W5196)) W5183)) W5153)) W5143)) W5122)) W5094)) W5073)) W5066)) W5059)) W5053)) W5047)) W5043)) W5042)) W5041)) W5040)))) -(defun shen.rdecons (V5229) (cond ((and (cons? V5229) (and (= cons (hd V5229)) (and (cons? (tl V5229)) (and (cons? (tl (tl V5229))) (= () (tl (tl (tl V5229)))))))) (cons (shen.rdecons (hd (tl V5229))) (shen.rdecons (hd (tl (tl V5229)))))) ((cons? V5229) (cons (shen.rdecons (hd V5229)) (shen.rdecons (tl V5229)))) (true V5229))) +(defun shen.rdecons (V5244) (cond ((and (cons? V5244) (and (= cons (hd V5244)) (and (cons? (tl V5244)) (and (cons? (tl (tl V5244))) (= () (tl (tl (tl V5244)))))))) (cons (shen.rdecons (hd (tl V5244))) (shen.rdecons (hd (tl (tl V5244)))))) ((cons? V5244) (cons (shen.rdecons (hd V5244)) (shen.rdecons (tl V5244)))) (true V5244))) -(defun shen.primitive (V5230 V5231 V5232 V5233 V5234 V5235) (let W5236 (if (shen.unlocked? V5233) (let W5237 (shen.lazyderef V5231 V5232) (let W5238 (freeze (do (shen.incinfs) (when (number? (shen.lazyderef V5230 V5232)) V5232 V5233 V5234 V5235))) (if (= W5237 number) (thaw W5238) (if (shen.pvar? W5237) (shen.bind! W5237 number V5232 W5238) false)))) false) (if (= W5236 false) (let W5239 (if (shen.unlocked? V5233) (let W5240 (shen.lazyderef V5231 V5232) (let W5241 (freeze (do (shen.incinfs) (when (boolean? (shen.lazyderef V5230 V5232)) V5232 V5233 V5234 V5235))) (if (= W5240 boolean) (thaw W5241) (if (shen.pvar? W5240) (shen.bind! W5240 boolean V5232 W5241) false)))) false) (if (= W5239 false) (let W5242 (if (shen.unlocked? V5233) (let W5243 (shen.lazyderef V5231 V5232) (let W5244 (freeze (do (shen.incinfs) (when (string? (shen.lazyderef V5230 V5232)) V5232 V5233 V5234 V5235))) (if (= W5243 string) (thaw W5244) (if (shen.pvar? W5243) (shen.bind! W5243 string V5232 W5244) false)))) false) (if (= W5242 false) (let W5245 (if (shen.unlocked? V5233) (let W5246 (shen.lazyderef V5231 V5232) (let W5247 (freeze (do (shen.incinfs) (when (symbol? (shen.lazyderef V5230 V5232)) V5232 V5233 V5234 V5235))) (if (= W5246 symbol) (thaw W5247) (if (shen.pvar? W5246) (shen.bind! W5246 symbol V5232 W5247) false)))) false) (if (= W5245 false) (if (shen.unlocked? V5233) (let W5248 (shen.lazyderef V5230 V5232) (if (= W5248 ()) (let W5249 (shen.lazyderef V5231 V5232) (let W5250 (lambda Z5251 (do (shen.incinfs) (thaw V5235))) (if (cons? W5249) (let W5252 (shen.lazyderef (hd W5249) V5232) (let W5253 (freeze (let W5254 (shen.lazyderef (tl W5249) V5232) (let W5255 (lambda Z5256 (W5250 Z5256)) (if (cons? W5254) (let W5257 (hd W5254) (let W5258 (shen.lazyderef (tl W5254) V5232) (let W5259 (freeze (W5255 W5257)) (if (= W5258 ()) (thaw W5259) (if (shen.pvar? W5258) (shen.bind! W5258 () V5232 W5259) false))))) (if (shen.pvar? W5254) (let W5260 (shen.newpv V5232) (shen.gc V5232 (shen.bind! W5254 (cons W5260 ()) V5232 (freeze (W5255 W5260))))) false))))) (if (= W5252 list) (thaw W5253) (if (shen.pvar? W5252) (shen.bind! W5252 list V5232 W5253) false)))) (if (shen.pvar? W5249) (let W5261 (shen.newpv V5232) (shen.gc V5232 (shen.bind! W5249 (cons list (cons W5261 ())) V5232 (freeze (W5250 W5261))))) false)))) false)) false) W5245)) W5242)) W5239)) W5236))) +(defun shen.primitive (V5245 V5246 V5247 V5248 V5249 V5250) (let W5251 (if (shen.unlocked? V5248) (let W5252 (shen.lazyderef V5246 V5247) (let W5253 (freeze (do (shen.incinfs) (when (number? (shen.lazyderef V5245 V5247)) V5247 V5248 V5249 V5250))) (if (= W5252 number) (thaw W5253) (if (shen.pvar? W5252) (shen.bind! W5252 number V5247 W5253) false)))) false) (if (= W5251 false) (let W5254 (if (shen.unlocked? V5248) (let W5255 (shen.lazyderef V5246 V5247) (let W5256 (freeze (do (shen.incinfs) (when (boolean? (shen.lazyderef V5245 V5247)) V5247 V5248 V5249 V5250))) (if (= W5255 boolean) (thaw W5256) (if (shen.pvar? W5255) (shen.bind! W5255 boolean V5247 W5256) false)))) false) (if (= W5254 false) (let W5257 (if (shen.unlocked? V5248) (let W5258 (shen.lazyderef V5246 V5247) (let W5259 (freeze (do (shen.incinfs) (when (string? (shen.lazyderef V5245 V5247)) V5247 V5248 V5249 V5250))) (if (= W5258 string) (thaw W5259) (if (shen.pvar? W5258) (shen.bind! W5258 string V5247 W5259) false)))) false) (if (= W5257 false) (let W5260 (if (shen.unlocked? V5248) (let W5261 (shen.lazyderef V5246 V5247) (let W5262 (freeze (do (shen.incinfs) (when (symbol? (shen.lazyderef V5245 V5247)) V5247 V5248 V5249 V5250))) (if (= W5261 symbol) (thaw W5262) (if (shen.pvar? W5261) (shen.bind! W5261 symbol V5247 W5262) false)))) false) (if (= W5260 false) (if (shen.unlocked? V5248) (let W5263 (shen.lazyderef V5245 V5247) (if (= W5263 ()) (let W5264 (shen.lazyderef V5246 V5247) (let W5265 (lambda Z5266 (do (shen.incinfs) (thaw V5250))) (if (cons? W5264) (let W5267 (shen.lazyderef (hd W5264) V5247) (let W5268 (freeze (let W5269 (shen.lazyderef (tl W5264) V5247) (let W5270 (lambda Z5271 (W5265 Z5271)) (if (cons? W5269) (let W5272 (hd W5269) (let W5273 (shen.lazyderef (tl W5269) V5247) (let W5274 (freeze (W5270 W5272)) (if (= W5273 ()) (thaw W5274) (if (shen.pvar? W5273) (shen.bind! W5273 () V5247 W5274) false))))) (if (shen.pvar? W5269) (let W5275 (shen.newpv V5247) (shen.gc V5247 (shen.bind! W5269 (cons W5275 ()) V5247 (freeze (W5270 W5275))))) false))))) (if (= W5267 list) (thaw W5268) (if (shen.pvar? W5267) (shen.bind! W5267 list V5247 W5268) false)))) (if (shen.pvar? W5264) (let W5276 (shen.newpv V5247) (shen.gc V5247 (shen.bind! W5264 (cons list (cons W5276 ())) V5247 (freeze (W5265 W5276))))) false)))) false)) false) W5260)) W5257)) W5254)) W5251))) -(defun shen.by-hypothesis (V5262 V5263 V5264 V5265 V5266 V5267 V5268) (if (= (shen.lazyderef V5264 V5265) ()) false (shen.by-hypothesis-h (shen.deref V5262 V5265) V5263 V5264 V5265 V5266 V5267 V5268))) +(defun shen.by-hypothesis (V5277 V5278 V5279 V5280 V5281 V5282 V5283) (if (= (shen.lazyderef V5279 V5280) ()) false (shen.by-hypothesis-h (shen.deref V5277 V5280) V5278 V5279 V5280 V5281 V5282 V5283))) -(defun shen.by-hypothesis-h (V5269 V5270 V5271 V5272 V5273 V5274 V5275) (let W5276 (if (shen.unlocked? V5273) (let W5277 (shen.lazyderef V5271 V5272) (if (cons? W5277) (let W5278 (shen.lazyderef (hd W5277) V5272) (if (cons? W5278) (let W5279 (hd W5278) (let W5280 (shen.lazyderef (tl W5278) V5272) (if (cons? W5280) (let W5281 (hd W5280) (let W5282 (shen.lazyderef (tl W5280) V5272) (if (cons? W5282) (let W5283 (hd W5282) (let W5284 (shen.lazyderef (tl W5282) V5272) (if (= W5284 ()) (do (shen.incinfs) (when (= (shen.deref W5281 V5272) (intern ":")) V5272 V5273 V5274 (freeze (when (= V5269 (shen.deref W5279 V5272)) V5272 V5273 V5274 (freeze (is! V5270 W5283 V5272 V5273 V5274 V5275)))))) false))) false))) false))) false)) false)) false) (if (= W5276 false) (if (shen.unlocked? V5273) (let W5285 (shen.lazyderef V5271 V5272) (if (cons? W5285) (let W5286 (tl W5285) (do (shen.incinfs) (shen.by-hypothesis-h V5269 V5270 W5286 V5272 V5273 V5274 V5275))) false)) false) W5276))) +(defun shen.by-hypothesis-h (V5284 V5285 V5286 V5287 V5288 V5289 V5290) (let W5291 (if (shen.unlocked? V5288) (let W5292 (shen.lazyderef V5286 V5287) (if (cons? W5292) (let W5293 (shen.lazyderef (hd W5292) V5287) (if (cons? W5293) (let W5294 (hd W5293) (let W5295 (shen.lazyderef (tl W5293) V5287) (if (cons? W5295) (let W5296 (hd W5295) (let W5297 (shen.lazyderef (tl W5295) V5287) (if (cons? W5297) (let W5298 (hd W5297) (let W5299 (shen.lazyderef (tl W5297) V5287) (if (= W5299 ()) (do (shen.incinfs) (when (= (shen.deref W5296 V5287) (intern ":")) V5287 V5288 V5289 (freeze (when (= V5284 (shen.deref W5294 V5287)) V5287 V5288 V5289 (freeze (is! V5285 W5298 V5287 V5288 V5289 V5290)))))) false))) false))) false))) false)) false)) false) (if (= W5291 false) (if (shen.unlocked? V5288) (let W5300 (shen.lazyderef V5286 V5287) (if (cons? W5300) (let W5301 (tl W5300) (do (shen.incinfs) (shen.by-hypothesis-h V5284 V5285 W5301 V5287 V5288 V5289 V5290))) false)) false) W5291))) -(defun shen.lookupsig (V5287 V5288 V5289 V5290 V5291 V5292) (if (shen.unlocked? V5290) (do (shen.incinfs) (shen.sigf (assoc V5287 (value shen.*sigf*)) V5288 V5289 V5290 V5291 V5292)) false)) +(defun shen.lookupsig (V5302 V5303 V5304 V5305 V5306 V5307) (if (shen.unlocked? V5305) (do (shen.incinfs) (shen.sigf (assoc V5302 (value shen.*sigf*)) V5303 V5304 V5305 V5306 V5307)) false)) -(defun shen.sigf (V5307 V5308 V5309 V5310 V5311 V5312) (cond ((cons? V5307) ((((((tl V5307) V5308) V5309) V5310) V5311) V5312)) (true false))) +(defun shen.sigf (V5322 V5323 V5324 V5325 V5326 V5327) (cond ((cons? V5322) ((((((tl V5322) V5323) V5324) V5325) V5326) V5327)) (true false))) -(defun shen.freshterm (V5313) (let W5314 (absvector 3) (let W5315 (address-> W5314 0 shen.print-freshterm) (let W5316 (address-> W5315 1 V5313) (let W5317 (address-> W5316 2 (set shen.*gensym* (+ 1 (value shen.*gensym*)))) W5317))))) +(defun shen.freshterm (V5328) (let W5329 (absvector 3) (let W5330 (address-> W5329 0 shen.print-freshterm) (let W5331 (address-> W5330 1 V5328) (let W5332 (address-> W5331 2 (set shen.*gensym* (+ 1 (value shen.*gensym*)))) W5332))))) -(defun shen.print-freshterm (V5318) (cn "&&" (shen.app (<-address V5318 1) "" shen.a))) +(defun shen.print-freshterm (V5333) (cn "&&" (shen.app (<-address V5333 1) "" shen.a))) -(defun shen.search-user-datatypes (V5319 V5320 V5321 V5322 V5323 V5324 V5325) (if (= (shen.lazyderef V5321 V5322) ()) false (shen.search-user-datatypes-h (shen.deref V5319 V5322) (shen.deref V5320 V5322) V5321 V5322 V5323 V5324 V5325))) +(defun shen.search-user-datatypes (V5334 V5335 V5336 V5337 V5338 V5339 V5340) (if (= (shen.lazyderef V5336 V5337) ()) false (shen.search-user-datatypes-h (shen.deref V5334 V5337) (shen.deref V5335 V5337) V5336 V5337 V5338 V5339 V5340))) -(defun shen.search-user-datatypes-h (V5326 V5327 V5328 V5329 V5330 V5331 V5332) (let W5333 (if (shen.unlocked? V5330) (let W5334 (shen.lazyderef V5328 V5329) (if (cons? W5334) (let W5335 (shen.lazyderef (hd W5334) V5329) (if (cons? W5335) (let W5336 (tl W5335) (do (shen.incinfs) (call (((shen.deref W5336 V5329) V5326) V5327) V5329 V5330 V5331 V5332))) false)) false)) false) (if (= W5333 false) (if (shen.unlocked? V5330) (let W5337 (shen.lazyderef V5328 V5329) (if (cons? W5337) (let W5338 (tl W5337) (do (shen.incinfs) (shen.search-user-datatypes-h V5326 V5327 W5338 V5329 V5330 V5331 V5332))) false)) false) W5333))) +(defun shen.search-user-datatypes-h (V5341 V5342 V5343 V5344 V5345 V5346 V5347) (let W5348 (if (shen.unlocked? V5345) (let W5349 (shen.lazyderef V5343 V5344) (if (cons? W5349) (let W5350 (shen.lazyderef (hd W5349) V5344) (if (cons? W5350) (let W5351 (tl W5350) (do (shen.incinfs) (call (((shen.deref W5351 V5344) V5341) V5342) V5344 V5345 V5346 V5347))) false)) false)) false) (if (= W5348 false) (if (shen.unlocked? V5345) (let W5352 (shen.lazyderef V5343 V5344) (if (cons? W5352) (let W5353 (tl W5352) (do (shen.incinfs) (shen.search-user-datatypes-h V5341 V5342 W5353 V5344 V5345 V5346 V5347))) false)) false) W5348))) -(defun shen.l-rules (V5339 V5340 V5341 V5342 V5343 V5344 V5345) (let W5346 (+ V5344 1) (let W5347 (if (shen.unlocked? V5343) (let W5348 (shen.lazyderef V5339 V5342) (if (= W5348 ()) (let W5349 (shen.lazyderef V5341 V5342) (if (= W5349 true) (do (shen.incinfs) (shen.cut V5342 V5343 W5346 (freeze (bind V5340 () V5342 V5343 W5346 V5345)))) false)) false)) false) (if (= W5347 false) (let W5350 (if (shen.unlocked? V5343) (let W5351 (shen.lazyderef V5339 V5342) (if (cons? W5351) (let W5352 (shen.lazyderef (hd W5351) V5342) (if (cons? W5352) (let W5353 (shen.lazyderef (hd W5352) V5342) (if (cons? W5353) (let W5354 (shen.lazyderef (hd W5353) V5342) (if (= W5354 cons) (let W5355 (shen.lazyderef (tl W5353) V5342) (if (cons? W5355) (let W5356 (hd W5355) (let W5357 (shen.lazyderef (tl W5355) V5342) (if (cons? W5357) (let W5358 (hd W5357) (let W5359 (shen.lazyderef (tl W5357) V5342) (if (= W5359 ()) (let W5360 (shen.lazyderef (tl W5352) V5342) (if (cons? W5360) (let W5361 (hd W5360) (let W5362 (shen.lazyderef (tl W5360) V5342) (if (cons? W5362) (let W5363 (shen.lazyderef (hd W5362) V5342) (if (cons? W5363) (let W5364 (shen.lazyderef (hd W5363) V5342) (if (= W5364 list) (let W5365 (shen.lazyderef (tl W5363) V5342) (if (cons? W5365) (let W5366 (hd W5365) (let W5367 (shen.lazyderef (tl W5365) V5342) (if (= W5367 ()) (let W5368 (shen.lazyderef (tl W5362) V5342) (if (= W5368 ()) (let W5369 (tl W5351) (do (shen.incinfs) (when (= (shen.deref W5361 V5342) (intern ":")) V5342 V5343 W5346 (freeze (shen.cut V5342 V5343 W5346 (freeze (shen.l-rules (cons (cons W5356 (cons W5361 (cons W5366 ()))) (cons (cons W5358 (cons W5361 (cons (cons list (cons W5366 ())) ()))) W5369)) V5340 true V5342 V5343 W5346 V5345))))))) false)) false))) false)) false)) false)) false))) false)) false))) false))) false)) false)) false)) false)) false)) false) (if (= W5350 false) (let W5370 (if (shen.unlocked? V5343) (let W5371 (shen.lazyderef V5339 V5342) (if (cons? W5371) (let W5372 (shen.lazyderef (hd W5371) V5342) (if (cons? W5372) (let W5373 (shen.lazyderef (hd W5372) V5342) (if (cons? W5373) (let W5374 (shen.lazyderef (hd W5373) V5342) (if (= W5374 @p) (let W5375 (shen.lazyderef (tl W5373) V5342) (if (cons? W5375) (let W5376 (hd W5375) (let W5377 (shen.lazyderef (tl W5375) V5342) (if (cons? W5377) (let W5378 (hd W5377) (let W5379 (shen.lazyderef (tl W5377) V5342) (if (= W5379 ()) (let W5380 (shen.lazyderef (tl W5372) V5342) (if (cons? W5380) (let W5381 (hd W5380) (let W5382 (shen.lazyderef (tl W5380) V5342) (if (cons? W5382) (let W5383 (shen.lazyderef (hd W5382) V5342) (if (cons? W5383) (let W5384 (hd W5383) (let W5385 (shen.lazyderef (tl W5383) V5342) (if (cons? W5385) (let W5386 (shen.lazyderef (hd W5385) V5342) (if (= W5386 *) (let W5387 (shen.lazyderef (tl W5385) V5342) (if (cons? W5387) (let W5388 (hd W5387) (let W5389 (shen.lazyderef (tl W5387) V5342) (if (= W5389 ()) (let W5390 (shen.lazyderef (tl W5382) V5342) (if (= W5390 ()) (let W5391 (tl W5371) (do (shen.incinfs) (when (= (shen.deref W5381 V5342) (intern ":")) V5342 V5343 W5346 (freeze (shen.cut V5342 V5343 W5346 (freeze (shen.l-rules (cons (cons W5376 (cons W5381 (cons W5384 ()))) (cons (cons W5378 (cons W5381 (cons W5388 ()))) W5391)) V5340 true V5342 V5343 W5346 V5345))))))) false)) false))) false)) false)) false))) false)) false))) false)) false))) false))) false)) false)) false)) false)) false)) false) (if (= W5370 false) (let W5392 (if (shen.unlocked? V5343) (let W5393 (shen.lazyderef V5339 V5342) (if (cons? W5393) (let W5394 (shen.lazyderef (hd W5393) V5342) (if (cons? W5394) (let W5395 (shen.lazyderef (hd W5394) V5342) (if (cons? W5395) (let W5396 (shen.lazyderef (hd W5395) V5342) (if (= W5396 @s) (let W5397 (shen.lazyderef (tl W5395) V5342) (if (cons? W5397) (let W5398 (hd W5397) (let W5399 (shen.lazyderef (tl W5397) V5342) (if (cons? W5399) (let W5400 (hd W5399) (let W5401 (shen.lazyderef (tl W5399) V5342) (if (= W5401 ()) (let W5402 (shen.lazyderef (tl W5394) V5342) (if (cons? W5402) (let W5403 (hd W5402) (let W5404 (shen.lazyderef (tl W5402) V5342) (if (cons? W5404) (let W5405 (shen.lazyderef (hd W5404) V5342) (if (= W5405 string) (let W5406 (shen.lazyderef (tl W5404) V5342) (if (= W5406 ()) (let W5407 (tl W5393) (do (shen.incinfs) (when (= (shen.deref W5403 V5342) (intern ":")) V5342 V5343 W5346 (freeze (shen.cut V5342 V5343 W5346 (freeze (shen.l-rules (cons (cons W5398 (cons W5403 (cons string ()))) (cons (cons W5400 (cons W5403 (cons string ()))) W5407)) V5340 true V5342 V5343 W5346 V5345))))))) false)) false)) false))) false)) false))) false))) false)) false)) false)) false)) false)) false) (if (= W5392 false) (let W5408 (if (shen.unlocked? V5343) (let W5409 (shen.lazyderef V5339 V5342) (if (cons? W5409) (let W5410 (shen.lazyderef (hd W5409) V5342) (if (cons? W5410) (let W5411 (shen.lazyderef (hd W5410) V5342) (if (cons? W5411) (let W5412 (shen.lazyderef (hd W5411) V5342) (if (= W5412 @v) (let W5413 (shen.lazyderef (tl W5411) V5342) (if (cons? W5413) (let W5414 (hd W5413) (let W5415 (shen.lazyderef (tl W5413) V5342) (if (cons? W5415) (let W5416 (hd W5415) (let W5417 (shen.lazyderef (tl W5415) V5342) (if (= W5417 ()) (let W5418 (shen.lazyderef (tl W5410) V5342) (if (cons? W5418) (let W5419 (hd W5418) (let W5420 (shen.lazyderef (tl W5418) V5342) (if (cons? W5420) (let W5421 (shen.lazyderef (hd W5420) V5342) (if (cons? W5421) (let W5422 (shen.lazyderef (hd W5421) V5342) (if (= W5422 vector) (let W5423 (shen.lazyderef (tl W5421) V5342) (if (cons? W5423) (let W5424 (hd W5423) (let W5425 (shen.lazyderef (tl W5423) V5342) (if (= W5425 ()) (let W5426 (shen.lazyderef (tl W5420) V5342) (if (= W5426 ()) (let W5427 (tl W5409) (do (shen.incinfs) (when (= (shen.deref W5419 V5342) (intern ":")) V5342 V5343 W5346 (freeze (shen.cut V5342 V5343 W5346 (freeze (shen.l-rules (cons (cons W5414 (cons W5419 (cons W5424 ()))) (cons (cons W5416 (cons W5419 (cons (cons vector (cons W5424 ())) ()))) W5427)) V5340 true V5342 V5343 W5346 V5345))))))) false)) false))) false)) false)) false)) false))) false)) false))) false))) false)) false)) false)) false)) false)) false) (if (= W5408 false) (let W5428 (if (shen.unlocked? V5343) (let W5429 (shen.lazyderef V5339 V5342) (if (cons? W5429) (let W5430 (hd W5429) (let W5431 (tl W5429) (let W5432 (shen.lazyderef V5340 V5342) (let W5433 (lambda Z5434 (lambda Z5435 (do (shen.incinfs) (bind Z5434 W5430 V5342 V5343 W5346 (freeze (shen.l-rules W5431 Z5435 V5341 V5342 V5343 W5346 V5345)))))) (if (cons? W5432) (let W5436 (hd W5432) (let W5437 (tl W5432) ((W5433 W5436) W5437))) (if (shen.pvar? W5432) (let W5438 (shen.newpv V5342) (shen.gc V5342 (let W5439 (shen.newpv V5342) (shen.gc V5342 (shen.bind! W5432 (cons W5438 W5439) V5342 (freeze ((W5433 W5438) W5439))))))) false)))))) false)) false) (if (= W5428 false) (shen.unlock V5343 W5346) W5428)) W5408)) W5392)) W5370)) W5350)) W5347)))) +(defun shen.l-rules (V5354 V5355 V5356 V5357 V5358 V5359 V5360) (let W5361 (+ V5359 1) (let W5362 (if (shen.unlocked? V5358) (let W5363 (shen.lazyderef V5354 V5357) (if (= W5363 ()) (let W5364 (shen.lazyderef V5356 V5357) (if (= W5364 true) (do (shen.incinfs) (shen.cut V5357 V5358 W5361 (freeze (bind V5355 () V5357 V5358 W5361 V5360)))) false)) false)) false) (if (= W5362 false) (let W5365 (if (shen.unlocked? V5358) (let W5366 (shen.lazyderef V5354 V5357) (if (cons? W5366) (let W5367 (shen.lazyderef (hd W5366) V5357) (if (cons? W5367) (let W5368 (shen.lazyderef (hd W5367) V5357) (if (cons? W5368) (let W5369 (shen.lazyderef (hd W5368) V5357) (if (= W5369 cons) (let W5370 (shen.lazyderef (tl W5368) V5357) (if (cons? W5370) (let W5371 (hd W5370) (let W5372 (shen.lazyderef (tl W5370) V5357) (if (cons? W5372) (let W5373 (hd W5372) (let W5374 (shen.lazyderef (tl W5372) V5357) (if (= W5374 ()) (let W5375 (shen.lazyderef (tl W5367) V5357) (if (cons? W5375) (let W5376 (hd W5375) (let W5377 (shen.lazyderef (tl W5375) V5357) (if (cons? W5377) (let W5378 (shen.lazyderef (hd W5377) V5357) (if (cons? W5378) (let W5379 (shen.lazyderef (hd W5378) V5357) (if (= W5379 list) (let W5380 (shen.lazyderef (tl W5378) V5357) (if (cons? W5380) (let W5381 (hd W5380) (let W5382 (shen.lazyderef (tl W5380) V5357) (if (= W5382 ()) (let W5383 (shen.lazyderef (tl W5377) V5357) (if (= W5383 ()) (let W5384 (tl W5366) (do (shen.incinfs) (when (= (shen.deref W5376 V5357) (intern ":")) V5357 V5358 W5361 (freeze (shen.cut V5357 V5358 W5361 (freeze (shen.l-rules (cons (cons W5371 (cons W5376 (cons W5381 ()))) (cons (cons W5373 (cons W5376 (cons (cons list (cons W5381 ())) ()))) W5384)) V5355 true V5357 V5358 W5361 V5360))))))) false)) false))) false)) false)) false)) false))) false)) false))) false))) false)) false)) false)) false)) false)) false) (if (= W5365 false) (let W5385 (if (shen.unlocked? V5358) (let W5386 (shen.lazyderef V5354 V5357) (if (cons? W5386) (let W5387 (shen.lazyderef (hd W5386) V5357) (if (cons? W5387) (let W5388 (shen.lazyderef (hd W5387) V5357) (if (cons? W5388) (let W5389 (shen.lazyderef (hd W5388) V5357) (if (= W5389 @p) (let W5390 (shen.lazyderef (tl W5388) V5357) (if (cons? W5390) (let W5391 (hd W5390) (let W5392 (shen.lazyderef (tl W5390) V5357) (if (cons? W5392) (let W5393 (hd W5392) (let W5394 (shen.lazyderef (tl W5392) V5357) (if (= W5394 ()) (let W5395 (shen.lazyderef (tl W5387) V5357) (if (cons? W5395) (let W5396 (hd W5395) (let W5397 (shen.lazyderef (tl W5395) V5357) (if (cons? W5397) (let W5398 (shen.lazyderef (hd W5397) V5357) (if (cons? W5398) (let W5399 (hd W5398) (let W5400 (shen.lazyderef (tl W5398) V5357) (if (cons? W5400) (let W5401 (shen.lazyderef (hd W5400) V5357) (if (= W5401 *) (let W5402 (shen.lazyderef (tl W5400) V5357) (if (cons? W5402) (let W5403 (hd W5402) (let W5404 (shen.lazyderef (tl W5402) V5357) (if (= W5404 ()) (let W5405 (shen.lazyderef (tl W5397) V5357) (if (= W5405 ()) (let W5406 (tl W5386) (do (shen.incinfs) (when (= (shen.deref W5396 V5357) (intern ":")) V5357 V5358 W5361 (freeze (shen.cut V5357 V5358 W5361 (freeze (shen.l-rules (cons (cons W5391 (cons W5396 (cons W5399 ()))) (cons (cons W5393 (cons W5396 (cons W5403 ()))) W5406)) V5355 true V5357 V5358 W5361 V5360))))))) false)) false))) false)) false)) false))) false)) false))) false)) false))) false))) false)) false)) false)) false)) false)) false) (if (= W5385 false) (let W5407 (if (shen.unlocked? V5358) (let W5408 (shen.lazyderef V5354 V5357) (if (cons? W5408) (let W5409 (shen.lazyderef (hd W5408) V5357) (if (cons? W5409) (let W5410 (shen.lazyderef (hd W5409) V5357) (if (cons? W5410) (let W5411 (shen.lazyderef (hd W5410) V5357) (if (= W5411 @s) (let W5412 (shen.lazyderef (tl W5410) V5357) (if (cons? W5412) (let W5413 (hd W5412) (let W5414 (shen.lazyderef (tl W5412) V5357) (if (cons? W5414) (let W5415 (hd W5414) (let W5416 (shen.lazyderef (tl W5414) V5357) (if (= W5416 ()) (let W5417 (shen.lazyderef (tl W5409) V5357) (if (cons? W5417) (let W5418 (hd W5417) (let W5419 (shen.lazyderef (tl W5417) V5357) (if (cons? W5419) (let W5420 (shen.lazyderef (hd W5419) V5357) (if (= W5420 string) (let W5421 (shen.lazyderef (tl W5419) V5357) (if (= W5421 ()) (let W5422 (tl W5408) (do (shen.incinfs) (when (= (shen.deref W5418 V5357) (intern ":")) V5357 V5358 W5361 (freeze (shen.cut V5357 V5358 W5361 (freeze (shen.l-rules (cons (cons W5413 (cons W5418 (cons string ()))) (cons (cons W5415 (cons W5418 (cons string ()))) W5422)) V5355 true V5357 V5358 W5361 V5360))))))) false)) false)) false))) false)) false))) false))) false)) false)) false)) false)) false)) false) (if (= W5407 false) (let W5423 (if (shen.unlocked? V5358) (let W5424 (shen.lazyderef V5354 V5357) (if (cons? W5424) (let W5425 (shen.lazyderef (hd W5424) V5357) (if (cons? W5425) (let W5426 (shen.lazyderef (hd W5425) V5357) (if (cons? W5426) (let W5427 (shen.lazyderef (hd W5426) V5357) (if (= W5427 @v) (let W5428 (shen.lazyderef (tl W5426) V5357) (if (cons? W5428) (let W5429 (hd W5428) (let W5430 (shen.lazyderef (tl W5428) V5357) (if (cons? W5430) (let W5431 (hd W5430) (let W5432 (shen.lazyderef (tl W5430) V5357) (if (= W5432 ()) (let W5433 (shen.lazyderef (tl W5425) V5357) (if (cons? W5433) (let W5434 (hd W5433) (let W5435 (shen.lazyderef (tl W5433) V5357) (if (cons? W5435) (let W5436 (shen.lazyderef (hd W5435) V5357) (if (cons? W5436) (let W5437 (shen.lazyderef (hd W5436) V5357) (if (= W5437 vector) (let W5438 (shen.lazyderef (tl W5436) V5357) (if (cons? W5438) (let W5439 (hd W5438) (let W5440 (shen.lazyderef (tl W5438) V5357) (if (= W5440 ()) (let W5441 (shen.lazyderef (tl W5435) V5357) (if (= W5441 ()) (let W5442 (tl W5424) (do (shen.incinfs) (when (= (shen.deref W5434 V5357) (intern ":")) V5357 V5358 W5361 (freeze (shen.cut V5357 V5358 W5361 (freeze (shen.l-rules (cons (cons W5429 (cons W5434 (cons W5439 ()))) (cons (cons W5431 (cons W5434 (cons (cons vector (cons W5439 ())) ()))) W5442)) V5355 true V5357 V5358 W5361 V5360))))))) false)) false))) false)) false)) false)) false))) false)) false))) false))) false)) false)) false)) false)) false)) false) (if (= W5423 false) (let W5443 (if (shen.unlocked? V5358) (let W5444 (shen.lazyderef V5354 V5357) (if (cons? W5444) (let W5445 (hd W5444) (let W5446 (tl W5444) (let W5447 (shen.lazyderef V5355 V5357) (let W5448 (lambda Z5449 (lambda Z5450 (do (shen.incinfs) (bind Z5449 W5445 V5357 V5358 W5361 (freeze (shen.l-rules W5446 Z5450 V5356 V5357 V5358 W5361 V5360)))))) (if (cons? W5447) (let W5451 (hd W5447) (let W5452 (tl W5447) ((W5448 W5451) W5452))) (if (shen.pvar? W5447) (let W5453 (shen.newpv V5357) (shen.gc V5357 (let W5454 (shen.newpv V5357) (shen.gc V5357 (shen.bind! W5447 (cons W5453 W5454) V5357 (freeze ((W5448 W5453) W5454))))))) false)))))) false)) false) (if (= W5443 false) (shen.unlock V5358 W5361) W5443)) W5423)) W5407)) W5385)) W5365)) W5362)))) -(defun shen.t* (V5440 V5441 V5442 V5443 V5444 V5445) (let W5446 (+ V5444 1) (let W5447 (if (shen.unlocked? V5443) (let W5448 (shen.lazyderef V5440 V5442) (if (cons? W5448) (let W5449 (shen.lazyderef (hd W5448) V5442) (if (= W5449 define) (let W5450 (shen.lazyderef (tl W5448) V5442) (if (cons? W5450) (let W5451 (hd W5450) (let W5452 (tl W5450) (let W5453 (shen.newpv V5442) (shen.gc V5442 (let W5454 (shen.newpv V5442) (shen.gc V5442 (let W5455 (shen.newpv V5442) (shen.gc V5442 (let W5456 (shen.newpv V5442) (shen.gc V5442 (do (shen.incinfs) (shen.cut V5442 V5443 W5446 (freeze (bind W5453 (shen.sigxrules (cons W5451 W5452)) V5442 V5443 W5446 (freeze (bind W5456 (fst (shen.lazyderef W5453 V5442)) V5442 V5443 W5446 (freeze (bind W5454 (snd (shen.lazyderef W5453 V5442)) V5442 V5443 W5446 (freeze (bind W5455 (shen.freshen-sig (shen.deref W5456 V5442)) V5442 V5443 W5446 (freeze (shen.t*-rules W5451 W5454 W5455 1 V5442 V5443 W5446 (freeze (is W5456 V5441 V5442 V5443 W5446 V5445)))))))))))))))))))))))) false)) false)) false)) false) (if (= W5447 false) (shen.unlock V5443 W5446) W5447)))) +(defun shen.t* (V5455 V5456 V5457 V5458 V5459 V5460) (let W5461 (+ V5459 1) (let W5462 (if (shen.unlocked? V5458) (let W5463 (shen.lazyderef V5455 V5457) (if (cons? W5463) (let W5464 (shen.lazyderef (hd W5463) V5457) (if (= W5464 define) (let W5465 (shen.lazyderef (tl W5463) V5457) (if (cons? W5465) (let W5466 (hd W5465) (let W5467 (tl W5465) (let W5468 (shen.newpv V5457) (shen.gc V5457 (let W5469 (shen.newpv V5457) (shen.gc V5457 (let W5470 (shen.newpv V5457) (shen.gc V5457 (let W5471 (shen.newpv V5457) (shen.gc V5457 (do (shen.incinfs) (shen.cut V5457 V5458 W5461 (freeze (bind W5468 (shen.sigxrules (cons W5466 W5467)) V5457 V5458 W5461 (freeze (bind W5471 (fst (shen.lazyderef W5468 V5457)) V5457 V5458 W5461 (freeze (bind W5469 (snd (shen.lazyderef W5468 V5457)) V5457 V5458 W5461 (freeze (bind W5470 (shen.freshen-sig (shen.deref W5471 V5457)) V5457 V5458 W5461 (freeze (shen.t*-rules W5466 W5469 W5470 1 V5457 V5458 W5461 (freeze (is W5471 V5456 V5457 V5458 W5461 V5460)))))))))))))))))))))))) false)) false)) false)) false) (if (= W5462 false) (shen.unlock V5458 W5461) W5462)))) -(defun shen.sigxrules (V5457) (let W5458 (compile (lambda Z5459 (shen. Z5459)) V5457) (@p (fst W5458) (map (lambda Z5460 (shen.unmark-rule-custom-patterns Z5460)) (snd W5458))))) +(defun shen.sigxrules (V5472) (let W5473 (compile (lambda Z5474 (shen. Z5474)) V5472) (@p (fst W5473) (map (lambda Z5475 (shen.unmark-rule-custom-patterns Z5475)) (snd W5473))))) -(defun shen.unmark-rule-custom-patterns (V5461) (cond ((tuple? V5461) (@p (map (lambda Z5462 (shen.unmark-custom-pattern Z5462)) (fst V5461)) (snd V5461))) (true (shen.f-error shen.unmark-rule-custom-patterns)))) +(defun shen.unmark-rule-custom-patterns (V5476) (cond ((tuple? V5476) (@p (map (lambda Z5477 (shen.unmark-custom-pattern Z5477)) (fst V5476)) (snd V5476))) (true (shen.f-error shen.unmark-rule-custom-patterns)))) -(defun shen.unmark-custom-pattern (V5463) (cond ((and (cons? V5463) (and (= @p (hd V5463)) (and (cons? (tl V5463)) (and (= shen.custom-pattern (hd (tl V5463))) (and (cons? (tl (tl V5463))) (= () (tl (tl (tl V5463))))))))) (shen.unmark-custom-pattern (shen.curry (hd (tl (tl V5463)))))) ((cons? V5463) (cons (shen.unmark-custom-pattern (hd V5463)) (shen.unmark-custom-pattern (tl V5463)))) (true V5463))) +(defun shen.unmark-custom-pattern (V5478) (cond ((and (cons? V5478) (and (= @p (hd V5478)) (and (cons? (tl V5478)) (and (= shen.custom-pattern (hd (tl V5478))) (and (cons? (tl (tl V5478))) (= () (tl (tl (tl V5478))))))))) (shen.unmark-custom-pattern (shen.curry (hd (tl (tl V5478)))))) ((cons? V5478) (cons (shen.unmark-custom-pattern (hd V5478)) (shen.unmark-custom-pattern (tl V5478)))) (true V5478))) -(defun shen. (V5464) (let W5465 (if (cons? V5464) (let W5466 (tail V5464) (if (shen.hds=? W5466 {) (let W5467 (tail W5466) (let W5468 (shen. W5467) (if (shen.parse-failure? W5468) (shen.parse-failure) (let W5469 (shen.<-out W5468) (let W5470 (shen.in-> W5468) (if (shen.hds=? W5470 }) (let W5471 (tail W5470) (let W5472 (shen. W5471) (if (shen.parse-failure? W5472) (shen.parse-failure) (let W5473 (shen.<-out W5472) (let W5474 (shen.in-> W5472) (shen.comb W5474 (let W5475 (shen.rectify-type W5469) (@p W5475 W5473)))))))) (shen.parse-failure))))))) (shen.parse-failure))) (shen.parse-failure)) (if (shen.parse-failure? W5465) (shen.parse-failure) W5465))) +(defun shen. (V5479) (let W5480 (if (cons? V5479) (let W5481 (tail V5479) (if (shen.hds=? W5481 {) (let W5482 (tail W5481) (let W5483 (shen. W5482) (if (shen.parse-failure? W5483) (shen.parse-failure) (let W5484 (shen.<-out W5483) (let W5485 (shen.in-> W5483) (if (shen.hds=? W5485 }) (let W5486 (tail W5485) (let W5487 (shen. W5486) (if (shen.parse-failure? W5487) (shen.parse-failure) (let W5488 (shen.<-out W5487) (let W5489 (shen.in-> W5487) (shen.comb W5489 (let W5490 (shen.rectify-type W5484) (@p W5490 W5488)))))))) (shen.parse-failure))))))) (shen.parse-failure))) (shen.parse-failure)) (if (shen.parse-failure? W5480) (shen.parse-failure) W5480))) -(defun shen.freshen-sig (V5476) (let W5477 (shen.extract-vars V5476) (let W5478 (map (lambda Z5479 (cons Z5479 (shen.freshterm (concat & Z5479)))) W5477) (shen.freshen-type W5478 V5476)))) +(defun shen.freshen-sig (V5491) (let W5492 (shen.extract-vars V5491) (let W5493 (map (lambda Z5494 (cons Z5494 (shen.freshterm (concat & Z5494)))) W5492) (shen.freshen-type W5493 V5491)))) -(defun shen.freshen-type (V5480 V5481) (cond ((= () V5480) V5481) ((and (cons? V5480) (cons? (hd V5480))) (shen.freshen-type (tl V5480) (subst (tl (hd V5480)) (hd (hd V5480)) V5481))) (true (shen.f-error shen.freshen-type)))) +(defun shen.freshen-type (V5495 V5496) (cond ((= () V5495) V5496) ((and (cons? V5495) (cons? (hd V5495))) (shen.freshen-type (tl V5495) (subst (tl (hd V5495)) (hd (hd V5495)) V5496))) (true (shen.f-error shen.freshen-type)))) -(defun shen. (V5482) (let W5483 (let W5484 (shen. V5482) (if (shen.parse-failure? W5484) (shen.parse-failure) (let W5485 (shen.<-out W5484) (let W5486 (shen.in-> W5484) (let W5487 (shen. W5486) (if (shen.parse-failure? W5487) (shen.parse-failure) (let W5488 (shen.<-out W5487) (let W5489 (shen.in-> W5487) (shen.comb W5489 (cons W5485 W5488)))))))))) (if (shen.parse-failure? W5483) (let W5490 (let W5491 (shen. V5482) (if (shen.parse-failure? W5491) (shen.parse-failure) (let W5492 (shen.<-out W5491) (let W5493 (shen.in-> W5491) (shen.comb W5493 (cons W5492 ())))))) (if (shen.parse-failure? W5490) (shen.parse-failure) W5490)) W5483))) +(defun shen. (V5497) (let W5498 (let W5499 (shen. V5497) (if (shen.parse-failure? W5499) (shen.parse-failure) (let W5500 (shen.<-out W5499) (let W5501 (shen.in-> W5499) (let W5502 (shen. W5501) (if (shen.parse-failure? W5502) (shen.parse-failure) (let W5503 (shen.<-out W5502) (let W5504 (shen.in-> W5502) (shen.comb W5504 (cons W5500 W5503)))))))))) (if (shen.parse-failure? W5498) (let W5505 (let W5506 (shen. V5497) (if (shen.parse-failure? W5506) (shen.parse-failure) (let W5507 (shen.<-out W5506) (let W5508 (shen.in-> W5506) (shen.comb W5508 (cons W5507 ())))))) (if (shen.parse-failure? W5505) (shen.parse-failure) W5505)) W5498))) -(defun shen. (V5494) (let W5495 (let W5496 (shen. V5494) (if (shen.parse-failure? W5496) (shen.parse-failure) (let W5497 (shen.<-out W5496) (let W5498 (shen.in-> W5496) (if (shen.hds=? W5498 ->) (let W5499 (tail W5498) (if (cons? W5499) (let W5500 (head W5499) (let W5501 (tail W5499) (if (shen.hds=? W5501 where) (let W5502 (tail W5501) (if (cons? W5502) (let W5503 (head W5502) (let W5504 (tail W5502) (shen.comb W5504 (@p W5497 (cons where (cons W5503 (cons W5500 ()))))))) (shen.parse-failure))) (shen.parse-failure)))) (shen.parse-failure))) (shen.parse-failure)))))) (if (shen.parse-failure? W5495) (let W5505 (let W5506 (shen. V5494) (if (shen.parse-failure? W5506) (shen.parse-failure) (let W5507 (shen.<-out W5506) (let W5508 (shen.in-> W5506) (if (shen.hds=? W5508 <-) (let W5509 (tail W5508) (if (cons? W5509) (let W5510 (head W5509) (let W5511 (tail W5509) (if (shen.hds=? W5511 where) (let W5512 (tail W5511) (if (cons? W5512) (let W5513 (head W5512) (let W5514 (tail W5512) (shen.comb W5514 (@p W5507 (shen.correct (cons where (cons W5513 (cons W5510 ())))))))) (shen.parse-failure))) (shen.parse-failure)))) (shen.parse-failure))) (shen.parse-failure)))))) (if (shen.parse-failure? W5505) (let W5515 (let W5516 (shen. V5494) (if (shen.parse-failure? W5516) (shen.parse-failure) (let W5517 (shen.<-out W5516) (let W5518 (shen.in-> W5516) (if (shen.hds=? W5518 <-) (let W5519 (tail W5518) (if (cons? W5519) (let W5520 (head W5519) (let W5521 (tail W5519) (shen.comb W5521 (@p W5517 (shen.correct W5520))))) (shen.parse-failure))) (shen.parse-failure)))))) (if (shen.parse-failure? W5515) (let W5522 (let W5523 (shen. V5494) (if (shen.parse-failure? W5523) (shen.parse-failure) (let W5524 (shen.<-out W5523) (let W5525 (shen.in-> W5523) (if (shen.hds=? W5525 ->) (let W5526 (tail W5525) (if (cons? W5526) (let W5527 (head W5526) (let W5528 (tail W5526) (shen.comb W5528 (@p W5524 W5527)))) (shen.parse-failure))) (shen.parse-failure)))))) (if (shen.parse-failure? W5522) (shen.parse-failure) W5522)) W5515)) W5505)) W5495))) +(defun shen. (V5509) (let W5510 (let W5511 (shen. V5509) (if (shen.parse-failure? W5511) (shen.parse-failure) (let W5512 (shen.<-out W5511) (let W5513 (shen.in-> W5511) (if (shen.hds=? W5513 ->) (let W5514 (tail W5513) (if (cons? W5514) (let W5515 (head W5514) (let W5516 (tail W5514) (if (shen.hds=? W5516 where) (let W5517 (tail W5516) (if (cons? W5517) (let W5518 (head W5517) (let W5519 (tail W5517) (shen.comb W5519 (@p W5512 (cons where (cons W5518 (cons W5515 ()))))))) (shen.parse-failure))) (shen.parse-failure)))) (shen.parse-failure))) (shen.parse-failure)))))) (if (shen.parse-failure? W5510) (let W5520 (let W5521 (shen. V5509) (if (shen.parse-failure? W5521) (shen.parse-failure) (let W5522 (shen.<-out W5521) (let W5523 (shen.in-> W5521) (if (shen.hds=? W5523 <-) (let W5524 (tail W5523) (if (cons? W5524) (let W5525 (head W5524) (let W5526 (tail W5524) (if (shen.hds=? W5526 where) (let W5527 (tail W5526) (if (cons? W5527) (let W5528 (head W5527) (let W5529 (tail W5527) (shen.comb W5529 (@p W5522 (shen.correct (cons where (cons W5528 (cons W5525 ())))))))) (shen.parse-failure))) (shen.parse-failure)))) (shen.parse-failure))) (shen.parse-failure)))))) (if (shen.parse-failure? W5520) (let W5530 (let W5531 (shen. V5509) (if (shen.parse-failure? W5531) (shen.parse-failure) (let W5532 (shen.<-out W5531) (let W5533 (shen.in-> W5531) (if (shen.hds=? W5533 <-) (let W5534 (tail W5533) (if (cons? W5534) (let W5535 (head W5534) (let W5536 (tail W5534) (shen.comb W5536 (@p W5532 (shen.correct W5535))))) (shen.parse-failure))) (shen.parse-failure)))))) (if (shen.parse-failure? W5530) (let W5537 (let W5538 (shen. V5509) (if (shen.parse-failure? W5538) (shen.parse-failure) (let W5539 (shen.<-out W5538) (let W5540 (shen.in-> W5538) (if (shen.hds=? W5540 ->) (let W5541 (tail W5540) (if (cons? W5541) (let W5542 (head W5541) (let W5543 (tail W5541) (shen.comb W5543 (@p W5539 W5542)))) (shen.parse-failure))) (shen.parse-failure)))))) (if (shen.parse-failure? W5537) (shen.parse-failure) W5537)) W5530)) W5520)) W5510))) -(defun shen.correct (V5529) (cond ((and (cons? V5529) (and (= where (hd V5529)) (and (cons? (tl V5529)) (and (cons? (tl (tl V5529))) (and (cons? (hd (tl (tl V5529)))) (and (= fail-if (hd (hd (tl (tl V5529))))) (and (cons? (tl (hd (tl (tl V5529))))) (and (cons? (tl (tl (hd (tl (tl V5529)))))) (and (= () (tl (tl (tl (hd (tl (tl V5529))))))) (= () (tl (tl (tl V5529))))))))))))) (cons where (cons (cons and (cons (hd (tl V5529)) (cons (cons not (cons (tl (hd (tl (tl V5529)))) ())) ()))) (tl (tl (hd (tl (tl V5529)))))))) ((and (cons? V5529) (and (= where (hd V5529)) (and (cons? (tl V5529)) (and (cons? (tl (tl V5529))) (= () (tl (tl (tl V5529)))))))) (cons where (cons (cons and (cons (hd (tl V5529)) (cons (cons not (cons (cons == (cons (hd (tl (tl V5529))) (cons (cons fail ()) ()))) ())) ()))) (tl (tl V5529))))) ((and (cons? V5529) (and (= fail-if (hd V5529)) (and (cons? (tl V5529)) (and (cons? (tl (tl V5529))) (= () (tl (tl (tl V5529)))))))) (cons where (cons (cons not (cons (tl V5529) ())) (tl (tl V5529))))) (true (cons where (cons (cons not (cons (cons == (cons V5529 (cons (cons fail ()) ()))) ())) (cons V5529 ())))))) +(defun shen.correct (V5544) (cond ((and (cons? V5544) (and (= where (hd V5544)) (and (cons? (tl V5544)) (and (cons? (tl (tl V5544))) (and (cons? (hd (tl (tl V5544)))) (and (= fail-if (hd (hd (tl (tl V5544))))) (and (cons? (tl (hd (tl (tl V5544))))) (and (cons? (tl (tl (hd (tl (tl V5544)))))) (and (= () (tl (tl (tl (hd (tl (tl V5544))))))) (= () (tl (tl (tl V5544))))))))))))) (cons where (cons (cons and (cons (hd (tl V5544)) (cons (cons not (cons (tl (hd (tl (tl V5544)))) ())) ()))) (tl (tl (hd (tl (tl V5544)))))))) ((and (cons? V5544) (and (= where (hd V5544)) (and (cons? (tl V5544)) (and (cons? (tl (tl V5544))) (= () (tl (tl (tl V5544)))))))) (cons where (cons (cons and (cons (hd (tl V5544)) (cons (cons not (cons (cons == (cons (hd (tl (tl V5544))) (cons (cons fail ()) ()))) ())) ()))) (tl (tl V5544))))) ((and (cons? V5544) (and (= fail-if (hd V5544)) (and (cons? (tl V5544)) (and (cons? (tl (tl V5544))) (= () (tl (tl (tl V5544)))))))) (cons where (cons (cons not (cons (tl V5544) ())) (tl (tl V5544))))) (true (cons where (cons (cons not (cons (cons == (cons V5544 (cons (cons fail ()) ()))) ())) (cons V5544 ())))))) -(defun shen.t*-rules (V5530 V5531 V5532 V5533 V5534 V5535 V5536 V5537) (let W5538 (+ V5536 1) (let W5539 (if (shen.unlocked? V5535) (let W5540 (shen.lazyderef V5531 V5534) (if (= W5540 ()) (do (shen.incinfs) (thaw V5537)) false)) false) (if (= W5539 false) (let W5541 (if (shen.unlocked? V5535) (let W5542 (shen.lazyderef V5531 V5534) (if (cons? W5542) (let W5543 (hd W5542) (let W5544 (tl W5542) (let W5545 (shen.newpv V5534) (shen.gc V5534 (do (shen.incinfs) (bind W5545 (shen.freshen-rule (shen.deref W5543 V5534)) V5534 V5535 W5538 (freeze (shen.t*-rule V5530 V5533 (fst (shen.lazyderef W5545 V5534)) (snd (shen.lazyderef W5545 V5534)) V5532 V5534 V5535 W5538 (freeze (shen.cut V5534 V5535 W5538 (freeze (shen.t*-rules V5530 W5544 V5532 (+ V5533 1) V5534 V5535 W5538 V5537)))))))))))) false)) false) (if (= W5541 false) (shen.unlock V5535 W5538) W5541)) W5539)))) +(defun shen.t*-rules (V5545 V5546 V5547 V5548 V5549 V5550 V5551 V5552) (let W5553 (+ V5551 1) (let W5554 (if (shen.unlocked? V5550) (let W5555 (shen.lazyderef V5546 V5549) (if (= W5555 ()) (do (shen.incinfs) (thaw V5552)) false)) false) (if (= W5554 false) (let W5556 (if (shen.unlocked? V5550) (let W5557 (shen.lazyderef V5546 V5549) (if (cons? W5557) (let W5558 (hd W5557) (let W5559 (tl W5557) (let W5560 (shen.newpv V5549) (shen.gc V5549 (do (shen.incinfs) (bind W5560 (shen.freshen-rule (shen.deref W5558 V5549)) V5549 V5550 W5553 (freeze (shen.t*-rule V5545 V5548 (fst (shen.lazyderef W5560 V5549)) (snd (shen.lazyderef W5560 V5549)) V5547 V5549 V5550 W5553 (freeze (shen.cut V5549 V5550 W5553 (freeze (shen.t*-rules V5545 W5559 V5547 (+ V5548 1) V5549 V5550 W5553 V5552)))))))))))) false)) false) (if (= W5556 false) (shen.unlock V5550 W5553) W5556)) W5554)))) -(defun shen.freshen-rule (V5546) (cond ((tuple? V5546) (let W5547 (shen.extract-vars (fst V5546)) (let W5548 (map (lambda Z5549 (cons Z5549 (shen.freshterm Z5549))) W5547) (@p (shen.freshen W5548 (fst V5546)) (shen.freshen W5548 (snd V5546)))))) (true (shen.f-error shen.freshen-rule)))) +(defun shen.freshen-rule (V5561) (cond ((tuple? V5561) (let W5562 (shen.extract-vars (fst V5561)) (let W5563 (map (lambda Z5564 (cons Z5564 (shen.freshterm Z5564))) W5562) (@p (shen.freshen W5563 (fst V5561)) (shen.freshen W5563 (snd V5561)))))) (true (shen.f-error shen.freshen-rule)))) -(defun shen.freshen (V5550 V5551) (cond ((= () V5550) V5551) ((and (cons? V5550) (cons? (hd V5550))) (shen.freshen (tl V5550) (shen.beta (hd (hd V5550)) (tl (hd V5550)) V5551))) (true (shen.f-error shen.freshen)))) +(defun shen.freshen (V5565 V5566) (cond ((= () V5565) V5566) ((and (cons? V5565) (cons? (hd V5565))) (shen.freshen (tl V5565) (shen.beta (hd (hd V5565)) (tl (hd V5565)) V5566))) (true (shen.f-error shen.freshen)))) -(defun shen.t*-rule (V5552 V5553 V5554 V5555 V5556 V5557 V5558 V5559 V5560) (let W5561 (if (shen.unlocked? V5558) (do (shen.incinfs) (shen.t*-rule-h V5554 V5555 V5556 V5557 V5558 V5559 V5560)) false) (if (= W5561 false) (if (shen.unlocked? V5558) (let W5562 (shen.newpv V5557) (shen.gc V5557 (do (shen.incinfs) (bind W5562 (simple-error (cn "type error in rule " (shen.app V5553 (cn " of " (shen.app V5552 " -" shen.a)) shen.a))) V5557 V5558 V5559 V5560)))) false) W5561))) +(defun shen.t*-rule (V5567 V5568 V5569 V5570 V5571 V5572 V5573 V5574 V5575) (let W5576 (if (shen.unlocked? V5573) (do (shen.incinfs) (shen.t*-rule-h V5569 V5570 V5571 V5572 V5573 V5574 V5575)) false) (if (= W5576 false) (if (shen.unlocked? V5573) (let W5577 (shen.newpv V5572) (shen.gc V5572 (do (shen.incinfs) (bind W5577 (simple-error (cn "type error in rule " (shen.app V5568 (cn " of " (shen.app V5567 " +" shen.a)) shen.a))) V5572 V5573 V5574 V5575)))) false) W5576))) -(defun shen.t*-rule-h (V5563 V5564 V5565 V5566 V5567 V5568 V5569) (let W5570 (+ V5568 1) (let W5571 (if (shen.unlocked? V5567) (let W5572 (shen.lazyderef V5563 V5566) (if (= W5572 ()) (let W5573 (shen.lazyderef V5565 V5566) (if (cons? W5573) (let W5574 (shen.lazyderef (hd W5573) V5566) (if (= W5574 -->) (let W5575 (shen.lazyderef (tl W5573) V5566) (if (cons? W5575) (let W5576 (hd W5575) (let W5577 (shen.lazyderef (tl W5575) V5566) (if (= W5577 ()) (do (shen.incinfs) (shen.cut V5566 V5567 W5570 (freeze (shen.t*-correct V5564 W5576 () V5566 V5567 W5570 V5569)))) false))) false)) false)) false)) false)) false) (if (= W5571 false) (let W5578 (if (shen.unlocked? V5567) (let W5579 (shen.newpv V5566) (shen.gc V5566 (let W5580 (shen.newpv V5566) (shen.gc V5566 (let W5581 (shen.newpv V5566) (shen.gc V5566 (do (shen.incinfs) (shen.p-hyps (shen.freshterms V5563) W5579 V5566 V5567 W5570 (freeze (shen.t*-integrity V5563 V5565 W5579 W5580 V5566 V5567 W5570 (freeze (shen.cut V5566 V5567 W5570 (freeze (shen.myassume V5563 V5565 W5581 V5566 V5567 W5570 (freeze (shen.t*-correct V5564 W5580 W5581 V5566 V5567 W5570 V5569)))))))))))))))) false) (if (= W5578 false) (shen.unlock V5567 W5570) W5578)) W5571)))) +(defun shen.t*-rule-h (V5578 V5579 V5580 V5581 V5582 V5583 V5584) (let W5585 (+ V5583 1) (let W5586 (if (shen.unlocked? V5582) (let W5587 (shen.lazyderef V5578 V5581) (if (= W5587 ()) (let W5588 (shen.lazyderef V5580 V5581) (if (cons? W5588) (let W5589 (shen.lazyderef (hd W5588) V5581) (if (= W5589 -->) (let W5590 (shen.lazyderef (tl W5588) V5581) (if (cons? W5590) (let W5591 (hd W5590) (let W5592 (shen.lazyderef (tl W5590) V5581) (if (= W5592 ()) (do (shen.incinfs) (shen.cut V5581 V5582 W5585 (freeze (shen.t*-correct V5579 W5591 () V5581 V5582 W5585 V5584)))) false))) false)) false)) false)) false)) false) (if (= W5586 false) (let W5593 (if (shen.unlocked? V5582) (let W5594 (shen.newpv V5581) (shen.gc V5581 (let W5595 (shen.newpv V5581) (shen.gc V5581 (let W5596 (shen.newpv V5581) (shen.gc V5581 (do (shen.incinfs) (shen.p-hyps (shen.freshterms V5578) W5594 V5581 V5582 W5585 (freeze (shen.t*-integrity V5578 V5580 W5594 W5595 V5581 V5582 W5585 (freeze (shen.cut V5581 V5582 W5585 (freeze (shen.myassume V5578 V5580 W5596 V5581 V5582 W5585 (freeze (shen.t*-correct V5579 W5595 W5596 V5581 V5582 W5585 V5584)))))))))))))))) false) (if (= W5593 false) (shen.unlock V5582 W5585) W5593)) W5586)))) -(defun shen.myassume (V5582 V5583 V5584 V5585 V5586 V5587 V5588) (let W5589 (if (shen.unlocked? V5586) (let W5590 (shen.lazyderef V5582 V5585) (if (= W5590 ()) (let W5591 (shen.lazyderef V5584 V5585) (let W5592 (freeze (do (shen.incinfs) (thaw V5588))) (if (= W5591 ()) (thaw W5592) (if (shen.pvar? W5591) (shen.bind! W5591 () V5585 W5592) false)))) false)) false) (if (= W5589 false) (if (shen.unlocked? V5586) (let W5593 (shen.lazyderef V5582 V5585) (if (cons? W5593) (let W5594 (hd W5593) (let W5595 (tl W5593) (let W5596 (shen.lazyderef V5583 V5585) (if (cons? W5596) (let W5597 (hd W5596) (let W5598 (shen.lazyderef (tl W5596) V5585) (if (cons? W5598) (let W5599 (shen.lazyderef (hd W5598) V5585) (if (= W5599 -->) (let W5600 (shen.lazyderef (tl W5598) V5585) (if (cons? W5600) (let W5601 (hd W5600) (let W5602 (shen.lazyderef (tl W5600) V5585) (if (= W5602 ()) (let W5603 (shen.lazyderef V5584 V5585) (let W5604 (lambda Z5605 (lambda Z5606 (lambda Z5607 (lambda Z5608 (do (shen.incinfs) (is! W5597 Z5607 V5585 V5586 V5587 (freeze (is! W5594 Z5605 V5585 V5586 V5587 (freeze (bind Z5606 (intern ":") V5585 V5586 V5587 (freeze (shen.myassume W5595 W5601 Z5608 V5585 V5586 V5587 V5588)))))))))))) (if (cons? W5603) (let W5609 (shen.lazyderef (hd W5603) V5585) (let W5610 (lambda Z5611 (lambda Z5612 (lambda Z5613 (let W5614 (tl W5603) ((((W5604 Z5611) Z5612) Z5613) W5614))))) (if (cons? W5609) (let W5615 (hd W5609) (let W5616 (shen.lazyderef (tl W5609) V5585) (let W5617 (lambda Z5618 (lambda Z5619 (((W5610 W5615) Z5618) Z5619))) (if (cons? W5616) (let W5620 (hd W5616) (let W5621 (shen.lazyderef (tl W5616) V5585) (let W5622 (lambda Z5623 ((W5617 W5620) Z5623)) (if (cons? W5621) (let W5624 (hd W5621) (let W5625 (shen.lazyderef (tl W5621) V5585) (let W5626 (freeze (W5622 W5624)) (if (= W5625 ()) (thaw W5626) (if (shen.pvar? W5625) (shen.bind! W5625 () V5585 W5626) false))))) (if (shen.pvar? W5621) (let W5627 (shen.newpv V5585) (shen.gc V5585 (shen.bind! W5621 (cons W5627 ()) V5585 (freeze (W5622 W5627))))) false))))) (if (shen.pvar? W5616) (let W5628 (shen.newpv V5585) (shen.gc V5585 (let W5629 (shen.newpv V5585) (shen.gc V5585 (shen.bind! W5616 (cons W5628 (cons W5629 ())) V5585 (freeze ((W5617 W5628) W5629))))))) false))))) (if (shen.pvar? W5609) (let W5630 (shen.newpv V5585) (shen.gc V5585 (let W5631 (shen.newpv V5585) (shen.gc V5585 (let W5632 (shen.newpv V5585) (shen.gc V5585 (shen.bind! W5609 (cons W5630 (cons W5631 (cons W5632 ()))) V5585 (freeze (((W5610 W5630) W5631) W5632))))))))) false)))) (if (shen.pvar? W5603) (let W5633 (shen.newpv V5585) (shen.gc V5585 (let W5634 (shen.newpv V5585) (shen.gc V5585 (let W5635 (shen.newpv V5585) (shen.gc V5585 (let W5636 (shen.newpv V5585) (shen.gc V5585 (shen.bind! W5603 (cons (cons W5633 (cons W5634 (cons W5635 ()))) W5636) V5585 (freeze ((((W5604 W5633) W5634) W5635) W5636))))))))))) false)))) false))) false)) false)) false))) false)))) false)) false) W5589))) +(defun shen.myassume (V5597 V5598 V5599 V5600 V5601 V5602 V5603) (let W5604 (if (shen.unlocked? V5601) (let W5605 (shen.lazyderef V5597 V5600) (if (= W5605 ()) (let W5606 (shen.lazyderef V5599 V5600) (let W5607 (freeze (do (shen.incinfs) (thaw V5603))) (if (= W5606 ()) (thaw W5607) (if (shen.pvar? W5606) (shen.bind! W5606 () V5600 W5607) false)))) false)) false) (if (= W5604 false) (if (shen.unlocked? V5601) (let W5608 (shen.lazyderef V5597 V5600) (if (cons? W5608) (let W5609 (hd W5608) (let W5610 (tl W5608) (let W5611 (shen.lazyderef V5598 V5600) (if (cons? W5611) (let W5612 (hd W5611) (let W5613 (shen.lazyderef (tl W5611) V5600) (if (cons? W5613) (let W5614 (shen.lazyderef (hd W5613) V5600) (if (= W5614 -->) (let W5615 (shen.lazyderef (tl W5613) V5600) (if (cons? W5615) (let W5616 (hd W5615) (let W5617 (shen.lazyderef (tl W5615) V5600) (if (= W5617 ()) (let W5618 (shen.lazyderef V5599 V5600) (let W5619 (lambda Z5620 (lambda Z5621 (lambda Z5622 (lambda Z5623 (do (shen.incinfs) (is! W5612 Z5622 V5600 V5601 V5602 (freeze (is! W5609 Z5620 V5600 V5601 V5602 (freeze (bind Z5621 (intern ":") V5600 V5601 V5602 (freeze (shen.myassume W5610 W5616 Z5623 V5600 V5601 V5602 V5603)))))))))))) (if (cons? W5618) (let W5624 (shen.lazyderef (hd W5618) V5600) (let W5625 (lambda Z5626 (lambda Z5627 (lambda Z5628 (let W5629 (tl W5618) ((((W5619 Z5626) Z5627) Z5628) W5629))))) (if (cons? W5624) (let W5630 (hd W5624) (let W5631 (shen.lazyderef (tl W5624) V5600) (let W5632 (lambda Z5633 (lambda Z5634 (((W5625 W5630) Z5633) Z5634))) (if (cons? W5631) (let W5635 (hd W5631) (let W5636 (shen.lazyderef (tl W5631) V5600) (let W5637 (lambda Z5638 ((W5632 W5635) Z5638)) (if (cons? W5636) (let W5639 (hd W5636) (let W5640 (shen.lazyderef (tl W5636) V5600) (let W5641 (freeze (W5637 W5639)) (if (= W5640 ()) (thaw W5641) (if (shen.pvar? W5640) (shen.bind! W5640 () V5600 W5641) false))))) (if (shen.pvar? W5636) (let W5642 (shen.newpv V5600) (shen.gc V5600 (shen.bind! W5636 (cons W5642 ()) V5600 (freeze (W5637 W5642))))) false))))) (if (shen.pvar? W5631) (let W5643 (shen.newpv V5600) (shen.gc V5600 (let W5644 (shen.newpv V5600) (shen.gc V5600 (shen.bind! W5631 (cons W5643 (cons W5644 ())) V5600 (freeze ((W5632 W5643) W5644))))))) false))))) (if (shen.pvar? W5624) (let W5645 (shen.newpv V5600) (shen.gc V5600 (let W5646 (shen.newpv V5600) (shen.gc V5600 (let W5647 (shen.newpv V5600) (shen.gc V5600 (shen.bind! W5624 (cons W5645 (cons W5646 (cons W5647 ()))) V5600 (freeze (((W5625 W5645) W5646) W5647))))))))) false)))) (if (shen.pvar? W5618) (let W5648 (shen.newpv V5600) (shen.gc V5600 (let W5649 (shen.newpv V5600) (shen.gc V5600 (let W5650 (shen.newpv V5600) (shen.gc V5600 (let W5651 (shen.newpv V5600) (shen.gc V5600 (shen.bind! W5618 (cons (cons W5648 (cons W5649 (cons W5650 ()))) W5651) V5600 (freeze ((((W5619 W5648) W5649) W5650) W5651))))))))))) false)))) false))) false)) false)) false))) false)))) false)) false) W5604))) -(defun shen.freshterms (V5639) (cond ((= () V5639) ()) ((and (cons? V5639) (cons? (hd V5639))) (shen.freshterms (append (hd V5639) (tl V5639)))) ((and (cons? V5639) (shen.freshterm? (hd V5639))) (adjoin (hd V5639) (shen.freshterms (tl V5639)))) ((cons? V5639) (shen.freshterms (tl V5639))) (true (shen.f-error shen.freshterms)))) +(defun shen.freshterms (V5654) (cond ((= () V5654) ()) ((and (cons? V5654) (cons? (hd V5654))) (shen.freshterms (append (hd V5654) (tl V5654)))) ((and (cons? V5654) (shen.freshterm? (hd V5654))) (adjoin (hd V5654) (shen.freshterms (tl V5654)))) ((cons? V5654) (shen.freshterms (tl V5654))) (true (shen.f-error shen.freshterms)))) -(defun shen.p-hyps (V5640 V5641 V5642 V5643 V5644 V5645) (let W5646 (if (shen.unlocked? V5643) (let W5647 (shen.lazyderef V5640 V5642) (if (= W5647 ()) (let W5648 (shen.lazyderef V5641 V5642) (let W5649 (freeze (do (shen.incinfs) (thaw V5645))) (if (= W5648 ()) (thaw W5649) (if (shen.pvar? W5648) (shen.bind! W5648 () V5642 W5649) false)))) false)) false) (if (= W5646 false) (if (shen.unlocked? V5643) (let W5650 (shen.lazyderef V5640 V5642) (if (cons? W5650) (let W5651 (hd W5650) (let W5652 (tl W5650) (let W5653 (shen.lazyderef V5641 V5642) (let W5654 (lambda Z5655 (lambda Z5656 (lambda Z5657 (lambda Z5658 (do (shen.incinfs) (bind Z5655 W5651 V5642 V5643 V5644 (freeze (bind Z5656 (intern ":") V5642 V5643 V5644 (freeze (shen.p-hyps W5652 Z5658 V5642 V5643 V5644 V5645)))))))))) (if (cons? W5653) (let W5659 (shen.lazyderef (hd W5653) V5642) (let W5660 (lambda Z5661 (lambda Z5662 (lambda Z5663 (let W5664 (tl W5653) ((((W5654 Z5661) Z5662) Z5663) W5664))))) (if (cons? W5659) (let W5665 (hd W5659) (let W5666 (shen.lazyderef (tl W5659) V5642) (let W5667 (lambda Z5668 (lambda Z5669 (((W5660 W5665) Z5668) Z5669))) (if (cons? W5666) (let W5670 (hd W5666) (let W5671 (shen.lazyderef (tl W5666) V5642) (let W5672 (lambda Z5673 ((W5667 W5670) Z5673)) (if (cons? W5671) (let W5674 (hd W5671) (let W5675 (shen.lazyderef (tl W5671) V5642) (let W5676 (freeze (W5672 W5674)) (if (= W5675 ()) (thaw W5676) (if (shen.pvar? W5675) (shen.bind! W5675 () V5642 W5676) false))))) (if (shen.pvar? W5671) (let W5677 (shen.newpv V5642) (shen.gc V5642 (shen.bind! W5671 (cons W5677 ()) V5642 (freeze (W5672 W5677))))) false))))) (if (shen.pvar? W5666) (let W5678 (shen.newpv V5642) (shen.gc V5642 (let W5679 (shen.newpv V5642) (shen.gc V5642 (shen.bind! W5666 (cons W5678 (cons W5679 ())) V5642 (freeze ((W5667 W5678) W5679))))))) false))))) (if (shen.pvar? W5659) (let W5680 (shen.newpv V5642) (shen.gc V5642 (let W5681 (shen.newpv V5642) (shen.gc V5642 (let W5682 (shen.newpv V5642) (shen.gc V5642 (shen.bind! W5659 (cons W5680 (cons W5681 (cons W5682 ()))) V5642 (freeze (((W5660 W5680) W5681) W5682))))))))) false)))) (if (shen.pvar? W5653) (let W5683 (shen.newpv V5642) (shen.gc V5642 (let W5684 (shen.newpv V5642) (shen.gc V5642 (let W5685 (shen.newpv V5642) (shen.gc V5642 (let W5686 (shen.newpv V5642) (shen.gc V5642 (shen.bind! W5653 (cons (cons W5683 (cons W5684 (cons W5685 ()))) W5686) V5642 (freeze ((((W5654 W5683) W5684) W5685) W5686))))))))))) false)))))) false)) false) W5646))) +(defun shen.p-hyps (V5655 V5656 V5657 V5658 V5659 V5660) (let W5661 (if (shen.unlocked? V5658) (let W5662 (shen.lazyderef V5655 V5657) (if (= W5662 ()) (let W5663 (shen.lazyderef V5656 V5657) (let W5664 (freeze (do (shen.incinfs) (thaw V5660))) (if (= W5663 ()) (thaw W5664) (if (shen.pvar? W5663) (shen.bind! W5663 () V5657 W5664) false)))) false)) false) (if (= W5661 false) (if (shen.unlocked? V5658) (let W5665 (shen.lazyderef V5655 V5657) (if (cons? W5665) (let W5666 (hd W5665) (let W5667 (tl W5665) (let W5668 (shen.lazyderef V5656 V5657) (let W5669 (lambda Z5670 (lambda Z5671 (lambda Z5672 (lambda Z5673 (do (shen.incinfs) (bind Z5670 W5666 V5657 V5658 V5659 (freeze (bind Z5671 (intern ":") V5657 V5658 V5659 (freeze (shen.p-hyps W5667 Z5673 V5657 V5658 V5659 V5660)))))))))) (if (cons? W5668) (let W5674 (shen.lazyderef (hd W5668) V5657) (let W5675 (lambda Z5676 (lambda Z5677 (lambda Z5678 (let W5679 (tl W5668) ((((W5669 Z5676) Z5677) Z5678) W5679))))) (if (cons? W5674) (let W5680 (hd W5674) (let W5681 (shen.lazyderef (tl W5674) V5657) (let W5682 (lambda Z5683 (lambda Z5684 (((W5675 W5680) Z5683) Z5684))) (if (cons? W5681) (let W5685 (hd W5681) (let W5686 (shen.lazyderef (tl W5681) V5657) (let W5687 (lambda Z5688 ((W5682 W5685) Z5688)) (if (cons? W5686) (let W5689 (hd W5686) (let W5690 (shen.lazyderef (tl W5686) V5657) (let W5691 (freeze (W5687 W5689)) (if (= W5690 ()) (thaw W5691) (if (shen.pvar? W5690) (shen.bind! W5690 () V5657 W5691) false))))) (if (shen.pvar? W5686) (let W5692 (shen.newpv V5657) (shen.gc V5657 (shen.bind! W5686 (cons W5692 ()) V5657 (freeze (W5687 W5692))))) false))))) (if (shen.pvar? W5681) (let W5693 (shen.newpv V5657) (shen.gc V5657 (let W5694 (shen.newpv V5657) (shen.gc V5657 (shen.bind! W5681 (cons W5693 (cons W5694 ())) V5657 (freeze ((W5682 W5693) W5694))))))) false))))) (if (shen.pvar? W5674) (let W5695 (shen.newpv V5657) (shen.gc V5657 (let W5696 (shen.newpv V5657) (shen.gc V5657 (let W5697 (shen.newpv V5657) (shen.gc V5657 (shen.bind! W5674 (cons W5695 (cons W5696 (cons W5697 ()))) V5657 (freeze (((W5675 W5695) W5696) W5697))))))))) false)))) (if (shen.pvar? W5668) (let W5698 (shen.newpv V5657) (shen.gc V5657 (let W5699 (shen.newpv V5657) (shen.gc V5657 (let W5700 (shen.newpv V5657) (shen.gc V5657 (let W5701 (shen.newpv V5657) (shen.gc V5657 (shen.bind! W5668 (cons (cons W5698 (cons W5699 (cons W5700 ()))) W5701) V5657 (freeze ((((W5669 W5698) W5699) W5700) W5701))))))))))) false)))))) false)) false) W5661))) -(defun shen.t*-correct (V5687 V5688 V5689 V5690 V5691 V5692 V5693) (let W5694 (+ V5692 1) (let W5695 (if (shen.unlocked? V5691) (let W5696 (shen.lazyderef V5687 V5690) (if (cons? W5696) (let W5697 (shen.lazyderef (hd W5696) V5690) (if (= W5697 where) (let W5698 (shen.lazyderef (tl W5696) V5690) (if (cons? W5698) (let W5699 (hd W5698) (let W5700 (shen.lazyderef (tl W5698) V5690) (if (cons? W5700) (let W5701 (hd W5700) (let W5702 (shen.lazyderef (tl W5700) V5690) (if (= W5702 ()) (let W5703 (shen.newpv V5690) (shen.gc V5690 (do (shen.incinfs) (shen.cut V5690 V5691 W5694 (freeze (bind W5703 (shen.curry W5699) V5690 V5691 W5694 (freeze (shen.system-S-h W5703 boolean V5689 V5690 V5691 W5694 (freeze (shen.cut V5690 V5691 W5694 (freeze (shen.t*-correct W5701 V5688 (cons (cons W5703 (cons (intern ":") (cons verified ()))) V5689) V5690 V5691 W5694 V5693)))))))))))) false))) false))) false)) false)) false)) false) (if (= W5695 false) (let W5704 (if (shen.unlocked? V5691) (do (shen.incinfs) (shen.system-S-h (shen.curry V5687) V5688 V5689 V5690 V5691 W5694 V5693)) false) (if (= W5704 false) (shen.unlock V5691 W5694) W5704)) W5695)))) +(defun shen.t*-correct (V5702 V5703 V5704 V5705 V5706 V5707 V5708) (let W5709 (+ V5707 1) (let W5710 (if (shen.unlocked? V5706) (let W5711 (shen.lazyderef V5702 V5705) (if (cons? W5711) (let W5712 (shen.lazyderef (hd W5711) V5705) (if (= W5712 where) (let W5713 (shen.lazyderef (tl W5711) V5705) (if (cons? W5713) (let W5714 (hd W5713) (let W5715 (shen.lazyderef (tl W5713) V5705) (if (cons? W5715) (let W5716 (hd W5715) (let W5717 (shen.lazyderef (tl W5715) V5705) (if (= W5717 ()) (let W5718 (shen.newpv V5705) (shen.gc V5705 (do (shen.incinfs) (shen.cut V5705 V5706 W5709 (freeze (bind W5718 (shen.curry W5714) V5705 V5706 W5709 (freeze (shen.system-S-h W5718 boolean V5704 V5705 V5706 W5709 (freeze (shen.cut V5705 V5706 W5709 (freeze (shen.t*-correct W5716 V5703 (cons (cons W5718 (cons (intern ":") (cons verified ()))) V5704) V5705 V5706 W5709 V5708)))))))))))) false))) false))) false)) false)) false)) false) (if (= W5710 false) (let W5719 (if (shen.unlocked? V5706) (do (shen.incinfs) (shen.system-S-h (shen.curry V5702) V5703 V5704 V5705 V5706 W5709 V5708)) false) (if (= W5719 false) (shen.unlock V5706 W5709) W5719)) W5710)))) -(defun shen.t*-integrity (V5705 V5706 V5707 V5708 V5709 V5710 V5711 V5712) (let W5713 (if (shen.unlocked? V5710) (let W5714 (shen.lazyderef V5705 V5709) (if (= W5714 ()) (do (shen.incinfs) (is! V5706 V5708 V5709 V5710 V5711 V5712)) false)) false) (if (= W5713 false) (if (shen.unlocked? V5710) (let W5715 (shen.lazyderef V5705 V5709) (if (cons? W5715) (let W5716 (hd W5715) (let W5717 (tl W5715) (let W5718 (shen.lazyderef V5706 V5709) (if (cons? W5718) (let W5719 (hd W5718) (let W5720 (shen.lazyderef (tl W5718) V5709) (if (cons? W5720) (let W5721 (shen.lazyderef (hd W5720) V5709) (if (= W5721 -->) (let W5722 (shen.lazyderef (tl W5720) V5709) (if (cons? W5722) (let W5723 (hd W5722) (let W5724 (shen.lazyderef (tl W5722) V5709) (if (= W5724 ()) (do (shen.incinfs) (shen.system-S-h W5716 W5719 V5707 V5709 V5710 V5711 (freeze (shen.t*-integrity W5717 W5723 V5707 V5708 V5709 V5710 V5711 V5712)))) false))) false)) false)) false))) false)))) false)) false) W5713))) +(defun shen.t*-integrity (V5720 V5721 V5722 V5723 V5724 V5725 V5726 V5727) (let W5728 (if (shen.unlocked? V5725) (let W5729 (shen.lazyderef V5720 V5724) (if (= W5729 ()) (do (shen.incinfs) (is! V5721 V5723 V5724 V5725 V5726 V5727)) false)) false) (if (= W5728 false) (if (shen.unlocked? V5725) (let W5730 (shen.lazyderef V5720 V5724) (if (cons? W5730) (let W5731 (hd W5730) (let W5732 (tl W5730) (let W5733 (shen.lazyderef V5721 V5724) (if (cons? W5733) (let W5734 (hd W5733) (let W5735 (shen.lazyderef (tl W5733) V5724) (if (cons? W5735) (let W5736 (shen.lazyderef (hd W5735) V5724) (if (= W5736 -->) (let W5737 (shen.lazyderef (tl W5735) V5724) (if (cons? W5737) (let W5738 (hd W5737) (let W5739 (shen.lazyderef (tl W5737) V5724) (if (= W5739 ()) (do (shen.incinfs) (shen.system-S-h W5731 W5734 V5722 V5724 V5725 V5726 (freeze (shen.t*-integrity W5732 W5738 V5722 V5723 V5724 V5725 V5726 V5727)))) false))) false)) false)) false))) false)))) false)) false) W5728))) -(defun shen.freshterm? (V5725) (and (absvector? V5725) (and (not (string? V5725)) (= (<-address V5725 0) shen.print-freshterm)))) +(defun shen.freshterm? (V5740) (and (absvector? V5740) (and (not (string? V5740)) (= (<-address V5740 0) shen.print-freshterm)))) diff --git a/klambda/toplevel.kl b/klambda/toplevel.kl index 014e563..7f009e7 100644 --- a/klambda/toplevel.kl +++ b/klambda/toplevel.kl @@ -1,8 +1,8 @@ (defun shen.repl () (do (shen.credits) (shen.loop))) -(defun shen.loop () (do (shen.initialise_environment) (do (shen.prompt) (do (trap-error (shen.read-evaluate-print) (lambda Z5748 (shen.toplevel-display-exception Z5748))) (shen.loop))))) +(defun shen.loop () (do (shen.initialise_environment) (do (shen.prompt) (do (trap-error (shen.read-evaluate-print) (lambda Z5763 (shen.toplevel-display-exception Z5763))) (shen.loop))))) -(defun shen.toplevel-display-exception (V5749) (do (pr (error-to-string V5749) (stoutput)) (nl 0))) +(defun shen.toplevel-display-exception (V5764) (do (pr (error-to-string V5764) (stoutput)) (nl 0))) (defun shen.credits () (do (pr " Shen, www.shenlanguage.org, copyright (C) 2010-2026, Mark Tarver @@ -17,32 +17,32 @@ Shen, www.shenlanguage.org, copyright (C) 2010-2026, Mark Tarver (" (shen.app (length (value shen.*history*)) "+) " shen.a)) (stoutput)) (pr (cn " (" (shen.app (length (value shen.*history*)) "-) " shen.a)) (stoutput)))) -(defun shen.read-evaluate-print () (let W5750 (value shen.*package*) (let W5751 (shen.package-user-input W5750 (lineread (stinput))) (let W5752 (shen.update-history) (shen.evaluate-lineread W5751 W5752 (value shen.*tc*)))))) +(defun shen.read-evaluate-print () (let W5765 (value shen.*package*) (let W5766 (shen.package-user-input W5765 (lineread (stinput))) (let W5767 (shen.update-history) (shen.evaluate-lineread W5766 W5767 (value shen.*tc*)))))) -(defun shen.package-user-input (V5753 V5754) (cond ((= null V5753) V5754) (true (let W5755 (str V5753) (let W5756 (external V5753) (map (lambda Z5757 (shen.pui-h W5755 W5756 Z5757)) V5754)))))) +(defun shen.package-user-input (V5768 V5769) (cond ((= null V5768) V5769) (true (let W5770 (str V5768) (let W5771 (external V5768) (map (lambda Z5772 (shen.pui-h W5770 W5771 Z5772)) V5769)))))) -(defun shen.pui-h (V5762 V5763 V5764) (cond ((and (cons? V5764) (and (= fn (hd V5764)) (and (cons? (tl V5764)) (= () (tl (tl V5764)))))) (if (shen.internal? (hd (tl V5764)) V5762 V5763) (cons fn (cons (shen.intern-in-package V5762 (hd (tl V5764))) ())) V5764)) ((cons? V5764) (if (shen.internal? (hd V5764) V5762 V5763) (cons (shen.intern-in-package V5762 (hd V5764)) (map (lambda Z5765 (shen.pui-h V5762 V5763 Z5765)) (tl V5764))) (if (cons? (hd V5764)) (map (lambda Z5766 (shen.pui-h V5762 V5763 Z5766)) V5764) (cons (hd V5764) (map (lambda Z5767 (shen.pui-h V5762 V5763 Z5767)) (tl V5764)))))) (true V5764))) +(defun shen.pui-h (V5777 V5778 V5779) (cond ((and (cons? V5779) (and (= fn (hd V5779)) (and (cons? (tl V5779)) (= () (tl (tl V5779)))))) (if (shen.internal? (hd (tl V5779)) V5777 V5778) (cons fn (cons (shen.intern-in-package V5777 (hd (tl V5779))) ())) V5779)) ((cons? V5779) (if (shen.internal? (hd V5779) V5777 V5778) (cons (shen.intern-in-package V5777 (hd V5779)) (map (lambda Z5780 (shen.pui-h V5777 V5778 Z5780)) (tl V5779))) (if (cons? (hd V5779)) (map (lambda Z5781 (shen.pui-h V5777 V5778 Z5781)) V5779) (cons (hd V5779) (map (lambda Z5782 (shen.pui-h V5777 V5778 Z5782)) (tl V5779)))))) (true V5779))) (defun shen.update-history () (set shen.*history* (cons (shen.trim-it (it)) (value shen.*history*)))) -(defun shen.trim-it (V5768) (cond ((and (shen.+string? V5768) (shen.whitespace? (string->n (hdstr V5768)))) (shen.trim-it (tlstr V5768))) (true V5768))) +(defun shen.trim-it (V5783) (cond ((and (shen.+string? V5783) (shen.whitespace? (string->n (hdstr V5783)))) (shen.trim-it (tlstr V5783))) (true V5783))) -(defun shen.evaluate-lineread (V5787 V5788 V5789) (cond ((and (cons? V5787) (and (= () (tl V5787)) (and (cons? V5788) (and (shen.+string? (hd V5788)) (and (= "!" (hdstr (hd V5788))) (and (shen.+string? (tlstr (hd V5788))) (and (= "!" (hdstr (tlstr (hd V5788)))) (cons? (tl V5788))))))))) (let W5790 (read-from-string (hd (tl V5788))) (let W5791 (set shen.*history* (cons (hd (tl V5788)) (tl V5788))) (let W5792 (pr (shen.app (hd (tl V5788)) " -" shen.a) (stoutput)) (shen.evaluate-lineread W5790 W5791 V5789))))) ((and (cons? V5787) (and (= () (tl V5787)) (and (cons? V5788) (and (shen.+string? (hd V5788)) (= "!" (hdstr (hd V5788))))))) (let W5793 (if (= (tlstr (hd V5788)) "") () (hd (read-from-string (tlstr (hd V5788))))) (let W5794 (shen.use-history W5793 (tlstr (hd V5788)) (tl V5788)) (let W5795 (pr (shen.app W5794 " -" shen.a) (stoutput)) (let W5796 (read-from-string W5794) (let W5797 (set shen.*history* (cons W5794 (tl V5788))) (shen.evaluate-lineread W5796 W5797 V5789))))))) ((and (cons? V5787) (and (= () (tl V5787)) (and (cons? V5788) (and (shen.+string? (hd V5788)) (= "%" (hdstr (hd V5788))))))) (let W5798 (if (= (tlstr (hd V5788)) "") () (hd (read-from-string (tlstr (hd V5788))))) (let W5799 (shen.peek-history W5798 (tlstr (hd V5788)) (tl V5788)) (let W5800 (set shen.*history* (tl V5788)) (abort))))) ((= true V5789) (shen.check-eval-and-print V5787)) ((= false V5789) (shen.eval-and-print V5787)) (true (simple-error "implementation error in shen.evaluate-lineread")))) +(defun shen.evaluate-lineread (V5802 V5803 V5804) (cond ((and (cons? V5802) (and (= () (tl V5802)) (and (cons? V5803) (and (shen.+string? (hd V5803)) (and (= "!" (hdstr (hd V5803))) (and (shen.+string? (tlstr (hd V5803))) (and (= "!" (hdstr (tlstr (hd V5803)))) (cons? (tl V5803))))))))) (let W5805 (read-from-string (hd (tl V5803))) (let W5806 (set shen.*history* (cons (hd (tl V5803)) (tl V5803))) (let W5807 (pr (shen.app (hd (tl V5803)) " +" shen.a) (stoutput)) (shen.evaluate-lineread W5805 W5806 V5804))))) ((and (cons? V5802) (and (= () (tl V5802)) (and (cons? V5803) (and (shen.+string? (hd V5803)) (= "!" (hdstr (hd V5803))))))) (let W5808 (if (= (tlstr (hd V5803)) "") () (hd (read-from-string (tlstr (hd V5803))))) (let W5809 (shen.use-history W5808 (tlstr (hd V5803)) (tl V5803)) (let W5810 (pr (shen.app W5809 " +" shen.a) (stoutput)) (let W5811 (read-from-string W5809) (let W5812 (set shen.*history* (cons W5809 (tl V5803))) (shen.evaluate-lineread W5811 W5812 V5804))))))) ((and (cons? V5802) (and (= () (tl V5802)) (and (cons? V5803) (and (shen.+string? (hd V5803)) (= "%" (hdstr (hd V5803))))))) (let W5813 (if (= (tlstr (hd V5803)) "") () (hd (read-from-string (tlstr (hd V5803))))) (let W5814 (shen.peek-history W5813 (tlstr (hd V5803)) (tl V5803)) (let W5815 (set shen.*history* (tl V5803)) (abort))))) ((= true V5804) (shen.check-eval-and-print V5802)) ((= false V5804) (shen.eval-and-print V5802)) (true (simple-error "implementation error in shen.evaluate-lineread")))) -(defun shen.use-history (V5801 V5802 V5803) (if (integer? V5801) (nth (+ 1 V5801) (reverse V5803)) (if (symbol? V5801) (shen.string-match V5802 V5803) (simple-error "! expects a number or a symbol +(defun shen.use-history (V5816 V5817 V5818) (if (integer? V5816) (nth (+ 1 V5816) (reverse V5818)) (if (symbol? V5816) (shen.string-match V5817 V5818) (simple-error "! expects a number or a symbol ")))) -(defun shen.peek-history (V5804 V5805 V5806) (if (integer? V5804) (pr (cn " -" (shen.app (nth (+ 1 V5804) (reverse V5806)) "" shen.a)) (stoutput)) (if (or (= V5805 "") (symbol? V5804)) (shen.recursive-string-match 0 V5805 (reverse V5806)) (simple-error "% expects a number or a symbol +(defun shen.peek-history (V5819 V5820 V5821) (if (integer? V5819) (pr (cn " +" (shen.app (nth (+ 1 V5819) (reverse V5821)) "" shen.a)) (stoutput)) (if (or (= V5820 "") (symbol? V5819)) (shen.recursive-string-match 0 V5820 (reverse V5821)) (simple-error "% expects a number or a symbol ")))) -(defun shen.string-match (V5816 V5817) (cond ((= () V5817) (simple-error " -input not found")) ((and (cons? V5817) (shen.string-prefix? V5816 (hd V5817))) (hd V5817)) ((cons? V5817) (shen.string-match V5816 (tl V5817))) (true (simple-error "implementation error in shen.string-match")))) +(defun shen.string-match (V5831 V5832) (cond ((= () V5832) (simple-error " +input not found")) ((and (cons? V5832) (shen.string-prefix? V5831 (hd V5832))) (hd V5832)) ((cons? V5832) (shen.string-match V5831 (tl V5832))) (true (simple-error "implementation error in shen.string-match")))) -(defun shen.string-prefix? (V5825 V5826) (cond ((= "" V5825) true) ((and (shen.+string? V5825) (shen.whitespace? (string->n (hdstr V5825)))) (shen.string-prefix? (tlstr V5825) V5826)) ((and (shen.+string? V5826) (shen.whitespace? (string->n (hdstr V5826)))) (shen.string-prefix? V5825 (tlstr V5826))) ((and (shen.+string? V5826) (= "(" (hdstr V5826))) (shen.string-prefix? V5825 (tlstr V5826))) ((and (shen.+string? V5825) (and (shen.+string? V5826) (= (hdstr V5825) (hdstr V5826)))) (shen.string-prefix? (tlstr V5825) (tlstr V5826))) (true false))) +(defun shen.string-prefix? (V5840 V5841) (cond ((= "" V5840) true) ((and (shen.+string? V5840) (shen.whitespace? (string->n (hdstr V5840)))) (shen.string-prefix? (tlstr V5840) V5841)) ((and (shen.+string? V5841) (shen.whitespace? (string->n (hdstr V5841)))) (shen.string-prefix? V5840 (tlstr V5841))) ((and (shen.+string? V5841) (= "(" (hdstr V5841))) (shen.string-prefix? V5840 (tlstr V5841))) ((and (shen.+string? V5840) (and (shen.+string? V5841) (= (hdstr V5840) (hdstr V5841)))) (shen.string-prefix? (tlstr V5840) (tlstr V5841))) (true false))) -(defun shen.recursive-string-match (V5837 V5838 V5839) (cond ((= () V5839) shen.skip) ((cons? V5839) (do (if (shen.string-prefix? V5838 (hd V5839)) (pr (shen.app V5837 (cn ". " (shen.app (hd V5839) " -" shen.a)) shen.a) (stoutput)) shen.skip) (shen.recursive-string-match (+ V5837 1) V5838 (tl V5839)))) (true (simple-error "implementation error in shen.recursive-string-match")))) +(defun shen.recursive-string-match (V5852 V5853 V5854) (cond ((= () V5854) shen.skip) ((cons? V5854) (do (if (shen.string-prefix? V5853 (hd V5854)) (pr (shen.app V5852 (cn ". " (shen.app (hd V5854) " +" shen.a)) shen.a) (stoutput)) shen.skip) (shen.recursive-string-match (+ V5852 1) V5853 (tl V5854)))) (true (simple-error "implementation error in shen.recursive-string-match")))) diff --git a/klambda/track.kl b/klambda/track.kl index 8fe9262..ee62cc1 100644 --- a/klambda/track.kl +++ b/klambda/track.kl @@ -1,66 +1,66 @@ -(defun shen.f-error (V5871) (do (pr (cn "partial function " (shen.app V5871 "; -" shen.a)) (stoutput)) (do (if (and (not (shen.tracked? V5871)) (y-or-n? (cn "track " (shen.app V5871 "? " shen.a)))) (shen.track-function (ps V5871)) shen.ok) (simple-error "aborted")))) +(defun shen.f-error (V5886) (do (pr (cn "partial function " (shen.app V5886 "; +" shen.a)) (stoutput)) (do (if (and (not (shen.tracked? V5886)) (y-or-n? (cn "track " (shen.app V5886 "? " shen.a)))) (shen.track-function (ps V5886)) shen.ok) (simple-error "aborted")))) -(defun shen.tracked? (V5872) (element? V5872 (value shen.*tracking*))) +(defun shen.tracked? (V5887) (element? V5887 (value shen.*tracking*))) -(defun track (V5873) (let W5874 (ps V5873) (shen.track-function W5874))) +(defun track (V5888) (let W5889 (ps V5888) (shen.track-function W5889))) -(defun shen.track-function (V5877) (cond ((and (cons? V5877) (and (= defun (hd V5877)) (and (cons? (tl V5877)) (and (cons? (tl (tl V5877))) (and (cons? (tl (tl (tl V5877)))) (= () (tl (tl (tl (tl V5877)))))))))) (let W5878 (cons defun (cons (hd (tl V5877)) (cons (hd (tl (tl V5877))) (cons (shen.insert-tracking-code (hd (tl V5877)) (hd (tl (tl V5877))) (hd (tl (tl (tl V5877))))) ())))) (let W5879 (eval-kl W5878) (let W5880 (set shen.*tracking* (adjoin (hd (tl V5877)) (value shen.*tracking*))) (hd (tl V5877)))))) (true (simple-error "implementation error in shen.track-function")))) +(defun shen.track-function (V5892) (cond ((and (cons? V5892) (and (= defun (hd V5892)) (and (cons? (tl V5892)) (and (cons? (tl (tl V5892))) (and (cons? (tl (tl (tl V5892)))) (= () (tl (tl (tl (tl V5892)))))))))) (let W5893 (cons defun (cons (hd (tl V5892)) (cons (hd (tl (tl V5892))) (cons (shen.insert-tracking-code (hd (tl V5892)) (hd (tl (tl V5892))) (hd (tl (tl (tl V5892))))) ())))) (let W5894 (eval-kl W5893) (let W5895 (set shen.*tracking* (adjoin (hd (tl V5892)) (value shen.*tracking*))) (hd (tl V5892)))))) (true (simple-error "implementation error in shen.track-function")))) -(defun shen.insert-tracking-code (V5881 V5882 V5883) (cons do (cons (cons set (cons shen.*call* (cons (cons + (cons (cons value (cons shen.*call* ())) (cons 1 ()))) ()))) (cons (cons do (cons (cons shen.input-track (cons (cons value (cons shen.*call* ())) (cons V5881 (cons (shen.cons-form (shen.prolog-track V5883 V5882)) ())))) (cons (cons do (cons (cons shen.terpri-or-read-char ()) (cons (cons let (cons Result (cons V5883 (cons (cons do (cons (cons shen.output-track (cons (cons value (cons shen.*call* ())) (cons V5881 (cons Result ())))) (cons (cons do (cons (cons set (cons shen.*call* (cons (cons - (cons (cons value (cons shen.*call* ())) (cons 1 ()))) ()))) (cons (cons do (cons (cons shen.terpri-or-read-char ()) (cons Result ()))) ()))) ()))) ())))) ()))) ()))) ())))) +(defun shen.insert-tracking-code (V5896 V5897 V5898) (cons do (cons (cons set (cons shen.*call* (cons (cons + (cons (cons value (cons shen.*call* ())) (cons 1 ()))) ()))) (cons (cons do (cons (cons shen.input-track (cons (cons value (cons shen.*call* ())) (cons V5896 (cons (shen.cons-form (shen.prolog-track V5898 V5897)) ())))) (cons (cons do (cons (cons shen.terpri-or-read-char ()) (cons (cons let (cons Result (cons V5898 (cons (cons do (cons (cons shen.output-track (cons (cons value (cons shen.*call* ())) (cons V5896 (cons Result ())))) (cons (cons do (cons (cons set (cons shen.*call* (cons (cons - (cons (cons value (cons shen.*call* ())) (cons 1 ()))) ()))) (cons (cons do (cons (cons shen.terpri-or-read-char ()) (cons Result ()))) ()))) ()))) ())))) ()))) ()))) ())))) -(defun shen.prolog-track (V5884 V5885) (cond ((= (occurrences shen.incinfs V5884) 0) V5885) (true (shen.vector-dereference V5885 (shen.vector-parameter V5885))))) +(defun shen.prolog-track (V5899 V5900) (cond ((= (occurrences shen.incinfs V5899) 0) V5900) (true (shen.vector-dereference V5900 (shen.vector-parameter V5900))))) -(defun shen.vector-parameter (V5888) (cond ((= () V5888) ()) ((and (cons? V5888) (and (cons? (tl V5888)) (and (cons? (tl (tl V5888))) (and (cons? (tl (tl (tl V5888)))) (= () (tl (tl (tl (tl V5888))))))))) (hd V5888)) ((cons? V5888) (shen.vector-parameter (tl V5888))) (true (shen.f-error shen.vector-parameter)))) +(defun shen.vector-parameter (V5903) (cond ((= () V5903) ()) ((and (cons? V5903) (and (cons? (tl V5903)) (and (cons? (tl (tl V5903))) (and (cons? (tl (tl (tl V5903)))) (= () (tl (tl (tl (tl V5903))))))))) (hd V5903)) ((cons? V5903) (shen.vector-parameter (tl V5903))) (true (shen.f-error shen.vector-parameter)))) -(defun shen.vector-dereference (V5891 V5892) (cond ((= () V5892) V5891) ((and (cons? V5891) (and (cons? (tl V5891)) (and (cons? (tl (tl V5891))) (and (cons? (tl (tl (tl V5891)))) (= () (tl (tl (tl (tl V5891))))))))) V5891) ((cons? V5891) (cons (cons shen.deref (cons (hd V5891) (cons V5892 ()))) (shen.vector-dereference (tl V5891) V5892))) (true (shen.f-error shen.vector-dereference)))) +(defun shen.vector-dereference (V5906 V5907) (cond ((= () V5907) V5906) ((and (cons? V5906) (and (cons? (tl V5906)) (and (cons? (tl (tl V5906))) (and (cons? (tl (tl (tl V5906)))) (= () (tl (tl (tl (tl V5906))))))))) V5906) ((cons? V5906) (cons (cons shen.deref (cons (hd V5906) (cons V5907 ()))) (shen.vector-dereference (tl V5906) V5907))) (true (shen.f-error shen.vector-dereference)))) -(defun step (V5895) (cond ((= + V5895) (set shen.*step* true)) ((= - V5895) (set shen.*step* false)) (true (simple-error "step expects a + or a -. +(defun step (V5910) (cond ((= + V5910) (set shen.*step* true)) ((= - V5910) (set shen.*step* false)) (true (simple-error "step expects a + or a -. ")))) (defun step? () (value shen.*step*)) -(defun spy (V5898) (cond ((= + V5898) (set shen.*spy* true)) ((= - V5898) (set shen.*spy* false)) (true (simple-error "spy expects a + or a -. +(defun spy (V5913) (cond ((= + V5913) (set shen.*spy* true)) ((= - V5913) (set shen.*spy* false)) (true (simple-error "spy expects a + or a -. ")))) (defun spy? () (value shen.*spy*)) (defun shen.terpri-or-read-char () (if (value shen.*step*) (shen.check-byte (read-byte (value *stinput*))) (nl 1))) -(defun shen.check-byte (V5901) (cond ((= 94 V5901) (simple-error "aborted")) (true true))) +(defun shen.check-byte (V5916) (cond ((= 94 V5916) (simple-error "aborted")) (true true))) -(defun shen.input-track (V5902 V5903 V5904) (do (pr (cn " -" (shen.app (shen.spaces V5902) (cn "<" (shen.app V5902 (cn "> Inputs to " (shen.app V5903 (cn " -" (shen.app (shen.spaces V5902) "" shen.a)) shen.a)) shen.a)) shen.a)) (stoutput)) (shen.recursively-print V5904))) +(defun shen.input-track (V5917 V5918 V5919) (do (pr (cn " +" (shen.app (shen.spaces V5917) (cn "<" (shen.app V5917 (cn "> Inputs to " (shen.app V5918 (cn " +" (shen.app (shen.spaces V5917) "" shen.a)) shen.a)) shen.a)) shen.a)) (stoutput)) (shen.recursively-print V5919))) -(defun shen.recursively-print (V5907) (cond ((= () V5907) (pr " ==>" (stoutput))) ((cons? V5907) (do (print (hd V5907)) (do (pr ", " (stoutput)) (shen.recursively-print (tl V5907))))) (true (simple-error "implementation error in shen.recursively-print")))) +(defun shen.recursively-print (V5922) (cond ((= () V5922) (pr " ==>" (stoutput))) ((cons? V5922) (do (print (hd V5922)) (do (pr ", " (stoutput)) (shen.recursively-print (tl V5922))))) (true (simple-error "implementation error in shen.recursively-print")))) -(defun shen.spaces (V5908) (cond ((= 0 V5908) "") (true (cn " " (shen.spaces (- V5908 1)))))) +(defun shen.spaces (V5923) (cond ((= 0 V5923) "") (true (cn " " (shen.spaces (- V5923 1)))))) -(defun shen.output-track (V5909 V5910 V5911) (pr (cn " -" (shen.app (shen.spaces V5909) (cn "<" (shen.app V5909 (cn "> Output from " (shen.app V5910 (cn " -" (shen.app (shen.spaces V5909) (cn "==> " (shen.app V5911 "" shen.s)) shen.a)) shen.a)) shen.a)) shen.a)) (stoutput))) +(defun shen.output-track (V5924 V5925 V5926) (pr (cn " +" (shen.app (shen.spaces V5924) (cn "<" (shen.app V5924 (cn "> Output from " (shen.app V5925 (cn " +" (shen.app (shen.spaces V5924) (cn "==> " (shen.app V5926 "" shen.s)) shen.a)) shen.a)) shen.a)) shen.a)) (stoutput))) -(defun untrack (V5912) (do (set shen.*tracking* (remove V5912 (value shen.*tracking*))) (do (trap-error (eval (ps V5912)) (lambda Z5913 V5912)) V5912))) +(defun untrack (V5927) (do (set shen.*tracking* (remove V5927 (value shen.*tracking*))) (do (trap-error (eval (ps V5927)) (lambda Z5928 V5927)) V5927))) -(defun remove (V5914 V5915) (shen.remove-h V5914 V5915 ())) +(defun remove (V5929 V5930) (shen.remove-h V5929 V5930 ())) -(defun shen.remove-h (V5925 V5926 V5927) (cond ((= () V5926) (reverse V5927)) ((and (cons? V5926) (= V5925 (hd V5926))) (shen.remove-h (hd V5926) (tl V5926) V5927)) ((cons? V5926) (shen.remove-h V5925 (tl V5926) (cons (hd V5926) V5927))) (true (simple-error "implementation error in shen.remove-h")))) +(defun shen.remove-h (V5940 V5941 V5942) (cond ((= () V5941) (reverse V5942)) ((and (cons? V5941) (= V5940 (hd V5941))) (shen.remove-h (hd V5941) (tl V5941) V5942)) ((cons? V5941) (shen.remove-h V5940 (tl V5941) (cons (hd V5941) V5942))) (true (simple-error "implementation error in shen.remove-h")))) -(defun profile (V5928) (do (set shen.*profiled* (cons V5928 (value shen.*profiled*))) (shen.profile-help (ps V5928)))) +(defun profile (V5943) (do (set shen.*profiled* (cons V5943 (value shen.*profiled*))) (shen.profile-help (ps V5943)))) -(defun shen.profile-help (V5931) (cond ((and (cons? V5931) (and (= defun (hd V5931)) (and (cons? (tl V5931)) (and (cons? (tl (tl V5931))) (and (cons? (tl (tl (tl V5931)))) (= () (tl (tl (tl (tl V5931)))))))))) (let W5932 (gensym shen.f) (let W5933 (cons defun (cons (hd (tl V5931)) (cons (hd (tl (tl V5931))) (cons (shen.profile-func (hd (tl V5931)) (hd (tl (tl V5931))) (cons W5932 (hd (tl (tl V5931))))) ())))) (let W5934 (cons defun (cons W5932 (cons (hd (tl (tl V5931))) (cons (subst W5932 (hd (tl V5931)) (hd (tl (tl (tl V5931))))) ())))) (let W5935 (eval-kl W5933) (let W5936 (eval-kl W5934) (hd (tl V5931)))))))) (true (simple-error "Cannot profile. +(defun shen.profile-help (V5946) (cond ((and (cons? V5946) (and (= defun (hd V5946)) (and (cons? (tl V5946)) (and (cons? (tl (tl V5946))) (and (cons? (tl (tl (tl V5946)))) (= () (tl (tl (tl (tl V5946)))))))))) (let W5947 (gensym shen.f) (let W5948 (cons defun (cons (hd (tl V5946)) (cons (hd (tl (tl V5946))) (cons (shen.profile-func (hd (tl V5946)) (hd (tl (tl V5946))) (cons W5947 (hd (tl (tl V5946))))) ())))) (let W5949 (cons defun (cons W5947 (cons (hd (tl (tl V5946))) (cons (subst W5947 (hd (tl V5946)) (hd (tl (tl (tl V5946))))) ())))) (let W5950 (eval-kl W5948) (let W5951 (eval-kl W5949) (hd (tl V5946)))))))) (true (simple-error "Cannot profile. ")))) -(defun unprofile (V5937) (do (set shen.*profiled* (remove V5937 (value shen.*profiled*))) (trap-error (eval (ps V5937)) (lambda Z5938 V5937)))) +(defun unprofile (V5952) (do (set shen.*profiled* (remove V5952 (value shen.*profiled*))) (trap-error (eval (ps V5952)) (lambda Z5953 V5952)))) -(defun shen.profiled? (V5939) (element? V5939 (value shen.*profiled*))) +(defun shen.profiled? (V5954) (element? V5954 (value shen.*profiled*))) -(defun shen.profile-func (V5940 V5941 V5942) (cons let (cons Start (cons (cons get-time (cons run ())) (cons (cons let (cons Result (cons V5942 (cons (cons let (cons Finish (cons (cons - (cons (cons get-time (cons run ())) (cons Start ()))) (cons (cons let (cons Record (cons (cons shen.put-profile (cons V5940 (cons (cons + (cons (cons shen.get-profile (cons V5940 ())) (cons Finish ()))) ()))) (cons Result ())))) ())))) ())))) ()))))) +(defun shen.profile-func (V5955 V5956 V5957) (cons let (cons Start (cons (cons get-time (cons run ())) (cons (cons let (cons Result (cons V5957 (cons (cons let (cons Finish (cons (cons - (cons (cons get-time (cons run ())) (cons Start ()))) (cons (cons let (cons Record (cons (cons shen.put-profile (cons V5955 (cons (cons + (cons (cons shen.get-profile (cons V5955 ())) (cons Finish ()))) ()))) (cons Result ())))) ())))) ())))) ()))))) -(defun profile-results (V5943) (let W5944 (shen.get-profile V5943) (let W5945 (shen.put-profile V5943 0) (@p V5943 W5944)))) +(defun profile-results (V5958) (let W5959 (shen.get-profile V5958) (let W5960 (shen.put-profile V5958 0) (@p V5958 W5959)))) -(defun shen.get-profile (V5946) (trap-error (get V5946 profile (value *property-vector*)) (lambda Z5947 0))) +(defun shen.get-profile (V5961) (trap-error (get V5961 profile (value *property-vector*)) (lambda Z5962 0))) -(defun shen.put-profile (V5948 V5949) (put V5948 profile V5949 (value *property-vector*))) +(defun shen.put-profile (V5963 V5964) (put V5963 profile V5964 (value *property-vector*))) diff --git a/klambda/types.kl b/klambda/types.kl index 636e382..418270f 100644 --- a/klambda/types.kl +++ b/klambda/types.kl @@ -1,13 +1,15 @@ -(defun declare (V6010 V6011) (let W6012 (shen.rectify-type V6011) (let W6013 (((((lambda Z6014 (lambda Z6015 (lambda Z6016 (lambda Z6017 (do (shen.incinfs) (shen.variancy (receive (shen.deref V6010 Z6014)) (receive (shen.deref W6012 Z6014)) Z6014 Z6015 Z6016 Z6017)))))) (shen.prolog-vector)) (@v true (@v 0 (vector 0)))) 0) (freeze true)) (let W6018 (eval-kl (shen.prolog-abstraction V6011)) (let W6019 (set shen.*sigf* (shen.assoc-> V6010 W6018 (value shen.*sigf*))) V6010))))) +(defun declare (V6028 V6029) (shen.declare-with-signature V6028 V6029 (freeze (eval-kl (shen.prolog-abstraction V6029))))) -(defun shen.variancy (V6020 V6021 V6022 V6023 V6024 V6025) (if (shen.unlocked? V6023) (let W6026 (shen.newpv V6022) (shen.gc V6022 (let W6027 (shen.newpv V6022) (shen.gc V6022 (do (shen.incinfs) (shen.system-S-h (cons fn (cons V6020 ())) W6026 () V6022 V6023 V6024 (freeze (shen.variancy-signature V6020 W6026 W6027 V6022 V6023 V6024 (freeze (shen.variants? V6020 W6027 V6021 V6022 V6023 V6024 V6025)))))))))) false)) +(defun shen.declare-with-signature (V6030 V6031 V6032) (let W6033 (shen.rectify-type V6031) (let W6034 (((((lambda Z6035 (lambda Z6036 (lambda Z6037 (lambda Z6038 (do (shen.incinfs) (shen.variancy (receive (shen.deref V6030 Z6035)) (receive (shen.deref W6033 Z6035)) Z6035 Z6036 Z6037 Z6038)))))) (shen.prolog-vector)) (@v true (@v 0 (vector 0)))) 0) (freeze true)) (let W6039 (thaw V6032) (let W6040 (set shen.*sigf* (shen.assoc-> V6030 W6039 (value shen.*sigf*))) V6030))))) -(defun shen.variancy-signature (V6028 V6029 V6030 V6031 V6032 V6033 V6034) (let W6035 (+ V6033 1) (let W6036 (if (shen.unlocked? V6032) (let W6037 (shen.lazyderef V6030 V6031) (let W6038 (lambda Z6039 (do (shen.incinfs) (is! V6029 Z6039 V6031 V6032 W6035 (freeze (when (= (arity (shen.deref V6028 V6031)) 0) V6031 V6032 W6035 (freeze (shen.cut V6031 V6032 W6035 V6034))))))) (if (cons? W6037) (let W6040 (shen.lazyderef (hd W6037) V6031) (let W6041 (freeze (let W6042 (shen.lazyderef (tl W6037) V6031) (let W6043 (lambda Z6044 (W6038 Z6044)) (if (cons? W6042) (let W6045 (hd W6042) (let W6046 (shen.lazyderef (tl W6042) V6031) (let W6047 (freeze (W6043 W6045)) (if (= W6046 ()) (thaw W6047) (if (shen.pvar? W6046) (shen.bind! W6046 () V6031 W6047) false))))) (if (shen.pvar? W6042) (let W6048 (shen.newpv V6031) (shen.gc V6031 (shen.bind! W6042 (cons W6048 ()) V6031 (freeze (W6043 W6048))))) false))))) (if (= W6040 -->) (thaw W6041) (if (shen.pvar? W6040) (shen.bind! W6040 --> V6031 W6041) false)))) (if (shen.pvar? W6037) (let W6049 (shen.newpv V6031) (shen.gc V6031 (shen.bind! W6037 (cons --> (cons W6049 ())) V6031 (freeze (W6038 W6049))))) false)))) false) (if (= W6036 false) (let W6050 (if (shen.unlocked? V6032) (do (shen.incinfs) (is! V6029 V6030 V6031 V6032 W6035 V6034)) false) (if (= W6050 false) (shen.unlock V6032 W6035) W6050)) W6036)))) +(defun shen.variancy (V6041 V6042 V6043 V6044 V6045 V6046) (if (shen.unlocked? V6044) (let W6047 (shen.newpv V6043) (shen.gc V6043 (let W6048 (shen.newpv V6043) (shen.gc V6043 (do (shen.incinfs) (shen.system-S-h (cons fn (cons V6041 ())) W6047 () V6043 V6044 V6045 (freeze (shen.variancy-signature V6041 W6047 W6048 V6043 V6044 V6045 (freeze (shen.variants? V6041 W6048 V6042 V6043 V6044 V6045 V6046)))))))))) false)) -(defun shen.variants? (V6051 V6052 V6053 V6054 V6055 V6056 V6057) (let W6058 (if (shen.unlocked? V6055) (do (shen.incinfs) (is! V6052 V6053 V6054 V6055 V6056 V6057)) false) (if (= W6058 false) (if (shen.unlocked? V6055) (let W6059 (shen.newpv V6054) (shen.gc V6054 (do (shen.incinfs) (is W6059 (pr (cn "warning: changing the type of " (shen.app (shen.deref V6051 V6054) " may create errors -" shen.a)) (stoutput)) V6054 V6055 V6056 V6057)))) false) W6058))) +(defun shen.variancy-signature (V6049 V6050 V6051 V6052 V6053 V6054 V6055) (let W6056 (+ V6054 1) (let W6057 (if (shen.unlocked? V6053) (let W6058 (shen.lazyderef V6051 V6052) (let W6059 (lambda Z6060 (do (shen.incinfs) (is! V6050 Z6060 V6052 V6053 W6056 (freeze (when (= (arity (shen.deref V6049 V6052)) 0) V6052 V6053 W6056 (freeze (shen.cut V6052 V6053 W6056 V6055))))))) (if (cons? W6058) (let W6061 (shen.lazyderef (hd W6058) V6052) (let W6062 (freeze (let W6063 (shen.lazyderef (tl W6058) V6052) (let W6064 (lambda Z6065 (W6059 Z6065)) (if (cons? W6063) (let W6066 (hd W6063) (let W6067 (shen.lazyderef (tl W6063) V6052) (let W6068 (freeze (W6064 W6066)) (if (= W6067 ()) (thaw W6068) (if (shen.pvar? W6067) (shen.bind! W6067 () V6052 W6068) false))))) (if (shen.pvar? W6063) (let W6069 (shen.newpv V6052) (shen.gc V6052 (shen.bind! W6063 (cons W6069 ()) V6052 (freeze (W6064 W6069))))) false))))) (if (= W6061 -->) (thaw W6062) (if (shen.pvar? W6061) (shen.bind! W6061 --> V6052 W6062) false)))) (if (shen.pvar? W6058) (let W6070 (shen.newpv V6052) (shen.gc V6052 (shen.bind! W6058 (cons --> (cons W6070 ())) V6052 (freeze (W6059 W6070))))) false)))) false) (if (= W6057 false) (let W6071 (if (shen.unlocked? V6053) (do (shen.incinfs) (is! V6050 V6051 V6052 V6053 W6056 V6055)) false) (if (= W6071 false) (shen.unlock V6053 W6056) W6071)) W6057)))) -(defun shen.prolog-abstraction (V6060) (let W6061 (gensym B) (let W6062 (gensym L) (let W6063 (gensym Key) (let W6064 (gensym C) (let W6065 (gensym V) (let W6066 (shen.extract-vars V6060) (cons lambda (cons W6065 (cons (cons lambda (cons W6061 (cons (cons lambda (cons W6062 (cons (cons lambda (cons W6063 (cons (cons lambda (cons W6064 (cons (shen.stpart W6066 (cons is! (cons W6065 (cons (shen.rcons_form V6060) (cons W6061 (cons W6062 (cons W6063 (cons W6064 ()))))))) W6061) ()))) ()))) ()))) ()))) ())))))))))) +(defun shen.variants? (V6072 V6073 V6074 V6075 V6076 V6077 V6078) (let W6079 (if (shen.unlocked? V6076) (do (shen.incinfs) (is! V6073 V6074 V6075 V6076 V6077 V6078)) false) (if (= W6079 false) (if (shen.unlocked? V6076) (let W6080 (shen.newpv V6075) (shen.gc V6075 (do (shen.incinfs) (is W6080 (pr (cn "warning: changing the type of " (shen.app (shen.deref V6072 V6075) " may create errors +" shen.a)) (stoutput)) V6075 V6076 V6077 V6078)))) false) W6079))) -(defun shen.demod (V6067) (let W6068 (value shen.*demodulation-function*) (W6068 V6067))) +(defun shen.prolog-abstraction (V6081) (let W6082 (gensym B) (let W6083 (gensym L) (let W6084 (gensym Key) (let W6085 (gensym C) (let W6086 (gensym V) (let W6087 (shen.extract-vars V6081) (cons lambda (cons W6086 (cons (cons lambda (cons W6082 (cons (cons lambda (cons W6083 (cons (cons lambda (cons W6084 (cons (cons lambda (cons W6085 (cons (shen.stpart W6087 (cons is! (cons W6086 (cons (shen.rcons_form V6081) (cons W6082 (cons W6083 (cons W6084 (cons W6085 ()))))))) W6082) ()))) ()))) ()))) ()))) ())))))))))) + +(defun shen.demod (V6088) (let W6089 (value shen.*demodulation-function*) (W6089 V6088))) diff --git a/klambda/writer.kl b/klambda/writer.kl index dc851e3..6f722ce 100644 --- a/klambda/writer.kl +++ b/klambda/writer.kl @@ -1,56 +1,56 @@ -(defun print (V6988) (let W6989 (shen.insert V6988 "~S") (let W6990 (pr W6989 (stoutput)) V6988))) +(defun print (V7009) (let W7010 (shen.insert V7009 "~S") (let W7011 (pr W7010 (stoutput)) V7009))) -(defun pr (V6991 V6992) (if (value *hush*) V6991 (if (char-stream? V6992) (write-string V6991 V6992) (shen.write-chars V6991 V6992 (shen.string->byte V6991 0) 1)))) +(defun pr (V7012 V7013) (if (value *hush*) V7012 (if (char-stream? V7013) (write-string V7012 V7013) (shen.write-chars V7012 V7013 (shen.string->byte V7012 0) 1)))) -(defun shen.string->byte (V6993 V6994) (trap-error (string->n (pos V6993 V6994)) (lambda Z6995 shen.eos))) +(defun shen.string->byte (V7014 V7015) (trap-error (string->n (pos V7014 V7015)) (lambda Z7016 shen.eos))) -(defun shen.write-chars (V6996 V6997 V6998 V6999) (cond ((= shen.eos V6998) V6996) (true (shen.write-chars V6996 V6997 (do (write-byte V6998 V6997) (shen.string->byte V6996 V6999)) (+ V6999 1))))) +(defun shen.write-chars (V7017 V7018 V7019 V7020) (cond ((= shen.eos V7019) V7017) (true (shen.write-chars V7017 V7018 (do (write-byte V7019 V7018) (shen.string->byte V7017 V7020)) (+ V7020 1))))) -(defun shen.mkstr (V7000 V7001) (cond ((string? V7000) (shen.mkstr-l (shen.proc-nl V7000) V7001)) (true (shen.mkstr-r (cons shen.proc-nl (cons V7000 ())) V7001)))) +(defun shen.mkstr (V7021 V7022) (cond ((string? V7021) (shen.mkstr-l (shen.proc-nl V7021) V7022)) (true (shen.mkstr-r (cons shen.proc-nl (cons V7021 ())) V7022)))) -(defun shen.mkstr-l (V7006 V7007) (cond ((= () V7007) V7006) ((cons? V7007) (shen.mkstr-l (shen.insert-l (hd V7007) V7006) (tl V7007))) (true (simple-error "implementation error in shen.mkstr-l")))) +(defun shen.mkstr-l (V7027 V7028) (cond ((= () V7028) V7027) ((cons? V7028) (shen.mkstr-l (shen.insert-l (hd V7028) V7027) (tl V7028))) (true (simple-error "implementation error in shen.mkstr-l")))) -(defun shen.insert-l (V7014 V7015) (cond ((= "" V7015) "") ((and (shen.+string? V7015) (and (= "~" (hdstr V7015)) (and (shen.+string? (tlstr V7015)) (= "A" (hdstr (tlstr V7015)))))) (cons shen.app (cons V7014 (cons (tlstr (tlstr V7015)) (cons shen.a ()))))) ((and (shen.+string? V7015) (and (= "~" (hdstr V7015)) (and (shen.+string? (tlstr V7015)) (= "R" (hdstr (tlstr V7015)))))) (cons shen.app (cons V7014 (cons (tlstr (tlstr V7015)) (cons shen.r ()))))) ((and (shen.+string? V7015) (and (= "~" (hdstr V7015)) (and (shen.+string? (tlstr V7015)) (= "S" (hdstr (tlstr V7015)))))) (cons shen.app (cons V7014 (cons (tlstr (tlstr V7015)) (cons shen.s ()))))) ((shen.+string? V7015) (shen.factor-cn (cons cn (cons (hdstr V7015) (cons (shen.insert-l V7014 (tlstr V7015)) ()))))) ((and (cons? V7015) (and (= cn (hd V7015)) (and (cons? (tl V7015)) (and (cons? (tl (tl V7015))) (= () (tl (tl (tl V7015)))))))) (cons cn (cons (hd (tl V7015)) (cons (shen.insert-l V7014 (hd (tl (tl V7015)))) ())))) ((and (cons? V7015) (and (= shen.app (hd V7015)) (and (cons? (tl V7015)) (and (cons? (tl (tl V7015))) (and (cons? (tl (tl (tl V7015)))) (= () (tl (tl (tl (tl V7015)))))))))) (cons shen.app (cons (hd (tl V7015)) (cons (shen.insert-l V7014 (hd (tl (tl V7015)))) (tl (tl (tl V7015))))))) (true (simple-error "implementation error in shen.insert-l")))) +(defun shen.insert-l (V7035 V7036) (cond ((= "" V7036) "") ((and (shen.+string? V7036) (and (= "~" (hdstr V7036)) (and (shen.+string? (tlstr V7036)) (= "A" (hdstr (tlstr V7036)))))) (cons shen.app (cons V7035 (cons (tlstr (tlstr V7036)) (cons shen.a ()))))) ((and (shen.+string? V7036) (and (= "~" (hdstr V7036)) (and (shen.+string? (tlstr V7036)) (= "R" (hdstr (tlstr V7036)))))) (cons shen.app (cons V7035 (cons (tlstr (tlstr V7036)) (cons shen.r ()))))) ((and (shen.+string? V7036) (and (= "~" (hdstr V7036)) (and (shen.+string? (tlstr V7036)) (= "S" (hdstr (tlstr V7036)))))) (cons shen.app (cons V7035 (cons (tlstr (tlstr V7036)) (cons shen.s ()))))) ((shen.+string? V7036) (shen.factor-cn (cons cn (cons (hdstr V7036) (cons (shen.insert-l V7035 (tlstr V7036)) ()))))) ((and (cons? V7036) (and (= cn (hd V7036)) (and (cons? (tl V7036)) (and (cons? (tl (tl V7036))) (= () (tl (tl (tl V7036)))))))) (cons cn (cons (hd (tl V7036)) (cons (shen.insert-l V7035 (hd (tl (tl V7036)))) ())))) ((and (cons? V7036) (and (= shen.app (hd V7036)) (and (cons? (tl V7036)) (and (cons? (tl (tl V7036))) (and (cons? (tl (tl (tl V7036)))) (= () (tl (tl (tl (tl V7036)))))))))) (cons shen.app (cons (hd (tl V7036)) (cons (shen.insert-l V7035 (hd (tl (tl V7036)))) (tl (tl (tl V7036))))))) (true (simple-error "implementation error in shen.insert-l")))) -(defun shen.factor-cn (V7016) (cond ((and (cons? V7016) (and (= cn (hd V7016)) (and (cons? (tl V7016)) (and (cons? (tl (tl V7016))) (and (cons? (hd (tl (tl V7016)))) (and (= cn (hd (hd (tl (tl V7016))))) (and (cons? (tl (hd (tl (tl V7016))))) (and (cons? (tl (tl (hd (tl (tl V7016)))))) (and (= () (tl (tl (tl (hd (tl (tl V7016))))))) (and (= () (tl (tl (tl V7016)))) (and (string? (hd (tl V7016))) (string? (hd (tl (hd (tl (tl V7016))))))))))))))))) (cons cn (cons (cn (hd (tl V7016)) (hd (tl (hd (tl (tl V7016)))))) (tl (tl (hd (tl (tl V7016)))))))) (true V7016))) +(defun shen.factor-cn (V7037) (cond ((and (cons? V7037) (and (= cn (hd V7037)) (and (cons? (tl V7037)) (and (cons? (tl (tl V7037))) (and (cons? (hd (tl (tl V7037)))) (and (= cn (hd (hd (tl (tl V7037))))) (and (cons? (tl (hd (tl (tl V7037))))) (and (cons? (tl (tl (hd (tl (tl V7037)))))) (and (= () (tl (tl (tl (hd (tl (tl V7037))))))) (and (= () (tl (tl (tl V7037)))) (and (string? (hd (tl V7037))) (string? (hd (tl (hd (tl (tl V7037))))))))))))))))) (cons cn (cons (cn (hd (tl V7037)) (hd (tl (hd (tl (tl V7037)))))) (tl (tl (hd (tl (tl V7037)))))))) (true V7037))) -(defun shen.proc-nl (V7019) (cond ((= "" V7019) "") ((and (shen.+string? V7019) (and (= "~" (hdstr V7019)) (and (shen.+string? (tlstr V7019)) (= "%" (hdstr (tlstr V7019)))))) (cn (n->string 10) (shen.proc-nl (tlstr (tlstr V7019))))) ((shen.+string? V7019) (cn (hdstr V7019) (shen.proc-nl (tlstr V7019)))) (true (simple-error "implementation error in shen.proc-nl")))) +(defun shen.proc-nl (V7040) (cond ((= "" V7040) "") ((and (shen.+string? V7040) (and (= "~" (hdstr V7040)) (and (shen.+string? (tlstr V7040)) (= "%" (hdstr (tlstr V7040)))))) (cn (n->string 10) (shen.proc-nl (tlstr (tlstr V7040))))) ((shen.+string? V7040) (cn (hdstr V7040) (shen.proc-nl (tlstr V7040)))) (true (simple-error "implementation error in shen.proc-nl")))) -(defun shen.mkstr-r (V7024 V7025) (cond ((= () V7025) V7024) ((cons? V7025) (shen.mkstr-r (cons shen.insert (cons (hd V7025) (cons V7024 ()))) (tl V7025))) (true (simple-error "implementation error in shen.mkstr-r")))) +(defun shen.mkstr-r (V7045 V7046) (cond ((= () V7046) V7045) ((cons? V7046) (shen.mkstr-r (cons shen.insert (cons (hd V7046) (cons V7045 ()))) (tl V7046))) (true (simple-error "implementation error in shen.mkstr-r")))) -(defun shen.insert (V7026 V7027) (shen.insert-h V7026 V7027 "")) +(defun shen.insert (V7047 V7048) (shen.insert-h V7047 V7048 "")) -(defun shen.insert-h (V7036 V7037 V7038) (cond ((= "" V7037) V7038) ((and (shen.+string? V7037) (and (= "~" (hdstr V7037)) (and (shen.+string? (tlstr V7037)) (= "A" (hdstr (tlstr V7037)))))) (cn V7038 (shen.app V7036 (tlstr (tlstr V7037)) shen.a))) ((and (shen.+string? V7037) (and (= "~" (hdstr V7037)) (and (shen.+string? (tlstr V7037)) (= "R" (hdstr (tlstr V7037)))))) (cn V7038 (shen.app V7036 (tlstr (tlstr V7037)) shen.r))) ((and (shen.+string? V7037) (and (= "~" (hdstr V7037)) (and (shen.+string? (tlstr V7037)) (= "S" (hdstr (tlstr V7037)))))) (cn V7038 (shen.app V7036 (tlstr (tlstr V7037)) shen.s))) ((shen.+string? V7037) (shen.insert-h V7036 (tlstr V7037) (cn V7038 (hdstr V7037)))) (true (simple-error "implementation error in shen.insert-h")))) +(defun shen.insert-h (V7057 V7058 V7059) (cond ((= "" V7058) V7059) ((and (shen.+string? V7058) (and (= "~" (hdstr V7058)) (and (shen.+string? (tlstr V7058)) (= "A" (hdstr (tlstr V7058)))))) (cn V7059 (shen.app V7057 (tlstr (tlstr V7058)) shen.a))) ((and (shen.+string? V7058) (and (= "~" (hdstr V7058)) (and (shen.+string? (tlstr V7058)) (= "R" (hdstr (tlstr V7058)))))) (cn V7059 (shen.app V7057 (tlstr (tlstr V7058)) shen.r))) ((and (shen.+string? V7058) (and (= "~" (hdstr V7058)) (and (shen.+string? (tlstr V7058)) (= "S" (hdstr (tlstr V7058)))))) (cn V7059 (shen.app V7057 (tlstr (tlstr V7058)) shen.s))) ((shen.+string? V7058) (shen.insert-h V7057 (tlstr V7058) (cn V7059 (hdstr V7058)))) (true (simple-error "implementation error in shen.insert-h")))) -(defun shen.app (V7039 V7040 V7041) (cn (shen.arg->str V7039 V7041) V7040)) +(defun shen.app (V7060 V7061 V7062) (cn (shen.arg->str V7060 V7062) V7061)) -(defun shen.arg->str (V7045 V7046) (cond ((= V7045 (fail)) "...") ((shen.list? V7045) (shen.list->str V7045 V7046)) ((string? V7045) (shen.str->str V7045 V7046)) ((absvector? V7045) (shen.vector->str V7045 V7046)) (true (shen.atom->str V7045)))) +(defun shen.arg->str (V7066 V7067) (cond ((= V7066 (fail)) "...") ((shen.list? V7066) (shen.list->str V7066 V7067)) ((string? V7066) (shen.str->str V7066 V7067)) ((absvector? V7066) (shen.vector->str V7066 V7067)) (true (shen.atom->str V7066)))) -(defun shen.list->str (V7047 V7048) (cond ((= shen.r V7048) (@s "(" (@s (shen.iter-list V7047 shen.r (shen.maxseq)) ")"))) (true (@s "[" (@s (shen.iter-list V7047 V7048 (shen.maxseq)) "]"))))) +(defun shen.list->str (V7068 V7069) (cond ((= shen.r V7069) (@s "(" (@s (shen.iter-list V7068 shen.r (shen.maxseq)) ")"))) (true (@s "[" (@s (shen.iter-list V7068 V7069 (shen.maxseq)) "]"))))) (defun shen.maxseq () (value *maximum-print-sequence-size*)) -(defun shen.iter-list (V7059 V7060 V7061) (cond ((= () V7059) "") ((= 0 V7061) "... etc") ((and (cons? V7059) (= () (tl V7059))) (shen.arg->str (hd V7059) V7060)) ((cons? V7059) (@s (shen.arg->str (hd V7059) V7060) (@s " " (shen.iter-list (tl V7059) V7060 (- V7061 1))))) (true (@s "|" (@s " " (shen.arg->str V7059 V7060)))))) +(defun shen.iter-list (V7080 V7081 V7082) (cond ((= () V7080) "") ((= 0 V7082) "... etc") ((and (cons? V7080) (= () (tl V7080))) (shen.arg->str (hd V7080) V7081)) ((cons? V7080) (@s (shen.arg->str (hd V7080) V7081) (@s " " (shen.iter-list (tl V7080) V7081 (- V7082 1))))) (true (@s "|" (@s " " (shen.arg->str V7080 V7081)))))) -(defun shen.str->str (V7064 V7065) (cond ((= shen.a V7065) V7064) (true (@s (n->string 34) (@s V7064 (n->string 34)))))) +(defun shen.str->str (V7085 V7086) (cond ((= shen.a V7086) V7085) (true (@s (n->string 34) (@s V7085 (n->string 34)))))) -(defun shen.vector->str (V7066 V7067) (if (shen.print-vector? V7066) ((fn (<-address V7066 0)) V7066) (if (vector? V7066) (@s "<" (@s (shen.iter-vector V7066 1 V7067 (shen.maxseq)) ">")) (@s "<" (@s "<" (@s (shen.iter-vector V7066 0 V7067 (shen.maxseq)) ">>")))))) +(defun shen.vector->str (V7087 V7088) (if (shen.print-vector? V7087) ((fn (<-address V7087 0)) V7087) (if (vector? V7087) (@s "<" (@s (shen.iter-vector V7087 1 V7088 (shen.maxseq)) ">")) (@s "<" (@s "<" (@s (shen.iter-vector V7087 0 V7088 (shen.maxseq)) ">>")))))) -(defun shen.empty-absvector? (V7068) (= V7068 (value shen.*empty-absvector*))) +(defun shen.empty-absvector? (V7089) (= V7089 (value shen.*empty-absvector*))) -(defun shen.print-vector? (V7069) (and (not (shen.empty-absvector? V7069)) (let W7070 (<-address V7069 0) (or (= W7070 shen.tuple) (or (= W7070 shen.pvar) (or (= W7070 shen.dictionary) (and (not (number? W7070)) (shen.fbound? W7070)))))))) +(defun shen.print-vector? (V7090) (and (not (shen.empty-absvector? V7090)) (let W7091 (<-address V7090 0) (or (= W7091 shen.tuple) (or (= W7091 shen.pvar) (or (= W7091 shen.dictionary) (and (not (number? W7091)) (shen.fbound? W7091)))))))) -(defun shen.fbound? (V7071) (not (= (arity V7071) -1))) +(defun shen.fbound? (V7092) (not (= (arity V7092) -1))) -(defun shen.tuple (V7072) (cn "(@p " (shen.app (<-address V7072 1) (cn " " (shen.app (<-address V7072 2) ")" shen.s)) shen.s))) +(defun shen.tuple (V7093) (cn "(@p " (shen.app (<-address V7093 1) (cn " " (shen.app (<-address V7093 2) ")" shen.s)) shen.s))) -(defun shen.dictionary (V7073) "(dict ...)") +(defun shen.dictionary (V7094) "(dict ...)") -(defun shen.iter-vector (V7080 V7081 V7082 V7083) (cond ((= 0 V7083) "... etc") (true (let W7084 (trap-error (<-address V7080 V7081) (lambda Z7085 shen.out-of-bounds)) (let W7086 (trap-error (<-address V7080 (+ V7081 1)) (lambda Z7087 shen.out-of-bounds)) (if (= W7084 shen.out-of-bounds) "" (if (= W7086 shen.out-of-bounds) (shen.arg->str W7084 V7082) (@s (shen.arg->str W7084 V7082) (@s " " (shen.iter-vector V7080 (+ V7081 1) V7082 (- V7083 1))))))))))) +(defun shen.iter-vector (V7101 V7102 V7103 V7104) (cond ((= 0 V7104) "... etc") (true (let W7105 (trap-error (<-address V7101 V7102) (lambda Z7106 shen.out-of-bounds)) (let W7107 (trap-error (<-address V7101 (+ V7102 1)) (lambda Z7108 shen.out-of-bounds)) (if (= W7105 shen.out-of-bounds) "" (if (= W7107 shen.out-of-bounds) (shen.arg->str W7105 V7103) (@s (shen.arg->str W7105 V7103) (@s " " (shen.iter-vector V7101 (+ V7102 1) V7103 (- V7104 1))))))))))) -(defun shen.atom->str (V7088) (trap-error (str V7088) (lambda Z7089 (shen.funexstring)))) +(defun shen.atom->str (V7109) (trap-error (str V7109) (lambda Z7110 (shen.funexstring)))) (defun shen.funexstring () (@s "" (@s "f" (@s "u" (@s "n" (@s "e" (@s (shen.arg->str (gensym (intern "x")) shen.a) ""))))))) -(defun shen.list? (V7090) (or (empty? V7090) (cons? V7090))) +(defun shen.list? (V7111) (or (empty? V7111) (cons? V7111))) diff --git a/run-kernel-tests.lua b/run-kernel-tests.lua index d27ac1e..307c7ed 100644 --- a/run-kernel-tests.lua +++ b/run-kernel-tests.lua @@ -136,7 +136,7 @@ print("kerneltests result:", ok2 and "ok" or e2) -- The suite passes only if it finished, nothing failed and every test ran. The number -- of tests belongs to the kernel release: a new kernel needs an entry here. -- SHEN_EXPECTED_TESTS is for this script's own spec. -local EXPECTED_BY_KERNEL = { ["43.2"] = 154 } +local EXPECTED_BY_KERNEL = { ["43.2"] = 154, ["43.4"] = 154 } local version = P.F["version"]() local EXPECTED = tonumber(os.getenv("SHEN_EXPECTED_TESTS")) or EXPECTED_BY_KERNEL[version] if not EXPECTED then diff --git a/test/boot_cache_spec.lua b/test/boot_cache_spec.lua index d788f7e..0e82587 100644 --- a/test/boot_cache_spec.lua +++ b/test/boot_cache_spec.lua @@ -7,9 +7,10 @@ -- * the kernel bytecode cache (~/.cache/shen-lua/kernel-.bin) holds the -- compiled ShenOSKernel 42.2 modules, including the precompiled stdlib -- (klambda/stlib.kl); --- * its sidecar (.stlib) holds the 290 standard-library type --- signatures that (stlib.initialise-types) declares, as dumped prolog --- abstractions, plus the gensym / inference counters `declare` advances; +-- * (until 43.2 a sidecar, .stlib, held the stdlib signatures' +-- dumped prolog abstractions; 43.3 precompiles them into stlib.kl, so that +-- sidecar is gone). The two datatype rule compiles stay in +-- .stlibdt; -- * two kernel functions that used to run the compiler at boot, -- shen.lambda-entry and shen.assoc->, are native. -- @@ -102,16 +103,19 @@ do local d1, d2 = fresh(), fresh() -- (a) nothing cached at all: the reference local ref = boot("SHEN_KERNEL_CACHE=off SHEN_FASL=off") - -- (b) kernel bytecode cache + stdlib signature sidecar cold, then warm + -- (b) kernel bytecode cache + stdlib datatype cache cold, then warm local kc = "SHEN_KERNEL_CACHE=" .. sh_quote(kcache) local kcold = boot(kc .. " SHEN_FASL_DIR=" .. sh_quote(d1)) local sidecar = io.open(kcache .. ".stlib", "rb") local sidecar_data = sidecar and sidecar:read("*a") if sidecar then sidecar:close() end + local dtf = io.open(kcache .. ".stlibdt", "rb") + local dt_data = dtf and dtf:read("*a") + if dtf then dtf:close() end local kwarm = boot(kc .. " SHEN_FASL_DIR=" .. sh_quote(d1)) local kwarm2 = boot(kc .. " SHEN_FASL_DIR=" .. sh_quote(d2)) - -- ShenOSKernel 43.1 plus extensions, checked-integer, and the 290 stdlib + -- ShenOSKernel 43.4 plus extensions, checked-integer, and the 290 stdlib -- signatures. The public stream APIs add three signatures over 42.2. check(ref:find("sigf 465 ", 1, true) ~= nil, "#46: uncached boot registers kernel, extension, checked-integer and stdlib signatures") @@ -120,30 +124,33 @@ do check(ref:find("arity 2", 1, true) ~= nil, "#46: stdlib functions are registered (arity filter = 2)") check(kcold == ref, "#46: cold kernel-bytecode-cache boot == uncached boot") - check(sidecar_data ~= nil and sidecar_data:sub(1, 8) == "SHENSIG2", - "#46: a cold boot writes the stdlib signature sidecar") - check(kwarm == ref, "#46: WARM kernel-bytecode-cache + signature sidecar boot == uncached boot") + check(sidecar_data == nil, + "#46: no stdlib signature sidecar since 43.3 (signatures are precompiled in stlib.kl)") + check(dt_data ~= nil and dt_data:sub(1, 7) == "SHENDT1", + "#46: a cold boot writes the stdlib datatype cache") + check(kwarm == ref, "#46: WARM kernel-bytecode-cache + datatype cache boot == uncached boot") check(kwarm2 == ref, "#46: warm boot with a fresh fasl dir == uncached boot") - -- A damaged sidecar must be a miss (the real declares run), never an error - -- or a half-applied replay. + -- A damaged datatype cache must be a miss (the real rule compile runs), never + -- an error or a half-applied replay. do - local w = io.open(kcache .. ".stlib", "wb") - w:write((sidecar_data or "SHENSIG2\n"):sub(1, 4000)); w:close() + local w = io.open(kcache .. ".stlibdt", "wb") + w:write((dt_data or "SHENDT1\n"):sub(1, 400)); w:close() local damaged = boot(kc .. " SHEN_FASL_DIR=" .. sh_quote(d1)) - check(damaged == ref, "#46: a truncated signature sidecar falls back to the real declares") + check(damaged == ref, "#46: a truncated datatype cache falls back to the real compile") local again = boot(kc .. " SHEN_FASL_DIR=" .. sh_quote(d1)) - check(again == ref, "#46: the sidecar is rewritten after a miss") + check(again == ref, "#46: the datatype cache is rewritten after a miss") end - os.remove(script); os.remove(kcache); os.remove(kcache .. ".stlib") + os.remove(script); os.remove(kcache); os.remove(kcache .. ".stlib"); os.remove(kcache .. ".stlibdt") for _, d in ipairs({ d1, d2 }) do os.execute("rm -rf " .. sh_quote(d)) end end -- --------------------------------------------------------------------------- -- Part 1b — the default kernel cache is per-user, not per-cwd (issue #87). -- --- With SHEN_KERNEL_CACHE unset the cache (and its .stlib sidecar) goes to +-- With SHEN_KERNEL_CACHE unset the cache (and, when fasl is on, its .stlibdt +-- sidecar) goes to -- $XDG_CACHE_HOME/shen-lua/, else $HOME/.cache/shen-lua/, created on first -- write; nothing is written into the directory shen runs from. -- --------------------------------------------------------------------------- @@ -198,15 +205,15 @@ do check(out:match("3%s*$") ~= nil, "#87: boot with the default cache path works (got " .. out .. ")") check(ls(cwd) == "", "#87: nothing is written into the cwd (got " .. ls(cwd) .. ")") local files = ls(xdg .. "/shen-lua") - check(files:match("^kernel%-%x+%.bin kernel%-%x+%.bin%.stlib$") ~= nil, - "#87: kernel cache and sidecar land in $XDG_CACHE_HOME/shen-lua (got " .. files .. ")") + check(files:match("^kernel%-%x+%.bin$") ~= nil, + "#87: kernel cache lands in $XDG_CACHE_HOME/shen-lua (got " .. files .. ")") check(ls(home) == "", "#87: $HOME is untouched when XDG_CACHE_HOME is set") out = boot_in(cwd, "XDG_CACHE_HOME=" .. sh_quote(xdg) .. " HOME=" .. sh_quote(home)) check(out:match("3%s*$") ~= nil, "#87: warm boot from the per-user cache works") out = boot_in(cwd, "HOME=" .. sh_quote(home)) files = ls(home .. "/.cache/shen-lua") - check(out:match("3%s*$") ~= nil and files:match("^kernel%-%x+%.bin kernel%-%x+%.bin%.stlib$") ~= nil, + check(out:match("3%s*$") ~= nil and files:match("^kernel%-%x+%.bin$") ~= nil, "#87: without XDG_CACHE_HOME the cache lands in $HOME/.cache/shen-lua (got " .. files .. ")") check(ls(cwd) == "", "#87: still nothing in the cwd") diff --git a/tests/extensions/expand-dynamic/tests.shen b/tests/extensions/expand-dynamic/tests.shen new file mode 100644 index 0000000..ad58aeb --- /dev/null +++ b/tests/extensions/expand-dynamic/tests.shen @@ -0,0 +1,235 @@ +(load "extensions/expand-dynamic.shen") + +(define expand-dynamic-tests.identity X -> X) +(define expand-dynamic-tests.four X Y Z -> X) +(define expand-dynamic-tests.arguments X Y Z -> X) + +(define expand-dynamic-tests.literal + [] -> [] + [X | Xs] -> [cons (expand-dynamic-tests.literal X) (expand-dynamic-tests.literal Xs)] + X -> [protect X] where (and (symbol? X) (variable? X)) + X -> X) + +(define expand-dynamic-tests.expand + F Type -> (shen.x.expand-dynamic.expand-declare/checked + [declare F (expand-dynamic-tests.literal Type)])) + +(define expand-dynamic-tests.signature + F -> (tl (assoc F (value shen.*sigf*)))) + +(define expand-dynamic-tests.invoke + Signature Type -> (Signature Type (shen.prolog-vector) + (@v true (@v 0 (vector 0))) 0 (freeze success))) + +(let Expanded (expand-dynamic-tests.expand expand-dynamic-tests.identity + [(protect A) --> (protect A)]) + (do + (extension-tests.assert-equal "expanded signature contains no eval-kl" + (occurrences eval-kl Expanded) 0) + (extension-tests.assert-equal "expanded declare preserves its return value" + (eval-kl Expanded) expand-dynamic-tests.identity))) + +(let Signature (expand-dynamic-tests.signature expand-dynamic-tests.identity) + (do + (extension-tests.assert-equal "shared type variables unify consistently" + (expand-dynamic-tests.invoke Signature [number --> number]) success) + (extension-tests.assert-equal "shared type variables reject distinct types" + (expand-dynamic-tests.invoke Signature [number --> symbol]) false) + (extension-tests.assert-equal "signature calls get fresh type variables" + (expand-dynamic-tests.invoke Signature [symbol --> symbol]) success))) + +(eval-kl (expand-dynamic-tests.expand expand-dynamic-tests.four + [(protect A) --> [(protect B) --> [(protect C) --> (protect D)]]])) +(extension-tests.assert-equal "portable expansion handles more than three variables" + (expand-dynamic-tests.invoke + (expand-dynamic-tests.signature expand-dynamic-tests.four) + [number --> [symbol --> [string --> boolean]]]) success) + +(set expand-dynamic-tests.*signature* [number --> number]) +(set expand-dynamic-tests.*effects* 0) +(let Original [declare expand-dynamic-tests.identity + [do [set expand-dynamic-tests.*effects* + [+ 1 [value expand-dynamic-tests.*effects*]]] + [value expand-dynamic-tests.*signature*]]] + Expanded (shen.x.expand-dynamic.expand-declare/checked Original) + (do + (extension-tests.assert-equal "computed signatures keep ordinary declare" Expanded Original) + (extension-tests.assert-equal "expansion does not execute signature effects" + (value expand-dynamic-tests.*effects*) 0) + (set expand-dynamic-tests.*signature* [symbol --> symbol]) + (eval-kl Expanded) + (extension-tests.assert-equal "computed signature is evaluated once at runtime" + (value expand-dynamic-tests.*effects*) 1) + (extension-tests.assert-equal "computed declaration uses the current signature" + (expand-dynamic-tests.invoke + (expand-dynamic-tests.signature expand-dynamic-tests.identity) + [symbol --> symbol]) success))) + +(define expand-dynamic-tests.capture + F -> (let File "tests/extensions/expand-dynamic/warnings.tmp" + Saved (value *stoutput*) + Out (open File out) + _ (set *stoutput* Out) + Result (trap-error (thaw F) + (/. E (do (set *stoutput* Saved) (close Out) + (simple-error (error-to-string E))))) + _ (set *stoutput* Saved) + _ (close Out) + (read-file-as-string File))) + +(expand-dynamic-tests.capture + (freeze (declare expand-dynamic-tests.identity [number --> number]))) +(let Ordinary (expand-dynamic-tests.capture + (freeze (declare expand-dynamic-tests.identity [symbol --> symbol]))) + Reset (expand-dynamic-tests.capture + (freeze (declare expand-dynamic-tests.identity [number --> number]))) + Expanded (expand-dynamic-tests.expand expand-dynamic-tests.identity [symbol --> symbol]) + Checked (expand-dynamic-tests.capture (freeze (eval-kl Expanded))) + ResetAgain (expand-dynamic-tests.capture + (freeze (declare expand-dynamic-tests.identity [number --> number]))) + Factory (expand-dynamic-tests.capture + (freeze (shen.declare-with-signature expand-dynamic-tests.identity + [symbol --> symbol] + (freeze (do (output "factory~%") + (eval-kl (shen.prolog-abstraction [symbol --> symbol]))))))) + (do + (extension-tests.assert-equal "ordinary declaration performs a variancy check" + (not (= Ordinary "")) true) + (extension-tests.assert-equal "expanded declaration preserves variancy warnings" + Checked Ordinary) + (extension-tests.assert-equal "validation runs before the signature factory" + Factory (cn Ordinary "factoryc#10;")))) + +(expand-dynamic-tests.capture + (freeze (declare expand-dynamic-tests.identity [number --> number]))) +(extension-tests.assert-error "signature factory failures remain catchable" + (freeze (shen.declare-with-signature expand-dynamic-tests.identity + [symbol --> symbol] (freeze (simple-error "signature factory failure"))))) +(extension-tests.assert-equal "failed factories preserve the old signature" + (expand-dynamic-tests.invoke + (expand-dynamic-tests.signature expand-dynamic-tests.identity) + [number --> number]) success) + +(set expand-dynamic-tests.*names* 0) +(let Name [do [set expand-dynamic-tests.*names* [+ 1 [value expand-dynamic-tests.*names*]]] + expand-dynamic-tests.identity] + Expanded (expand-dynamic-tests.expand Name [number --> number]) + (do + (extension-tests.assert-equal "expansion does not evaluate the declared name" + (value expand-dynamic-tests.*names*) 0) + (extension-tests.assert-equal "computed names retain declaration return values" + (eval-kl Expanded) expand-dynamic-tests.identity) + (extension-tests.assert-equal "computed names are evaluated once" + (value expand-dynamic-tests.*names*) 1))) + +(delete-file "tests/extensions/expand-dynamic/warnings.tmp") + + +(define expand-dynamic-tests.initializer + Expr -> (shen.x.expand-dynamic.expand-initializer Expr [expand-dynamic-tests.identity] (/. Ignored false))) + +(let Original [update-lambda-table expand-dynamic-tests.identity 1] + Expanded (expand-dynamic-tests.initializer Original) + (do + (extension-tests.assert-equal "known registrations use the portable installer" + (hd Expanded) shen.update-lambda-table/precompiled) + (extension-tests.assert-equal "expanded registration contains no eval-kl" + (occurrences eval-kl Expanded) 0) + (extension-tests.assert-equal "registration expansion is idempotent" + (expand-dynamic-tests.initializer Expanded) Expanded))) + +(map (/. Expr + (extension-tests.assert-equal "dynamic or unknown registrations retain their form" + (expand-dynamic-tests.initializer Expr) Expr)) + [[update-lambda-table unknown-function 1] + [update-lambda-table expand-dynamic-tests.identity [value dynamic-arity]] + [update-lambda-table expand-dynamic-tests.identity -1] + [protect [update-lambda-table expand-dynamic-tests.identity 1]] + [expand-dynamic-tests.arguments update-lambda-table expand-dynamic-tests.identity 1] + [lambda update-lambda-table [update-lambda-table expand-dynamic-tests.identity 1]] + [lambda expand-dynamic-tests.identity [update-lambda-table expand-dynamic-tests.identity 1]] + [lambda shen.precompiled-function? [update-lambda-table expand-dynamic-tests.identity 1]] + [lambda shen.update-lambda-table/precompiled [update-lambda-table expand-dynamic-tests.identity 1]]]) + +(let Decl [declare expand-dynamic-tests.identity [cons number [cons --> [cons number []]]]] + Body [cond [true [freeze Decl]]] + Expanded (expand-dynamic-tests.initializer [defun initializer [] Body]) + (do + (extension-tests.assert-equal "known initializer bodies precompile declarations" + (occurrences declare Expanded) 0) + (extension-tests.assert-equal "initializer declarations use checked installation" + (occurrences shen.declare-with-signature Expanded) 1))) + +(map (/. Expr + (extension-tests.assert-equal "lexical signature dependencies stay dynamic" + (expand-dynamic-tests.initializer Expr) Expr)) + [[lambda declare [declare expand-dynamic-tests.identity number]] + [lambda is! [declare expand-dynamic-tests.identity number]] + [lambda shen.newpv [declare expand-dynamic-tests.identity number]] + [lambda shen.gc [declare expand-dynamic-tests.identity number]] + [lambda number [declare expand-dynamic-tests.identity number]] + [lambda cons [declare expand-dynamic-tests.identity [cons number []]]] + [lambda shen.declare-with-signature [declare expand-dynamic-tests.identity number]] + [let (protect A) number [declare expand-dynamic-tests.identity (protect A)]]]) + +(let Expr [let number [declare expand-dynamic-tests.identity symbol] + [declare expand-dynamic-tests.identity number]] + Expanded (expand-dynamic-tests.initializer Expr) + (extension-tests.assert-equal "let values use the outer scope and bodies the bound scope" + (occurrences declare Expanded) 1)) + +(let Expanded (expand-dynamic-tests.initializer + [lambda (protect A) + [declare expand-dynamic-tests.identity [protect (protect A)]]]) + (extension-tests.assert-equal "protected type symbols stay literal under matching binders" + (occurrences declare Expanded) 0)) + +(extension-tests.assert-equal "unconfigured ports conservatively reject compiled adapters" + (shen.precompiled-function? expand-dynamic-tests.identity) false) +(extension-tests.assert-equal "portable adapter installation returns its function name" + (shen.update-lambda-table/precompiled expand-dynamic-tests.identity 1 + (freeze (/. X X)) true) expand-dynamic-tests.identity) +(extension-tests.assert-equal "portable adapter installation preserves currying" + ((fn expand-dynamic-tests.identity) portable-result) portable-result) + +(put expand-dynamic-tests.zero shen.lambda-form stale) +(shen.update-lambda-table/precompiled expand-dynamic-tests.zero 0 (freeze false) true) +(extension-tests.assert-error "zero arity clears the old adapter" + (freeze (get expand-dynamic-tests.zero shen.lambda-form))) +(extension-tests.assert-equal "zero arity metadata is installed" + (arity expand-dynamic-tests.zero) 0) + +(extension-tests.assert-equal "fallback does not invoke the compiled-adapter factory" + (shen.update-lambda-table/precompiled expand-dynamic-tests.identity 1 + (freeze (simple-error "must not build this adapter")) false) + expand-dynamic-tests.identity) +(extension-tests.assert-error "compiled-adapter factory errors remain catchable" + (freeze (shen.update-lambda-table/precompiled expand-dynamic-tests.factory 2 + (freeze (simple-error "factory error")) true))) +(extension-tests.assert-equal "arity is installed before adapter construction" + (arity expand-dynamic-tests.factory) 2) + + +(define expand-dynamic-tests.opaque? + [host-syntax | _] -> true + _ -> false) + +(let Opaque [host-syntax [update-lambda-table expand-dynamic-tests.identity 1]] + Plain [update-lambda-table expand-dynamic-tests.identity 1] + Expr [do Opaque Plain] + Expanded (shen.x.expand-dynamic.expand-initializer Expr + [expand-dynamic-tests.identity] (fn expand-dynamic-tests.opaque?)) + (do + (extension-tests.assert-equal "caller predicate preserves a whole opaque expression" + (hd (tl Expanded)) Opaque) + (extension-tests.assert-equal "opaque contents are not recursively expanded" + (occurrences update-lambda-table Expanded) 1) + (extension-tests.assert-equal "ordinary expressions beside opaque syntax are expanded" + (occurrences shen.update-lambda-table/precompiled Expanded) 1) + (extension-tests.assert-equal "false predicate treats the same form as ordinary KL" + (occurrences update-lambda-table + (shen.x.expand-dynamic.expand-initializer Expr + [expand-dynamic-tests.identity] (/. Ignored false))) 0) + (extension-tests.assert-equal "a predicate can protect the root expression" + (shen.x.expand-dynamic.expand-initializer Expr + [expand-dynamic-tests.identity] (/. Ignored true)) Expr))) diff --git a/tests/extensions/runme.shen b/tests/extensions/runme.shen index 9dbabd2..baf4b44 100644 --- a/tests/extensions/runme.shen +++ b/tests/extensions/runme.shen @@ -9,4 +9,6 @@ (load "tests/extensions/source-forms/tests.shen") (load "tests/extensions/namespaces/tests.shen") +(load "tests/extensions/expand-dynamic/tests.shen") + (extension-tests.finish) diff --git a/tests/regressions/factoriser-cond.shen b/tests/regressions/factoriser-cond.shen new file mode 100644 index 0000000..3781273 --- /dev/null +++ b/tests/regressions/factoriser-cond.shen @@ -0,0 +1,42 @@ +\\ Explicit cond need not end with a true clause, even when factorised. +(define factoriser-cond.assert + Label Expected Expected -> (output "[OK] ~A~%" Label) + Label Expected Actual -> (error "~A: expected ~R, got ~R" Label Expected Actual)) + +(define factoriser-cond.check + -> (let X (intern "X") (do + (factoriser-cond.assert "empty clause list becomes a runtime error" + [simple-error "condition failure"] + (shen.factor-recognisors [])) + (eval [define factoriser-cond.probe X -> + [cond [[= X 1] a] [[= X 2] b]]]) + (factoriser-cond.assert "first clause" a (factoriser-cond.probe 1)) + (factoriser-cond.assert "later clause" b (factoriser-cond.probe 2)) + (factoriser-cond.assert "unmatched input raises at runtime" + "condition failure" + (trap-error (factoriser-cond.probe 3) (/. E (error-to-string E)))) + (eval [define factoriser-cond.guarded X -> + [cond [[and [number? X] [= X 1]] a] + [[and [number? X] [= X 2]] b]]]) + (factoriser-cond.assert "shared recognisor first branch" a + (factoriser-cond.guarded 1)) + (factoriser-cond.assert "shared recognisor later branch" b + (factoriser-cond.guarded 2)) + (factoriser-cond.assert "shared recognisor exhausted tail" + "condition failure" + (trap-error (factoriser-cond.guarded 3) (/. E (error-to-string E)))) + (factoriser-cond.assert "shared recognisor false" + "condition failure" + (trap-error (factoriser-cond.guarded other) (/. E (error-to-string E)))) + (eval [define factoriser-cond.default X -> + [cond [[= X 1] a] [true b]]]) + (factoriser-cond.assert "explicit default still works" b + (factoriser-cond.default 2))))) + +(let Saved (factorise?) + (do (factorise +) + (trap-error + (let Result (factoriser-cond.check) + (do (set shen.*factorise?* Saved) Result)) + (/. E (do (set shen.*factorise?* Saved) + (simple-error (error-to-string E))))))) diff --git a/tests/runme.shen b/tests/runme.shen index 926b6b0..a7f88fc 100644 --- a/tests/runme.shen +++ b/tests/runme.shen @@ -1,2 +1,3 @@ (load "harness.shen") -(load "kerneltests.shen") \ No newline at end of file +(load "kerneltests.shen") +(load "regressions/factoriser-cond.shen") diff --git a/typecheck_native.lua b/typecheck_native.lua index 488d179..52459fa 100644 --- a/typecheck_native.lua +++ b/typecheck_native.lua @@ -718,8 +718,7 @@ function M.install(Pmod, Emod) -- boot.lua installs the engine before initialise(), so every kernel -- declare is captured. Delegates unconditionally (legacy *sigf* stays -- the source of truth for the legacy engine). - -- boot.lua replays cached stdlib signatures without calling `declare`; - -- this keeps the native signature table in step with shen.*sigf*. + -- record_sig: a hook for embedders to feed the native signature table. M.record_sig = function(name, type_) NativeSig[name] = type_ end local orig_declare = F["declare"] if orig_declare then @@ -730,6 +729,18 @@ function M.install(Pmod, Emod) P.FA[F["declare"]] = 2 end + -- 43.3+: `declare` is (shen.declare-with-signature Name Type (freeze ...)), + -- and the precompiled stlib.kl calls shen.declare-with-signature directly, + -- bypassing the `declare` wrapper above. Record there too (idempotent). + local orig_dws = F["shen.declare-with-signature"] + if orig_dws then + F["shen.declare-with-signature"] = function(name, type_, frozen) + NativeSig[name] = type_ + return orig_dws(name, type_, frozen) + end + P.FA[F["shen.declare-with-signature"]] = 3 + end + -- destroy (sys.kl:246) unassocs from *sigf*; mirror in NativeSig so the -- native lookupsig agrees that the signature is gone local orig_destroy = F["destroy"] From 209427345a148d40765c66bcf527ff32e36d19f2 Mon Sep 17 00:00:00 2001 From: pyrex41 Date: Sat, 7 Nov 2026 11:07:01 -0600 Subject: [PATCH 2/3] certify: an unknown kernel still fails when 43.4 is in the table The gate blanks EXPECTED_BY_KERNEL instead of rewriting only the 43.2 entry, so a 43.4 build still refuses a version with no recorded count. --- test/certify_spec.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/certify_spec.lua b/test/certify_spec.lua index c7e6051..65bdb85 100644 --- a/test/certify_spec.lua +++ b/test/certify_spec.lua @@ -38,7 +38,8 @@ case("the suite stops early", '(report "t" 1 1)\n(this is not closed\n', 1, 1, " do suite(good) local src = assert(io.open(here .. "run-kernel-tests.lua")):read("*a") - src = src:gsub('%["43%.2"%] = 154', '["0.0"] = 1') + src = src:gsub('local EXPECTED_BY_KERNEL = %{[^}]*%}', + 'local EXPECTED_BY_KERNEL = { ["0.0"] = 1 }', 1) local copy = dir .. "/rkt.lua" local f = assert(io.open(copy, "w")); f:write(src); f:close() local cmd = "cd " .. sh_quote(here) .. " && SHEN_TESTS_DIR=" .. sh_quote(dir) From 4be52ed7d6259b96dba3d89e40beed750cfc92af Mon Sep 17 00:00:00 2001 From: pyrex41 Date: Sat, 7 Nov 2026 11:11:09 -0600 Subject: [PATCH 3/3] compiler: raw arithmetic once a value is proved a number PR 101 already reads hd/tl directly after cons?. + - * and the comparisons now do the same after number? or (= E ), including through let. Division stays on DIV. A failed compile still drops both fact tables. --- CHANGELOG.md | 5 +- compiler.lua | 122 ++++++++++++++++++++++++++++++++++++----- test/tailcall_spec.lua | 42 ++++++++++++++ 3 files changed, 154 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ebea7c8..2d6f767 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,7 +30,10 @@ Notable changes to shen-lua. Release notes for earlier versions are under closed lambdas built once, hot helpers bound as locals, count sinking. `(= F G)` can now be true for two evaluations of the same closed lambda. - **Lists, vectors, strings, Prolog.** `hd`/`tl` read directly where `(cons? E)` - proves a cons; `address->` stores with `rawset`; a self-tail accumulator is a double + proves a cons, and a `let` bound to a cons keeps that fact. `+`/`-`/`*` and + the comparisons are Lua operators once both sides are numbers; `/` stays + checked, because Lua division by zero does not raise. `address->` stores with + `rawset`; a self-tail accumulator is a double from the start; native `shen.mod` below 2^53; the Prolog engine reuses stack segments and has loop-free deref and unify. - **Kernel cache key** covers every codegen switch: `SHEN_UNCURRY`, diff --git a/compiler.lua b/compiler.lua index c9fef19..6a89a76 100644 --- a/compiler.lua +++ b/compiler.lua @@ -712,13 +712,22 @@ end -- immutable as to being conses, and HD/TL ignore a redefined hd/tl on a cons -- already, so nothing observable changes. Keys are chain_key's. local PROVEN = {} +-- Same keys, a different table: a chain proved a number. Cons and number are +-- not the same fact. Division is never raw: Lua `/` of zero is inf, and KL +-- raises. Comparisons and + - * become Lua operators only when both sides are +-- numbers, which does not coerce strings. +local PROVEN_NUM = {} +local NUM_BIN = { ["+"] = true, ["-"] = true, ["*"] = true } local function add_cons_facts(test, env, into) if not is_cons(test) then return end local h = test[1] if not (is_symbol(h) and not env[h.name]) then return end local rest = test[2] if not (is_cons(rest)) then return end - if h.name == "cons?" and rest[2] == NIL and C.ARITY["cons?"] == 1 then + if h.name == "type" and rest[2] and is_cons(rest[2]) and rest[2][2] == NIL + and C.ARITY["type"] == 2 then + add_cons_facts(rest[1], env, into) + elseif h.name == "cons?" and rest[2] == NIL and C.ARITY["cons?"] == 1 then local k = chain_key(rest[1], env) if k then into[k] = true end elseif h.name == "and" and is_cons(rest[2]) and rest[2][2] == NIL then @@ -726,17 +735,48 @@ local function add_cons_facts(test, env, into) add_cons_facts(rest[2][1], env, into) end end --- f(...) with test's facts added to PROVEN. A flat table with an undo list: a +local function add_num_facts(test, env, into) + if not is_cons(test) then return end + local h = test[1] + if not (is_symbol(h) and not env[h.name]) then return end + local rest = test[2] + if not is_cons(rest) then return end + if h.name == "type" and rest[2] and is_cons(rest[2]) and rest[2][2] == NIL + and C.ARITY["type"] == 2 then + add_num_facts(rest[1], env, into) + elseif h.name == "number?" and rest[2] == NIL and C.ARITY["number?"] == 1 then + local k = chain_key(rest[1], env) + if k then into[k] = true end + elseif h.name == "=" and is_cons(rest[2]) and rest[2][2] == NIL + and C.ARITY["="] == 2 then + local function side(num, other) + if type(num) ~= "number" then return end + local k = chain_key(other, env) + if k then into[k] = true end + end + side(rest[1], rest[2][1]) + side(rest[2][1], rest[1]) + elseif h.name == "and" and is_cons(rest[2]) and rest[2][2] == NIL then + add_num_facts(rest[1], env, into) + add_num_facts(rest[2][1], env, into) + end +end +-- f(...) with test's facts added. A flat table with an undo list: a -- then-spine nests one scope per pattern test, past Lua's 100 __index links. -local function with_cons_facts(test, env, f, ...) - local facts = {} - add_cons_facts(test, env, facts) - local added = {} - for k in pairs(facts) do - if not PROVEN[k] then PROVEN[k] = true; added[#added + 1] = k end +local function with_facts(test, env, f, ...) + local cfacts, nfacts = {}, {} + add_cons_facts(test, env, cfacts) + add_num_facts(test, env, nfacts) + local added_c, added_n = {}, {} + for k in pairs(cfacts) do + if not PROVEN[k] then PROVEN[k] = true; added_c[#added_c + 1] = k end + end + for k in pairs(nfacts) do + if not PROVEN_NUM[k] then PROVEN_NUM[k] = true; added_n[#added_n + 1] = k end end local r = f(...) - for i = 1, #added do PROVEN[added[i]] = nil end + for i = 1, #added_c do PROVEN[added_c[i]] = nil end + for i = 1, #added_n do PROVEN_NUM[added_n[i]] = nil end return r end function C.proven_count() @@ -748,6 +788,49 @@ local function proven_cons(form, env) local k = chain_key(form, env) return k ~= nil and PROVEN[k] == true end +local function known_num(form, env) + if type(form) == "number" then return true end + local k = chain_key(form, env) + if k and PROVEN_NUM[k] then return true end + if not is_cons(form) then return false end + local h = form[1] + if not (is_symbol(h) and NUM_BIN[h.name] and not env[h.name] + and C.ARITY[h.name] == 2) then + return false + end + local a = form[2] + if not (is_cons(a) and is_cons(a[2]) and a[2][2] == NIL) then return false end + return known_num(a[1], env) and known_num(a[2][1], env) +end +-- A value that is a cons: a (cons A B) form, or a chain already proved one. +-- (hd X) is not a cons just because X is. +local function known_cons_val(form, env) + if proven_cons(form, env) then return true end + if not is_cons(form) then return false end + local h = form[1] + if not (is_symbol(h) and h.name == "cons" and not env["cons"] + and C.ARITY["cons"] == 2) then + return false + end + local a = form[2] + return is_cons(a) and is_cons(a[2]) and a[2][2] == NIL +end +-- The new local `ln` inherits a fact from the value it is bound to. Read the +-- value's fact in `env` (before the name is rebound): (let X X ...) keeps X's +-- fact. Undo after the body is compiled. +local function push_value_facts(val, ln, env) + local added_c, added_n = {}, {} + if known_cons_val(val, env) and not PROVEN[ln] then + PROVEN[ln] = true; added_c[#added_c + 1] = ln + end + if known_num(val, env) and not PROVEN_NUM[ln] then + PROVEN_NUM[ln] = true; added_n[#added_n + 1] = ln + end + return function() + for i = 1, #added_c do PROVEN[added_c[i]] = nil end + for i = 1, #added_n do PROVEN_NUM[added_n[i]] = nil end + end +end -- field i of a cons-valued Lua expression local function cell_field(expr, i) if expr:match("^[%a_][%w_]*$") then return expr .. "[" .. i .. "]" end @@ -1198,6 +1281,13 @@ local function ccall(form, env, tail) end local helper = ARITH2[name] if helper and ar == 2 then + -- Raw + - * and the four comparisons once both sides are numbers. + -- `/` stays DIV: raw Lua division by zero does not raise. + local raw = ({ ["+"]="+", ["-"]="-", ["*"]="*", + [">"]=">", ["<"]="<", [">="]=">=", ["<="]="<=" })[name] + if raw and known_num(args[1], env) and known_num(args[2], env) then + return "(" .. cargs[1] .. ")" .. raw .. "(" .. cargs[2] .. ")" + end return helper .. "(" .. argstr .. ")" end -- Inline exact-arity (cons A B) as a bare table+metatable construction @@ -2659,12 +2749,12 @@ function ctail(form, env) local els = el and ctail(el, env) or ret("false") CCACHE = saved_cc return pre .. "if not (" .. testc .. ") then " .. els .. " end " - .. with_cons_facts(test, env, ctail, th, env) + .. with_facts(test, env, ctail, th, env) else -- nest then, flatten else local saved_cc = CCACHE CCACHE = child_cache() - local ths = with_cons_facts(test, env, ctail, th, env) + local ths = with_facts(test, env, ctail, th, env) CCACHE = saved_cc return pre .. "if (" .. testc .. ") then " .. ths .. " end " .. ctail(el, env) @@ -2680,7 +2770,7 @@ function ctail(form, env) -- each result sits inside its own then-block: block-scope its chain cache local saved_cc = CCACHE CCACHE = child_cache() - local resc = with_cons_facts(test, env, ctail, res, env) + local resc = with_facts(test, env, ctail, res, env) CCACHE = saved_cc if i == 1 then parts[#parts+1] = "if (" .. cexpr(bc(test, env), env) .. ") then " .. resc @@ -2702,7 +2792,10 @@ function ctail(form, env) local ln = gen("v") local pre, valc = cstmt_expr(val, env) local e2 = extend(env, v.name, ln) - return pre .. "local " .. ln .. " = " .. valc .. "; " .. ctail(body, e2) + local undo = push_value_facts(val, ln, env) + local body_s = ctail(body, e2) + undo() + return pre .. "local " .. ln .. " = " .. valc .. "; " .. body_s elseif op == "do" then local forms = to_array(cdr(form)) local s = {} @@ -2728,7 +2821,7 @@ function ctail(form, env) local a = car(cdr(form)); local b = car(cdr(cdr(form))) local pre, ac = cstmt_expr(bc(a, env), env) return pre .. "if not (" .. ac .. ") then " .. ret("false") .. " end " - .. with_cons_facts(a, env, ctail, bc_tail(b, env), env) + .. with_facts(a, env, ctail, bc_tail(b, env), env) elseif op == "or" then local a = car(cdr(form)); local b = car(cdr(cdr(form))) local pre, ac = cstmt_expr(bc(a, env), env) @@ -3067,6 +3160,7 @@ local function atomic_compile(arity_name, f, ...) VALUE_BODY, VALUE_NEXT = s_value, false IN_FN_BODY = s_fn for k in pairs(PROVEN) do PROVEN[k] = nil end + for k in pairs(PROVEN_NUM) do PROVEN_NUM[k] = nil end if arity_name then C.ARITY[arity_name] = s_arity end error(res, 0) end diff --git a/test/tailcall_spec.lua b/test/tailcall_spec.lua index 26447be..cdfc46d 100644 --- a/test/tailcall_spec.lua +++ b/test/tailcall_spec.lua @@ -194,6 +194,48 @@ do ev("(defun pc-i (L) (if (cons? L) (hd (tl L)) 0))") check(ev("(trap-error (pc-i (cons 1 2)) (lambda E caught))").name == "caught", "only the tested chain is proven, not its tail") + + src = gensrc("(defun pc-j (A B) (let L (cons A B) (hd L)))") + check(not src:find("HD(", 1, true), "a let bound to (cons A B) is a cons") + ev("(defun pc-j (A B) (let L (cons A B) (hd L)))") + check(ev("(pc-j 6 7)") == 6, "hd of a let-bound cons is the car") +end + +-- --------------------------------------------------------------------------- +-- proved numbers: + - * and the comparisons are Lua operators. / stays DIV. +-- --------------------------------------------------------------------------- +do + local src = gensrc("(defun pn-a (X) (if (number? X) (+ X 2) 0))") + check(src:find(")+(", 1, true) ~= nil, "number? proves +") + check(not src:find("ADD(", 1, true), "a proved + is not ADD") + src = gensrc("(defun pn-b (X) (if (= X 0) (+ X 1) (+ X 1)))") + check(src:find(")+(", 1, true) ~= nil and src:find("ADD(", 1, true) ~= nil, + "(= X 0) proves the then branch only") + src = gensrc("(defun pn-c (X) (if (number? X) (/ X 2) 0))") + check(src:find("DIV(", 1, true) ~= nil and not src:find(")/(", 1, true), + "a proved division stays DIV") + src = gensrc("(defun pn-d (X) (if (number? X) (let X X (+ X 1)) 0))") + check(src:find(")+(", 1, true) ~= nil, "(let X X ...) keeps a number proof") + src = gensrc("(defun pn-e (X) (let N 1 (+ N X)))") + check(src:find("ADD(", 1, true) ~= nil, "a literal proves only the binding, not the other operand") + src = gensrc("(defun pn-f (X +) (if (number? X) (+ X 1) 0))") + check(not src:find(")+(", 1, true), "a parameter named + is a call") + src = gensrc("(defun pn-g (X) (if (and (number? X) (> X 0)) (- X 1) 0))") + check(src:find(")>(", 1, true) ~= nil and src:find(")-(", 1, true) ~= nil, + "and carries a number proof into the next test and the result") + + ev("(defun pn-a (X) (if (number? X) (+ X 2) 0))") + check(ev("(pn-a 5)") == 7, "proved + adds") + ev("(defun pn-b (X) (if (= X 0) (+ X 1) (trap-error (+ X 1) (lambda E (error-to-string E)))))") + check(ev('(pn-b "a")'):find("not a number", 1, true) ~= nil, + "the else of (= X 0) still rejects a non-number") + ev("(defun pn-c (X) (if (number? X) (/ X 0) 0))") + check(ev("(trap-error (pn-c 1) (lambda E (error-to-string E)))"):find("division by zero", 1, true) ~= nil, + "(/ X 0) still raises") + ev("(defun pn-h (X) (if (number? X) (let Y X (+ Y 3)) 0))") + check(ev("(pn-h 4)") == 7, "a let copies a number proof") + ev("(defun pn-i (X) (if (cons? X) (let Y (hd X) (if (= Y 1) (+ Y 2) 0)) 0))") + check(ev("(pn-i (cons 1 ()))") == 3, "(= (bound) 1) proves the car is a number") end -- ---------------------------------------------------------------------------