{"ok":true,"data":{"items":[{"oid":"989456136115376209fd6a56be8e8c3f89c3d9d4","tree":"ca8994abe1794dcd69238e28dcf7ef2dc0dc6964","parents":["118eb9c9aec819f90f93b9ba0ecefa9f0d2d3b6a"],"author":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795945510000},"committer":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795945510000},"subject":"Correct the stated reasons for finiteness and the scope of NP","message":"Correct the stated reasons for finiteness and the scope of NP\n\nReview findings: an infinite state set would not decide everything in\none step, as the docs claimed; it would let a machine read its input\ninto its state and then apply any predicate. Say that, and say why the\nalphabet must be finite too.\n\nNote that certificates use the input alphabet, so InNP is the usual NP\nfor two or more symbols but not over a one-symbol alphabet.\n\nCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>\n"},{"oid":"118eb9c9aec819f90f93b9ba0ecefa9f0d2d3b6a","tree":"af8519c9560cdd88040b71c2ddd2c10d97361c4a","parents":["5bdcd988ce31c5e20bc679e5aca17f88eaa6ccc7"],"author":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795945504000},"committer":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795945504000},"subject":"Make an Embedding's back map the exact inverse of emb","message":"Make an Embedding's back map the exact inverse of emb\n\nReview finding: Embedding only required back (emb i) = some i, which\nallows back to map a second tape onto a used one; such a lift would\noverwrite a tape the docs call untouched. Add emb_back, so back j = some\ni only when emb i = j, and prove it for castLE and skipOne.\n\nCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>\n"},{"oid":"5bdcd988ce31c5e20bc679e5aca17f88eaa6ccc7","tree":"d6bd765fbd5c18e2affe3b57483625399cb3f760","parents":["396d8a0df99015623a282b9dc207b52b6834db14"],"author":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795945433000},"committer":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795945433000},"subject":"Require a finite alphabet in P, NP and polynomial-time functions","message":"Require a finite alphabet in P, NP and polynomial-time functions\n\nReview finding: Machine requires finite states but nothing required a\nfinite alphabet. Over α := Nat a machine reading one symbol can test\nmembership in the halting set, so firstSymbol_inP put an undecidable\nlanguage in P.\n\nInP, InNP and PolyTimeComputable now start with IsFinite α, so every\nclass is empty over an infinite alphabet. The P ≠ NP statement (over\nBool) is unchanged. Theorems that build a machine from nothing (univ,\nempty, the identity, refl, firstSymbol_inP) take [IsFinite α].\n\nCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>\n"},{"oid":"3fc07c697bd3c08bd25c3bfbd35fedc0aa5234d1","tree":"07c806410f160cc23db3b3064d5054b665de22d7","parents":["4186ab2739015c0efa3783c76b4987259c8e34b7"],"author":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795945215000},"committer":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795945215000},"subject":"Add concrete one-step machines for first-symbol languages","message":"Add concrete one-step machines for first-symbol languages\n\nfirstSymbolMachine reads tape 0 once and halts, accepting when a test\non the first symbol passes, so every language decided by its first\nsymbol is in P. Instances over Bool: words starting with true, the empty\nword, and (by closure under complement) the non-empty words. An example\nruns the machine on [true, false] and checks that it accepts.\n\nCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>\n"},{"oid":"f0679799a068ef3eadad81d312dbccca601dc438","tree":"d6145aec31ac838aee08605421fc8db9d72750d0","parents":["5775f68a625381372449ec219c1ffa1a4b854544"],"author":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795945076000},"committer":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795945076000},"subject":"State P ≠ NP as an open problem","message":"State P ≠ NP as an open problem\n\nPEqNP and PNeNP are definitions over the binary alphabet, not theorems,\nand no axiom assumes either. Proved around them: P = NP iff P and NP have\nthe same languages, P ≠ NP iff some NP language is outside P, and for an\nNP-complete L, P ≠ NP iff L ∉ P.\n\nCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>\n"},{"oid":"5775f68a625381372449ec219c1ffa1a4b854544","tree":"6e382d5bcfac8787f5446e37c30da300a4f570d1","parents":["9a24316027a91cc3fdc90b58e4c8740501a87703"],"author":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795945075000},"committer":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795945075000},"subject":"Define NP-hardness and NP-completeness","message":"Define NP-hardness and NP-completeness\n\nNPHard L: every NP language reduces to L. NPComplete L: in NP and\nNP-hard. Proved: hardness passes up along reductions, an NP-hard language\nin P puts all of NP in P, an NP-complete language is in P exactly when\nall of NP is, and NP-complete languages reduce to each other.\n\nNo concrete language is shown NP-complete yet (Cook–Levin is on the\nroadmap).\n\nCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>\n"},{"oid":"9a24316027a91cc3fdc90b58e4c8740501a87703","tree":"67539de4c98961e9cb29d2a0b160b759eef1b809","parents":["346abe536d053a5c1b61722fd9b9ea5144e9a85c"],"author":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795945024000},"committer":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795945024000},"subject":"Prove NP closed under polynomial-time reductions","message":"Prove NP closed under polynomial-time reductions\n\nIf L ≤ₚ L' and L' ∈ NP then L ∈ NP. The reduction runs first, lifted\nwith skipOne so the certificate on tape 1 survives; the verifier for L'\nthen runs on f x and the same certificate. run_seq_verifier is the\nsimulation lemma for that composite.\n\nCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>\n"},{"oid":"346abe536d053a5c1b61722fd9b9ea5144e9a85c","tree":"f2ec5842a9aae6fa83389b8f340fd95fc1f4f13f","parents":["f5592d3aedb2a3159eb374b0c8fe8cc6eec1d4da"],"author":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795945023000},"committer":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795945023000},"subject":"Define NP by polynomial-time verifiers; prove P ⊆ NP","message":"Define NP by polynomial-time verifiers; prove P ⊆ NP\n\nInNP L: a machine with the certificate on tape 1 halts within T |x|\nsteps for every certificate, and x ∈ L exactly when some certificate\nmakes it accept (Sipser's definition: the time bound ignores the\ncertificate, so only a polynomial prefix of it can matter).\n\nP ⊆ NP: lift the decider with Embedding.skipOne so it never touches tape\n1; it is then a verifier that ignores its certificate.\n\nCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>\n"},{"oid":"f5592d3aedb2a3159eb374b0c8fe8cc6eec1d4da","tree":"a816ba108214f8c8479aec4d9f11a56d21ebdb43","parents":["c8e434ba058c72a281a2c0f4d9ac19451c2bdc33"],"author":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795944959000},"committer":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795944959000},"subject":"Add polynomial-time reductions; they compose","message":"Add polynomial-time reductions; they compose\n\nPolyTimeComputable f: a machine computes f in polynomial time and |f x|\nis polynomially bounded. L ≤ₚ L' is a Karp reduction.\n\nProved: the identity is polynomial-time, polynomial-time functions\ncompose, ≤ₚ is reflexive and transitive, a reduction is also one between\nthe complements, and P is closed downward under ≤ₚ. The composite machine\nlifts both machines onto a common set of tapes and runs them in sequence.\n\nCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>\n"},{"oid":"c8e434ba058c72a281a2c0f4d9ac19451c2bdc33","tree":"f548f74fabaa47be0ebfd8f37d92ef7e0be1b569","parents":["bcc4f3dece3d264853eced6c9d44e5e47d2f6d63"],"author":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795944852000},"committer":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795944852000},"subject":"Define P and prove it closed under complement","message":"Define P and prove it closed under complement\n\nInP L: some machine decides L within a polynomial time bound. The full\nand empty languages are in P (a machine that halts at once), and P is\nclosed under complement by swapping accepting and rejecting states.\n\nCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>\n"},{"oid":"bcc4f3dece3d264853eced6c9d44e5e47d2f6d63","tree":"3dec929b24f12072ff6d0a5ecb057ac72531c5e2","parents":["6e7066ddddafbadd01b90cd05e7abb76c82a1bba"],"author":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795944833000},"committer":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795944833000},"subject":"Define deciding, computing and verifying within a time bound","message":"Define deciding, computing and verifying within a time bound\n\nDecidesIn, ComputesIn and VerifiesIn, each with its time measured in the\ninput length. ComputesIn asks for a clean output (f x on tape 0, all\nelse blank, heads at 0) so a second machine can start where the first\nstopped. A verifier's time bound ignores the certificate, as in Sipser.\n\nAll three are monotone in the time bound and survive adding tapes.\n\nCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>\n"},{"oid":"6e7066ddddafbadd01b90cd05e7abb76c82a1bba","tree":"2ffd9b4bb15c834edff42356734a67154b43bc98","parents":["ca0840598349a33fc20adf79395534b6d8376a04"],"author":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795944787000},"committer":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795944787000},"subject":"Compose machines sequentially","message":"Compose machines sequentially\n\nM₁.seq M₂ runs M₁, switches to M₂ in one step without touching a tape,\nthen runs M₂ on the tapes M₁ left. run_seq: if M₁ halts within t₁ steps\nand M₂ then halts within t₂, the composite halts within t₁ + 1 + t₂ in\nthe configuration M₂ reaches.\n\nCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>\n"},{"oid":"ca0840598349a33fc20adf79395534b6d8376a04","tree":"89e25f0aeaad100f391b11a9eddd72d0441721e6","parents":["cd5376bbfcbe7c47ca864981700de9c4af3334aa"],"author":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795944756000},"committer":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795944756000},"subject":"Run a machine on more tapes, with a simulation proof","message":"Run a machine on more tapes, with a simulation proof\n\nAn Embedding places the k + 1 tapes of a machine among k' + 1 tapes.\nMachine.lift runs the machine on those tapes and leaves the others\nuntouched; run_lift proves the lifted run is the original run, step by\nstep.\n\ncastLE keeps every tape where it is. skipOne leaves tape 1 free, so a\ncertificate there survives a decider's or a reduction's run.\n\nCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>\n"},{"oid":"cd5376bbfcbe7c47ca864981700de9c4af3334aa","tree":"9a04097f71bb8f6c3a27bbd45b358c97d50acd14","parents":["138ab8077e37aa95e182800617d096901bc6fbcf"],"author":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795944694000},"committer":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795944694000},"subject":"Define multi-tape Turing machines and their runs","message":"Define multi-tape Turing machines and their runs\n\nMachine α k has k + 1 tapes over Option α and a finite type of states\n(finiteness is a field, so a state cannot hide unbounded data). step,\nrun and init, with run_add and the fact that halting is absorbing:\nrunning a halted configuration longer changes nothing.\n\ninputTapes and verifierTapes give the start tapes of deciders and of\nverifiers (certificate on tape 1).\n\nCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>\n"},{"oid":"138ab8077e37aa95e182800617d096901bc6fbcf","tree":"396908e8b7b16153f237c48d676ed59e28d3ad62","parents":["92f3039f33310f75b694f5a81ce9740b99d8df45"],"author":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795944648000},"committer":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795944648000},"subject":"Add Turing-machine tapes","message":"Add Turing-machine tapes\n\nTapes are Int-indexed functions with a head, so equal contents means\nequal tapes. Blank, ofWord, read, write and move, with the lemmas that\nwriting back the symbol read is a no-op and that ofWord [] is blank.\n\nCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>\n"},{"oid":"92f3039f33310f75b694f5a81ce9740b99d8df45","tree":"ff145bcd36df5ac799630d85cac2206267bef903","parents":["b2e6a61649b541c914352afc8e21f4edd8d866c4"],"author":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795944647000},"committer":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795944647000},"subject":"Define languages as membership predicates","message":"Define languages as membership predicates\n\nA decision problem is a language over an alphabet α, a predicate on\nList α. Adds complement, the full and the empty language.\n\nCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>\n"},{"oid":"b2e6a61649b541c914352afc8e21f4edd8d866c4","tree":"0364ccb37b11f96015924d68de348a12deecf1a3","parents":["6d229cb522a543cb046a2a6bb5748cd8466cfbb8"],"author":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795944623000},"committer":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795944623000},"subject":"Add polynomial bounds with sum, product and composition","message":"Add polynomial bounds with sum, product and composition\n\nPolyBounded f means f n ≤ c * (n + 1) ^ d. The bound polyBound c d is\nmonotone in n, which composing time bounds relies on. Closure under\naddition, multiplication and composition is proved.\n\nCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>\n"},{"oid":"6d229cb522a543cb046a2a6bb5748cd8466cfbb8","tree":"7458f9150567cd78b3fd3fdc4d3cb34ab7f1b018","parents":["3415679e262f6af8c2d439b95c8f78756c2506f1"],"author":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795944582000},"committer":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795944582000},"subject":"Add a list-based notion of finite types","message":"Add a list-based notion of finite types\n\nLean core has no Fintype. Machines need a finite control and a finite\nalphabet, so IsFinite says some list enumerates the type. Instances for\nBool, Unit, Fin n, Option, Sum and Prod.\n\nCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>\n"}],"next":null,"truncated":false},"meta":{"request_id":"18959848-870","took_us":323,"limits":{"limit":600,"remaining":128,"window_ms":60000,"reset_ms":47166,"cost":1,"streams":{"limit":16,"open":0}}}}