physbound

v0.3.0
io.github.JonesRobM/physbound Checked 4 days ago Published 3 months ago

Physical Layer Linter: validates RF and radar calculations against hard physical limits.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

shannon_hartley

Calculate Shannon-Hartley channel capacity and validate throughput claims. Computes the theoretical maximum data rate C = B * log2(1 + SNR) for an AWGN channel. If a claimed throughput is provided, validates it against this limit. Any claim exceeding the Shannon limit is a physical impossibility. Use this tool when you need to: - Calculate maximum achievable throughput for a given bandwidth and SNR - Validate whether a throughput claim is physically possible - Determine spectral efficiency limits - Check if a modulation/coding scheme claim is realistic Returns a PhysicalViolationError dict…

ParameterTypeDescription
bandwidth_hz *numberChannel bandwidth in Hz (must be > 0)
claimed_throughput_bpsOptional throughput claim to validate in bits/sec
snr_dbSignal-to-noise ratio in dB. Provide this OR snr_linear.
snr_linearSignal-to-noise ratio (linear, not dB). Provide this OR snr_db.

noise_floor

Calculate thermal noise power (kTB), cascaded noise figure, and receiver sensitivity. Computes the fundamental thermal noise floor N = k_B * T * B, which is -174 dBm/Hz at the IEEE standard temperature of 290K. Optionally cascades multiple amplifier/filter stages using the Friis noise figure formula F_total = F_1 + (F_2-1)/G_1 + (F_3-1)/(G_1*G_2) + ..., the receiver's effective input noise temperature T_e = T_0*(F-1) with T_0 = 290 K (the IEEE reference at which noise figure is defined, independent of temperature_k), and receiver sensitivity S_min = k_B*(T_A + T_e)*B*SNR_required, which reduc…

ParameterTypeDescription
bandwidth_hz *numberReceiver bandwidth in Hz (must be > 0)
required_snr_dbRequired SNR in dB for sensitivity calculation
stagesOptional list of stages, each with 'gain_db' and 'noise_figure_db' keys
temperature_knumberSource/antenna noise temperature T_A in Kelvin used for the kTB floor (default: 290K, must be >= 0)

radar_range

Calculate maximum monostatic radar detection range and validate range claims. Computes the radar range equation R_max = [P_t * G^2 * lambda^2 * sigma / ((4*pi)^3 * S_min * L)]^(1/4) for a monostatic radar (same antenna for transmit and receive). Validates that claimed detection ranges do not exceed the theoretical maximum. Catches the common fourth-root fallacy where LLMs incorrectly state that doubling transmit power doubles radar range (it only increases range by a factor of 2^(1/4) = 1.19x). Use this tool when you need to: - Calculate the maximum detection range of a radar system - Valida…

ParameterTypeDescription
antenna_gain_dbi *numberAntenna gain in dBi (same antenna for TX and RX)
frequency_hz *numberOperating frequency in Hz (must be > 0)
peak_power_w *numberPeak transmit power in watts (must be > 0)
rcs_m2 *numberRadar cross section of the target in m^2 (must be > 0)
claimed_range_mOptional claimed detection range to validate against R_max (meters)
losses_dbnumberTotal system losses in dB (default: 0)
min_snr_dbnumberMinimum required SNR in dB for detection (default: 13 dB, Swerling I)
noise_bandwidth_hznumberReceiver noise bandwidth in Hz (default: 1 MHz)
num_pulsesintegerNumber of integrated pulses for integration gain (default: 1)
system_noise_temp_knumberSystem noise temperature in Kelvin (default: 290K)

antenna_gain

Calculate antenna aperture gain limits, beamwidth, far-field distance; validate gain claims. For a circular aperture of diameter D (or an aperture of area A, converted to the equivalent circular diameter D = sqrt(4A/pi)) computes the planar-aperture directivity D_0 = 4*pi*A/lambda^2 = (pi*D/lambda)^2 (aperture efficiency eta = 1), Harrington's bound D_max = (ka)^2 + 2ka (k = 2*pi/lambda, a = D/2) for any antenna enclosed in a sphere of diameter D, the hard physical gain limit max(D_0, D_max) (numerically D_max; equal to D_0 to within 0.1 dB for D >> lambda, but several dB higher for electrica…

ParameterTypeDescription
frequency_hz *numberOperating frequency in Hz (must be > 0)
aperture_area_m2Physical aperture area in m^2. Provide this OR diameter_m.
aperture_efficiencynumberEfficiency for the typical gain / warning threshold (default: 0.55 for a parabolic dish; the hard limit is max(eta = 1 aperture value, Harrington bound))
claimed_gain_dbiOptional antenna gain claim to validate in dBi
diameter_mCircular aperture diameter in meters. Provide this OR aperture_area_m2.

radar_ambiguity

Calculate pulse-Doppler radar ambiguity limits and validate range/velocity claims. Computes the maximum unambiguous range R_ua = c / (2 * PRF), the first blind speed lambda * PRF / 2, the unambiguous velocity v_ua = +/- lambda * PRF / 4 (Doppler within +/- PRF/2), the Doppler shift f_d = 2 * v_r / lambda of a target (closing velocity positive) and whether it aliases, and — when a pulse width is given — the duty cycle, eclipsing minimum range c * tau / 2 and the range resolution c * tau / 2 (or c / (2 B) when a compressed bandwidth is supplied). Reports the range-Doppler dilemma invariant…

ParameterTypeDescription
frequency_hz *numberCarrier frequency in Hz (must be > 0)
prf_hz *numberPulse repetition frequency in Hz (must be > 0)
bandwidth_hzOptional compressed bandwidth in Hz; sets the resolution limit to c/(2B)
claimed_range_resolution_mOptional claimed range resolution to validate (m)
claimed_unambiguous_range_mOptional claimed unambiguous range to validate (m)
claimed_unambiguous_velocity_m_sOptional claimed unambiguous velocity to validate (m/s)
pulse_width_sOptional transmitted pulse width tau in seconds (must be > 0)
target_velocity_m_sOptional target radial velocity in m/s (closing positive)