Manifund foxManifund
Home
Login
About
People
Orgs
Funds
Categories
Newsletter
HomeAboutPeopleCategoriesLoginCreate

Grant Agreement

COMPLETE

All grant recipients are required to agree to the terms and conditions outlined here before receiving funds.

1Background

1.1 Manifold for Charity, 1621 E 6th Street Unit 1440, Austin, TX 78702, United States, a registered 501(c)3-nonprofit with EIN 88-3668801 (the “Charity”).

1.2 Nada Amin (the “Recipient”)

1.3 Based on the information provided to Manifold for Charity, this grant is to be used exclusively for the following purposes in accordance with the terms and conditions of this letter, unless otherwise approved in advance [in writing] by Manifold for Charity: "Making sure that the code AI pushes to the internet is safe and bug-free" (the “Project”).

1.4 The start date for this grant will be June 23rd, 2026 (the “Commencement Date”) and will run for the duration (the “Grant Period”) until the Recipient marks the Project as complete (the “Expiry Date”).

2Purpose and Use of Grant

2.1 The Grant is conditional on the satisfactory use of the money and on compliance with the terms of this Agreement.

2.2 The Recipient shall not make any substantive change to the Project without the Charity’s prior written agreement.

2.3 Should any part of the Grant remain unspent at the end of the Grant Period, the Recipient shall ensure that the unspent money is returned to the Charity.

3Prohibited Uses

3.1 The Recipient shall not use the Grant:

(a) Otherwise than for the purposes which fall within the charitable purposes of the Recipient, or to undertake an activity for any purpose other than a religious, charitable, scientific, literary, educational, or other purpose specified in Section 170(c)(2)(B) of the Internal Revenue Code (“IRC”).

(b) To attempt to influence legislation, within the meaning of Section 501(c)(3) of the IRC.

(c) To participate or intervene in any political campaign on behalf of or in opposition to any candidate for public office, to induce or encourage violations of law or public policy, to cause any private inurement or improper private benefit to occur, or to take any other action inconsistent with Section 501(c)(3) of the IRC.

4Monitoring and Reporting

4.1 The Recipient is responsible for ensuring that the purposes for which the Grant is given are being met throughout the Grant Period and that the terms of this letter are being adhered to.

4.2 Upon the Charity’s request, the Recipient shall share a progress report every 6 months from the Commencement Date and shall share a final report upon the Expiry Date. If applicable, the Recipient shall receive instructions for submitting the report before it is due.

5Payment, Withholding, and Recovery of the Grant

5.1 The Charity may at its discretion withhold or suspend payment of the Grant and/or require repayment of all or part of the Grant and/or terminate this Agreement if:

(a) the Recipient uses any of the Grant for purposes other than those for which they have been awarded.

(b) all activities associated with the Project are not run in accordance with all statutory or other regulatory requirements in the country where the Recipient is established and in the country where the Project takes place, and in a manner consistent with the good name and reputation of the Charity.

(c) the Charity reasonably considers that the Recipient has not made satisfactory progress with the delivery of the Project, in which case any repayment shall be no greater than the unspent balance of the grant.

(d) the Recipient provides the Charity with any materially misleading or inaccurate information.

(e) the Recipient ceases to work on the Project for any reason.

(f) the Recipient fails to comply with any of the terms and conditions of this Agreement.

5.2 The Recipient agrees and acknowledges that the Grant is expressed as a maximum sum and is not a guaranteed payment. It shall be paid only to the extent that the Charity has available funds. The Charity does it all it can to keep fees low and foreign exchange rates fair, however, due to the nature of these fees, the amount the Recipient receives may be reduced by bank transfer fees and, for international transfers, also by forex fees.

5.3 The Recipient shall promptly repay to the Charity any money incorrectly paid to it either as a result of an administrative error or otherwise. This includes (without limitation) situations where either an incorrect sum of money has been paid or where Grant money has been paid in error before all conditions attaching to the Grant have been complied with by the Recipient.

