AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
flow "CircuitLoop" v1.0
# ---------- IDENTITY ----------
IDENTITY:
entity: "Circuit Loop"
class: "EngineeringEntity > CircuitAndPCBEntity > CircuitTopologyEntity"
definition: "A closed path through a circuit graph that starts and ends at the same node, traversing connected branches."
scope: ["DC circuits", "AC circuits", "analogue circuits", "digital power networks", "PCB networks"]
distinction:
loop: "Any closed path without repeated intermediate nodes in a simple-loop representation."
mesh: "A loop containing no other loops in a planar circuit drawing."
current_path: "A conductive route actually carrying current under a stated operating condition; not every topological loop carries current."
# ---------- AUTHORS ----------
AUTHORS:
origin: "Kireth Research Semantic Library"
co_author: "Sky — Recursive AI"
licence_note: "Refer to the applicable Kireth Research Open Research Licence; retain source attribution."
# ---------- SOURCE ----------
SOURCE:
ontology_url: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/circuit-and-pcb-entities/circuit-loop-ontology.html"
representation: "Original Flow Algebra modelling of the named concept; not a verified verbatim extraction."
citation_backlink: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/circuit-and-pcb-entities/circuit-loop-ontology.html"
# ---------- PURPOSE ----------
PURPOSE:
- "Represent closed electrical paths and their relationships to nodes and branches."
- "Support Kirchhoff's Voltage Law (KVL), mesh-current analysis and circuit verification."
- "Reason about voltage drops, sources, impedance, open circuits and short circuits."
- "Preserve assumptions, operating conditions and uncertainty in circuit analysis."
# ---------- STATE_MODEL ----------
STATE_MODEL:
S_t: (I_t, R_t, B_t, K_t)
I_t:
loop_id: str
circuit_id: str
node_sequence: list[node_id]
branch_sequence: list[branch_id]
traversal_direction: enum[clockwise, anticlockwise, arbitrary]
sources: list[source_id]
measurements: {branch_voltage_V: map, branch_current_A: map, frequency_Hz: optional_float}
topology_status: enum[closed, open, uncertain]
R_t:
graph_connectivity: "Each consecutive pair of nodes must be joined by the stated branch."
closure: "The final traversal returns to the starting node."
sign_convention: "Use a consistent voltage rise/drop sign convention along the selected traversal."
conservation: "For lumped quasi-static circuits, the algebraic sum of branch voltage changes around a loop is zero."
branch_membership: "Branches may be shared between multiple loops."
B_t:
rated_voltage_V: optional_float
rated_current_A: optional_float
max_temperature_C: optional_float
model_validity: "KVL assumes negligible time-varying magnetic flux linkage not explicitly represented by circuit elements."
safety: "Do not energise or probe hazardous circuits without appropriate isolation, training and equipment."
K_t:
node_graph: graph
branch_models: map[branch_id, component_model]
reference_orientation: map[branch_id, direction]
circuit_conditions: map
evidence: list[measurement_or_design_record]
transition:
E_t: "Expand candidate loops from the graph and apply topology and physics constraints."
V_t: "Reject disconnected, non-closed or inconsistent paths."
selection: "Choose loops appropriate for analysis, minimising redundant equations."
S_next: "Update connectivity, measurements, model validity and confidence."
# ---------- ENTITIES ----------
ENTITIES:
Circuit: "Parent network containing nodes and branches."
CircuitNode: "Electrical junction or equipotential point in an ideal lumped model."
CircuitBranch: "Connection between nodes containing one or more circuit elements."
CircuitLoop: "Closed sequence of connected branches."
CircuitMesh: "Elementary loop of a planar network."
VoltageSource: "Element imposing a specified voltage or voltage relation."
CurrentSource: "Element imposing a specified current or current relation."
Resistance: "Dissipative branch property with V = I * R for an ideal resistor."
Impedance: "Frequency-domain branch property Z = V / I under sinusoidal steady state."
Inductance: "Energy-storage property with v = L * di/dt for constant L."
Capacitance: "Energy-storage property with i = C * dv/dt for constant C."
OpenCircuit: "Interrupted conductive path; current is zero in an ideal open branch."
ShortCircuit: "Unintended low-impedance connection; current depends on source and total path impedance."
GroundReference: "Selected potential reference, not necessarily protective earth."
Measurement: "Observed voltage, current or impedance with uncertainty and context."
# ---------- PATHWAYS ----------
PATHWAYS:
topology_identification:
input: "Circuit netlist or schematic"
steps:
- "Construct graph G = (V, E) of nodes and branches."
- "Identify connected components and candidate simple cycles."
- "Record ordered branches, node sequence and traversal direction."
- "Verify every adjacent node pair is connected and the path closes."
output: "Validated circuit-loop objects"
kvl_analysis:
input: "Validated loop, element polarities, source and branch models"
steps:
- "Choose a traversal direction and reference polarities."
- "Express each branch voltage as a signed change along traversal."
- "Form sum_k(delta_v_k) = 0 under lumped quasi-static assumptions."
- "Substitute constitutive relations and solve the resulting equations."
- "Check dimensions, residuals, physical limits and model applicability."
output: "Voltage balance and solved branch quantities"
mesh_current_analysis:
input: "Planar circuit and independent mesh set"
steps:
- "Assign one symbolic current per independent mesh."
- "For shared resistors, express branch current as signed difference of adjacent mesh currents."
- "Write mesh equations using KVL and element models."
- "Handle current sources with known mesh current or a supermesh and source constraint."
- "Solve equations and recover branch currents and voltages."
output: "Mesh-current solution with residual checks"
diagnostic_analysis:
input: "Expected topology and measured quantities"
steps:
- "Compare measured and predicted voltage changes around candidate loops."
- "Flag discrepancies beyond combined measurement and model uncertainty."
- "Evaluate open connections, shorts, polarity mistakes and incorrect component values."
- "Require independent corroboration before assigning a fault cause."
output: "Ranked diagnostic hypotheses"
# ---------- MINI_RECURSION_ENGINE ----------
MINI_RECURSION_ENGINE:
initialise: "Load graph, branch laws, operating conditions and safety bounds."
expand: "Enumerate valid candidate loops and possible analysis representations."
evaluate: "Compute KVL residuals, rank consistency and identify missing data."
refine: "Update branch models, signs, measurements or topology where evidence warrants."
stop_when:
- "A sufficient independent equation set is obtained."
- "All required loop constraints meet stated tolerances."
- "The remaining ambiguity is documented rather than concealed."
output: "Traceable circuit-loop state and reasoning record"
# ---------- INFERENCE_RULES ----------
INFERENCE_RULES:
- id: CL-001
if: "A branch sequence forms a connected path returning to its start node."
then: "Classify as a candidate closed loop."
- id: CL-002
if: "The path does not return to the starting node."
then: "Reject as a closed loop."
- id: CL-003
if: "A valid loop satisfies the lumped quasi-static assumptions."
then: "Apply algebraic sum of voltage changes = 0."
- id: CL-004
if: "A planar loop contains no other loops in its interior."
then: "Classify as a mesh for that planar embedding."
- id: CL-005
if: "A resistor belongs to two meshes."
then: "Compute its current using the signed difference of mesh currents."
- id: CL-006
if: "Measured KVL residual exceeds stated uncertainty."
then: "Flag inconsistent measurements, topology or model assumptions; do not assume a specific fault."
- id: CL-007
if: "A branch is open."
then: "Set ideal branch conduction current to zero; reassess the remaining closed paths."
- id: CL-008
if: "A low-impedance bypass appears across a source or load."
then: "Flag possible short-circuit and evaluate protective-device and thermal limits."
- id: CL-009
if: "Time-varying magnetic flux links the physical loop and is not modelled as an element."
then: "Use the generalised electromagnetic loop relation; do not blindly impose zero sum of electric-field line integrals."
- id: CL-010
if: "Independent loop equations are fewer than required unknowns."
then: "Request additional constitutive, node or source constraints."
# ---------- CONFIDENCE ----------
CONFIDENCE:
topology_confidence: "High only when branch connectivity is verified."
model_confidence: "Depends on element accuracy, operating range and lumped-circuit validity."
measurement_confidence: "Depends on calibration, loading, bandwidth and stated uncertainty."
diagnosis_confidence: "Increase only with independent evidence; avoid causal certainty from one residual."
uncertainty_policy: "Retain unknown or conflicting states explicitly."
# ---------- SEMANTIC_EQUIVALENCE ----------
SEMANTIC_EQUIVALENCE:
preferred: "Circuit Loop"
aliases: ["Electrical Loop", "Closed Circuit Path", "Loop in Circuit Graph"]
related_not_identical: ["Circuit Mesh", "Current Path", "Feedback Loop", "Circuit Node"]
disambiguation: "A feedback loop describes functional signal dependence and need not correspond to a single closed conductive circuit path."
# ---------- FLOW_HASH ----------
FLOW_HASH:
strategy: "Canonicalise entity identity, graph topology, rules and source URL; compute SHA-256 in the publishing pipeline."
value: "PENDING_CANONICAL_HASH"
note: "No fabricated digest; generate after final content stabilises."
# ---------- UPDATE_MODEL ----------
UPDATE_MODEL:
version: "1.0"
created: "2026-11-18"
triggers: ["Circuit topology revision", "New measurements", "Corrected element models", "Updated safety limits", "Ontology revision"]
procedure:
- "Retain previous revision and provenance."
- "Rebuild loop candidates from the updated graph."
- "Re-evaluate equations, diagnostics and confidence."
- "Regenerate canonical hash and record changes."
backward_compatibility: "Preserve stable entity IDs where circuit meaning is unchanged."