flow "BipolarJunctionTransistor" v1.0
# ---------- IDENTITY ----------
id: "electronic-component.bipolar-junction-transistor"
category: "Electronic Component Entities"
entity_type: "Bipolar Junction Transistor"
locale: "en-GB"
# ---------- AUTHORS ----------
authors: ["Mark Anthony Higgins", "Sky — Recursive AI"]
licence: "Kireth Research Open Research Licence; citation required"
# ---------- SOURCE ----------
source.url: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/electronic-component-entities/bipolar-junction-transistor-ontology.html"
source.title: "Bipolar Junction Transistor Ontology"
source.revised: "2026-08-04"
source_note: "Newly constructed Flow Algebra interpretation; page's embedded formal code was not available in the retrieved text."
# ---------- PURPOSE ----------
purpose: "Represent BJT structure, operating regions, terminal relations, switching, amplification, diagnostics and safety constraints as traceable semantic pathways."
# ---------- STATE_MODEL ----------
state S = (I, R, B, K)
I: observed terminal voltages, currents, temperature, device type, ratings, circuit topology
R: semiconductor relations, Kirchhoff constraints, operating-region rules, thermal models
B: safe operating area, voltage/current/power/temperature ratings, uncertainty bounds
K: component identity, terminal pinout, datasheet conditions, measurement provenance
operating_states: ["unpowered", "cutoff", "forward_active", "saturation", "reverse_active", "breakdown", "thermal_fault", "unknown"]
transitions:
unpowered -> cutoff when supply_present and base_emitter_not_forward_biased
cutoff -> forward_active when forward_bias_detected and collector_base_reverse_biased
forward_active -> saturation when both_junctions_forward_biased
any -> breakdown when rated_junction_voltage_exceeded
any -> thermal_fault when junction_temperature_exceeds_limit
any -> unknown when measurements_insufficient
# ---------- ENTITIES ----------
entity BJT: semiconductor_device
entity NPN: subtype(BJT)
entity PNP: subtype(BJT)
entity Base: terminal(BJT)
entity Collector: terminal(BJT)
entity Emitter: terminal(BJT)
entity BaseEmitterJunction: pn_junction
entity BaseCollectorJunction: pn_junction
entity BiasNetwork: circuit_subsystem
entity Load: circuit_component
entity HeatSink: thermal_component
entity ProtectionCircuit: safety_component
relations:
BJT.has_terminal -> [Base, Collector, Emitter]
BJT.has_junction -> [BaseEmitterJunction, BaseCollectorJunction]
BJT.part_of -> ElectronicCircuit
BJT.controlled_by -> BiasNetwork
BJT.drives -> Load
BJT.protected_by -> ProtectionCircuit
BJT.thermally_coupled_to -> HeatSink
# ---------- PATHWAYS ----------
pathway "IdentifyDevice":
input: device_marking, datasheet, pinout
require: verified_device_type and verified_terminal_mapping
output: device_identity, polarity, ratings, confidence
pathway "ResolveBias":
input: V_B, V_C, V_E, polarity, temperature
derive: V_BE = V_B - V_E
derive: V_BC = V_B - V_C
derive: V_CE = V_C - V_E
classify: junction_bias_states_using_polarity_and_device_model
output: operating_region_candidate
pathway "CurrentConservation":
input: I_B, I_C, I_E
invariant: I_E = I_B + I_C for signed currents under consistent convention
require: measurement_uncertainty_accounted_for
output: conservation_check
pathway "ForwardActiveGain":
when: operating_region == "forward_active" and abs(I_B) > measurement_floor
derive: beta_forced = abs(I_C / I_B)
note: "Current gain varies with current, temperature and device; use datasheet curves rather than a universal constant."
output: measured_current_gain
pathway "Switching":
input: base_drive, collector_load, supply, device_limits
evaluate: cutoff_or_saturation_target
check: base_drive_margin, switching_losses, storage_time, transient_stress
output: switching_state, margin, diagnostic_flags
pathway "PowerAndThermal":
input: terminal_voltages, terminal_currents, ambient_temperature, thermal_resistance
derive: P_device = sum(terminal_voltage * terminal_current) with consistent passive_sign_convention
estimate: T_J = T_A + P_device * R_theta_JA when steady_state_model_applicable
check: safe_operating_area and maximum_junction_temperature
output: thermal_status, uncertainty
pathway "FaultDiagnosis":
input: observed_bias, currents, temperature, circuit_context
candidates: ["open_base", "open_collector", "open_emitter", "collector_emitter_short", "junction_leakage", "insufficient_base_drive", "overheating", "incorrect_pinout"]
require: corroborating_measurements_before_fault_assignment
output: ranked_hypotheses, evidence, safe_next_tests
# ---------- MINI_RECURSION_ENGINE ----------
engine "BJTReasoner":
initialise: S_0 = (I_0, R, B, K)
expand: E_t = expand(I_t, R)
filter: V_t = {x in E_t | satisfies(x, B) and consistent(x, K)}
select: x_t = argmax(x in V_t) P(x | I_t, R, B, K)
update: I_(t+1) = merge(I_t, verified(x_t))
stop_when: evidence_stable or iteration_limit_reached or safety_constraint_violated
on_empty_valid_set: return "unresolved_or_unsafe"
guarantee: "No inference is treated as verified without supporting evidence."
# ---------- INFERENCE_RULES ----------
rule "NPNForwardActive":
if: NPN and base_emitter_forward_biased and base_collector_reverse_biased
then: candidate_region = "forward_active"
rule "Saturation":
if: base_emitter_forward_biased and base_collector_forward_biased
then: candidate_region = "saturation"
rule "Cutoff":
if: base_emitter_not_forward_biased and measured_collector_current_near_leakage
then: candidate_region = "cutoff"
rule "GainOutsideRegion":
if: candidate_region != "forward_active"
then: do_not_use_constant_beta_as_predictive_model
rule "ThermalRisk":
if: estimated_junction_temperature >= rated_temperature or power_outside_SOA
then: flag = "unsafe_operating_condition"
rule "AmbiguousDiagnosis":
if: multiple_fault_hypotheses_fit_measurements
then: request_additional_safe_measurements
# ---------- CONFIDENCE ----------
confidence.inputs: ["datasheet_match", "measurement_quality", "model_applicability", "temperature_known", "circuit_context"]
confidence.levels: ["verified", "high", "moderate", "low", "unknown"]
confidence.policy: "Never manufacture numeric certainty; retain assumptions and provenance."
# ---------- SEMANTIC_EQUIVALENCE ----------
equivalent_terms:
"BJT" <-> "bipolar junction transistor"
"bipolar transistor" <-> "bipolar junction transistor" when semiconductor_context
"current gain" <-> "beta" when common_emitter_forward_active_context
non_equivalent_terms:
"BJT" != "MOSFET"
"cutoff" != "saturation"
"collector current" != "emitter current"
# ---------- SAFETY_CONSTRAINTS ----------
safety:
- "Respect absolute maximum ratings and the device safe operating area."
- "Check polarity, pinout and bias before energising a circuit."
- "Treat stored energy and live electrical systems as hazardous."
- "Do not infer safe operating limits from nominal gain alone."
- "Use qualified review for safety-critical applications."
# ---------- FLOW_HASH ----------
flow_hash.algorithm: "SHA-256"
flow_hash.scope: "Canonical UTF-8 file bytes; compute externally after final publication."
flow_hash.value: "PENDING_PUBLICATION_HASH"
# ---------- UPDATE_MODEL ----------
update.version: "1.0"
update.review_trigger: ["source_revision", "new_device_evidence", "rule_correction", "safety_revision"]
update.policy: "Preserve prior versions; record changed rules, evidence and citation."
end flow
Download Code
Copy to Clipboard