Skip to content

Commit 0f3af93

Browse files
committed
Add the Scalar typeclass
1 parent 88d2412 commit 0f3af93

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/-
2+
Copyright (c) 2026 Gaëtan Serré. All rights reserved.
3+
Released under Apache 2.0 license as described in the file LICENSE.
4+
Authors: Gaëtan Serré
5+
-/
6+
module
7+
8+
public import Mathlib.MeasureTheory.MeasurableSpace.Defs
9+
10+
@[expose] public section
11+
12+
/-- `Scalar R` bundles a measurable space structure on `R` with the operations and numerals of a
13+
field, but none of its axioms, so that it applies to both `ℝ` and `Float`. -/
14+
class abbrev Scalar (R : Type*) :=
15+
MeasurableSpace R, Add R, Mul R, Div R, Sub R, Zero R, One R, NatCast R, OfScientific R

0 commit comments

Comments
 (0)