structure
definition
ExternalCalibration
show as:
view math explainer →
open explainer
Read the cached plain-language explainer.
open lean source
IndisputableMonolith.Constants.RSNativeUnits on GitHub at line 292.
browse module
All declarations in this module, on Recognition.
explainer page
Derivations using this theorem
depends on
used by
-
c_in_si -
status -
to_hertz -
to_joules -
to_kg -
to_meters -
to_m_per_s -
to_seconds -
measure_to_joules -
measure_to_joule_seconds -
measure_to_meters -
measure_to_seconds -
to_joules -
to_joule_seconds -
to_meters -
to_seconds -
calibration -
CalibrationCert -
externalCalibration_of_tau0_seconds -
tau0_seconds_protocol_hygienic -
mass_display_calibration_of_external
formal source
289-/
290
291/-- External calibration structure for mapping RS units to SI/other systems. -/
292structure ExternalCalibration where
293 /-- Seconds per tick (τ₀ in seconds). -/
294 seconds_per_tick : ℝ
295 /-- Meters per voxel (ℓ₀ in meters). -/
296 meters_per_voxel : ℝ
297 /-- Joules per coherence quantum. -/
298 joules_per_coh : ℝ
299 /-- All conversion factors are positive. -/
300 seconds_pos : 0 < seconds_per_tick
301 meters_pos : 0 < meters_per_voxel
302 joules_pos : 0 < joules_per_coh
303 /-- Consistency: c = ℓ₀/τ₀ must equal 299792458 m/s in SI. -/
304 speed_consistent : meters_per_voxel / seconds_per_tick = 299792458
305
306/-- Convert time (in ticks) to seconds. -/
307@[simp] noncomputable def to_seconds (cal : ExternalCalibration) (t : Time) : ℝ :=
308 t * cal.seconds_per_tick
309
310/-- Convert length (in voxels) to meters. -/
311@[simp] noncomputable def to_meters (cal : ExternalCalibration) (L : Length) : ℝ :=
312 L * cal.meters_per_voxel
313
314/-- Convert velocity (in voxels/tick) to m/s. -/
315@[simp] noncomputable def to_m_per_s (cal : ExternalCalibration) (v : Velocity) : ℝ :=
316 v * (cal.meters_per_voxel / cal.seconds_per_tick)
317
318/-- Convert energy (in coh) to Joules. -/
319@[simp] noncomputable def to_joules (cal : ExternalCalibration) (E : Energy) : ℝ :=
320 E * cal.joules_per_coh
321
322/-- Convert mass (in coh/c²) to kg. -/