Auxillary definitions related to Lean.RArray
that are typically only used in meta-code, in
particular the ToExpr
instance.
Equations
- Lean.RArray.ofFn f h = Lean.RArray.ofFn.go f 0 n h ⋯
Instances For
Instances For
theorem
Lean.RArray.get_ofFn
{α : Type}
{n : Nat}
(f : Fin n → α)
(h : 0 < n)
(i : Fin n)
:
(Lean.RArray.ofFn f h).get ↑i = f i
The correctness theorem for ofFn
@[simp]
theorem
Lean.RArray.size_ofFn
{α : Type}
{n : Nat}
(f : Fin n → α)
(h : 0 < n)
:
(Lean.RArray.ofFn f h).size = n