{"components":{"headers":{"RateLimitLimit":{"description":"Requests allowed in the window","schema":{"type":"integer"}},"RateLimitRemaining":{"description":"Requests left in the window","schema":{"type":"integer"}},"RateLimitReset":{"description":"Seconds until the window resets","schema":{"type":"integer"}}},"schemas":{"CandidateCounts":{"description":"Candidates of a source by state.","properties":{"not_passed":{"format":"int64","type":"integer"},"total":{"format":"int64","type":"integer"},"verified":{"format":"int64","type":"integer"},"waiting":{"format":"int64","type":"integer"}},"required":["total","waiting","verified","not_passed"],"type":"object"},"CheckAnswer":{"additionalProperties":true,"description":"PISA's check result, with QED's note.","properties":{"note":{"type":"string"}},"required":["note"],"type":"object"},"CheckRequest":{"additionalProperties":false,"description":"A request to check one Lean file.","properties":{"code":{"description":"A Lean file, at most 256 kB.","maxLength":262144,"type":"string"},"timeout":{"description":"Lean's limit in seconds, 60 by default.","format":"uint32","maximum":300,"minimum":1,"type":["integer","null"]},"version":{"description":"A PISA version label, such as v4.36.0-54500a67. Leave it out for the default.","type":["string","null"]}},"required":["code"],"type":"object"},"CheckedTheorem":{"description":"A theorem a submission's run checked, with its status.","properties":{"api_url":{"type":"string"},"name":{"type":"string"},"project":{"type":"string"},"reason":{"description":"Why it is not listed; null when it is.","type":["string","null"]},"slug":{"type":"string"},"status":{"enum":["verified","conditional","failed","pending","incomplete","unchecked"],"type":"string"},"url":{"type":"string"}},"required":["project","name","slug","url","api_url","status","reason"],"type":"object"},"Citation":{"additionalProperties":false,"properties":{"locator":{"type":"string"},"url":{"type":"string"}},"required":["url","locator"],"type":"object"},"Counts":{"description":"Counts the home page shows, as `qed_core::read::registry::Counts` serializes them.","properties":{"conditional":{"format":"int64","type":"integer"},"counted_at":{"type":["string","null"]},"has_fixtures":{"type":"boolean"},"log_entries":{"format":"int64","type":"integer"},"pending_candidates":{"format":"int64","type":"integer"},"projects":{"format":"int64","type":"integer"},"sources":{"format":"int64","type":"integer"},"verifications":{"format":"int64","type":"integer"},"verified":{"format":"int64","type":"integer"}},"required":["verified","conditional","projects","sources","verifications","log_entries","pending_candidates","has_fixtures","counted_at"],"type":"object"},"Credit":{"description":"Who a repository credits for a pair, as it records it.","properties":{"as_recorded_by_repository":true,"note":{"type":"string"}},"required":["as_recorded_by_repository","note"],"type":"object"},"DraftReply":{"properties":{"id":{"format":"uuid","type":"string"},"project":{"type":"string"},"reason":{"type":["string","null"]},"release_id":{"format":"uuid","type":["string","null"]},"revision":{"type":"string"},"run_id":{"format":"uuid","type":["string","null"]},"run_url":{"type":["string","null"]},"state":{"type":"string"},"status_url":{"type":"string"},"verification_id":{"format":"uuid","type":["string","null"]}},"required":["id","project","revision","state","reason","run_id","verification_id","release_id","status_url","run_url"],"type":"object"},"DraftRun":{"properties":{"finished_at":{"format":"date-time","type":["string","null"]},"id":{"format":"uuid","type":"string"},"result":{"type":["string","null"]},"started_at":{"format":"date-time","type":"string"},"state":{"type":"string"},"verification_id":{"format":"uuid","type":["string","null"]}},"required":["id","state","result","verification_id","started_at","finished_at"],"type":"object"},"DraftRunReply":{"properties":{"run":{"$ref":"#/components/schemas/DraftRun"},"steps":{"items":true,"type":"array"}},"required":["run","steps"],"type":"object"},"Environment":{"description":"Where a run ran.","properties":{"id":{"type":["string","null"]},"image_digest":{"type":["string","null"]},"packages":{"description":"The packages the environment provides, by name and revision."},"toolchain":{"type":["string","null"]},"verifier":{"type":["string","null"]}},"required":["id","toolchain","packages","image_digest"],"type":"object"},"ErrorBody":{"description":"Every error: `{\"error\": {\"code\", \"message\", \"next\"}}`.","properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}},"required":["error"],"type":"object"},"ErrorDetail":{"description":"An error.","properties":{"code":{"enum":["bad_request","not_found","invalid","not_supported","rate_limited","unavailable","internal","unknown_witness","refused","duplicate","not_available","submission_retired","version_exists","unavailable_release","authentication_required","invalid_body","verification_changed","unsupported_toolchain","no_listable_theorems"],"type":"string"},"did_you_mean":{"description":"Up to three names, slugs or parameters the caller may have meant.","items":true,"type":["array","null"]},"fields":{"items":{"$ref":"#/components/schemas/FieldError"},"type":["array","null"]},"message":{"description":"What went wrong.","type":"string"},"next":{"description":"What to do next.","type":"string"}},"required":["code","message","next"],"type":"object"},"Field":{"description":"A field or an area within one.","properties":{"id":{"type":"string"},"name":{"type":"string"},"page":{"type":"string"},"parent":{"type":["string","null"]},"verified_theorems":{"format":"int64","type":"integer"}},"required":["id","name","parent","verified_theorems","page"],"type":"object"},"FieldError":{"description":"What went wrong with one field of a request.","properties":{"code":{"type":"string"},"field":{"type":"string"},"message":{"type":"string"},"next":{"type":"string"}},"required":["field","code","message","next"],"type":"object"},"FieldList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Field"},"type":"array"}},"required":["items"],"type":"object"},"FindBody":{"description":"The body of `POST /api/v1/statements/find`: a statement, or one of its hashes.","properties":{"limit":{"description":"Similar statements to return: 1 to 50, 10 by default.","format":"int64","maximum":50,"minimum":1,"type":["integer","null"]},"statement":{"description":"A Lean statement, with or without `theorem name`, such as `theorem t (n : ℕ) : n + 0 = n`.","maxLength":20000,"type":["string","null"]},"statement_sha256":{"description":"SHA-256 of the statement: its type and every definition it uses, as theorem records give it.","pattern":"^[0-9a-fA-F]{64}$","type":["string","null"]},"type_sha256":{"description":"SHA-256 of the exported type, 64 hexadecimal digits, as theorem records give it.","pattern":"^[0-9a-fA-F]{64}$","type":["string","null"]}},"type":"object"},"JobCount":{"description":"Jobs by kind and state.","properties":{"count":{"format":"int64","type":"integer"},"kind":{"type":"string"},"state":{"type":"string"}},"required":["kind","state","count"],"type":"object"},"KernelBrief":{"description":"A kernel's verdict in a list of runs.","properties":{"counts":{"type":"boolean"},"name":{"type":"string"},"verdict":{"$ref":"#/components/schemas/Verdict"}},"required":["name","verdict","counts"],"type":"object"},"KernelVerdict":{"description":"One kernel's verdict.","properties":{"counts":{"description":"False for an advisory kernel: its verdict is recorded and did not decide the result.","type":"boolean"},"name":{"type":"string"},"reason":{"description":"Why it ended as it did, in the engine's words.","type":["string","null"]},"recorded":{"description":"The word as recorded, such as `out_of_memory`.","type":"string"},"seconds":{"format":"double","type":["number","null"]},"verdict":{"$ref":"#/components/schemas/Verdict"},"version":{"type":["string","null"]}},"required":["name","verdict","recorded","version","seconds","reason","counts"],"type":"object"},"LogEntry":{"description":"One entry of the log.","properties":{"attestation_sha256":{"type":"string"},"entry_sha256":{"type":"string"},"fixture":{"type":"boolean"},"logged_at":{"type":"string"},"prev":{"type":"string"},"result":{"type":"string"},"seq":{"format":"int64","type":"integer"},"verification_id":{"description":"Null for a private run: the log holds its hashes only.","format":"uuid","type":["string","null"]}},"required":["seq","prev","attestation_sha256","entry_sha256","verification_id","result","logged_at","fixture"],"type":"object"},"LogEntryPage":{"description":"Entries of the log, oldest first.","properties":{"entries":{"items":{"$ref":"#/components/schemas/LogEntry"},"type":"array"},"hash":{"description":"How `entry_sha256` is computed.","type":"string"},"next_after":{"description":"Pass as `after` for the next page; null at the end.","format":"int64","type":["integer","null"]}},"required":["entries","next_after","hash"],"type":"object"},"LogHead":{"description":"A signed head of the log.","properties":{"created_at":{"type":["string","null"]},"head":{"type":"string"},"key_id":{"description":"The id of the key that signed it: `ed25519:` and 16 hex digits of the SHA-256 of the key.","type":"string"},"public_key_url":{"description":"The PEM of the one key `key_id` names (`/log/keys/{key_id}.pem`).","type":"string"},"rekor":{"anyOf":[{"$ref":"#/components/schemas/Rekor"},{"type":"null"}]},"seq":{"format":"int64","type":"integer"},"signature":{"description":"The 64-byte Ed25519 signature over `signed_message`, in base64.","type":"string"},"signature_base64":{"description":"The same signature in base64, for `base64 -d`. Equal to `signature`.","type":"string"},"signature_valid":{"description":"Whether the signature checks out against the key; null when this server does not know it.","type":["boolean","null"]},"signed_message":{"type":"string"}},"required":["seq","head","key_id","signature","signature_base64","signed_message","signature_valid","created_at","rekor","public_key_url"],"type":"object"},"LogPosition":{"description":"Where a run sits in the log.","properties":{"entry_sha256":{"type":["string","null"]},"prev":{"type":["string","null"]},"seq":{"format":"int64","type":["integer","null"]}},"required":["seq","entry_sha256","prev"],"type":"object"},"MatchedItem":{"description":"A theorem that matched a statement or a query, and how.","properties":{"api_url":{"type":"string"},"first_verified_at":{"description":"When QED first verified it.","type":["string","null"]},"kernels":{"description":"Kernels whose verdict counts for its Lean version.","format":"uint","minimum":0,"type":"integer"},"kernels_accepted":{"description":"Counted kernels that accepted it, of `kernels`.","format":"uint","minimum":0,"type":"integer"},"kernels_advisory":{"description":"Advisory kernels that also ran: recorded, never deciding.","format":"uint","minimum":0,"type":"integer"},"last_verified_at":{"description":"When QED last ran it.","type":["string","null"]},"match":{"description":"How it matched. `statement_sha256` and `type_sha256` are exact. The others are candidates\nfrom the text or from PISA: `same_shape` (the same text once names and notation are set\naside), `similar_statement` (with `score`), `similar_in_meaning` (PISA's search) and\n`negated_shape` (it reads as the negation of the statement given, or that statement as its\nnegation). A candidate can state something else.","enum":["statement_sha256","type_sha256","same_shape","similar_statement","similar_in_meaning","negated_shape"],"type":"string"},"module":{"type":["string","null"]},"name":{"type":"string"},"nonstandard_axioms":{"description":"Axioms beyond propext, Classical.choice and Quot.sound; empty for a verified theorem.","items":{"type":"string"},"type":"array"},"polarity":{"description":"`disproof`: QED verified that the statement `name` refers to does not hold, and\n`statement` is its negation. Report it as \"a disproof of {name}\", never as {name} verified.\n`proof` (a pair) or null (a project's theorem): the record proves `statement`.","enum":["proof","disproof",null],"type":["string","null"]},"project":{"type":"string"},"score":{"description":"Text similarity from 0 to 1, for `similar_statement`.","format":"double","type":["number","null"]},"slug":{"description":"`{project}/{name}`: the stable id of the theorem.","type":"string"},"statement":{"description":"The declaration as Lean checked it: `theorem Name binders : type`. For a disproof, the\nsolution's theorem, which states the negation of `name`'s statement.","type":"string"},"status":{"enum":["verified","conditional","failed","pending","incomplete","unchecked"],"type":"string"},"summary":{"description":"One sentence to report: what QED verified and when. For a disproof it says \"a disproof of\n{name}\", never that {name} was verified; for a conditional theorem it names the axioms.","type":"string"},"url":{"type":"string"},"verification":{"anyOf":[{"$ref":"#/components/schemas/VerificationRef"},{"type":"null"}],"description":"The run behind the status."}},"required":["project","name","slug","url","api_url","status","statement","polarity","module","first_verified_at","last_verified_at","kernels_accepted","kernels","kernels_advisory","nonstandard_axioms","verification","summary","match"],"type":"object"},"ModelReview":{"description":"One model's opinion of whether the Lean statement matches its authors' description.","properties":{"date":{"type":"string"},"faithful":{"enum":["yes","no","unclear"],"type":"string"},"issues":true,"model":{"type":"string"},"model_version":{"type":"string"},"prompt_version":{"type":"string"},"provider":{"type":"string"},"says":{"type":"string"},"summary":{"type":"string"}},"required":["provider","model","model_version","prompt_version","date","faithful","says","summary","issues"],"type":"object"},"ModelReviews":{"description":"Model reviews: opinions beside the status, never part of it (ADR 0001).","properties":{"agree":{"description":"Whether the reviews agree; null with fewer than two providers.","type":["boolean","null"]},"items":{"items":{"$ref":"#/components/schemas/ModelReview"},"type":"array"},"note":{"type":"string"}},"required":["note","agree","items"],"type":"object"},"NativeCollectionManifest":{"additionalProperties":false,"properties":{"notes":{"default":"","type":"string"},"releases":{"items":{"format":"uuid","type":"string"},"type":"array"},"slug":{"type":"string"},"title":{"type":"string"},"version":{"type":"string"}},"required":["slug","version","title","releases"],"type":"object"},"NativeCollectionMember":{"properties":{"account":{"type":"string"},"conditional":{"type":"boolean"},"id":{"format":"uuid","type":"string"},"project":{"type":"string"},"revision_sha256":{"type":"string"},"theorems":{"format":"int32","type":"integer"},"toolchain":{"type":"string"},"verified_at":{"format":"date-time","type":"string"},"withdrawn":{"type":"boolean"}},"required":["id","project","account","toolchain","revision_sha256","verified_at","withdrawn","conditional","theorems"],"type":"object"},"NativeCollectionPublication":{"properties":{"api_url":{"type":"string"},"id":{"format":"uuid","type":"string"},"release_url":{"type":"string"}},"required":["id","release_url","api_url"],"type":"object"},"NativeCollectionRecord":{"properties":{"account":{"type":"string"},"id":{"format":"uuid","type":"string"},"notes":{"type":"string"},"published_at":{"format":"date-time","type":"string"},"revisions":{"items":{"$ref":"#/components/schemas/NativeCollectionMember"},"type":"array"},"slug":{"type":"string"},"title":{"type":"string"},"version":{"type":"string"}},"required":["id","account","slug","version","title","notes","published_at","revisions"],"type":"object"},"NativeLeanSource":{"additionalProperties":false,"properties":{"citation":{"anyOf":[{"$ref":"#/components/schemas/Citation"},{"type":"null"}]},"lean":{"type":"string"},"schema":{"type":"string"},"toolchain":{"type":"string"}},"required":["schema","toolchain","lean"],"type":"object"},"NativeProofGraph":{"properties":{"account":{"type":"string"},"project":{"type":"string"},"theorem":{"$ref":"#/components/schemas/ReleasedTheorem"},"used_by":{"items":{"$ref":"#/components/schemas/NativeProofLink"},"type":"array"},"uses":{"items":{"$ref":"#/components/schemas/NativeProofLink"},"type":"array"},"verified_at":{"format":"date-time","type":"string"},"withdrawn":{"type":"boolean"}},"required":["account","project","verified_at","withdrawn","theorem","uses","used_by"],"type":"object"},"NativeProofLink":{"properties":{"name":{"type":"string"},"status":{"type":"string"}},"required":["name","status"],"type":"object"},"Page":{"properties":{"capped":{"description":"More proofs matched than QED ranked. Narrow the query to find other matches.","type":"boolean"},"items":{"items":{"$ref":"#/components/schemas/Proof"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["items","next_cursor","capped"],"type":"object"},"PairFile":{"description":"A file of a pair in its repository.","properties":{"path":{"type":"string"},"url":{"type":["string","null"]}},"required":["path","url"],"type":"object"},"PairFiles":{"description":"The statement and proof files of a pair read from a repository.","properties":{"proof":{"anyOf":[{"$ref":"#/components/schemas/PairFile"},{"type":"null"}]},"statement":{"anyOf":[{"$ref":"#/components/schemas/PairFile"},{"type":"null"}]}},"required":["statement","proof"],"type":"object"},"PisaHealth":{"description":"PISA's health, for `/status`.","properties":{"fake":{"type":"boolean"},"queued":{"format":"int64","type":["integer","null"]},"reachable":{"type":"boolean"},"search_ready":{"type":["boolean","null"]},"status":{"type":["string","null"]},"workers":{"format":"int64","type":["integer","null"]}},"required":["reachable","status","workers","queued","search_ready","fake"],"type":"object"},"Project":{"description":"A project with verified theorems.","properties":{"conditional":{"format":"int64","type":"integer"},"description":{"type":["string","null"]},"homepage":{"type":["string","null"]},"last_verified_at":{"type":["string","null"]},"latest_commit":{"type":["string","null"]},"latest_toolchain":{"type":["string","null"]},"licence":{"type":["string","null"]},"name":{"type":"string"},"page":{"type":"string"},"repository":{"type":["string","null"]},"slug":{"type":"string"},"source":{"description":"The id of its source.","type":"string"},"theorems_url":{"description":"Its theorems over the API.","type":"string"},"verified_theorems":{"format":"int64","type":"integer"}},"required":["slug","name","source","repository","homepage","licence","description","verified_theorems","conditional","latest_commit","latest_toolchain","last_verified_at","page","theorems_url"],"type":"object"},"ProjectInfo":{"description":"The project a theorem belongs to.","properties":{"homepage":{"type":["string","null"]},"licence":{"type":["string","null"]},"name":{"type":"string"},"repository":{"type":["string","null"]},"slug":{"type":"string"},"url":{"type":"string"}},"required":["slug","name","repository","homepage","licence","url"],"type":"object"},"ProjectList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Project"},"type":"array"}},"required":["items"],"type":"object"},"Proof":{"properties":{"account":{"type":"string"},"api_url":{"type":"string"},"name":{"type":"string"},"project":{"type":"string"},"release_id":{"format":"uuid","type":"string"},"statement":{"type":"string"},"status":{"type":"string"},"url":{"type":"string"},"verified_at":{"format":"date-time","type":"string"}},"required":["release_id","account","project","name","statement","status","verified_at","url","api_url"],"type":"object"},"PublishReply":{"properties":{"api_url":{"type":"string"},"id":{"format":"uuid","type":"string"},"release_url":{"type":"string"}},"required":["id","release_url","api_url"],"type":"object"},"PublishRequest":{"additionalProperties":false,"properties":{"verification_id":{"format":"uuid","type":"string"}},"required":["verification_id"],"type":"object"},"Queue":{"properties":{"failed_last_day":{"format":"int64","type":"integer"},"jobs":{"items":{"$ref":"#/components/schemas/JobCount"},"type":"array"},"oldest_queued":{"type":["string","null"]}},"required":["jobs","oldest_queued","failed_last_day"],"type":"object"},"Rekor":{"description":"A head's entry in Sigstore's Rekor.","properties":{"integrated_time":{"format":"int64","type":["integer","null"]},"log_index":{"format":"int64","type":"integer"},"url":{"type":"string"},"uuid":{"type":["string","null"]}},"required":["log_index","uuid","integrated_time","url"],"type":"object"},"Release":{"properties":{"account":{"type":"string"},"attestation":true,"id":{"format":"uuid","type":"string"},"project":{"type":"string"},"published_at":{"format":"date-time","type":"string"},"results":{"items":{"$ref":"#/components/schemas/ReleasedTheorem"},"type":"array"},"revision":true,"withdrawn":{"type":"boolean"}},"required":["id","project","account","published_at","revision","attestation","withdrawn","results"],"type":"object"},"ReleasedTheorem":{"properties":{"axioms":{"items":{"type":"string"},"type":"array"},"name":{"type":"string"},"statement":{"type":"string"},"status":{"type":"string"},"uses":{"default":[],"items":{"type":"string"},"type":"array"}},"required":["name","statement","axioms","status","uses"],"type":"object"},"Revision":{"additionalProperties":false,"description":"A standalone Lean file and the inputs needed to identify and reproduce it.\nThe revision is the SHA-256 of the compact JSON encoding of `source`, with the\nfields in schema order. It includes the exact source bytes and the citation.","properties":{"revision":{"type":"string"},"source":{"$ref":"#/components/schemas/NativeLeanSource"}},"required":["revision","source"],"type":"object"},"RunFile":{"description":"A file QED serves for a run.","properties":{"about":{"type":"string"},"name":{"type":"string"},"url":{"type":"string"}},"required":["name","url","about"],"type":"object"},"Source":{"description":"A source QED reads candidates from.","properties":{"candidates":{"$ref":"#/components/schemas/CandidateCounts"},"description":{"type":["string","null"]},"id":{"type":"string"},"kind":{"type":"string"},"last_verified_at":{"type":["string","null"]},"licence":{"type":["string","null"]},"name":{"type":"string"},"page":{"type":"string"},"projects":{"format":"int64","type":"integer"},"url":{"type":["string","null"]},"verified_theorems":{"format":"int64","type":"integer"}},"required":["id","name","kind","url","licence","description","verified_theorems","projects","candidates","last_verified_at","page"],"type":"object"},"SourceInfo":{"description":"The source a project comes from.","properties":{"id":{"type":"string"},"licence":{"type":["string","null"]},"name":{"type":"string"},"url":{"type":["string","null"]}},"required":["id","name","url","licence"],"type":"object"},"SourceList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Source"},"type":"array"}},"required":["items"],"type":"object"},"StateCount":{"properties":{"count":{"format":"int64","type":"integer"},"state":{"type":"string"}},"required":["state","count"],"type":"object"},"StatementMatches":{"description":"What \"has this been proved already?\" answers.","properties":{"answer":{"description":"In a few sentences: \"Yes\" for a hash match, \"No exact match\" when QED found only\ncandidates from the text, \"No match\", or why the input could not be compared.","type":"string"},"exact":{"description":"Theorems with the hash sent: an equal `statement_sha256` (the type and every definition it\nuses) or an equal `type_sha256` (the exported type). Empty when only text was sent.","items":{"$ref":"#/components/schemas/MatchedItem"},"type":"array"},"negations":{"description":"Candidates: verified theorems whose statement reads as the negation of the statement given,\nor whose statement it reads as negating (`match: negated_shape`). QED compared the text,\nnot the types: read each statement before relying on it.","items":{"$ref":"#/components/schemas/MatchedItem"},"type":"array"},"note":{"type":"string"},"parsed":{"description":"False when the input does not read as a Lean statement.","type":"boolean"},"similar":{"description":"Candidates: verified theorems with a similar statement, `same_shape` first, then by\n`score`. QED compared the text, not the types: read each statement before relying on it.","items":{"$ref":"#/components/schemas/MatchedItem"},"type":"array"}},"required":["answer","parsed","exact","similar","negations","note"],"type":"object"},"Status":{"description":"The state of the database, PISA, the queue and the log.","properties":{"candidates":{"items":{"$ref":"#/components/schemas/StateCount"},"type":"array"},"counts":{"$ref":"#/components/schemas/Counts"},"database":{"type":"string"},"fixtures":{"type":"boolean"},"last_verification_at":{"type":["string","null"]},"log_head":{"anyOf":[{"$ref":"#/components/schemas/LogHead"},{"type":"null"}]},"pisa":{"$ref":"#/components/schemas/PisaHealth"},"queue":{"$ref":"#/components/schemas/Queue"},"verifications_last_day":{"format":"int64","type":"integer"},"workers":{"items":{"$ref":"#/components/schemas/Worker"},"type":"array"}},"required":["database","pisa","counts","queue","workers","candidates","last_verification_at","verifications_last_day","log_head","fixtures"],"type":"object"},"Step":{"description":"One step of a run.","properties":{"command":{"type":["string","null"]},"exit_code":{"format":"int64","type":["integer","null"]},"finished_at":{"type":["string","null"]},"image_digest":{"type":["string","null"]},"index":{"format":"uint","minimum":0,"type":"integer"},"key":{"type":"string"},"log_sha256":{"type":["string","null"]},"log_truncated":{"type":"boolean"},"log_url":{"type":"string"},"name":{"type":"string"},"outputs":{"additionalProperties":{"type":"string"},"type":"object"},"seconds":{"format":"double","type":["number","null"]},"started_at":{"type":["string","null"]},"status":{"$ref":"#/components/schemas/StepStatus"}},"required":["index","key","name","status","exit_code","seconds","started_at","finished_at","image_digest","command","outputs","log_truncated","log_sha256","log_url"],"type":"object"},"StepStatus":{"description":"A step's outcome, as `qed_core::read::runs::StepStatus` serializes it.","enum":["passed","failed","fault","running","queued","skipped"],"type":"string"},"Subject":{"description":"What a run checked.","properties":{"candidate":{"type":["string","null"]},"commit":{"type":["string","null"]},"kind":{"type":"string"},"project":{"type":["string","null"]}},"required":["project","commit","candidate","kind"],"type":"object"},"Submission":{"description":"Where a submission stands.","properties":{"created_at":{"type":"string"},"finished":{"description":"True once QED has a result; stop polling then. A run that ends in a fault is tried again,\nup to five attempts: `state` is `fault` and `finished` stays false until the last one.","type":"boolean"},"id":{"format":"uuid","type":"string"},"kind":{"type":["string","null"]},"listed":{"items":{"$ref":"#/components/schemas/CheckedTheorem"},"type":"array"},"not_listed":{"items":{"$ref":"#/components/schemas/CheckedTheorem"},"type":"array"},"poll_after_seconds":{"description":"When not finished: ask again after this many seconds.","format":"int64","type":["integer","null"]},"queue_position":{"description":"Its place in the queue while it waits, also for a fault QED tries again.","format":"int64","type":["integer","null"]},"reason":{"type":["string","null"]},"running":{"anyOf":[{"$ref":"#/components/schemas/VerificationRef"},{"type":"null"}],"description":"The run under way, while there is one. `get_verification` (or its `api_url`) gives its\nsteps so far with `sealed: false`, and `get_step_log` each step's output."},"runs":{"description":"Finished runs, newest first.","items":{"$ref":"#/components/schemas/SubmissionRun"},"type":"array"},"state":{"type":["string","null"]},"status_url":{"type":"string"},"via":{"type":"string"}},"required":["id","via","created_at","kind","state","reason","finished","queue_position","poll_after_seconds","runs","running","listed","not_listed","status_url"],"type":"object"},"SubmissionRun":{"description":"A run of a submission.","properties":{"finished_at":{"type":"string"},"reason":{"type":["string","null"]},"result":{"type":"string"},"verification":{"$ref":"#/components/schemas/VerificationRef"}},"required":["verification","result","reason","finished_at"],"type":"object"},"TheoremItem":{"description":"A theorem as every list, search and lookup over REST and MCP returns it.","properties":{"api_url":{"type":"string"},"first_verified_at":{"description":"When QED first verified it.","type":["string","null"]},"kernels":{"description":"Kernels whose verdict counts for its Lean version.","format":"uint","minimum":0,"type":"integer"},"kernels_accepted":{"description":"Counted kernels that accepted it, of `kernels`.","format":"uint","minimum":0,"type":"integer"},"kernels_advisory":{"description":"Advisory kernels that also ran: recorded, never deciding.","format":"uint","minimum":0,"type":"integer"},"last_verified_at":{"description":"When QED last ran it.","type":["string","null"]},"module":{"type":["string","null"]},"name":{"type":"string"},"nonstandard_axioms":{"description":"Axioms beyond propext, Classical.choice and Quot.sound; empty for a verified theorem.","items":{"type":"string"},"type":"array"},"polarity":{"description":"`disproof`: QED verified that the statement `name` refers to does not hold, and\n`statement` is its negation. Report it as \"a disproof of {name}\", never as {name} verified.\n`proof` (a pair) or null (a project's theorem): the record proves `statement`.","enum":["proof","disproof",null],"type":["string","null"]},"project":{"type":"string"},"slug":{"description":"`{project}/{name}`: the stable id of the theorem.","type":"string"},"statement":{"description":"The declaration as Lean checked it: `theorem Name binders : type`. For a disproof, the\nsolution's theorem, which states the negation of `name`'s statement.","type":"string"},"status":{"enum":["verified","conditional","failed","pending","incomplete","unchecked"],"type":"string"},"summary":{"description":"One sentence to report: what QED verified and when. For a disproof it says \"a disproof of\n{name}\", never that {name} was verified; for a conditional theorem it names the axioms.","type":"string"},"url":{"type":"string"},"verification":{"anyOf":[{"$ref":"#/components/schemas/VerificationRef"},{"type":"null"}],"description":"The run behind the status."}},"required":["project","name","slug","url","api_url","status","statement","polarity","module","first_verified_at","last_verified_at","kernels_accepted","kernels","kernels_advisory","nonstandard_axioms","verification","summary"],"type":"object"},"TheoremList":{"description":"A page of theorems: a search, a list or a project's theorems.","properties":{"items":{"items":{"$ref":"#/components/schemas/TheoremItem"},"type":"array"},"matched":{"description":"`some words` when no theorem matched every word of the query; null without a query.","enum":["every word","some words",null],"type":["string","null"]},"next_cursor":{"description":"Pass back as `cursor`, with the same query and filters, for the next page. A cursor is a\nkeyset position and stays valid as theorems are added.","type":["string","null"]},"note":{"description":"MCP only: what the listing means.","type":["string","null"]},"order":{"enum":["relevance","first_verified","last_verified"],"type":"string"},"similar_in_meaning":{"description":"With a query, on the first page, on a server that runs a Lean checker: theorems found by\nmeaning, with the same filters. Left out when the server has none (`GET /api/v1/status`,\n`pisa.status` \"not configured\").","items":{"$ref":"#/components/schemas/MatchedItem"},"type":["array","null"]},"total":{"description":"Matches ranked (at most 2,000) for a search; the project's or field's count for a list;\nnull when QED cannot count cheaply.","format":"int64","type":["integer","null"]},"total_is_lower_bound":{"description":"True when more theorems match than were ranked. Add a word or a filter.","type":"boolean"}},"required":["items","total","total_is_lower_bound","order","matched","next_cursor"],"type":"object"},"TheoremRecord":{"description":"One theorem with everything QED knows about it.","properties":{"api_url":{"type":"string"},"axioms":{"items":{"type":"string"},"type":"array"},"badge":{"description":"The SVG badge of the theorem's status.","type":"string"},"commit":{"type":["string","null"]},"credit":{"anyOf":[{"$ref":"#/components/schemas/Credit"},{"type":"null"}]},"docstring":{"description":"The author's docstring.","type":["string","null"]},"docstring_is_authors":{"type":"boolean"},"doi":{"description":"The record's DOI once registered.","type":["string","null"]},"doi_url":{"type":["string","null"]},"environment":{"$ref":"#/components/schemas/Environment"},"file":{"type":["string","null"]},"first_verified_at":{"type":["string","null"]},"kernel_verdicts":{"items":{"$ref":"#/components/schemas/KernelVerdict"},"type":"array"},"kernels":{"description":"Kernels whose verdict counts for its Lean version; `kernel_verdicts` has each one, with\n`counts`.","format":"uint","minimum":0,"type":"integer"},"kernels_accepted":{"description":"Counted kernels of the run behind `status` (`verification`) that accepted it, of\n`kernels`.","format":"uint","minimum":0,"type":"integer"},"kernels_advisory":{"description":"Advisory kernels that also ran: recorded, never deciding.","format":"uint","minimum":0,"type":"integer"},"kind":{"type":"string"},"last_verified_at":{"description":"When a run last listed it (verified or conditional). For a `failed` theorem this is the\npass before the re-check that took it back; the run behind `status` is `verification`,\nwith its date in `verification.finished_at`.","type":["string","null"]},"line":{"format":"int32","type":["integer","null"]},"listed":{"type":"boolean"},"model_reviews":{"$ref":"#/components/schemas/ModelReviews"},"module":{"type":["string","null"]},"name":{"type":"string"},"nonstandard_axioms":{"items":{"type":"string"},"type":"array"},"note":{"type":"string"},"pair_files":{"anyOf":[{"$ref":"#/components/schemas/PairFiles"},{"type":"null"}]},"polarity":{"description":"`disproof`: QED verified that the statement `name` refers to does not hold, and\n`statement` is its negation. Report it as \"a disproof of {name}\", never as {name} verified.\n`proof` (a pair) or null (a project's theorem): the record proves `statement`.","enum":["proof","disproof",null],"type":["string","null"]},"project":{"type":"string"},"project_info":{"$ref":"#/components/schemas/ProjectInfo"},"runs":{"items":{"$ref":"#/components/schemas/TheoremRun"},"type":"array"},"slug":{"description":"`{project}/{name}`: the stable id of the theorem.","type":"string"},"source":{"$ref":"#/components/schemas/SourceInfo"},"source_url":{"type":["string","null"]},"statement":{"description":"The declaration as Lean checked it. For a disproof, the solution's theorem, which states\nthe negation of `name`'s statement.","type":"string"},"statement_sha256":{"type":["string","null"]},"status":{"enum":["verified","conditional","failed","pending","incomplete","unchecked"],"type":"string"},"summary":{"description":"One sentence to report: what QED verified and when, as search items give it.","type":"string"},"title":{"description":"The first paragraph of the author's docstring: the author's words, not QED's.","type":["string","null"]},"type_sha256":{"type":["string","null"]},"url":{"type":"string"},"used_by":{"$ref":"#/components/schemas/UsedBy"},"uses":{"description":"Every constant the statement and proof use.","items":{"type":"string"},"type":"array"},"uses_listed":{"items":{"$ref":"#/components/schemas/TheoremRef"},"type":"array"},"verification":{"anyOf":[{"$ref":"#/components/schemas/VerificationSummary"},{"type":"null"}]}},"required":["project","name","slug","url","api_url","status","statement","polarity","module","first_verified_at","last_verified_at","kernels_accepted","kernels","kernels_advisory","nonstandard_axioms","verification","listed","summary","note","doi","doi_url","model_reviews","kind","type_sha256","statement_sha256","title","docstring","docstring_is_authors","file","line","source_url","axioms","kernel_verdicts","environment","commit","pair_files","credit","project_info","source","uses","uses_listed","used_by","runs","badge"],"type":"object"},"TheoremRef":{"description":"A theorem another record points to.","properties":{"api_url":{"type":"string"},"name":{"type":"string"},"project":{"type":"string"},"slug":{"type":"string"},"url":{"type":"string"}},"required":["project","name","slug","url","api_url"],"type":"object"},"TheoremRun":{"description":"One run of a theorem.","properties":{"environment":{"type":["string","null"]},"finished_at":{"type":"string"},"fixture":{"type":"boolean"},"kernels":{"items":{"$ref":"#/components/schemas/KernelBrief"},"type":"array"},"log_seq":{"format":"int64","type":["integer","null"]},"result":{"type":"string"},"toolchain":{"type":["string","null"]},"verification":{"$ref":"#/components/schemas/VerificationRef"}},"required":["verification","result","finished_at","toolchain","environment","log_seq","fixture","kernels"],"type":"object"},"UsedBy":{"description":"Listed theorems that use this one.","properties":{"items":{"items":{"$ref":"#/components/schemas/TheoremRef"},"type":"array"},"total":{"format":"int64","type":"integer"},"total_is_lower_bound":{"type":"boolean"}},"required":["total","total_is_lower_bound","items"],"type":"object"},"Verdict":{"description":"The kernel verdicts QED records, as `qed_core::read::kernels::Verdict` serializes them.","oneOf":[{"const":"accepted","description":"The kernel checked the declarations and accepted them.","type":"string"},{"const":"rejected","description":"The kernel rejected a declaration.","type":"string"},{"const":"declined","description":"The kernel does not support an axiom the declaration uses, such as `Lean.ofReduceBool`.","type":"string"},{"const":"no_verdict","description":"The kernel ran and gave no verdict: a crash, or a time or memory limit.","type":"string"},{"const":"not_run","description":"The kernel was not run.","type":"string"}]},"VerificationRecord":{"description":"One verification run.","properties":{"attestation":true,"attestation_sha256":{"type":"string"},"declarations":{"description":"Declarations the run recorded.","format":"int64","type":"integer"},"environment":{"$ref":"#/components/schemas/Environment"},"files":{"description":"Files QED keeps for this run: `spec.json` and `env.json` for a witness, and a submitted\npair's `Challenge.lean` and `Solution.lean`. Empty until the run is sealed.","items":{"$ref":"#/components/schemas/RunFile"},"type":"array"},"finished_at":{"description":"For a run under way: when it last changed.","type":"string"},"fixture":{"type":"boolean"},"head":{"anyOf":[{"$ref":"#/components/schemas/LogHead"},{"type":"null"}]},"id":{"format":"uuid","type":"string"},"kernels":{"description":"Each kernel's verdict. Empty until the run is sealed: while `result` is `running`, the\n`kernel:` entries in `steps` say how far each kernel has got.","items":{"$ref":"#/components/schemas/KernelVerdict"},"type":"array"},"log":{"$ref":"#/components/schemas/LogPosition"},"poll_after_seconds":{"description":"For a run under way: ask again after this many seconds.","format":"int64","type":["integer","null"]},"reason":{"type":["string","null"]},"result":{"description":"`running` while the run is under way (then `sealed` is false and `steps` grow as they\nstart), `fault` for a run whose worker stopped before sealing it.","enum":["pass","fail","fault","running"],"type":"string"},"sealed":{"description":"False for a run QED has not sealed: it has no attestation, kernels or log entry yet.","type":"boolean"},"started_at":{"type":"string"},"steps":{"items":{"$ref":"#/components/schemas/Step"},"type":"array"},"subject":{"$ref":"#/components/schemas/Subject"},"url":{"type":"string"},"verifier":{"type":"string"},"witnesses":{"items":{"$ref":"#/components/schemas/WitnessSummary"},"type":"array"}},"required":["id","url","result","reason","fixture","started_at","finished_at","verifier","subject","environment","kernels","steps","declarations","attestation_sha256","attestation","log","head","witnesses","files","sealed","poll_after_seconds"],"type":"object"},"VerificationRef":{"description":"A run another record points to.","properties":{"api_url":{"type":"string"},"id":{"format":"uuid","type":"string"},"url":{"type":"string"}},"required":["id","url","api_url"],"type":"object"},"VerificationSummary":{"description":"The run behind a theorem's status.","properties":{"api_url":{"type":"string"},"attestation_sha256":{"type":["string","null"]},"finished_at":{"type":["string","null"]},"fixture":{"description":"True for a development fixture.","type":"boolean"},"id":{"format":"uuid","type":"string"},"log_seq":{"format":"int64","type":["integer","null"]},"result":{"type":["string","null"]},"url":{"type":"string"}},"required":["id","url","api_url","result","finished_at","attestation_sha256","log_seq","fixture"],"type":"object"},"Version":{"description":"What this server was built from (`GET /api/v1/version`).","properties":{"built_at":{"description":"When the release was built, from its tag.","type":["string","null"]},"commit":{"type":["string","null"]},"images":{"additionalProperties":{"type":"string"},"description":"The images the deployment runs, by role.","type":"object"},"tag":{"type":["string","null"]},"version":{"type":"string"}},"required":["version","commit","built_at","tag","images"],"type":"object"},"WitnessPosted":{"description":"A witness run QED stored and compared.","properties":{"agreement":{"description":"`agree`, `partial`, `disagree`, `different_subject` or `no_qed_run`.","type":["string","null"]},"compared_with":{"anyOf":[{"$ref":"#/components/schemas/VerificationRef"},{"type":"null"}]},"detail":true,"id":{"format":"uuid","type":"string"}},"required":["id","agreement","compared_with","detail"],"type":"object"},"WitnessSummary":{"description":"A witness run compared with QED's.","properties":{"agreement":{"description":"`agree`, `partial`, `disagree`, `different_subject` or `no_qed_run`.","type":["string","null"]},"key_fingerprint":{"type":["string","null"]},"name":{"type":"string"},"qed_operated":{"type":"boolean"},"result":{"type":["string","null"]},"signature_valid":{"type":["boolean","null"]}},"required":["name","key_fingerprint","signature_valid","qed_operated","result","agreement"],"type":"object"},"Worker":{"properties":{"last_locked_at":{"type":"string"},"name":{"type":"string"}},"required":["name","last_locked_at"],"type":"object"}},"securitySchemes":{"qedAccessToken":{"scheme":"bearer","type":"http"}}},"info":{"description":"Every theorem listed by QED was verified by QED: a sandboxed build, an export of the compiled environment, a replay through the kernels of its Lean version, and an axiom check. The kernels that count differ by Lean version: each theorem's kernel_verdicts says which counted and which were advisory. QED checks the Lean statement and nothing about its informal meaning. Reads need no key. Errors are {\"error\": {\"code\", \"message\", \"next\"}}. Lists page with next_cursor. Each client address can send 600 reads and 10 Lean checks a minute. Each account can upload 20 drafts an hour.","license":{"identifier":"Apache-2.0","name":"Apache-2.0"},"summary":"Lean theorems verified by QED: statements, kernel verdicts, runs and the signed log.","title":"QED REST API","version":"1.0.0"},"openapi":"3.1.0","paths":{"/api/v1/check":{"post":{"description":"A quick check by PISA. QED does not list or log the result. The result is PISA's check result with a note added. A server with no Lean checker configured answers 503 not_available; GET /api/v1/status says so in pisa.status.","operationId":"checkLean","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckAnswer"}}},"description":"PISA's check result"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The request is malformed; the message says how."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Rate limited. Retry-After says when to send again."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The database or PISA did not answer. Retry later."}},"summary":"Check one Lean file through PISA","tags":["checks"]}},"/api/v1/fields":{"get":{"operationId":"listFields","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldList"}}},"description":"Fields","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The request is malformed; the message says how."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Rate limited. Retry-After says when to send again."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The database or PISA did not answer. Retry later."}},"summary":"Fields and areas with counts","tags":["registry"]}},"/api/v1/log/entries":{"get":{"operationId":"listLogEntries","parameters":[{"description":"Return entries with seq greater than this","in":"query","name":"after","required":false,"schema":{"default":0,"minimum":0,"type":"integer"}},{"description":"At most 1000","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":1000,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogEntryPage"}}},"description":"Entries","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The request is malformed; the message says how."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Rate limited. Retry-After says when to send again."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The database or PISA did not answer. Retry later."}},"summary":"Log entries after a position, oldest first","tags":["log"]}},"/api/v1/log/entries/{seq}":{"get":{"operationId":"getLogEntry","parameters":[{"in":"path","name":"seq","required":true,"schema":{"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogEntry"}}},"description":"The entry","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The request is malformed; the message says how."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"No such entry"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Rate limited. Retry-After says when to send again."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The database or PISA did not answer. Retry later."}},"summary":"One log entry","tags":["log"]}},"/api/v1/log/head":{"get":{"operationId":"getLogHead","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogHead"}}},"description":"The head","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The request is malformed; the message says how."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"No head is signed yet"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Rate limited. Retry-After says when to send again."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The database or PISA did not answer. Retry later."}},"summary":"The newest signed head of the log","tags":["log"]}},"/api/v1/native/collections":{"post":{"operationId":"publishCollection","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NativeCollectionManifest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NativeCollectionPublication"}}},"description":"Identical collection release"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NativeCollectionPublication"}}},"description":"New collection release"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The request is malformed; the message says how."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"A current QED access token is required"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The version already exists with different contents"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"One or more revisions are unavailable"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Rate limited. Retry-After says when to send again."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The database or PISA did not answer. Retry later."}},"security":[{"qedAccessToken":[]}],"summary":"Publish an ordered collection of public QED revisions","tags":["native projects"]}},"/api/v1/native/collections/{account}/{slug}/{version}":{"get":{"operationId":"getCollectionRelease","parameters":[{"description":"QED account","in":"path","name":"account","required":true,"schema":{"type":"string"}},{"description":"Collection name","in":"path","name":"slug","required":true,"schema":{"type":"string"}},{"description":"Collection version","in":"path","name":"version","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NativeCollectionRecord"}}},"description":"The collection release","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The request is malformed; the message says how."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Collection release not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Rate limited. Retry-After says when to send again."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The database or PISA did not answer. Retry later."}},"summary":"Read a collection release and the status of its exact revisions","tags":["native projects"]}},"/api/v1/native/drafts/{id}":{"get":{"operationId":"getNativeDraft","parameters":[{"description":"submission_id","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftReply"}}},"description":"Private draft status"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The request is malformed; the message says how."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"A current QED access token is required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Draft not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Rate limited. Retry-After says when to send again."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The database or PISA did not answer. Retry later."}},"security":[{"qedAccessToken":[]}],"summary":"Read the status of a QED draft you own","tags":["native projects"]}},"/api/v1/native/drafts/{id}/publish":{"post":{"operationId":"publishNativeDraft","parameters":[{"description":"submission_id","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishReply"}}},"description":"Published revision and link"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The request is malformed; the message says how."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"A current QED access token is required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Draft not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The passing verification changed or this revision was already published"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"This verification had no theorem QED can list"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Rate limited. Retry-After says when to send again."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The database or PISA did not answer. Retry later."}},"security":[{"qedAccessToken":[]}],"summary":"Publish an exact passing verification","tags":["native projects"]}},"/api/v1/native/drafts/{id}/runs/{run}":{"get":{"operationId":"getNativeRun","parameters":[{"description":"submission_id","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"verification_id","in":"path","name":"run","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftRunReply"}}},"description":"Private run"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The request is malformed; the message says how."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"A current QED access token is required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Run not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Rate limited. Retry-After says when to send again."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The database or PISA did not answer. Retry later."}},"security":[{"qedAccessToken":[]}],"summary":"Read a private run and its steps","tags":["native projects"]}},"/api/v1/native/projects/{project}/drafts":{"post":{"operationId":"pushNativeDraft","parameters":[{"description":"slug","in":"path","name":"project","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Revision"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftReply"}}},"description":"Existing draft"},"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftReply"}}},"description":"Queued draft"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The request is malformed; the message says how."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"A current QED access token is required"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Unsupported toolchain or invalid revision"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Rate limited. Retry-After says when to send again."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The database or PISA did not answer. Retry later."}},"security":[{"qedAccessToken":[]}],"summary":"Queue verification of a private QED revision","tags":["native projects"]}},"/api/v1/native/releases/{id}":{"get":{"operationId":"getNativeRelease","parameters":[{"description":"submission_id","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Release"}}},"description":"Published revision","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The request is malformed; the message says how."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Release not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Rate limited. Retry-After says when to send again."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The database or PISA did not answer. Retry later."}},"summary":"Download a published native revision and its attestation","tags":["native projects"]}},"/api/v1/native/releases/{id}/theorems/{name}":{"get":{"operationId":"getNativeProofGraph","parameters":[{"description":"Release UUID","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Exact Lean name","in":"path","name":"name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NativeProofGraph"}}},"description":"Published theorem and its connections","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The request is malformed; the message says how."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Theorem not found in the release"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Rate limited. Retry-After says when to send again."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The database or PISA did not answer. Retry later."}},"summary":"Read a theorem and its connections in an exact release","tags":["native projects"]}},"/api/v1/native/search":{"get":{"operationId":"searchNativeProofs","parameters":[{"in":"query","name":"q","required":true,"schema":{"maxLength":300,"minLength":1,"type":"string"}},{"description":"Verification status","in":"query","name":"status","required":false,"schema":{"enum":["verified","conditional"],"type":"string"}},{"description":"Results per page","in":"query","name":"limit","required":false,"schema":{"default":10,"maximum":100,"minimum":1,"type":"integer"}},{"description":"Cursor returned by the previous page","in":"query","name":"cursor","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page"}}},"description":"Theorems and their exact releases","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Invalid search parameters"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Rate limited. Retry-After says when to send again."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The database or PISA did not answer. Retry later."}},"summary":"Search theorems in published QED releases","tags":["native projects"]}},"/api/v1/projects":{"get":{"operationId":"listProjects","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectList"}}},"description":"Projects","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The request is malformed; the message says how."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Rate limited. Retry-After says when to send again."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The database or PISA did not answer. Retry later."}},"summary":"Projects with verified theorems","tags":["registry"]}},"/api/v1/projects/{slug}":{"get":{"operationId":"getProject","parameters":[{"description":"Project slug","in":"path","name":"slug","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}},"description":"The project","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The request is malformed; the message says how."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"No such project"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Rate limited. Retry-After says when to send again."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The database or PISA did not answer. Retry later."}},"summary":"One project","tags":["registry"]}},"/api/v1/sources":{"get":{"operationId":"listSources","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceList"}}},"description":"Sources","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The request is malformed; the message says how."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Rate limited. Retry-After says when to send again."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The database or PISA did not answer. Retry later."}},"summary":"Every source","tags":["registry"]}},"/api/v1/sources/{id}":{"get":{"operationId":"getSource","parameters":[{"description":"Source id, such as mathlib","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Source"}}},"description":"The source","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The request is malformed; the message says how."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"No such source"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Rate limited. Retry-After says when to send again."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The database or PISA did not answer. Retry later."}},"summary":"One source","tags":["registry"]}},"/api/v1/statements/find":{"get":{"operationId":"findStatementGet","parameters":[{"description":"A Lean statement, with or without `theorem name`","in":"query","name":"statement","required":false,"schema":{"maxLength":20000,"type":"string"}},{"description":"SHA-256 of the exported type","in":"query","name":"type_sha256","required":false,"schema":{"pattern":"^[0-9a-fA-F]{64}$","type":"string"}},{"description":"SHA-256 of the statement: its type and every definition it uses","in":"query","name":"statement_sha256","required":false,"schema":{"pattern":"^[0-9a-fA-F]{64}$","type":"string"}},{"description":"Similar statements to return, at most 50","in":"query","name":"limit","required":false,"schema":{"default":10,"maximum":50,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatementMatches"}}},"description":"Exact matches and the closest verified statements","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The request is malformed; the message says how."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Rate limited. Retry-After says when to send again."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The database or PISA did not answer. Retry later."}},"summary":"Has this been proved already? (query form)","tags":["theorems"]},"post":{"description":"Exact matches by the statement's SHA-256, then the exported type's, then by statement text, then the closest verified statements. Check here before spending compute on a statement.","operationId":"findStatement","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FindBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatementMatches"}}},"description":"Exact matches and the closest verified statements","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The request is malformed; the message says how."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Rate limited. Retry-After says when to send again."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The database or PISA did not answer. Retry later."}},"summary":"Has this been proved already?","tags":["theorems"]}},"/api/v1/status":{"get":{"operationId":"getStatus","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}},"description":"Status","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The request is malformed; the message says how."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Rate limited. Retry-After says when to send again."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The database or PISA did not answer. Retry later."}},"summary":"Queue, workers, PISA and the log","tags":["registry"]}},"/api/v1/submissions":{"post":{"deprecated":true,"description":"Upload Lean source with the native draft endpoint or use the browser workspace.","operationId":"createSubmission","responses":{"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The request is malformed; the message says how."},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Repository submissions have ended (code submission_retired)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Rate limited. Retry-After says when to send again."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The database or PISA did not answer. Retry later."}},"summary":"Retired repository submission","tags":["submissions"]}},"/api/v1/submissions/{id}":{"get":{"operationId":"getSubmission","parameters":[{"description":"submission_id","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Submission"}}},"description":"The submission","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The request is malformed; the message says how."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"No such submission"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Rate limited. Retry-After says when to send again."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The database or PISA did not answer. Retry later."}},"summary":"Where a submission stands","tags":["submissions"]}},"/api/v1/theorems":{"get":{"description":"Only verified and conditional theorems are returned. With q, results are ranked: q matches the start of a Lean name and the words of names, statements and docstrings, and QED ranks at most 2,000 matches. Without q, theorems come newest first. Both page by keyset cursor.","operationId":"listTheorems","parameters":[{"description":"Words, a Lean name or part of one","in":"query","name":"q","required":false,"schema":{"maxLength":300,"type":"string"}},{"description":"A project slug, such as mathlib","in":"query","name":"project","required":false,"schema":{"type":"string"}},{"description":"A field id from /api/v1/fields, such as mathematics/number-theory","in":"query","name":"field","required":false,"schema":{"type":"string"}},{"description":"verified or conditional","in":"query","name":"status","required":false,"schema":{"enum":["verified","conditional"],"type":"string"}},{"description":"At most 100","in":"query","name":"limit","required":false,"schema":{"default":20,"maximum":100,"minimum":1,"type":"integer"}},{"description":"Without q only: first_verified (new results first, the default) or last_verified (latest runs first)","in":"query","name":"sort","required":false,"schema":{"enum":["first_verified","last_verified"],"type":"string"}},{"description":"First verified at or after this day (2026-12-01) or time (RFC 3339)","in":"query","name":"first_verified_after","required":false,"schema":{"type":"string"}},{"description":"Last run at or after this day or time","in":"query","name":"verified_after","required":false,"schema":{"type":"string"}},{"description":"next_cursor from the previous page","in":"query","name":"cursor","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TheoremList"}}},"description":"A page of theorems","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The request is malformed; the message says how."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Rate limited. Retry-After says when to send again."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The database or PISA did not answer. Retry later."}},"summary":"Search or list verified theorems","tags":["theorems"]}},"/api/v1/theorems/{project}/{name}":{"get":{"operationId":"getTheorem","parameters":[{"description":"Project slug","in":"path","name":"project","required":true,"schema":{"type":"string"}},{"description":"Full Lean name, percent-encoded","in":"path","name":"name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TheoremRecord"}}},"description":"The theorem","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The request is malformed; the message says how."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"QED has no theorem by that name in that project"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Rate limited. Retry-After says when to send again."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The database or PISA did not answer. Retry later."}},"summary":"One theorem with its statement, kernels, axioms, environment and runs","tags":["theorems"]}},"/api/v1/verifications/{id}":{"get":{"operationId":"getVerification","parameters":[{"description":"Verification id (UUID)","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationRecord"}}},"description":"The run","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The request is malformed; the message says how."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"No such verification"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Rate limited. Retry-After says when to send again."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The database or PISA did not answer. Retry later."}},"summary":"One verification run with its steps, attestation and files","tags":["verifications"]}},"/api/v1/verifications/{id}/files/{name}":{"get":{"operationId":"getRunFile","parameters":[{"description":"Verification id","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"A name from the run's files: spec.json, environment.json, Challenge.lean or Solution.lean","in":"path","name":"name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}},"text/plain":{"schema":{"type":"string"}}},"description":"The file: JSON for spec.json and environment.json, else text"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The request is malformed; the message says how."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"No such file; the message lists the run's files"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Rate limited. Retry-After says when to send again."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The database or PISA did not answer. Retry later."}},"summary":"A file of a run: spec.json and environment.json for a witness, or a submitted pair's sources","tags":["verifications"]}},"/api/v1/verifications/{id}/steps/{n}/log":{"get":{"operationId":"getStepLog","parameters":[{"description":"Verification id","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Step number, from 1","in":"path","name":"n","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"text/plain":{"schema":{"type":"string"}}},"description":"The log. X-QED-Log-Truncated says whether QED kept all of it."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The request is malformed; the message says how."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"No such step, or the step kept no log"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Rate limited. Retry-After says when to send again."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The database or PISA did not answer. Retry later."}},"summary":"One step's log as plain text","tags":["verifications"]}},"/api/v1/version":{"get":{"operationId":"getVersion","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Version"}}},"description":"The version"}},"summary":"What this server was built from","tags":["registry"]}},"/api/v1/witness-runs":{"post":{"description":"The qed.witness-run/v1 file qed-verify writes, unchanged. QED verifies its signature against a registered key and compares it with its latest run of the same subject.","operationId":"postWitnessRun","requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WitnessPosted"}}},"description":"Stored, with the agreement"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The request is malformed; the message says how."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"This run was received before (code duplicate)."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The key is not registered (unknown_witness; next says how to register it) or the signature or seal does not hold (refused)."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Rate limited. Retry-After says when to send again."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The database or PISA did not answer. Retry later."}},"summary":"Post a signed witness run","tags":["verifications"]}}},"servers":[{"url":"https://qed.so"}],"tags":[{"name":"theorems"},{"name":"verifications"},{"name":"log"},{"name":"registry"},{"name":"submissions"},{"name":"checks"}]}