Inner product-constrained interval
DefinitionLL_Decomp1543a_mRangeFor real and natural , define .
Definition code
import Mathlib open Real Finset ArithmeticFunction namespace LL_Decomp1543a noncomputable def mRange (c : ℝ) (N : ℕ) (U : ℝ) (t : ℕ) : Finset ℕ := (Icc 1 N).filter (fun m => c * N < ((m * t : ℕ) : ℝ) ∧ m * t ≤ N ∧ U < m) end LL_Decomp1543a
Read-back
What the Lean code literally says, in plain math · claude-haiku
For real , natural , real and natural , is the finite set of natural numbers with , , , and . The product is formed in and then viewed as a real in the condition , while is a natural-number inequality and compares the real with viewed as a real. No hypothesis restricts , , or . If the set is empty. If then , so the set is when and empty otherwise. If , the condition already forces . If , the condition holds for every . The output is a set of natural numbers, not a count.
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.