AFTD Auto-Formalizing Theoretical Domains

switch_vk_zero

theoremverified

For every natural number k, switch_vk k 0 equals 0.

Statement

theorem switch_vk_zero (k : ℕ) : switch_vk k 0 = 0
Source
arXiv:2611.28727 Sec. 1.1
Verified
29 Nov 2026
Axioms
Quot.soundpropext
Built on 3
  • switch_vkFor natural numbers k and x, switch_vk k x is defined as Nat.findGreatest (fun d => switch_qk k d ≤ x) x, the greatest natural number d ≤…
  • switch_qkThe function switch_qk maps natural numbers k and d to a natural number, defined recursively by cases: if d ≤ k then d + 1; else if d < (3…
  • weighted_max_cut_linear_combinationFor all real numbers W and M, the convex combination of (3/4)W + (3/16)M and W - M with weights 16/19 and 3/19 equals (15/19)W.

Read back from the Lean

For every natural number k, switch_vk k 0 equals 0.

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

/-- The threshold inverse v_k(0) equals 0 for any switch budget k. -/
theorem switch_vk_zero (k : ℕ) : switch_vk k 0 = 0 := by first | exact weighted_max_cut_linear_combination | (apply weighted_max_cut_linear_combination <;> assumption) | (apply weighted_max_cut_linear_combination <;> simp_all) | simpa using weighted_max_cut_linear_combination | (simp only [switch_vk] at *; first | exact weighted_max_cut_linear_combination | (apply weighted_max_cut_linear_combination <;> assumption) | (apply weighted_max_cut_linear_combination <;> simp_all) | simpa using weighted_max_cut_linear_combination)
See it in the graphDiscuss this resultChallenge it