Skip to content

Commit a15f4c1

Browse files
grunwegkim-em
andauthored
feat: require disclosure of AI use in PR description (#767)
As discussed on zulip: https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/policy.20proposal.3A.20mention.20AI.20use.20in.20PR.20description.3F/near/539438023 --------- Co-authored-by: Kim Morrison <477956+kim-em@users.noreply.github.com>
1 parent 22aad8e commit a15f4c1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

templates/contribute/index.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ style violations documented in this guide are welcome. Other stylistic PRs that
6161
approval by the authors of the affected files may be closed. We invite authors to instead discuss the proposed
6262
change on Zulip and, when significant consensus among reviewers is reached, to open a PR to the style guide.
6363

64+
## Use of AI
65+
66+
Using artificial intelligence tools to generate code is becoming more and more common. While this can be practical, their use also poses ethical, ecological, legal and social concerns. We recognise that there are strong differences in opinion on this topic, and do not enforce a strict ban. That said, while individual action alone will not address these concerns, we ask you to consider the effects of your AI use and if it is truly necessary.
67+
68+
If you use artificial intelligence (such as, by using github's copilot mode, asking an LLM like ChatGPT or using an agent like Codex, Claude or Gemini), please explain this in the PR description. Explain which tool(s) you used and how you used it. This provides useful context for reviewers: tools make different mistakes than humans, so knowing this makes it easier to spot common errors.
69+
70+
It is essential that you can vouch for all the code submitted in a PR, and understand all the content written by an AI. If you don't, then it is possible that the PR actually has negative value to the community, and you are expecting others to do the real work for you!
71+
6472
## Working on mathlib
6573

6674
We use `git` to manage and version control `mathlib`.

0 commit comments

Comments
 (0)