@hotdocx/endash-kernel 0.1.0-preview.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/LICENSE +9 -1
  2. package/README.md +24 -2
  3. package/bin/endash-cli.cjs +4 -0
  4. package/bin/endash-mcp.cjs +7 -0
  5. package/browser.d.ts +44 -0
  6. package/endash-browser.js +698 -0
  7. package/index.cjs +704 -14
  8. package/index.d.ts +19 -11
  9. package/index.mjs +704 -14
  10. package/node.cjs +116606 -0
  11. package/node.d.ts +8 -0
  12. package/node.mjs +53 -0
  13. package/package.json +51 -7
  14. package/types/ast.d.ts +964 -0
  15. package/types/book/book_compiler.d.ts +57 -0
  16. package/types/book/html_renderer.d.ts +27 -0
  17. package/types/book/literate_en.d.ts +40 -0
  18. package/types/book/schema.d.ts +279 -0
  19. package/types/browser.d.ts +44 -0
  20. package/types/builders.d.ts +191 -0
  21. package/types/cache/core_snapshot.d.ts +259 -0
  22. package/types/cas/bar_hochschild.d.ts +106 -0
  23. package/types/cas/cotangent_deformation.d.ts +100 -0
  24. package/types/cas/cyclic_homology.d.ts +100 -0
  25. package/types/cas/derham_hkr.d.ts +117 -0
  26. package/types/cas/ext_algebra.d.ts +112 -0
  27. package/types/cas/groebner_syzygy.d.ts +43 -0
  28. package/types/cas/hilbert_proj_ag.d.ts +97 -0
  29. package/types/cas/hnf_snf.d.ts +49 -0
  30. package/types/cas/lefschetz_weil.d.ts +114 -0
  31. package/types/cas/localization_cech.d.ts +201 -0
  32. package/types/cas/matrix.d.ts +45 -0
  33. package/types/cas/modules_complexes.d.ts +141 -0
  34. package/types/cas/perm_coset_cgt.d.ts +166 -0
  35. package/types/cas/poly.d.ts +66 -0
  36. package/types/cas/reify_proofs.d.ts +104 -0
  37. package/types/cas/resolutions_spectral_seq.d.ts +193 -0
  38. package/types/cas/rings.d.ts +70 -0
  39. package/types/cas/smith_resultant_gauss.d.ts +164 -0
  40. package/types/cas/theta_stepanov.d.ts +182 -0
  41. package/types/check.d.ts +65 -0
  42. package/types/cli/endash_cli.d.ts +19 -0
  43. package/types/context.d.ts +110 -0
  44. package/types/duality.d.ts +76 -0
  45. package/types/elab/elab_ast.d.ts +274 -0
  46. package/types/elab/elaborate.d.ts +106 -0
  47. package/types/elab/env.d.ts +170 -0
  48. package/types/elab/match.d.ts +123 -0
  49. package/types/elab/pretty.d.ts +14 -0
  50. package/types/elab/structure.d.ts +46 -0
  51. package/types/elab/tactics.d.ts +238 -0
  52. package/types/elab/typeclass.d.ts +31 -0
  53. package/types/elab/unify.d.ts +166 -0
  54. package/types/eval.d.ts +28 -0
  55. package/types/index.d.ts +98 -0
  56. package/types/kernel_ops.d.ts +196 -0
  57. package/types/mcp/endash_mcp_server.d.ts +63 -0
  58. package/types/module/comparator.d.ts +86 -0
  59. package/types/module/desugar.d.ts +94 -0
  60. package/types/module/goal_inspector.d.ts +104 -0
  61. package/types/module/loader.d.ts +105 -0
  62. package/types/module/node_fs_provider.d.ts +26 -0
  63. package/types/module/package_builder.d.ts +83 -0
  64. package/types/module/proof_graph.d.ts +80 -0
  65. package/types/module/quasiquote.d.ts +37 -0
  66. package/types/module/stdlib_fresh_builders.d.ts +10 -0
  67. package/types/module/stdlib_tactic_hooks.d.ts +20 -0
  68. package/types/parser/lexer.d.ts +12 -0
  69. package/types/parser/parser.d.ts +78 -0
  70. package/types/parser/pratt.d.ts +17 -0
  71. package/types/parser/span.d.ts +26 -0
  72. package/types/parser/surface_ast.d.ts +501 -0
  73. package/types/stdlib_types.d.ts +113 -0
  74. package/types/value.d.ts +942 -0
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Multi-Volume Book & 3-Artefact Blueprint Compiler (`endash/src/book/book_compiler.ts`).
3
+ *
4
+ * Validates:
5
+ * 1. `books/series.json` acyclic volume DAG & monotonic `volumeNumber` ordering;
6
+ * 2. Per-volume `book.json` manifests, top HTML anchors, Markdown math/table hygiene,
7
+ * and internal `#anchor` links;
8
+ * 3. Every `<!-- evidence:ID -->` marker against `evidence.json`, verifying that every
9
+ * `checked` and `formal-consequence` owner resolves to an existing `0`-axiom
10
+ * `GlobalEnv` declaration (`printAxioms === []`) + existing reviewer file;
11
+ * 4. Every fenced ```` ```en ```` and ```` ```en invalid ```` literate code block;
12
+ * 5. `@vol0[...]`, `@vol1[...]`, `@ha[...]`, and `@kerodon[...]` cross-references
13
+ * (enforcing downward-only volume citations so `vol0 -> vol1` is rejected!);
14
+ * 6. `books/catalogs/lurie-ha-map.json` 3-artefact synchronization; and
15
+ * 7. Optional SHA-256 cryptographic source pins in `docs/ENDASH_DIRECT_KERNEL_OVERVIEW_ARTICLE.md`.
16
+ */
17
+ import '../module/node_fs_provider';
18
+ import { BookCheckReport, BookEvidenceFile, BookManifest, BookQueryResult, BookSeriesManifest, CompiledSectionSummary, LurieHaCatalog, RhSpineCatalog, StacksEgaCatalog, VolumeSeriesEntry } from './schema';
19
+ export interface CheckBookSeriesOptions {
20
+ readonly booksDir: string;
21
+ readonly endashRoot?: string;
22
+ readonly extraEnDirs?: readonly string[];
23
+ readonly rejectOrphanEvidence?: boolean;
24
+ readonly verifyArticlePins?: boolean;
25
+ readonly skipLiterateCheck?: boolean;
26
+ }
27
+ export interface LoadedVolumeData {
28
+ readonly seriesEntry: VolumeSeriesEntry;
29
+ readonly volumeDir: string;
30
+ readonly manifest: BookManifest;
31
+ readonly evidence: BookEvidenceFile;
32
+ readonly sections: readonly {
33
+ readonly summary: CompiledSectionSummary;
34
+ readonly markdown: string;
35
+ }[];
36
+ readonly allAnchors: ReadonlySet<string>;
37
+ }
38
+ export interface FullCheckedSeriesBundle {
39
+ readonly report: BookCheckReport;
40
+ readonly series: BookSeriesManifest;
41
+ readonly catalog: LurieHaCatalog;
42
+ readonly agCatalog?: StacksEgaCatalog;
43
+ readonly rhCatalog?: RhSpineCatalog;
44
+ readonly volumes: readonly LoadedVolumeData[];
45
+ }
46
+ export declare function stripFencedAndInlineCode(markdown: string): string;
47
+ export declare function slugifyHeading(raw: string): string;
48
+ export declare function compileAndCheckBookSeries(options: CheckBookSeriesOptions): FullCheckedSeriesBundle;
49
+ export declare function checkBookSeries(options: CheckBookSeriesOptions): BookCheckReport;
50
+ /**
51
+ * Search across volumes, chapters, `evidence.json` claims, and `lurie-ha-map.json`
52
+ * entries (powering MCP `endash_query_book`).
53
+ */
54
+ export declare function queryBookSeries(booksDir: string, query: string, options?: {
55
+ readonly volumeSlug?: string;
56
+ readonly limit?: number;
57
+ }): BookQueryResult;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Zero-CDN Static Multi-Volume Monograph & 3-Artefact Blueprint Renderer
3
+ * (`endash/src/book/html_renderer.ts`, `0 LOC` TCB delta, `0` external HTTP assets).
4
+ *
5
+ * Emits:
6
+ * - `<outDir>/index.html`: Two-Volume Series Portal + Interactive SVG 3-Artefact
7
+ * Blueprint Graph (Volume 0 Foundations -> Lurie *Higher Algebra* Catalog ->
8
+ * Volume I Chapters & `0`-Axiom Witnesses) + client-side filter;
9
+ * - `<outDir>/<volSlug>/index.html`: Printable (`@page`) single-page volume reader
10
+ * with generated TOC (`<!-- generated:book-contents -->`), generated Evidence
11
+ * Register (`<!-- generated:book-evidence-table -->`), verified ```` ```en ```` blocks
12
+ * with *"Open in Playground"* hash links, and resolved `@vol0`/`@vol1`/`@ha`/`@kerodon`
13
+ * cross-reference pills;
14
+ * - `<outDir>/blueprint.json`: Structured 3-Artefact Blueprint graph JSON.
15
+ */
16
+ import { CheckBookSeriesOptions } from './book_compiler';
17
+ import { BookBuildResult } from './schema';
18
+ export interface BuildBookSeriesOptions extends CheckBookSeriesOptions {
19
+ readonly outDir: string;
20
+ }
21
+ export declare function escapeHtml(raw: string): string;
22
+ /**
23
+ * Audit generated HTML string to enforce **zero** external HTTP/HTTPS/protocol-relative
24
+ * stylesheet, script, image, iframe, or CSS `@import` URLs (`NC-14c` / Phase B3 gate).
25
+ */
26
+ export declare function findExternalAssetUrlsInHtml(html: string): readonly string[];
27
+ export declare function buildBookSeriesSite(options: BuildBookSeriesOptions): BookBuildResult;
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Verso-Style Literate ```en Code-Block Extractor & Kernel Verifier
3
+ * (`endash/src/book/literate_en.ts`, `0 LOC` TCB delta).
4
+ *
5
+ * Supports three fenced modes inside book Markdown chapters:
6
+ * - ```` ```en ```` or ```` ```en check ````: cumulative chapter session; imports and
7
+ * prior verified chapter declarations remain in scope, and every new declaration must
8
+ * elaborate & pass `printAxioms === []` (`0` axioms).
9
+ * - ```` ```en isolated ````: clean isolated `.en` module session; must pass with `0` axioms.
10
+ * - ```` ```en invalid ```` or ```` ```en fail ````: negative-control teaching block; MUST
11
+ * be rejected by the parser, elaborator, type checker, or `0`-axiom gate — if it succeeds,
12
+ * the compiler emits `LITERATE_EXPECTED_FAILURE_PASSED`!
13
+ */
14
+ import { MemoryModuleProvider, ModuleLoader, ModuleSourceProvider } from '../module/loader';
15
+ import { BookViolation, LiterateBlockResult, LiterateEnBlock } from './schema';
16
+ export declare function clearLiterateVerificationMemo(): void;
17
+ export declare function getLiterateVerificationMemoStats(): {
18
+ readonly hits: number;
19
+ readonly misses: number;
20
+ readonly size: number;
21
+ };
22
+ /**
23
+ * Extract all fenced ```` ```en ... ```` blocks from a Markdown file while recording
24
+ * exact 1-based starting line numbers and ignoring 4-backtick outer showcase wrappers.
25
+ */
26
+ export declare function extractLiterateEnBlocks(markdown: string, meta: {
27
+ readonly volumeSlug: string;
28
+ readonly sourceId: string;
29
+ readonly filePath: string;
30
+ }): readonly LiterateEnBlock[];
31
+ /**
32
+ * Elaborate and kernel-verify all literate ```` ```en ```` blocks in a single chapter.
33
+ */
34
+ export declare function verifyChapterLiterateBlocks(blocks: readonly LiterateEnBlock[], extraProviders: readonly ModuleSourceProvider[], sharedContext?: {
35
+ readonly mem: MemoryModuleProvider;
36
+ readonly loader: ModuleLoader;
37
+ }): {
38
+ readonly results: readonly LiterateBlockResult[];
39
+ readonly violations: readonly BookViolation[];
40
+ };
@@ -0,0 +1,279 @@
1
+ /**
2
+ * Strongly-Typed Schemas for the `endash` Multi-Volume Monograph & 3-Artefact
3
+ * Blueprint Compiler (`endash/src/book/schema.ts`, `0 LOC` TCB delta, `0` `any` casts).
4
+ */
5
+ export interface VolumeSeriesEntry {
6
+ readonly id: string;
7
+ readonly slug: string;
8
+ readonly volumeNumber: number;
9
+ readonly title: string;
10
+ readonly shortTitle?: string;
11
+ readonly dir: string;
12
+ readonly dependsOnVolumes: readonly string[];
13
+ readonly required: boolean;
14
+ }
15
+ export interface BookSeriesManifest {
16
+ readonly format: 'endash-book-series-v1';
17
+ readonly seriesId: string;
18
+ readonly seriesTitle: string;
19
+ readonly seriesSubtitle?: string;
20
+ readonly catalogPath: string;
21
+ readonly agCatalogPath?: string;
22
+ readonly rhCatalogPath?: string;
23
+ readonly volumes: readonly VolumeSeriesEntry[];
24
+ }
25
+ export interface BookSourceEntry {
26
+ readonly id: string;
27
+ readonly kind: 'frontmatter' | 'chapter' | 'appendix' | 'backmatter';
28
+ readonly path: string;
29
+ }
30
+ export interface BookManifest {
31
+ readonly version: number;
32
+ readonly id: string;
33
+ readonly volumeNumber: number;
34
+ readonly title: string;
35
+ readonly subtitle?: string;
36
+ readonly displayTitle: string;
37
+ readonly edition: string;
38
+ readonly editionVersion: string;
39
+ readonly publicationDate: string;
40
+ readonly status: string;
41
+ readonly authors: readonly string[];
42
+ readonly license: {
43
+ readonly spdx: string;
44
+ readonly name: string;
45
+ readonly file: string;
46
+ readonly url: string;
47
+ };
48
+ readonly provenance?: {
49
+ readonly credits?: string;
50
+ readonly thirdPartySources?: string;
51
+ };
52
+ readonly evidence: string;
53
+ readonly renderer?: {
54
+ readonly documentSlug: string;
55
+ readonly output: string;
56
+ readonly layout?: string;
57
+ };
58
+ readonly sources: readonly BookSourceEntry[];
59
+ }
60
+ export interface EvidenceOwnerRef {
61
+ readonly module: string;
62
+ readonly symbol: string;
63
+ }
64
+ export interface EvidenceReviewerRef {
65
+ readonly file: string;
66
+ readonly symbol: string;
67
+ }
68
+ export interface BookEvidenceClaim {
69
+ readonly status: 'checked' | 'formal-consequence' | 'mathematical-development' | 'research-boundary';
70
+ readonly statement: string;
71
+ readonly owners: readonly EvidenceOwnerRef[];
72
+ readonly reviewers: readonly EvidenceReviewerRef[];
73
+ }
74
+ export interface BookEvidenceFile {
75
+ readonly version: number;
76
+ readonly kernel: string;
77
+ readonly volumeId: string;
78
+ readonly zeroAxiomsRequired: boolean;
79
+ readonly statuses: readonly string[];
80
+ readonly claims: Readonly<Record<string, BookEvidenceClaim>>;
81
+ }
82
+ export interface LurieHaOwnerRef {
83
+ readonly kind: 'stdlib' | 'en';
84
+ readonly module: string;
85
+ readonly symbol: string;
86
+ }
87
+ export interface LurieHaItem {
88
+ readonly haRef: string;
89
+ readonly kerodonTag: string;
90
+ readonly stacksTag?: string;
91
+ readonly egaRef?: string;
92
+ readonly sgaRef?: string;
93
+ readonly weilRef?: string;
94
+ readonly rhRef?: string;
95
+ readonly cisinskiRef?: string;
96
+ readonly mathlibRef?: string;
97
+ readonly symmetryRef?: string;
98
+ readonly title: string;
99
+ readonly classicalMechanism: string;
100
+ readonly syntheticEndashMechanism: string;
101
+ readonly status: 'proved-0-axioms' | 'planned-wave7' | 'future-horizon';
102
+ readonly vol0Prereqs: readonly string[];
103
+ readonly vol1Section?: string;
104
+ readonly endashOwners: readonly LurieHaOwnerRef[];
105
+ }
106
+ export interface LurieHaCatalog {
107
+ readonly format: 'endash-lurie-ha-map-v1';
108
+ readonly sourceWork: {
109
+ readonly author: string;
110
+ readonly title: string;
111
+ readonly edition: string;
112
+ readonly companion?: string;
113
+ };
114
+ readonly items: readonly LurieHaItem[];
115
+ }
116
+ export interface StacksEgaItem {
117
+ readonly stacksTag: string;
118
+ readonly egaRef: string;
119
+ readonly sgaRef?: string;
120
+ readonly weilRef?: string;
121
+ readonly rhRef?: string;
122
+ readonly mathlibRef?: string;
123
+ readonly symmetryRef?: string;
124
+ readonly weilNote?: string;
125
+ readonly title: string;
126
+ readonly classicalMechanism: string;
127
+ readonly syntheticEndashMechanism: string;
128
+ readonly status: 'proved-0-axioms' | 'planned-wave11' | 'future-horizon';
129
+ readonly vol0Prereqs: readonly string[];
130
+ readonly vol1Prereqs?: readonly string[];
131
+ readonly vol2Section?: string;
132
+ readonly endashOwners: readonly LurieHaOwnerRef[];
133
+ }
134
+ export interface StacksEgaCatalog {
135
+ readonly format: 'endash-stacks-ega-map-v1';
136
+ readonly sourceWork: {
137
+ readonly author: string;
138
+ readonly title: string;
139
+ readonly edition: string;
140
+ readonly companion?: string;
141
+ };
142
+ readonly items: readonly StacksEgaItem[];
143
+ }
144
+ export type RhSpineEngineId = 'curve-rh-unconditional' | 'curve-rh-finite-fields' | 'engine-1-smith-dvr-quotient-slopes' | 'engine-2-laplace-resultant-lte-vandermonde-multiplicity' | 'engine-3-fourier-gauss-genus-theta-growth-windows' | 'engine-4-dyadic-pages-sha-window-intersection' | 'engine-5-strip-reflection-and-landau-mellin';
145
+ export type RhSpineItemStatus = 'proved-0-axioms' | 'proved-0-axioms-universal' | 'proved-0-axioms-certified-instances' | 'classical-literature-boundary' | 'bridge-hypothesis-boundary' | 'planned-wave15';
146
+ export interface RhSpineItem {
147
+ readonly id: string;
148
+ readonly engine: RhSpineEngineId;
149
+ readonly rhRef: string;
150
+ readonly stacksTag?: string;
151
+ readonly egaRef?: string;
152
+ readonly weilRef?: string;
153
+ readonly haRef?: string;
154
+ readonly title: string;
155
+ readonly leanRhMechanism: string;
156
+ readonly endashMechanism: string;
157
+ readonly status: RhSpineItemStatus;
158
+ readonly targetVolume?: 'vol1' | 'vol2';
159
+ readonly sectionAnchor?: string;
160
+ readonly endashOwners: readonly LurieHaOwnerRef[];
161
+ readonly certifiedScope?: string;
162
+ readonly literatureCitation?: string;
163
+ readonly bridgeJustification?: string;
164
+ readonly upstreamLeanRef?: string;
165
+ readonly recordFields?: readonly string[];
166
+ readonly interfaceRecordOwner?: LurieHaOwnerRef;
167
+ }
168
+ export interface RhSpineCatalog {
169
+ readonly format: 'endash-rh-spine-map-v1' | 'endash-rh-spine-map-v2';
170
+ readonly sourceWork: {
171
+ readonly author: string;
172
+ readonly title: string;
173
+ readonly edition: string;
174
+ readonly companion?: string;
175
+ };
176
+ readonly items: readonly RhSpineItem[];
177
+ }
178
+ export type LiterateBlockMode = 'check' | 'isolated' | 'invalid';
179
+ export interface LiterateEnBlock {
180
+ readonly volumeSlug: string;
181
+ readonly sourceId: string;
182
+ readonly filePath: string;
183
+ readonly blockIndex: number;
184
+ readonly startLine: number;
185
+ readonly mode: LiterateBlockMode;
186
+ readonly rawInfo: string;
187
+ readonly code: string;
188
+ }
189
+ export interface LiterateBlockResult {
190
+ readonly block: LiterateEnBlock;
191
+ readonly ok: boolean;
192
+ readonly moduleId: string;
193
+ readonly declaredNames: readonly string[];
194
+ readonly outputs: readonly string[];
195
+ readonly errorMessage?: string;
196
+ readonly elapsedMs: number;
197
+ }
198
+ export type BookViolationCode = 'INVALID_SERIES_MANIFEST' | 'CYCLE_IN_VOLUME_DAG' | 'UPWARD_VOLUME_DEPENDENCY' | 'MISSING_REQUIRED_VOLUME' | 'MISSING_SOURCE_FILE' | 'MISSING_TOP_ANCHOR' | 'UNBALANCED_MATH_DELIMITER' | 'MALFORMED_MARKDOWN_TABLE' | 'BROKEN_INTERNAL_ANCHOR' | 'BROKEN_EVIDENCE_CLAIM' | 'ORPHAN_EVIDENCE_CLAIM' | 'MISSING_EVIDENCE_OWNER' | 'AXIOM_TAINTED_WITNESS' | 'MISSING_EVIDENCE_REVIEWER' | 'LITERATE_EN_BLOCK_FAILED' | 'LITERATE_EN_AXIOM_TAINTED' | 'LITERATE_EXPECTED_FAILURE_PASSED' | 'UPWARD_VOLUME_CITATION' | 'BROKEN_VOLUME_XREF' | 'BROKEN_HA_XREF' | 'BROKEN_KERODON_XREF' | 'BROKEN_STACKS_XREF' | 'BROKEN_CISINSKI_XREF' | 'BROKEN_MATHLIB_XREF' | 'BROKEN_SYMMETRY_XREF' | 'BROKEN_EGA_XREF' | 'BROKEN_SGA_XREF' | 'BROKEN_WEIL_XREF' | 'BROKEN_RH_XREF' | 'UNVERIFIED_HA_MAP_OWNER' | 'BROKEN_HA_MAP_SECTION' | 'UNVERIFIED_AG_MAP_OWNER' | 'BROKEN_AG_MAP_SECTION' | 'BROKEN_RH_SPINE_MAP' | 'AMBIGUOUS_RH_SPINE_STATUS' | 'MISSING_CERTIFIED_INSTANCE_SCOPE' | 'UNVERIFIED_RH_SPINE_OWNER' | 'UNDOCUMENTED_LITERATURE_BOUNDARY' | 'UNDOCUMENTED_BRIDGE_BOUNDARY' | 'ARTICLE_SHA256_DRIFT' | 'UNVERIFIED_INLINE_ENDASH_SYMBOL' | 'EPISTEMIC_CITATION_VIOLATION' | 'EXTERNAL_CDN_ASSET_FORBIDDEN';
199
+ export interface BookViolation {
200
+ readonly code: BookViolationCode;
201
+ readonly volumeSlug?: string;
202
+ readonly filePath?: string;
203
+ readonly line?: number;
204
+ readonly message: string;
205
+ }
206
+ export interface CompiledSectionSummary {
207
+ readonly id: string;
208
+ readonly kind: BookSourceEntry['kind'];
209
+ readonly path: string;
210
+ readonly title: string;
211
+ readonly topAnchor: string;
212
+ readonly anchors: readonly string[];
213
+ readonly evidenceIds: readonly string[];
214
+ readonly literateBlockCount: number;
215
+ }
216
+ export interface CompiledVolumeSummary {
217
+ readonly slug: string;
218
+ readonly id: string;
219
+ readonly volumeNumber: number;
220
+ readonly title: string;
221
+ readonly displayTitle: string;
222
+ readonly editionVersion: string;
223
+ readonly dependsOnVolumes: readonly string[];
224
+ readonly sectionCount: number;
225
+ readonly totalClaims: number;
226
+ readonly checkedClaims: number;
227
+ readonly literateBlocksChecked: number;
228
+ readonly sections: readonly CompiledSectionSummary[];
229
+ }
230
+ export interface BookCheckReport {
231
+ readonly ok: boolean;
232
+ readonly seriesId: string;
233
+ readonly seriesTitle: string;
234
+ readonly volumes: readonly CompiledVolumeSummary[];
235
+ readonly catalogStats: {
236
+ readonly totalItems: number;
237
+ readonly provedZeroAxiomItems: number;
238
+ readonly plannedItems: number;
239
+ readonly futureItems: number;
240
+ };
241
+ readonly agCatalogStats?: {
242
+ readonly totalItems: number;
243
+ readonly provedZeroAxiomItems: number;
244
+ readonly plannedItems: number;
245
+ readonly futureItems: number;
246
+ };
247
+ readonly rhCatalogStats?: {
248
+ readonly totalItems: number;
249
+ readonly provedZeroAxiomItems: number;
250
+ readonly provedUniversalItems: number;
251
+ readonly provedCertifiedInstanceItems: number;
252
+ readonly classicalLiteratureBoundaryItems: number;
253
+ readonly bridgeHypothesisBoundaryItems: number;
254
+ readonly plannedItems: number;
255
+ };
256
+ readonly literateResults: readonly LiterateBlockResult[];
257
+ readonly violations: readonly BookViolation[];
258
+ readonly elapsedMs: number;
259
+ }
260
+ export interface BookBuildResult {
261
+ readonly report: BookCheckReport;
262
+ readonly outDir: string;
263
+ readonly writtenFiles: readonly string[];
264
+ }
265
+ export interface BookQueryMatch {
266
+ readonly kind: 'section' | 'evidence' | 'ha-catalog' | 'ag-catalog' | 'rh-catalog' | 'literate-en';
267
+ readonly volumeSlug?: string;
268
+ readonly id: string;
269
+ readonly title: string;
270
+ readonly status?: string;
271
+ readonly snippet: string;
272
+ readonly owners?: readonly string[];
273
+ }
274
+ export interface BookQueryResult {
275
+ readonly ok: boolean;
276
+ readonly query: string;
277
+ readonly count: number;
278
+ readonly matches: readonly BookQueryMatch[];
279
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Zero-Backend Browser Entrypoint (`endash/src/browser.ts` -> `dist/endash-browser.js`).
3
+ *
4
+ * 100% pure TypeScript / ES2022 with ZERO Node.js built-ins (`node:*`, `fs`, `path`, `process`,
5
+ * `Buffer`, `child_process`), bundling:
6
+ * - Direct Functorial Type Theory NbE Kernel (`Grpd` + `StrictCat` + `GrayCat` + `Sheafify` +
7
+ * `Groupoidify` + `JoinCat` + `Pushout` + `Trunc0`)
8
+ * - Untrusted Elaborator, Pattern-Matcher, Tactics, `.en` Surface Parser, & VFS `ModuleLoader`
9
+ * - Live `line:col` Tactic Goal-State Inspector (`inspectGoalsAt`, `runTacticProbe`)
10
+ * - Zero-Dependency `BigInt` Typed CAS & LCF-Certified `P^1` Čech Cohomology / SNF Engine
11
+ * - All 10 `.en` Showcases (`BUILTIN_SHOWCASES`) spanning Ch. 1–32 & Higher Algebra B1–B3!
12
+ */
13
+ import { VerifiedEnEnsnapBundleCache, VerifiedStdlibBundleCache } from './cache/core_snapshot';
14
+ import { mkMatrix } from './cas/matrix';
15
+ import { F2FieldReifySpec, IntReifySpec, RatFieldReifySpec, certifySnfInKernel } from './cas/reify_proofs';
16
+ import { computeAndCertifyP1TwistingCohomologyF2, computeAndCertifyP1TwistingCohomologyQ } from './cas/localization_cech';
17
+ import { mkRat } from './cas/rings';
18
+ import { CursorGoalQueryResult, ModuleInspectionReport, TacticProbeOptions, TacticProbeResult, formatCursorGoalReport, inspectGoalsAt, inspectModuleSource, runTacticProbe } from './module/goal_inspector';
19
+ import { ALL_BUILTIN_STDLIB_MODULES, MemoryModuleProvider, ModuleLoader } from './module/loader';
20
+ import { BUILTIN_SHOWCASES, ShowcaseEntry } from './showcase_sources';
21
+ /**
22
+ * Explicitly register a serialized `endash-stdlib-bundle-v1` JSON snapshot in browser environments.
23
+ */
24
+ export declare function loadBrowserStdlibSnapshot(rawJson: string): VerifiedStdlibBundleCache;
25
+ export declare function loadBrowserEnEnsnapBundle(rawJson: string): VerifiedEnEnsnapBundleCache;
26
+ export { ALL_BUILTIN_STDLIB_MODULES, BUILTIN_SHOWCASES, CursorGoalQueryResult, F2FieldReifySpec, IntReifySpec, MemoryModuleProvider, ModuleInspectionReport, ModuleLoader, RatFieldReifySpec, ShowcaseEntry, TacticProbeOptions, TacticProbeResult, certifySnfInKernel, computeAndCertifyP1TwistingCohomologyF2, computeAndCertifyP1TwistingCohomologyQ, formatCursorGoalReport, inspectGoalsAt, inspectModuleSource, mkMatrix, mkRat, runTacticProbe, };
27
+ /**
28
+ * Shared in-memory `ModuleLoader` pre-populated with all 10 `.en` showcases so repeated
29
+ * browser checks and live cursor goal queries reuse verified stdlib modules in milliseconds!
30
+ */
31
+ export declare function getSharedBrowserLoader(): ModuleLoader;
32
+ export interface BrowserCheckResult extends ModuleInspectionReport {
33
+ readonly axiomFree: boolean;
34
+ }
35
+ /**
36
+ * Elaborate and kernel-verify `.en` source in the browser, returning diagnostics,
37
+ * `#check`/`#eval`/`#print axioms` outputs, tactic traces, and `0`-axiom status.
38
+ */
39
+ export declare function checkShowcaseOrSource(source: string, file?: string): BrowserCheckResult;
40
+ /**
41
+ * Query live tactic hypotheses, `goalsBefore`, and `goalsAfter` at 1-based `(line, column)`
42
+ * in the browser playground.
43
+ */
44
+ export declare function queryCursorGoals(source: string, line: number, column: number, file?: string): CursorGoalQueryResult;
@@ -0,0 +1,191 @@
1
+ /**
2
+ * Ergonomic Higher-Order TypeScript AST Builders for `endash`.
3
+ *
4
+ * Uses higher-order binder callbacks `(x => ...)` backed by `freshVar`,
5
+ * eliminating manual variable-ID plumbing while constructing 100% explicit,
6
+ * backend-independent `Term` / `CatTerm` AST nodes checked by `check.ts`.
7
+ */
8
+ import { CatTerm, DisplayedBodyTerm, NaturalCellTerm, SigmaPolarity, Term, VarSym } from './ast';
9
+ import { Duality, TransfMode } from './duality';
10
+ export declare const catVar: (sym: VarSym) => CatTerm;
11
+ export declare const catCart: (level?: number) => CatTerm;
12
+ export declare const catLax: (level?: number) => CatTerm;
13
+ export declare const grpdCat: (level?: number) => CatTerm;
14
+ export declare const terminalCat: CatTerm;
15
+ export declare const prodCat: (fst: CatTerm, snd: CatTerm) => CatTerm;
16
+ export declare const joinCat: (left: CatTerm, right: CatTerm) => CatTerm;
17
+ export declare const dualCat: (dual: Duality, inner: CatTerm) => CatTerm;
18
+ export declare const opCat: (inner: CatTerm) => CatTerm;
19
+ export declare const homCat: (ambient: CatTerm, src: Term, dst: Term) => CatTerm;
20
+ export declare const pathCat: (grpd: Term) => CatTerm;
21
+ export declare const funCat: (mode: TransfMode, dom: CatTerm, cod: CatTerm) => CatTerm;
22
+ export declare const cartCat: (dom: CatTerm, cod: CatTerm) => CatTerm;
23
+ export declare const laxFunCat: (dom: CatTerm, cod: CatTerm) => CatTerm;
24
+ export declare const transfCat: (mode: TransfMode, dom: CatTerm, cod: CatTerm, srcFun: Term, dstFun: Term) => CatTerm;
25
+ export declare const sigmaCat: (pol: SigmaPolarity, base: CatTerm, fam: Term) => CatTerm;
26
+ export declare const piCat: (level: number, base: CatTerm, fam: Term) => CatTerm;
27
+ export declare const walkingEndCat: CatTerm;
28
+ export declare const walkingArrowCat: CatTerm;
29
+ export declare const fibreCat: (level: number, base: CatTerm, fam: Term, index: Term) => CatTerm;
30
+ export declare const termCat: (term: Term) => CatTerm;
31
+ export declare const v: (sym: VarSym) => Term;
32
+ export declare const globalRef: (name: string) => Term;
33
+ export declare const grpdU: (level?: number) => Term;
34
+ export declare const strictCatU: (level?: number) => Term;
35
+ export declare const grayCatU: (level?: number) => Term;
36
+ export declare const catAsTerm: (cat: CatTerm) => Term;
37
+ export declare const objGrpd: (cat: CatTerm) => Term;
38
+ export declare const emptyG: Term;
39
+ export declare const emptyElim: (name: string, motive: (x: Term) => Term, scrutinee: Term) => Term;
40
+ export declare const emptyExFalso: (targetGrpd: Term, scrutinee: Term) => Term;
41
+ export declare const unitG: Term;
42
+ export declare const tt: Term;
43
+ export declare const boolG: Term;
44
+ export declare const boolFalse: Term;
45
+ export declare const boolTrue: Term;
46
+ export declare const boolLit: (b: boolean) => Term;
47
+ export declare const boolElim: (motiveName: string, motive: (b: Term) => Term, falseCase: Term, trueCase: Term, scrutinee: Term) => Term;
48
+ export declare const ifBool: (resTy: Term, cond: Term, thenBr: Term, elseBr: Term) => Term;
49
+ export declare const natG: Term;
50
+ export declare const zero: Term;
51
+ export declare const succ: (pred: Term) => Term;
52
+ export declare const natLit: (n: number) => Term;
53
+ export declare const natElim: (motiveName: string, motive: (n: Term) => Term, zeroCase: Term, stepNames: readonly [string, string], succCase: (n: Term, ih: Term) => Term, scrutinee: Term) => Term;
54
+ export declare const sumG: (left: Term, right: Term) => Term;
55
+ export declare const inl: (leftTy: Term, rightTy: Term, val: Term) => Term;
56
+ export declare const inr: (leftTy: Term, rightTy: Term, val: Term) => Term;
57
+ export declare const sumElim: (leftTy: Term, rightTy: Term, motiveName: string, motive: (s: Term) => Term, inlName: string, inlCase: (a: Term) => Term, inrName: string, inrCase: (b: Term) => Term, scrutinee: Term) => Term;
58
+ export declare const listG: (elemTy: Term) => Term;
59
+ export declare const nil: (elemTy: Term) => Term;
60
+ export declare const cons: (elemTy: Term, head: Term, tail: Term) => Term;
61
+ export declare const listLit: (elemTy: Term, elems: readonly Term[]) => Term;
62
+ export declare const listElim: (elemTy: Term, motiveName: string, motive: (xs: Term) => Term, nilCase: Term, stepNames: readonly [string, string, string], consCase: (h: Term, t: Term, ih: Term) => Term, scrutinee: Term) => Term;
63
+ export declare const piG: (name: string, dom: Term, cod: (x: Term, sym: VarSym) => Term) => Term;
64
+ export declare const arrG: (dom: Term, cod: Term) => Term;
65
+ export declare const lamG: (name: string, dom: Term, body: (x: Term, sym: VarSym) => Term) => Term;
66
+ export declare const appG: (fn: Term, ...args: Term[]) => Term;
67
+ export declare const sigmaG: (name: string, fst: Term, snd: (x: Term, sym: VarSym) => Term) => Term;
68
+ export declare const prodG: (fst: Term, snd: Term) => Term;
69
+ export declare const pairG: (name: string, fstTy: Term, sndTy: (x: Term) => Term, fst: Term, snd: Term) => Term;
70
+ export declare const pairNonDepG: (fstTy: Term, sndTy: Term, fst: Term, snd: Term) => Term;
71
+ export declare const fstG: (pair: Term) => Term;
72
+ export declare const sndG: (pair: Term) => Term;
73
+ export declare const eqG: (ty: Term, lhs: Term, rhs: Term) => Term;
74
+ export declare const refl: (ty: Term, val: Term) => Term;
75
+ export declare const eqSym: (ty: Term, lhs: Term, rhs: Term, path: Term) => Term;
76
+ export declare const eqTrans: (ty: Term, x: Term, y: Term, z: Term, second: Term, first: Term) => Term;
77
+ export declare const eqAp: (dom: Term, cod: Term, fn: Term, lhs: Term, rhs: Term, path: Term) => Term;
78
+ export declare const eqJ: (ty: Term, base: Term, names: readonly [string, string], motive: (y: Term, p: Term) => Term, reflCase: Term, target: Term, path: Term) => Term;
79
+ export declare const coeG: (level: number, srcTy: Term, dstTy: Term, tyPath: Term, val: Term) => Term;
80
+ export declare const uaG: (level: number, lhsTy: Term, rhsTy: Term, toFn: Term, fromFn: Term, retr: Term, sect: Term) => Term;
81
+ export declare const piFunext: (name: string, dom: Term, cod: (x: Term) => Term, lhsFn: Term, rhsFn: Term, homotopy: Term) => Term;
82
+ export declare const piHapply: (name: string, dom: Term, cod: (x: Term) => Term, lhsFn: Term, rhsFn: Term, fnPath: Term, arg: Term) => Term;
83
+ export declare const circleG: Term;
84
+ export declare const circleBase: Term;
85
+ export declare const circleLoop: Term;
86
+ export declare const circleIsGroupoid: Term;
87
+ export declare const circleInd: (level: number, name: string, motive: (x: Term) => Term, baseCase: Term, loopCase: Term, scrutinee: Term) => Term;
88
+ export declare const circleIndLoopBeta: (level: number, name: string, motive: (x: Term) => Term, baseCase: Term, loopCase: Term) => Term;
89
+ export declare const pshProd: (site: CatTerm, fstPsh: Term, sndPsh: Term) => Term;
90
+ export declare const pshExp: (site: CatTerm, domPsh: Term, codPsh: Term) => Term;
91
+ export declare const sheafifyFun: (site: CatTerm, cov: Term, psh: Term) => Term;
92
+ export declare const sheafRet: (site: CatTerm, cov: Term, psh: Term, obj: Term, val: Term) => Term;
93
+ export declare const sheafGlue: (site: CatTerm, cov: Term, psh: Term, baseObj: Term, targetObj: Term, reindex: Term, sieve: Term, covProof: Term, match: Term) => Term;
94
+ export declare const sheafIsSet: (site: CatTerm, cov: Term, psh: Term, obj: Term) => Term;
95
+ export declare const sheafPullback: (site: CatTerm, cov: Term, psh: Term, baseObj: Term, targetObj: Term, reindex: Term, sieve: Term, covProof: Term, match: Term) => Term;
96
+ export declare const sheafSilent: (site: CatTerm, cov: Term, psh: Term, obj: Term, sieve: Term, covProof: Term, sec: Term) => Term;
97
+ export declare const sheafRec: (site: CatTerm, cov: Term, psh: Term, targetPsh: Term, targetIsSet: Term, targetIsSheaf: Term, baseHom: Term) => Term;
98
+ export declare const idCell: (cat: CatTerm, obj: Term) => Term;
99
+ export declare const compCell: (cat: CatTerm, x: Term, y: Term, z: Term, second: Term, first: Term) => Term;
100
+ export declare const postcompFun: (cat: CatTerm, w: Term, x: Term, y: Term, arrow: Term) => Term;
101
+ export declare const precompFun: (cat: CatTerm, x: Term, y: Term, z: Term, arrow: Term) => Term;
102
+ export declare const compProdFun: (cat: CatTerm, x: Term, y: Term, z: Term) => Term;
103
+ export declare const idFun: (cat: CatTerm) => Term;
104
+ export declare const compFun: (a: CatTerm, b: CatTerm, c: CatTerm, second: Term, first: Term) => Term;
105
+ export declare const constFun: (dom: CatTerm, cod: CatTerm, val: Term) => Term;
106
+ export declare const constCatFam: (level: number, base: CatTerm, fibre: CatTerm) => Term;
107
+ export declare const lamFun: (name: string, dom: CatTerm, cod: CatTerm, body: (x: Term, sym: VarSym) => Term) => Term;
108
+ export declare const fapp0: (dom: CatTerm, cod: CatTerm, fun: Term, arg: Term) => Term;
109
+ export declare const fapp1: (dom: CatTerm, cod: CatTerm, fun: Term, src: Term, dst: Term) => Term;
110
+ export declare const fappCell: (dom: CatTerm, cod: CatTerm, fun: Term, src: Term, dst: Term, arrow: Term) => Term;
111
+ export declare const funObjMap: (dom: CatTerm, cod: CatTerm, fun: Term) => Term;
112
+ export declare const dualFun: (dual: Duality, dom: CatTerm, cod: CatTerm, fun: Term) => Term;
113
+ export declare const familyDualFun: (dual: Duality, level: number, base: CatTerm, fam: Term) => Term;
114
+ export declare const opCatCartFun: (level?: number) => Term;
115
+ export declare const totalOpCatFun: (level?: number, cartOnly?: boolean) => Term;
116
+ export declare const termFun: (dom: CatTerm) => Term;
117
+ export declare const prodPairFun: (dom: CatTerm, fstCat: CatTerm, sndCat: CatTerm, fstFun: Term, sndFun: Term) => Term;
118
+ export declare const fstFun: (fstCat: CatTerm, sndCat: CatTerm) => Term;
119
+ export declare const sndFun: (fstCat: CatTerm, sndCat: CatTerm) => Term;
120
+ export declare const curryCartFun: (a: CatTerm, b: CatTerm, c: CatTerm, fun: Term) => Term;
121
+ export declare const uncurryCartFun: (a: CatTerm, b: CatTerm, c: CatTerm, fun: Term) => Term;
122
+ export declare const pathMapFun: (domGrpd: Term, codGrpd: Term, fn: Term) => Term;
123
+ export declare const coreInclFun: (cat: CatTerm) => Term;
124
+ export declare const idTransf: (mode: TransfMode, dom: CatTerm, cod: CatTerm, fun: Term) => Term;
125
+ export declare const constTransf: (mode: TransfMode, dom: CatTerm, cod: CatTerm, srcObj: Term, dstObj: Term, arrow: Term) => Term;
126
+ export declare const forgetStrictTransf: (targetMode: "lax" | "oplax", dom: CatTerm, cod: CatTerm, srcFun: Term, dstFun: Term, strictTransf: Term) => Term;
127
+ export declare const prewhiskerTransf: (mode: TransfMode, a0: CatTerm, a: CatTerm, b: CatTerm, preFun: Term, srcFun: Term, dstFun: Term, transf: Term) => Term;
128
+ export declare const postwhiskerTransf: (mode: TransfMode, a: CatTerm, b: CatTerm, c: CatTerm, postFun: Term, srcFun: Term, dstFun: Term, transf: Term) => Term;
129
+ export declare const vcompTransf: (mode: TransfMode, dom: CatTerm, cod: CatTerm, srcFun: Term, midFun: Term, dstFun: Term, second: Term, first: Term) => Term;
130
+ export declare const lamTransf: (mode: TransfMode, name: string, dom: CatTerm, cod: CatTerm, srcFun: Term, dstFun: Term, cellBody: (a: Term, sym: VarSym) => NaturalCellTerm) => Term;
131
+ export declare const tapp0: (mode: TransfMode, dom: CatTerm, cod: CatTerm, srcFun: Term, dstFun: Term, transf: Term, obj: Term) => Term;
132
+ export declare const tapp1: (mode: TransfMode, dom: CatTerm, cod: CatTerm, srcFun: Term, dstFun: Term, transf: Term, srcObj: Term, dstObj: Term) => Term;
133
+ export declare const tapp1Cell: (mode: TransfMode, dom: CatTerm, cod: CatTerm, srcFun: Term, dstFun: Term, transf: Term, srcObj: Term, dstObj: Term, arrow: Term) => Term;
134
+ export declare const tlaxity: (mode: "lax" | "oplax", dom: CatTerm, cod: CatTerm, srcFun: Term, dstFun: Term, transf: Term, srcObj: Term, dstObj: Term) => Term;
135
+ export declare const strictNatEq: (dom: CatTerm, cod: CatTerm, srcFun: Term, dstFun: Term, strictTransf: Term, srcObj: Term, dstObj: Term, arrow: Term) => Term;
136
+ export declare const dualTransf: (dual: Duality, mode: TransfMode, dom: CatTerm, cod: CatTerm, srcFun: Term, dstFun: Term, transf: Term) => Term;
137
+ export declare const constSecToFun: (level: number, dom: CatTerm, cod: CatTerm, sec: Term) => Term;
138
+ export declare const funToConstSec: (level: number, dom: CatTerm, cod: CatTerm, fun: Term) => Term;
139
+ export declare const sigmaFstFun: (pol: SigmaPolarity, level: number, base: CatTerm, fam: Term) => Term;
140
+ export declare const sigmaIntroFun: (pol: SigmaPolarity, level: number, base: CatTerm, fam: Term, baseObj: Term) => Term;
141
+ export declare const sigmaTransportCell: (level: number, base: CatTerm, fam: Term, srcBase: Term, dstBase: Term, baseArrow: Term, fibreObj: Term) => Term;
142
+ export declare const sigmaMapFun: (pol: SigmaPolarity, level: number, base: CatTerm, srcFam: Term, dstFam: Term, funcd: Term) => Term;
143
+ export declare const homRepFun: (level: number, cat: CatTerm, srcObj: Term) => Term;
144
+ export declare const walkingBase: Term;
145
+ export declare const walkingLoop: Term;
146
+ export declare const walkingIsOneCat: Term;
147
+ export declare const walkingIndFuncd: (level: number, srcFam: Term, dstFam: Term, baseFun: Term, loopCoherence: Term) => Term;
148
+ export declare const walkingArrowZero: Term;
149
+ export declare const walkingArrowOne: Term;
150
+ export declare const walkingArrowSeg: Term;
151
+ export declare const walkingArrowIsOneCat: Term;
152
+ export declare const walkingArrowRec: (cod: CatTerm, zeroObj: Term, oneObj: Term, segCell: Term) => Term;
153
+ export declare const walkingArrowIndTransf: (mode: "lax" | "oplax", cod: CatTerm, srcFun: Term, dstFun: Term, zeroCell: Term, oneCell: Term, segCell: Term) => Term;
154
+ export declare const groupoidifyG: (cat: CatTerm) => Term;
155
+ export declare const groupoidifyPt: (cat: CatTerm, obj: Term) => Term;
156
+ export declare const groupoidifyUnitFun: (cat: CatTerm) => Term;
157
+ export declare const groupoidifyIsGroupoid: (cat: CatTerm) => Term;
158
+ export declare const groupoidifyRec: (cat: CatTerm, targetGrpd: Term, fun: Term, scrutinee: Term) => Term;
159
+ export declare const groupoidifyRecBeta: (cat: CatTerm, targetGrpd: Term, fun: Term, src: Term, dst: Term, arrow: Term) => Term;
160
+ export declare const groupoidifyHomotopy: (cat: CatTerm, targetGrpd: Term, targetIs1Grpd: Term, lhsMap: Term, rhsMap: Term, ptEq: Term, edgeNat: Term, scrutinee: Term) => Term;
161
+ export declare const joinInlFun: (left: CatTerm, right: CatTerm) => Term;
162
+ export declare const joinInrFun: (left: CatTerm, right: CatTerm) => Term;
163
+ export declare const joinElimFun: (left: CatTerm, right: CatTerm, cod: CatTerm, leftFun: Term, rightFun: Term, crossTransf: Term) => Term;
164
+ export declare const joinObserveCross: (left: CatTerm, right: CatTerm, cod: CatTerm, fun: Term) => Term;
165
+ export declare const joinCone1CatTransf: (left: CatTerm, right: CatTerm, cod: CatTerm, codIsOneCat: Term, leftFun: Term, rightFun: Term, crossCell: Term, leftNat: Term, rightNat: Term) => Term;
166
+ export declare const funTypeGrpd: (dom: CatTerm, cod: CatTerm) => Term;
167
+ export declare const transfTypeGrpd: (mode: TransfMode, dom: CatTerm, cod: CatTerm, srcFun: Term, dstFun: Term) => Term;
168
+ export declare const functordCat: (level: number, base: CatTerm, srcFam: Term, dstFam: Term) => CatTerm;
169
+ export declare const functordGrpd: (level: number, base: CatTerm, srcFam: Term, dstFam: Term) => Term;
170
+ export declare const cellId: (cat: CatTerm, obj: Term) => NaturalCellTerm;
171
+ export declare const cellConst: (cat: CatTerm, src: Term, dst: Term, arrow: Term) => NaturalCellTerm;
172
+ export declare const cellTApp0: (mode: TransfMode, dom: CatTerm, cod: CatTerm, srcFun: Term, dstFun: Term, transf: Term, arg: Term) => NaturalCellTerm;
173
+ export declare const cellVComp: (cat: CatTerm, fObj: Term, gObj: Term, hObj: Term, second: NaturalCellTerm, first: NaturalCellTerm) => NaturalCellTerm;
174
+ export declare const cellWhiskerFun: (domCat: CatTerm, codCat: CatTerm, functor: Term, srcObj: Term, dstObj: Term, inner: NaturalCellTerm) => NaturalCellTerm;
175
+ export declare const cellFuncdLam: (level: number, srcFamObj: CatTerm, dstFamObj: CatTerm, fibreName: string, body: (uSym: VarSym) => DisplayedBodyTerm) => NaturalCellTerm;
176
+ export declare const dispVar: DisplayedBodyTerm;
177
+ export declare const dispConst: (targetCat: CatTerm, value: Term) => DisplayedBodyTerm;
178
+ export declare const dispAppFuncd: (baseCat: CatTerm, level: number, midFam: Term, dstFam: Term, funcd: Term, inner: DisplayedBodyTerm) => DisplayedBodyTerm;
179
+ export declare const dispAppFixedFun: (srcCat: CatTerm, dstCat: CatTerm, functor: Term, inner: DisplayedBodyTerm) => DisplayedBodyTerm;
180
+ export declare const uaIdLoop: (level: number, ty: Term, homotopy: Term) => Term;
181
+ export declare const uaIdLoopBeta: (level: number, ty: Term, homotopy: Term, arg: Term) => Term;
182
+ export declare const pushoutG: (leftTy: Term, rightTy: Term, spanTy: Term, leftMap: Term, rightMap: Term) => Term;
183
+ export declare const pushoutInl: (leftTy: Term, rightTy: Term, spanTy: Term, leftMap: Term, rightMap: Term, val: Term) => Term;
184
+ export declare const pushoutInr: (leftTy: Term, rightTy: Term, spanTy: Term, leftMap: Term, rightMap: Term, val: Term) => Term;
185
+ export declare const pushoutGlue: (leftTy: Term, rightTy: Term, spanTy: Term, leftMap: Term, rightMap: Term, point: Term) => Term;
186
+ export declare const pushoutInd: (level: number, leftTy: Term, rightTy: Term, spanTy: Term, leftMap: Term, rightMap: Term, motiveName: string, motive: (u: Term) => Term, inlName: string, inlCase: (a: Term) => Term, inrName: string, inrCase: (b: Term) => Term, glueName: string, glueCase: (c: Term) => Term, scrutinee: Term) => Term;
187
+ export declare const pushoutIndGlueBeta: (level: number, leftTy: Term, rightTy: Term, spanTy: Term, leftMap: Term, rightMap: Term, motiveName: string, motive: (u: Term) => Term, inlName: string, inlCase: (a: Term) => Term, inrName: string, inrCase: (b: Term) => Term, glueName: string, glueCase: (c: Term) => Term, point: Term) => Term;
188
+ export declare const trunc0G: (inner: Term) => Term;
189
+ export declare const trunc0In: (inner: Term, val: Term) => Term;
190
+ export declare const trunc0IsSet: (inner: Term) => Term;
191
+ export declare const trunc0Ind: (level: number, inner: Term, motiveName: string, motive: (u: Term) => Term, isSetMotive: Term, inName: string, inCase: (x: Term) => Term, scrutinee: Term) => Term;