Finite coefficient interval
DefinitionLL_Decomp1543a_lRangeFor natural and real , define .
Definition code
import Mathlib open Real Finset ArithmeticFunction namespace LL_Decomp1543a noncomputable def lRange (N : ℕ) (U X : ℝ) : Finset ℕ := (Icc 1 N).filter (fun m => U < m ∧ (m : ℝ) ≤ X) end LL_Decomp1543a
Read-back
What the Lean code literally says, in plain math · claude-haiku
This file defines for and real , as a finite set of natural numbers:
Each is compared with and as a real number. The conditions are joined by conjunction: , so is excluded; ; a strict lower bound ; and a non-strict upper bound . There are no hypotheses, so the definition applies to every , , . The set is empty when , and also when no integer with lies in , for example when or . There are no divisions or natural-number subtractions, so no junk values arise. The modifier noncomputable affects only code generation and does not change the set.
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.