5.4 If the Charity exercises its right to terminate pursuant to Section 5.1, then without prejudice to any other rights and remedies of the Charity, the Recipient shall, at the Charity’s sole discretion, return any remaining part of the Grant to the Charity, or any money that has not been used in accordance with Section 2 of this Agreement.

5.5 The Charity will make the payment using the standard payment routes, but the onus is on the Recipient to help the Charity complete the payment if those routes fail, for example, by providing alternative bank accounts or payment methods, subject to the Charity's acceptance.

6Limitation of Liability
The Charity accepts no liability for any consequences, whether direct or indirect, that may come about from the Recipient running the Project, the use of the Grant or from withdrawal of the Grant. The Recipient shall indemnify and hold harmless the Charity, its employees, agents, officers or subcontractors with respect to all claims, demands, actions, costs, expenses, losses, damages and all other liabilities arising from or incurred by reason of the Recipient’s actions and/or omissions in relation to the Project, the non-fulfilment of the Recipient’s obligations under this letter or the Recipient’s obligations to third parties. Subject to the foregoing, the Charity’s liability under this letter is limited to the payment of the Grant.
7Personal taxes
If applicable, the Recipient is responsible to pay when due all local taxes, duties, and other governmental fees, taxes or other governmental charges that may apply to personal income. The Grant shall not be increased in the event of any tax become payable on the Grant money. The Grant may be classified as taxable income. It is up to the Recipient to check with an accountant or tax professional to see whether they need to declare the Grant for tax purposes.
8Federal tax law compliance
Recipient acknowledges that it understands its obligations imposed by this Agreement, including but not limited to those obligations imposed by reference to the IRC. Recipient agrees that if Recipient has any doubts about its obligations under this Agreement, including those incorporated by reference to the IRC, Recipient will promptly contact Charity or its own legal counsel.
9No employment
The making of this Grant does not represent or imply any kind of employment relationship between the Recipient and the Charity.
10Publications; License
Any information contained in publications, studies, or research funded by this Grant shall be made available to the public following such reasonable requirements or procedures as Charity may establish from time to time. Promptly after creation of any publications, studies, or research funded by this Grant, Recipient agrees to grant to Charity an irrevocable, worldwide, nonexclusive, fully-paid up license to publish, in Charity’s discretion, such intellectual property, and to execute promptly any documents and instruments that the Charity may reasonably request in order to effect such license, without further consideration.
11No Agency
Recipient is solely responsible for all activities supported by the Grant funds, the content of any product created with the Grant funds, and the manner in which any such product may be disseminated. This Agreement shall not create any agency relationship, partnership, or joint venture between the parties, and Recipient shall make no such representation to anyone.
12Terrorist Activity
Recipient warrants that it does not support or conduct, directly or indirectly, violence or terrorist activity of any kind.
13Variations
No variation of this Agreement shall be effective unless it is in writing and signed by or on behalf of each party.
14Entire agreement
This Agreement is the entire agreement between the parties, and replaces all previous agreements and understandings between them, relating to its subject matter.
15Governing Law
This Agreement shall be governed by the laws of the State of California applicable to contracts to be performed entirely within the State.
Recipient full nameNada Amin
Recipient signatureNada Amin
DateJune 23rd, 2026
Charity signatory full nameAustin Chen
Charity signatory signatureAustin Chen
DateJune 23rd, 2026
This grant benefits the public by funding: AI safety (technical/scientific research)

The project as signed

The project's title and description when this agreement was signed on June 23rd, 2026. The project page shows the current version, which its creator may have edited since.

Making sure that the code AI pushes to the internet is safe and bug-free

