{"openapi":"3.1.0","info":{"title":"RH Lean Explorer API","version":"2026-12-01","summary":"Static JSON about the map of the Lean proof of the Riemann hypothesis.","description":"Read-only static files, no key, no rate limit beyond normal caching (max-age 3600, CORS open). Cluster and theme names and descriptions on this site are written by Claude from samples of the code and may be wrong, except the 16 core clusters marked checked in /api/clusters.json, which were checked against their full Lean code. Era, level and new_in_proof are editorial tags derived from descriptions and concept tags; they may be wrong.","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"}},"servers":[{"url":"https://riemannhypothesissolved.com"}],"externalDocs":{"description":"API index","url":"https://riemannhypothesissolved.com/api/index.json"},"paths":{"/api/index.json":{"get":{"operationId":"getIndex","summary":"API index: the endpoints, tag meanings and licence","description":"Static JSON about the map of the Lean proof of the Riemann hypothesis.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Index"}}}}}}},"/api/status.json":{"get":{"operationId":"getStatus","summary":"Dated status of the proof, with primary sources","description":"dated proof status with primary sources","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}}}}}},"/api/clusters.json":{"get":{"operationId":"getClusters","summary":"Every cluster","description":"all 2,647 clusters: id, title, theme, page, files, dist, field, era, era_year, level, new_in_proof, checked; plus math_fields, the 9 fields (id, name, hue, description)","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Clusters"}}}}}}},"/api/themes.json":{"get":{"operationId":"getThemes","summary":"Every theme","description":"all 63 themes: id, name, blurb, page, clusters, files, field","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Themes"}}}}}}},"/api/references.json":{"get":{"operationId":"getReferences","summary":"Checked references, and works cited by guides (not checked)","description":"checked references for 70 clusters (the 41 of the spine, the main path and the core, and guide citations judged to support a cluster): citation, locator, url, doi, precision (exact, section or topic), match, note, evidence, \"checked\": true; and guide_citations, 3230 works on 950 clusters flagged \"checked\": false, \"basis\": \"guide-page-citation\" (cited on a guide page that covers this node (automatic, not checked))","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/References"}}}}}}},"/api/file-lines/index.json":{"get":{"operationId":"getFileLinesIndex","summary":"Core clusters with English readings of their Lean files","description":"the 16 core clusters with English readings of their Lean files: id, title, files, url, pages","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileLinesIndex"}}}}}}},"/api/editions.json":{"get":{"operationId":"getEditions","summary":"Proof editions and source revisions. Home defaults to Sernau readable. Use /sernau/ or /alpoge/ for explicit maps.","description":"Proof editions and source revisions. Home defaults to Sernau readable. Use /sernau/ or /alpoge/ for explicit maps.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Editions"}}}}}}},"/api/sernau/index.json":{"get":{"operationId":"getSernauIndex","summary":"Readable edition data and provenance","description":"Readable edition data and provenance","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SernauIndex"}}}}}}},"/api/sernau/groups.json":{"get":{"operationId":"getSernauGroups","summary":"Readable source groups and their dependencies","description":"Readable source groups and their dependencies","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SernauGroups"}}}}}}},"/api/sernau/modules.json":{"get":{"operationId":"getSernauModules","summary":"Readable Lean modules and source links","description":"Readable Lean modules and source links","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SernauModules"}}}}}}},"/api/sernau/theorems.json":{"get":{"operationId":"getSernauTheorems","summary":"Five headline theorem declarations in the readable edition","description":"Five headline theorem declarations in the readable edition","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SernauTheorems"}}}}}}},"/api/file-lines/{cluster}.json":{"get":{"operationId":"getFileLines","summary":"A core cluster's Lean files in plain English","description":"one core cluster's Lean files in plain English, e.g. /api/file-lines/k0677.json with 65 files (1,460 in the 16 core clusters together): module, depth, lines, line, reading, key_decls (name, gloss), blueprint, status, check, viewer, page. Written by AI from the Lean source at commit 40e56bab; each sentence checked against the code by a second pass.","parameters":[{"name":"cluster","in":"path","required":true,"description":"core cluster id","schema":{"type":"string","enum":["k0250","k0293","k0427","k0677","k0695","k0704","k0913","k1091","k1394","k2009","k2033","k2384","k2395","k2401","k2404","k2463"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileLines"}}}}}}}},"components":{"schemas":{"Index":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"endpoints":{"type":"object","properties":{"/api/status.json":{"type":"string"},"/api/clusters.json":{"type":"string"},"/api/themes.json":{"type":"string"},"/api/references.json":{"type":"string"},"/api/file-lines/index.json":{"type":"string"},"/api/file-lines/{cluster}.json":{"type":"string"},"/api/editions.json":{"type":"string"},"/api/sernau/index.json":{"type":"string"},"/api/sernau/groups.json":{"type":"string"},"/api/sernau/modules.json":{"type":"string"},"/api/sernau/theorems.json":{"type":"string"}},"required":["/api/status.json","/api/clusters.json","/api/themes.json","/api/references.json","/api/file-lines/index.json","/api/file-lines/{cluster}.json","/api/editions.json","/api/sernau/index.json","/api/sernau/groups.json","/api/sernau/modules.json","/api/sernau/theorems.json"]},"tags":{"type":"object","properties":{"field":{"type":"string"},"era":{"type":"string"},"level":{"type":"string"},"new_in_proof":{"type":"string"},"note":{"type":"string"},"map_filters":{"type":"string"}},"required":["field","era","level","new_in_proof","note","map_filters"]},"markdown":{"type":"string"},"feeds":{"type":"object","properties":{"/changelog/feed.xml":{"type":"string"},"/sitemap.xml":{"type":"string"}},"required":["/changelog/feed.xml","/sitemap.xml"]},"source":{"type":"string"},"openapi":{"type":"string"},"license":{"type":"object","properties":{"url":{"type":"string"},"name":{"type":"string"},"applies_to":{"type":"string"}},"required":["url","name","applies_to"]}},"required":["name","description","endpoints","tags","markdown","feeds","source","openapi","license"]},"Status":{"type":"object","properties":{"edition":{"type":"string"},"shorter_editions":{"type":"object","properties":{"revision":{"type":"string"},"as_of_utc":{"type":"string"},"source":{"type":"string"},"readable":{"type":"string"},"compact":{"type":"string"},"additional_reports":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"event":{"type":"string"},"source":{"type":"string"}},"required":["date","event","source"]}}},"required":["revision","as_of_utc","source","readable","compact","additional_reports"]},"updated":{"type":"string"},"question":{"type":"string"},"as_of":{"type":"string"},"status":{"type":"string"},"timeline":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"event":{"type":"string"},"source":{"type":"string"}},"required":["date","event","source"]}},"certification":{"type":"object","properties":{"text":{"type":"string"},"quote":{"type":"string"},"source":{"type":"string"}},"required":["text","quote","source"]},"verified":{"type":"string"},"verified_sources":{"type":"array","items":{"type":"string"}},"checks":{"type":"array","items":{"type":"string"}},"checks_source":{"type":"string"},"ongoing_checks":{"type":"object","properties":{"text":{"type":"string"},"url":{"type":"string"}},"required":["text","url"]},"scope":{"type":"string"},"source_archive":{"type":"object","properties":{"text":{"type":"string"},"repo":{"type":"string"},"commit":{"type":"string"},"files":{"type":"integer"}},"required":["text","repo","commit","files"]},"sources":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":["null","string"]}},"required":["name","url"]}},"details":{"type":"string"},"page":{"type":"string"},"counts":{"type":"object","properties":{"lean_files":{"type":"integer"},"mapped_files":{"type":"integer"},"unmapped_files":{"type":"object","properties":{"total":{"type":"integer"},"import_only":{"type":"integer"},"build_helpers":{"type":"integer"},"no_theorem_or_definition":{"type":"integer"}},"required":["total","import_only","build_helpers","no_theorem_or_definition"]},"clusters":{"type":"integer"},"themes":{"type":"integer"}},"required":["lean_files","mapped_files","unmapped_files","clusters","themes"]},"note":{"type":"string"},"license":{"type":"object","properties":{"url":{"type":"string"},"name":{"type":"string"},"applies_to":{"type":"string"}},"required":["url","name","applies_to"]}},"required":["edition","shorter_editions","updated","question","as_of","status","timeline","certification","verified","verified_sources","checks","checks_source","ongoing_checks","scope","source_archive","sources","details","page","counts","note","license"]},"Clusters":{"type":"object","properties":{"updated":{"type":"string"},"site":{"type":"string"},"fields":{"type":"object","properties":{"path":{"type":"string"},"dist":{"type":"string"},"files":{"type":"string"},"field":{"type":"string"},"era":{"type":"string"},"era_year":{"type":"string"},"level":{"type":"string"},"new_in_proof":{"type":"string"},"checked":{"type":"string"}},"required":["path","dist","files","field","era","era_year","level","new_in_proof","checked"]},"tags_note":{"type":"string"},"math_fields":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"hue":{"type":"integer"},"description":{"type":"string"}},"required":["id","name","hue","description"]}},"main":{"type":"string"},"clusters":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["null","string"]},"theme":{"type":"string"},"path":{"type":"string","description":"page on the site (prefix with site)"},"files":{"type":"integer","description":"Lean files in the cluster"},"dist":{"type":["integer","null"],"description":"import steps from the main theorem (null: not reachable)"},"field":{"type":"string","description":"id of the cluster's field of mathematics (that of its theme; see math_fields)","enum":["ag","an","aut","av","ht","lat","nt","padic","theta"]},"era":{"type":"string","description":"decade of the newest concept the cluster needs: before 1900, 1900-1949, 1950s, 1960s, 1970s, 1980s, 1990s, 2000s, 2010s, 2020s","enum":["1900-1949","1950s","1960s","1970s","1980s","1990s","2000s","2010s","2020s","before 1900"]},"era_year":{"type":"integer","description":"year of that newest concept"},"level":{"type":"string","description":"highest maths level among its concepts: School, Undergraduate, Graduate, PhD, Research","enum":["Graduate","PhD","Research","School","Undergraduate"]},"new_in_proof":{"type":"boolean","description":"true if it rests on the proof's own named constructions rather than published mathematics"},"checked":{"type":"boolean","description":"true for the 16 core clusters whose title and description were checked against their full Lean code and corrected; false: written by Claude from a sample of the code, may be wrong"}},"required":["id","title","theme","path","files","dist","field","era","era_year","level","new_in_proof","checked"]}}},"required":["updated","site","fields","tags_note","math_fields","main","clusters"]},"Themes":{"type":"object","properties":{"updated":{"type":"string"},"fields":{"type":"object","properties":{"files":{"type":"string"},"units":{"type":"string"},"clusters":{"type":"string"},"field":{"type":"string"}},"required":["files","units","clusters","field"]},"themes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"blurb":{"type":["null","string"]},"path":{"type":"string"},"url":{"type":["null","string"]},"clusters":{"type":"integer","description":"clusters in the theme"},"files":{"type":"integer","description":"Lean files in the theme (all themes sum to the mapped total)"},"units":{"type":"integer","description":"units after folding wrappers and single-use helpers into the file they belong to"},"field":{"type":"string","description":"id of the field of mathematics the theme belongs to (see math_fields in /api/clusters.json)","enum":["ag","an","aut","av","ht","lat","nt","padic","theta"]}},"required":["id","name","blurb","path","url","clusters","files","units","field"]}}},"required":["updated","fields","themes"]},"References":{"type":"object","properties":{"updated":{"type":"string"},"lean_commit":{"type":"string"},"fields":{"type":"object","properties":{"precision":{"type":"string"},"citation":{"type":"string"},"locator":{"type":"string"},"url":{"type":"string"},"match":{"type":"string"},"note":{"type":"string"},"evidence":{"type":"string"},"checked":{"type":"string"},"basis":{"type":"string"},"automatic_reference":{"type":"string"},"guide_citations":{"type":"string"},"cited_on":{"type":"string"},"guides":{"type":"string"},"other_clusters":{"type":"string"}},"required":["precision","citation","locator","url","match","note","evidence","checked","basis","automatic_reference","guide_citations","cited_on","guides","other_clusters"]},"clusters":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["null","string"]},"path":{"type":"string"},"dist":{"type":["integer","null"]},"spine":{"type":"boolean"},"automatic_reference":{"type":"object","description":"the book reference the site showed before the check (suggested by the AI that named the cluster); verdict: ok, partly, weak, unverified, wrong or none; shown on the page only where there is no checked reference and the verdict is not wrong","properties":{"text":{"type":["null","string"]},"verdict":{"type":"string"},"shown":{"type":"boolean"}},"required":["text","verdict","shown"]},"references":{"type":"array","items":{"type":"object","properties":{"citation":{"type":"string","description":"the work cited"},"locator":{"type":["null","string"],"description":"where in it (chapter, section, theorem)"},"url":{"type":["null","string"],"description":"link to the work (DOI where there is one)"},"doi":{"type":["null","string"]},"precision":{"type":"string","description":"exact: theorem, lemma or section number read in the cited text and the stated result matches the Lean statement (see match). Downgraded to section when the match is only related or partial.; section: right chapter or section, not a specific theorem (chapter title verified from a contents list); topic: general reference: paper or book cited without a verified locator"},"match":{"type":["null","string"],"description":"how the cited result compares with the Lean statement, where checked"},"note":{"type":["null","string"],"description":"the checker's caveat, if any"},"checked":{"type":"boolean","description":"true: a checked reference (clusters, references); false: an automatic one (guide_citations)"},"basis":{"type":"string","description":"spine-check: checked for the spine (main path and core); guide-citation-judged: a guide citation judged to support the cluster, with its precision; guide-page-citation: \"Cited on a guide page that covers this node (automatic, not checked)\", the work is cited on a page of an expert guide that also covers this cluster, and nobody has checked that it is about this cluster"},"evidence":{"type":"array","description":"what the reference was checked against (Lean file and line, contents lists, the blueprint, the citing guide page)","items":{"type":"string"}}},"required":["citation","locator","url","doi","precision","match","note","checked","basis","evidence"]}}},"required":["id","title","path","dist","spine","automatic_reference","references"]}},"guide_citations":{"type":"array","items":{"type":"object","properties":{"cluster":{"type":"string"},"title":{"type":["null","string"]},"path":{"type":"string"},"spine":{"type":"boolean"},"label":{"type":"string"},"works":{"type":"array","items":{"type":"object","properties":{"citation":{"type":"string","description":"the work cited"},"url":{"type":["null","string"],"description":"link to the work (DOI where there is one)"},"checked":{"type":"boolean","description":"true: a checked reference (clusters, references); false: an automatic one (guide_citations)"},"basis":{"type":"string","description":"spine-check: checked for the spine (main path and core); guide-citation-judged: a guide citation judged to support the cluster, with its precision; guide-page-citation: \"Cited on a guide page that covers this node (automatic, not checked)\", the work is cited on a page of an expert guide that also covers this cluster, and nobody has checked that it is about this cluster"},"guides":{"type":"integer","description":"number of distinct guides that cite the work on a page covering the cluster"},"cited_on":{"type":"array","description":"the citing pages: guide id, guide (short name), page as the guide labels it, url of that page","items":{"type":"object","properties":{"guide":{"type":"string"},"guide_name":{"type":"string"},"page":{"type":"string"},"url":{"type":["null","string"],"description":"link to the work (DOI where there is one)"}},"required":["guide","guide_name","page","url"]}}},"required":["citation","url","checked","basis","guides","cited_on"]}}},"required":["cluster","title","path","spine","label","works"]}}},"required":["updated","lean_commit","fields","clusters","guide_citations"]},"FileLinesIndex":{"type":"object","properties":{"updated":{"type":"string"},"how":{"type":"string"},"source_commit":{"type":"string"},"clusters":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["null","string"]},"files":{"type":"integer"},"url":{"type":["null","string"]},"pages":{"type":"array","items":{"type":"string"}}},"required":["id","title","files","url","pages"]}}},"required":["updated","how","source_commit","clusters"]},"Editions":{"type":"object","properties":{"default":{"type":"string"},"editions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"map":{"type":"string"},"revision":{"type":"string"},"source":{"type":"string"},"api":{"type":"string"},"unit":{"type":"string"},"comparison":{"type":"string"}},"required":["id","label","revision","source"]}}},"required":["default","editions"]},"SernauIndex":{"type":"object","properties":{"edition":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"title":{"type":"string"},"repository":{"type":"string"},"revision":{"type":"string"},"sourceRoot":{"type":"string"},"sourceTree":{"type":"string"},"leanToolchain":{"type":"string"},"mathlibRevision":{"type":"string"},"url":{"type":"string"},"verificationUrl":{"type":"string"},"verificationAsOf":{"type":"string"},"attribution":{"type":"string"},"license":{"type":"string"},"grouping":{"type":"string"},"units":{"type":"object","properties":{"modules":{"type":"string"},"groups":{"type":"string"},"moduleEdges":{"type":"string"},"groupEdges":{"type":"string"},"physicalLines":{"type":"string"},"reach":{"type":"string"}},"required":["modules","groups","moduleEdges","groupEdges","physicalLines","reach"]},"features":{"type":"object","properties":{"rawSource":{"type":"boolean"},"directImports":{"type":"boolean"},"sourceDeclarationOutline":{"type":"boolean"},"namedReferences":{"type":"string"},"upstreamGuide":{"type":"boolean"},"upstreamReferenceAudit":{"type":"boolean"},"englishLabels":{"type":"string"},"fieldTags":{"type":"boolean"},"eraTags":{"type":"boolean"},"levelTags":{"type":"boolean"},"originalityTags":{"type":"boolean"},"guideMatches":{"type":"boolean"},"reviewedEnglishReadings":{"type":"boolean"}},"required":["rawSource","directImports","sourceDeclarationOutline","namedReferences","upstreamGuide","upstreamReferenceAudit","englishLabels","fieldTags","eraTags","levelTags","originalityTags","guideMatches","reviewedEnglishReadings"]},"compact":{"type":"object","properties":{"sourceRoot":{"type":"string"},"sourceTree":{"type":"string"},"modules":{"type":"integer"}},"required":["sourceRoot","sourceTree","modules"]},"original":{"type":"object","properties":{"repository":{"type":"string"},"revision":{"type":"string"},"sourceRoot":{"type":"string"}},"required":["repository","revision","sourceRoot"]},"buildId":{"type":"string"},"manifestUrl":{"type":"string"},"overviewUrl":{"type":"string"},"fileGraphUrl":{"type":"string"},"modulesUrl":{"type":"string"},"groupsBaseUrl":{"type":"string"},"rawBaseUrl":{"type":"string"},"apiUrl":{"type":"string"},"totals":{"type":"object","properties":{"modules":{"type":"integer"},"groups":{"type":"integer"},"moduleEdges":{"type":"integer"},"groupEdges":{"type":"integer"},"physicalLines":{"type":"integer"},"bytes":{"type":"integer"},"maxModuleDepth":{"type":"integer"},"maxGroupDepth":{"type":"integer"},"groupDepthCounts":{"type":"array","items":{"type":"integer"}},"upstreamLabels":{"type":"integer"},"draftOverrides":{"type":"integer"}},"required":["modules","groups","moduleEdges","groupEdges","physicalLines","bytes","maxModuleDepth","maxGroupDepth","groupDepthCounts","upstreamLabels","draftOverrides"]},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"path":{"type":"string"},"href":{"type":"string"},"github":{"type":"string"}},"required":["id","label","path","href","github"]}}},"required":["id","label","title","repository","revision","sourceRoot","sourceTree","leanToolchain","mathlibRevision","url","verificationUrl","verificationAsOf","attribution","license","grouping","units","features","compact","original","buildId","manifestUrl","overviewUrl","fileGraphUrl","modulesUrl","groupsBaseUrl","rawBaseUrl","apiUrl","totals","documents"]},"groups":{"type":"string"},"modules":{"type":"string"},"theorems":{"type":"string"}},"required":["edition","groups","modules","theorems"]},"SernauGroups":{"type":"object","properties":{"edition":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"title":{"type":"string"},"repository":{"type":"string"},"revision":{"type":"string"},"sourceRoot":{"type":"string"},"sourceTree":{"type":"string"},"leanToolchain":{"type":"string"},"mathlibRevision":{"type":"string"},"url":{"type":"string"},"verificationUrl":{"type":"string"},"verificationAsOf":{"type":"string"},"attribution":{"type":"string"},"license":{"type":"string"},"grouping":{"type":"string"},"units":{"type":"object","properties":{"modules":{"type":"string"},"groups":{"type":"string"},"moduleEdges":{"type":"string"},"groupEdges":{"type":"string"},"physicalLines":{"type":"string"},"reach":{"type":"string"}},"required":["modules","groups","moduleEdges","groupEdges","physicalLines","reach"]},"features":{"type":"object","properties":{"rawSource":{"type":"boolean"},"directImports":{"type":"boolean"},"sourceDeclarationOutline":{"type":"boolean"},"namedReferences":{"type":"string"},"upstreamGuide":{"type":"boolean"},"upstreamReferenceAudit":{"type":"boolean"},"englishLabels":{"type":"string"},"fieldTags":{"type":"boolean"},"eraTags":{"type":"boolean"},"levelTags":{"type":"boolean"},"originalityTags":{"type":"boolean"},"guideMatches":{"type":"boolean"},"reviewedEnglishReadings":{"type":"boolean"}},"required":["rawSource","directImports","sourceDeclarationOutline","namedReferences","upstreamGuide","upstreamReferenceAudit","englishLabels","fieldTags","eraTags","levelTags","originalityTags","guideMatches","reviewedEnglishReadings"]},"compact":{"type":"object","properties":{"sourceRoot":{"type":"string"},"sourceTree":{"type":"string"},"modules":{"type":"integer"}},"required":["sourceRoot","sourceTree","modules"]},"original":{"type":"object","properties":{"repository":{"type":"string"},"revision":{"type":"string"},"sourceRoot":{"type":"string"}},"required":["repository","revision","sourceRoot"]},"buildId":{"type":"string"},"manifestUrl":{"type":"string"},"overviewUrl":{"type":"string"},"fileGraphUrl":{"type":"string"},"modulesUrl":{"type":"string"},"groupsBaseUrl":{"type":"string"},"rawBaseUrl":{"type":"string"},"apiUrl":{"type":"string"},"totals":{"type":"object","properties":{"modules":{"type":"integer"},"groups":{"type":"integer"},"moduleEdges":{"type":"integer"},"groupEdges":{"type":"integer"},"physicalLines":{"type":"integer"},"bytes":{"type":"integer"},"maxModuleDepth":{"type":"integer"},"maxGroupDepth":{"type":"integer"},"groupDepthCounts":{"type":"array","items":{"type":"integer"}},"upstreamLabels":{"type":"integer"},"draftOverrides":{"type":"integer"}},"required":["modules","groups","moduleEdges","groupEdges","physicalLines","bytes","maxModuleDepth","maxGroupDepth","groupDepthCounts","upstreamLabels","draftOverrides"]},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"path":{"type":"string"},"href":{"type":"string"},"github":{"type":"string"}},"required":["id","label","path","href","github"]}}},"required":["id","label","title","repository","revision","sourceRoot","sourceTree","leanToolchain","mathlibRevision","url","verificationUrl","verificationAsOf","attribution","license","grouping","units","features","compact","original","buildId","manifestUrl","overviewUrl","fileGraphUrl","modulesUrl","groupsBaseUrl","rawBaseUrl","apiUrl","totals","documents"]},"groups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"label":{"type":"string"},"labelReview":{"type":"string"},"href":{"type":"string"},"labelOrigin":{"type":"string"},"labelEvidence":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"line":{"type":"integer"},"endLine":{"type":"integer"},"github":{"type":"string"},"sha256":{"type":"string"}},"required":["path","line","endLine","github","sha256"]}},"modules":{"type":"array","items":{"type":"string"}},"imports":{"type":"array","items":{"type":"string"}},"importers":{"type":"array","items":{"type":"string"}},"depth":{"type":"integer"},"route":{"type":"array","items":{"type":"string"}},"moduleCount":{"type":"integer"},"reach":{"type":"integer"},"dataUrl":{"type":"string"}},"required":["id","slug","label","labelReview","href","labelOrigin","labelEvidence","modules","imports","importers","depth","route","moduleCount","reach","dataUrl"]}},"edges":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"evidence":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"line":{"type":"integer"},"href":{"type":"string"},"github":{"type":"string"}},"required":["from","to","line","href","github"]}}},"required":["from","to","evidence"]}}},"required":["edition","groups","edges"]},"SernauModules":{"type":"object","properties":{"edition":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"title":{"type":"string"},"repository":{"type":"string"},"revision":{"type":"string"},"sourceRoot":{"type":"string"},"sourceTree":{"type":"string"},"leanToolchain":{"type":"string"},"mathlibRevision":{"type":"string"},"url":{"type":"string"},"verificationUrl":{"type":"string"},"verificationAsOf":{"type":"string"},"attribution":{"type":"string"},"license":{"type":"string"},"grouping":{"type":"string"},"units":{"type":"object","properties":{"modules":{"type":"string"},"groups":{"type":"string"},"moduleEdges":{"type":"string"},"groupEdges":{"type":"string"},"physicalLines":{"type":"string"},"reach":{"type":"string"}},"required":["modules","groups","moduleEdges","groupEdges","physicalLines","reach"]},"features":{"type":"object","properties":{"rawSource":{"type":"boolean"},"directImports":{"type":"boolean"},"sourceDeclarationOutline":{"type":"boolean"},"namedReferences":{"type":"string"},"upstreamGuide":{"type":"boolean"},"upstreamReferenceAudit":{"type":"boolean"},"englishLabels":{"type":"string"},"fieldTags":{"type":"boolean"},"eraTags":{"type":"boolean"},"levelTags":{"type":"boolean"},"originalityTags":{"type":"boolean"},"guideMatches":{"type":"boolean"},"reviewedEnglishReadings":{"type":"boolean"}},"required":["rawSource","directImports","sourceDeclarationOutline","namedReferences","upstreamGuide","upstreamReferenceAudit","englishLabels","fieldTags","eraTags","levelTags","originalityTags","guideMatches","reviewedEnglishReadings"]},"compact":{"type":"object","properties":{"sourceRoot":{"type":"string"},"sourceTree":{"type":"string"},"modules":{"type":"integer"}},"required":["sourceRoot","sourceTree","modules"]},"original":{"type":"object","properties":{"repository":{"type":"string"},"revision":{"type":"string"},"sourceRoot":{"type":"string"}},"required":["repository","revision","sourceRoot"]},"buildId":{"type":"string"},"manifestUrl":{"type":"string"},"overviewUrl":{"type":"string"},"fileGraphUrl":{"type":"string"},"modulesUrl":{"type":"string"},"groupsBaseUrl":{"type":"string"},"rawBaseUrl":{"type":"string"},"apiUrl":{"type":"string"},"totals":{"type":"object","properties":{"modules":{"type":"integer"},"groups":{"type":"integer"},"moduleEdges":{"type":"integer"},"groupEdges":{"type":"integer"},"physicalLines":{"type":"integer"},"bytes":{"type":"integer"},"maxModuleDepth":{"type":"integer"},"maxGroupDepth":{"type":"integer"},"groupDepthCounts":{"type":"array","items":{"type":"integer"}},"upstreamLabels":{"type":"integer"},"draftOverrides":{"type":"integer"}},"required":["modules","groups","moduleEdges","groupEdges","physicalLines","bytes","maxModuleDepth","maxGroupDepth","groupDepthCounts","upstreamLabels","draftOverrides"]},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"path":{"type":"string"},"href":{"type":"string"},"github":{"type":"string"}},"required":["id","label","path","href","github"]}}},"required":["id","label","title","repository","revision","sourceRoot","sourceTree","leanToolchain","mathlibRevision","url","verificationUrl","verificationAsOf","attribution","license","grouping","units","features","compact","original","buildId","manifestUrl","overviewUrl","fileGraphUrl","modulesUrl","groupsBaseUrl","rawBaseUrl","apiUrl","totals","documents"]},"modules":{"type":"object","additionalProperties":{"type":"object","properties":{"name":{"type":"string"},"group":{"type":"string"},"groupSlug":{"type":"string"},"path":{"type":"string"},"href":{"type":"string"},"raw":{"type":"string"},"upstreamRaw":{"type":"string"},"github":{"type":"string"},"lines":{"type":"integer"},"bytes":{"type":"integer"},"sha256":{"type":"string"},"sourceTitle":{"type":["null","string"]},"upstreamCodeLines":{"type":"integer"},"label":{"type":"string"},"labelOrigin":{"type":"string"},"labelReview":{"type":"string"},"depth":{"type":"integer"},"reach":{"type":"integer"},"readHref":{"type":"string"}},"required":["name","group","groupSlug","path","href","raw","upstreamRaw","github","lines","bytes","sha256","sourceTitle","label","labelOrigin","labelReview","depth","reach","readHref"]}}},"required":["edition","modules"]},"SernauTheorems":{"type":"object","properties":{"edition":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"title":{"type":"string"},"repository":{"type":"string"},"revision":{"type":"string"},"sourceRoot":{"type":"string"},"sourceTree":{"type":"string"},"leanToolchain":{"type":"string"},"mathlibRevision":{"type":"string"},"url":{"type":"string"},"verificationUrl":{"type":"string"},"verificationAsOf":{"type":"string"},"attribution":{"type":"string"},"license":{"type":"string"},"grouping":{"type":"string"},"units":{"type":"object","properties":{"modules":{"type":"string"},"groups":{"type":"string"},"moduleEdges":{"type":"string"},"groupEdges":{"type":"string"},"physicalLines":{"type":"string"},"reach":{"type":"string"}},"required":["modules","groups","moduleEdges","groupEdges","physicalLines","reach"]},"features":{"type":"object","properties":{"rawSource":{"type":"boolean"},"directImports":{"type":"boolean"},"sourceDeclarationOutline":{"type":"boolean"},"namedReferences":{"type":"string"},"upstreamGuide":{"type":"boolean"},"upstreamReferenceAudit":{"type":"boolean"},"englishLabels":{"type":"string"},"fieldTags":{"type":"boolean"},"eraTags":{"type":"boolean"},"levelTags":{"type":"boolean"},"originalityTags":{"type":"boolean"},"guideMatches":{"type":"boolean"},"reviewedEnglishReadings":{"type":"boolean"}},"required":["rawSource","directImports","sourceDeclarationOutline","namedReferences","upstreamGuide","upstreamReferenceAudit","englishLabels","fieldTags","eraTags","levelTags","originalityTags","guideMatches","reviewedEnglishReadings"]},"compact":{"type":"object","properties":{"sourceRoot":{"type":"string"},"sourceTree":{"type":"string"},"modules":{"type":"integer"}},"required":["sourceRoot","sourceTree","modules"]},"original":{"type":"object","properties":{"repository":{"type":"string"},"revision":{"type":"string"},"sourceRoot":{"type":"string"}},"required":["repository","revision","sourceRoot"]},"buildId":{"type":"string"},"manifestUrl":{"type":"string"},"overviewUrl":{"type":"string"},"fileGraphUrl":{"type":"string"},"modulesUrl":{"type":"string"},"groupsBaseUrl":{"type":"string"},"rawBaseUrl":{"type":"string"},"apiUrl":{"type":"string"},"totals":{"type":"object","properties":{"modules":{"type":"integer"},"groups":{"type":"integer"},"moduleEdges":{"type":"integer"},"groupEdges":{"type":"integer"},"physicalLines":{"type":"integer"},"bytes":{"type":"integer"},"maxModuleDepth":{"type":"integer"},"maxGroupDepth":{"type":"integer"},"groupDepthCounts":{"type":"array","items":{"type":"integer"}},"upstreamLabels":{"type":"integer"},"draftOverrides":{"type":"integer"}},"required":["modules","groups","moduleEdges","groupEdges","physicalLines","bytes","maxModuleDepth","maxGroupDepth","groupDepthCounts","upstreamLabels","draftOverrides"]},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"path":{"type":"string"},"href":{"type":"string"},"github":{"type":"string"}},"required":["id","label","path","href","github"]}}},"required":["id","label","title","repository","revision","sourceRoot","sourceTree","leanToolchain","mathlibRevision","url","verificationUrl","verificationAsOf","attribution","license","grouping","units","features","compact","original","buildId","manifestUrl","overviewUrl","fileGraphUrl","modulesUrl","groupsBaseUrl","rawBaseUrl","apiUrl","totals","documents"]},"theorems":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"},"statement":{"type":"string"},"type":{"type":"string"},"references":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"module":{"type":"string"},"line":{"type":"integer"},"href":{"type":"string"},"github":{"type":"string"},"evidence":{"type":"object","properties":{"module":{"type":"string"},"line":{"type":"integer"},"github":{"type":"string"}},"required":["module","line","github"]}},"required":["name","module","line","href","github","evidence"]}},"module":{"type":"string"},"line":{"type":"integer"},"href":{"type":"string"},"github":{"type":"string"},"editions":{"type":"object","properties":{"original":{"type":"object","properties":{"module":{"type":"string"},"line":{"type":"integer"},"href":{"type":"string"},"github":{"type":"string"},"revision":{"type":"string"}},"required":["module","line","href","github","revision"]},"sernau":{"type":"object","properties":{"module":{"type":"string"},"line":{"type":"integer"},"href":{"type":"string"},"github":{"type":"string"},"revision":{"type":"string"}},"required":["module","line","href","github","revision"]},"compact":{"type":"object","properties":{"module":{"type":"string"},"line":{"type":"integer"},"href":{"type":"string"},"github":{"type":"string"},"revision":{"type":"string"}},"required":["module","line","href","github","revision"]}},"required":["original","sernau","compact"]}},"required":["name","label","statement","type","references","module","line","href","github","editions"]}}},"required":["edition","theorems"]},"FileLines":{"type":"object","properties":{"cluster":{"type":"string"},"title":{"type":"string"},"cluster_page":{"type":"string"},"pages":{"type":"array","items":{"type":"string"}},"source_commit":{"type":"string"},"source":{"type":"string"},"how":{"type":"string"},"fields":{"type":"object","properties":{"module":{"type":"string"},"depth":{"type":"string"},"lines":{"type":"string"},"line":{"type":"string"},"reading":{"type":"string"},"key_decls":{"type":"string"},"blueprint":{"type":"string"},"status":{"type":"string"},"check":{"type":"string"},"viewer":{"type":"string"},"page":{"type":"string"}},"required":["module","depth","lines","line","reading","key_decls","blueprint","status","check","viewer","page"]},"files":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string","description":"Lean module; the file is src/<module with / for .>.lean at source_commit"},"depth":{"type":"integer","description":"import steps from Main"},"lines":{"type":"integer","description":"lines of Lean in the file"},"line":{"type":"string","description":"one sentence on what the file does (written by AI, checked against the code)"},"reading":{"type":"string","description":"2 to 5 sentences on what the file establishes (written by AI, checked against the code)"},"key_decls":{"type":"array","description":"up to 5 declarations of the file chosen by the writer: name (full Lean name) and gloss (one sentence on its statement)","items":{"type":"object","properties":{"name":{"type":"string"},"gloss":{"type":"string"}},"required":["name","gloss"]}},"blueprint":{"type":"array","description":"labels of Merten's blueprint (merten:) and Naskręcki's atlas (naskrecki:) entries matched to the file's declarations","items":{"type":"string"}},"status":{"type":"string","description":"checked: a second pass compared every sentence with the source and found nothing to fix; fixed: it found imprecise or wrong statements and they were corrected; cut: the reading was removed (statements only)"},"check":{"type":"object","description":"the review's verdict and a note on what was changed","properties":{"verdict":{"type":"string"},"notes":{"type":"string"}},"required":["verdict","notes"]},"viewer":{"type":"string","description":"the file in the Lean viewer"},"page":{"type":"string","description":"the file on its cluster's Lean page"}},"required":["module","depth","lines","line","reading","key_decls","blueprint","status","check","viewer","page"]}}},"required":["cluster","title","cluster_page","pages","source_commit","source","how","fields","files"]}}}}