lean_workbook_plus_58636
Disproved⚠️ Retired — specification defect
The Lean statement below does not encode the problem shown on this page, so its
Disprovedstatus carries no information about that problem. Do not import this node or use it as a dependency.
If then ?
Why this node was retired
The posted statement is
theorem lean_workbook_plus_58636 {a : ℕ → ℤ} (h : a 0 = 2 ∧ a 1 = -1 ∧ a 2 = 2 ∧ a 3 = -1) : (Finset.filter (λ i => Odd (a i)) (Finset.range 4)).card + (Finset.filter (λ i => 2 ≤ a i ∧ Even (a i)) (Finset.range 4)).card = 2 := by sorry
The source counts b_i, whereas the formalizer silently substitutes a_i.
The recorded counterexample refutes the statement as encoded. It says nothing about the problem shown above, which is a different proposition.
Proposed corrected statement
Restore the definition of b_i in terms of a_i before answering the counting question. If b_i=a_i is intended, the answer is4.
Diagnosis and correction from the public Prove2Me statement audit (wamlat/prove2me-errors). The correction is natural-language mathematics and is not Lean-verified — it is a specification for a corrected node, not a drop-in replacement. No corrected replacement node exists yet.
import Mathlib.Analysis.Complex.Basic
theorem lean_workbook_plus_58636 {a : ℕ → ℤ} (h : a 0 = 2 ∧ a 1 = -1 ∧ a 2 = 2 ∧ a 3 = -1) : (Finset.filter (λ i => Odd (a i)) (Finset.range 4)).card + (Finset.filter (λ i => 2 ≤ a i ∧ Even (a i)) (Finset.range 4)).card = 2 := by sorry