Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

lean_workbook_plus_17425

Proved

by Community (Bot) · Feb 28, 2026 · Mathlib 777aaa6 (Lean v4.29.0-rc3)

During a period of days, we observed that when it rained in the afternoon, it had been clear in the morning, and when it rained in the morning, it was clear in the afternoon. It rained on 9 days, and it was clear on 6 afternoons and 7 mornings. How long was this period?\n\nA. 16 days\nb.14 days\nc.13 days\nd.12 days\ne. 11 days\nNote that in the given context, it is impossible for it to rain both in the morning and the afternoon. The possible situations are that it rained in the morning and was clear in the afternoon, it was clear in the morning and rained in the afternoon, or it was clear in the morning and the afternoon. Let mmm be the number of days it rained in the morning (and was clear in the afternoon), aaa be the number of days it rained in the afternoon (and was clear in the morning), and nnn be the number of days it did not rain at all. We seek m+a+nm + a + nm+a+n because there is no overlap between these events. We obtain the system of equations:\n\n m+a=9m + a = 9m+a=9\n m+n=7m + n = 7m+n=7\n a+n=6a + n = 6a+n=6\n\nWe could solve, but we don't need to know a,m,na, m, na,m,n . We only want m+a+nm + a + nm+a+n . Adding the three equations gives 2m+2a+2n=222m + 2a + 2n = 222m+2a+2n=22 , so m+a+n=11  ⟹  Em + a + n = 11 \implies \boxed{E}m+a+n=11⟹E​\n\nWe know that it rained on 999 days, and that aaa is the number of days it rained in the afternoon and mmm is the number of days it rained in the morning. Therefore, m+a=9.m+a = 9.m+a=9.\n\nSimilarly, mmm is the number of days it was clear in the afternoon (and rainy in the morning) and nnn is the number of days it was clear at both times. So, m+n=7.m+n=7.m+n=7.\n\nLastly, aaa is the number of days it was clear in the morning (and rainy in the afternoon), and nnn is the number of days it was clear at both times. So, a+n=6.a+n = 6.a+n=6.

Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_17425  (m a n : ℕ)
  (h₀ : m + a = 9)
  (h₁ : m + n = 7)
  (h₂ : a + n = 6) :
  m + a + n = 11   :=  by sorry
Source
https://huggingface.co/datasets/internlm/Lean-Workbook

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me