← Command reference · lean-pkg claims · CLI overview
lean-pkg claims list
table of cached claims with status and trust.
Usage
lean-pkg claims list [--json] [NAME]
Arguments and flags
| Argument or flag | Description |
|---|---|
NAME |
Details
| Form | What it does | Key flags |
|---|---|---|
claims list [NAME] |
table of cached claims: id, kind, status, trust (derived from the receipts), pin, declaration; with NAME it also states the package’s coverage (synced, empty, unsynced or none), and with none cached it prints NAME: coverage: none (cached_claims: 0, claims.yaml: absent), any legacy *claims.json in the checkout, and the next command |
JSON output
Top-level keys of --json, as recorded in the golden contract (tests/golden/json-keys.json):
claims-list(exit 0):claims,ok
Examples
Print a table of every cached claim in the registry (id, kind, status, the package’s trust level from the evidence the registry records, the pinned commit, the declaration).
lean-pkg claims list
Sample output:
ID KIND STATUS TRUST PIN DECL
my-proof/main-bound theorem reusable comparator 23d643ab1b53 MyProof.main_bound
my-proof/aux-bound lemma internal comparator 23d643ab1b53 MyProof.aux_bound
One package’s claims; with none cached it states the package’s coverage (here a claims.yaml committed but not synced), names any legacy claims JSON in the checkout, and prints the next command.
lean-pkg claims list my-proof
Sample output:
my-proof: coverage: unsynced (cached_claims: 0, claims.yaml: present)
legacy: legacy-claims.json (not read by lean-pkg; migrate it)
next: claims.yaml is committed at HEAD but not synced: lean-pkg claims sync my-proof