what do you want to do? be specific.
Big picture: I want to make sure that the code AI pushes to the Internet is safe and bug-free. As a step toward that goal, I want to push further on a concept my partner and I at Midspiral have been working on. We are building LemmaScript, a verification toolchain for TypeScript. We point an agent to the toolchain and some supporting tools, and it writes verifiably correct TypeScript with an entire class of bugs eliminated at compile time. We have over 20 case studies in TypeScript projects, both greenfield and brownfield. We want to continue development of LemmaScript, and the ecosystem around it, so that it becomes seamless to verify any TypeScript project (some projects might still require well-integrated refactoring). Ideally, we would like to build a robust enough ecosystem for LemmaScript so an agent can reliably generate the specification annotations, programs, and iteratively write proofs both quickly and more cost-efficiently than it can generate the state-of-the-art (sometimes buggy) TypeScript programs. In our experience so far, verification guides development more effectively than if verification is not involved: definitely towards a better solution, and sometimes converging faster.
how are you planning to spend the money?
We plan to do more case-study-driven development of the toolchain, supporting a larger subset of TypeScript, as well as building adjacent tools (both LLM-driven and LLM-formal hybrid) for example to ensure intent is matched and to integrate with runtime contracts. We will focus on evaluating our claim that verification can guide development, empirically assessing what we found anecdotally. We will measure both the success rate and quality of resulting artifacts, as well as the speed of development. We will explore varying techniques to improve the agent’s ability to annotate programs and write their proofs of correctness. We can offer benchmarks for Dafny and Lean (our underlying backends) based on the case studies. We will chart a path towards adoption of LemmaScript.
what have you done in the past that proves you will be good at doing this? focus on substance, not credentials
I have contributed to Scala, Clojure (https://github.com/clojure/core.logic/blob/master/src/main/clojure/clojure/core/logic/nominal.clj), and Dafny (https://link.springer.com/chapter/10.1007/978-3-319-09099-3_2), as well as the Closure compiler (https://github.com/google/closure-compiler). I created https://io.livecode.ch/ and have been running it since 2014, sponsored by Digital Ocean. It's a Docker-based service to turn GitHub repositories into interactive tutorials. I wrote a self-hosting Scheme compiler, following a paper on an incremental approach to compiler construction: https://github.com/namin/inc I found soundness bugs in many systems, including Java (https://io.livecode.ch/learn/namin/unsound?img=java8), Scala (https://io.livecode.ch/learn/namin/unsound/scala), Dafny, and Twelf (https://github.com/standardml/twelf/pull/2). I collapsed a reflective tower of interpreters into a one-pass compiler (https://dl.acm.org/doi/10.1145/3158140). I’ve been interested in the intersection of formal verification and LLMs, from the very beginning of LLMs, and have co-created systems like VerMCTS (https://github.com/namin/llm-verified-with-monte-carlo-tree-search), Dafny Sketcher, dafny-annotator. I built claimcheck (see https://midspiral.com/blog/claimcheck-narrowing-the-gapbetween-proof-and-intent/), a tool and approach that does round-trip informalization to make sure that the informal specification matches the formal specification. My current projects include LemmaScript (https://lemmascript.com) on the company side, and, on the academic side, formal-disco (to be released soon). formal-disco is a verified discovery system so that large high-quality diverse synthetic datasets of verified programs can be created for training. So far, we have done so for Dafny, Verus and Frama-C, generating hundreds of thousands of verified programs, that boost one-shot performance of open LLMs to be better than Claude Opus.
what is something that you think everyone else is wrong about? convince me that you are right. Most people swimming in the verification lane are focused on training models to be better at proofs (and often focused on mathematics over programming). In the meantime, agents are continuing to produce and push massive amounts of buggy code, much of which is then being used to further train models. We recognize the technology is ready to be applied. The proofs are already possible and training base models on verification solves only a tiny sliver of the problem because, with the right tooling and ecosystem, frontier LLMs can already write them relatively easily. While everyone is stuck inside labs training models, we want to be giving real-world engineers the tools they need to trust the code AI is generating and begin a flywheel of provably correct generated code.
funding goal
With 10K USD, we will improve LemmaScript as described above. More funding would enable us to expand LemmaScript further, covering a bigger subset of TypeScript, including idioms from popular libraries, and thus supporting more existing code bases. We would also be able to develop it beyond the functional verified core to cover runtime contracts around its uses. This would allow LemmaScript to be applied in a significantly larger number of cases, even positioning it as a standard way to add verified contracts to TypeScript.