theorem
proved
val_sub
show as:
view math explainer →
open explainer
Generate a durable explainer page for this declaration.
open lean source
IndisputableMonolith.Measurement.RSNative.Core on GitHub at line 182.
browse module
All declarations in this module, on Recognition.
explainer page
depends on
formal source
179
180@[simp] theorem val_zero (U : Type) : (0 : Quantity U).val = 0 := rfl
181@[simp] theorem val_add {U : Type} (a b : Quantity U) : (a + b).val = a.val + b.val := rfl
182@[simp] theorem val_sub {U : Type} (a b : Quantity U) : (a - b).val = a.val - b.val := rfl
183@[simp] theorem val_neg {U : Type} (a : Quantity U) : (-a).val = -a.val := rfl
184@[simp] theorem val_smul {U : Type} (r : ℝ) (a : Quantity U) : (r • a).val = r * a.val := rfl
185
186end Quantity
187
188/-! ### Unit/semantic tags (empty types) -/
189
190inductive TickUnit : Type
191inductive VoxelUnit : Type
192inductive CohUnit : Type
193inductive ActUnit : Type
194inductive CostUnit : Type
195inductive SkewUnit : Type
196inductive MeaningUnit : Type
197inductive QualiaUnit : Type
198inductive ZUnit : Type
199
200abbrev Tick := Quantity TickUnit
201abbrev Voxel := Quantity VoxelUnit
202abbrev Coh := Quantity CohUnit
203abbrev Act := Quantity ActUnit
204abbrev Cost := Quantity CostUnit
205abbrev Skew := Quantity SkewUnit
206abbrev Meaning := Quantity MeaningUnit
207abbrev Qualia := Quantity QualiaUnit
208abbrev ZCharge := Quantity ZUnit
209
210end RSNative
211end Measurement
212end IndisputableMonolith