flow "PCBLayer" v1.0
# ---------- IDENTITY ----------
ENTITY_ID: "engineering.circuit_pcb.pcb_layer"
ENTITY_NAME: "PCB Layer"
ENTITY_CLASS: "Circuit and PCB Entity"
LANGUAGE: "en-GB"
FORMAT: "Flow Algebra TXT"
# ---------- AUTHORS ----------
AUTHORS: ["Mark Anthony Higgins", "Sky — Recursive AI"]
SOURCE: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/circuit-and-pcb-entities/pcb-layer-ontology.html"
SOURCE_REVISED: "2026-08-04"
CITATION_BACKLINK: SOURCE
# ---------- PURPOSE ----------
PURPOSE: "Represent PCB layers, their stack-up, electrical connectivity, isolation, signal and power behaviour, and manufacturing constraints as formal semantic relationships."
SCOPE: ["copper layers", "dielectric layers", "solder mask", "silkscreen", "stack-up", "vias", "planes", "traces", "thermal and signal integrity"]
# ---------- STATE_MODEL ----------
STATE_MODEL:
S = (I, R, B, K)
I = observed_layer_geometry + material_data + connectivity + measurements
R = layer_rules + stackup_rules + electrical_rules + manufacturing_rules
B = design_limits + process_limits + environmental_limits + safety_limits
K = verified_pcb_knowledge + component_datasheets + inspection_evidence
Et = expand(It, R)
Vt = filter(Et, B)
xt = argmax_x P(x | I, R, B, K)
It+1 = update(It, xt, observations)
# ---------- ENTITIES ----------
ENTITIES:
PCB: board containing ordered physical layers
PCB_LAYER: one defined material or patterned layer within a board stack-up
COPPER_LAYER: patterned conductor, signal routing or plane
SIGNAL_LAYER: copper layer carrying one or more electrical signals
POWER_PLANE: copper region distributing supply potential
GROUND_PLANE: copper region providing return/reference paths
DIELECTRIC_LAYER: electrically insulating material between conductors
CORE: cured dielectric laminate, often copper-clad
PREPREG: bonding dielectric between layers
SOLDER_MASK: insulating protective coating over exposed copper regions
SILKSCREEN: printed component markings and reference text
PCB_TRACK: conductive path within a copper layer
PCB_PAD: contact region for mounting or interconnection
PCB_VIA: plated or filled inter-layer connection
STACKUP: ordered layer sequence with material and thickness metadata
NET: intended electrically connected collection of conductors
RETURN_PATH: current return route through conductors and planes
IMPEDANCE_PROFILE: frequency-dependent electrical response of a routed structure
FABRICATION_RULE: manufacturing constraint on geometry and materials
# ---------- RELATIONSHIPS ----------
RELATIONSHIPS:
PCB contains PCB_LAYER
STACKUP orders PCB_LAYER
COPPER_LAYER subtype_of PCB_LAYER
DIELECTRIC_LAYER subtype_of PCB_LAYER
SIGNAL_LAYER subtype_of COPPER_LAYER
POWER_PLANE subtype_of COPPER_LAYER
GROUND_PLANE subtype_of COPPER_LAYER
PCB_TRACK located_on COPPER_LAYER
PCB_PAD located_on COPPER_LAYER
PCB_VIA connects COPPER_LAYER across DIELECTRIC_LAYER
DIELECTRIC_LAYER separates adjacent COPPER_LAYER
RETURN_PATH couples_to SIGNAL_LAYER
IMPEDANCE_PROFILE depends_on trace_geometry + dielectric_properties + reference_plane_geometry
# ---------- PATHWAYS ----------
PATHWAYS:
pathway "identify_layer":
read layer_index, material, thickness, copper_weight, function
validate layer_index within STACKUP
classify function as signal | power | ground | dielectric | mask | marking | other
emit PCB_LAYER with provenance
pathway "validate_stackup":
read ordered_layers, thicknesses, dielectric_properties, copper_weights
require nonempty ordered_layers
require each thickness > 0
verify copper-to-copper separation where no intended interconnect exists
verify manufacturing limits against fabricator capabilities
emit stackup_validity and unresolved_constraints
pathway "resolve_connectivity":
read netlist, copper_shapes, pads, vias, layer_indices
connect shapes only when physical overlap or a valid inter-layer connection exists
compare extracted connectivity with intended netlist
emit open_net, unintended_short, or consistent_net
pathway "evaluate_signal_integrity":
read routing_geometry, reference_planes, dielectric_constant, frequency_band
determine whether controlled_impedance analysis is required
if required then estimate impedance using a validated geometry-specific model
inspect return_path continuity and reference_plane transitions
emit signal_integrity_risks with model_assumptions
pathway "evaluate_power_thermal":
read current, copper_geometry, ambient_temperature, cooling_conditions
estimate conductor_losses and temperature_rise with validated model
check against permitted operating temperatures and current limits
emit thermal_risk and confidence
pathway "inspect_layer_quality":
read inspection_data, design_files, manufacturing_tolerances
detect registration_errors, under_etch, over_etch, delamination, voids
correlate defect location with affected nets and layers
emit defect_hypotheses and verification_steps
# ---------- MINI_RECURSION_ENGINE ----------
MINI_RECURSION_ENGINE:
initialise It from stackup + design + measurements
repeat until convergence or iteration_limit:
Et = expand(It, R)
Vt = filter(Et, B)
rank Vt by evidence_quality + electrical_consistency + manufacturability
xt = select highest_supported_candidate
It = update(It, xt, verified_observations)
stop if no new verified evidence or constraints cannot be satisfied
emit final_state, unresolved_questions, provenance
# ---------- INFERENCE_RULES ----------
INFERENCE_RULES:
rule "via_connection":
IF via_plating_continuous AND via_intersects_copper(layer_a, layer_b)
THEN infer electrical_path(layer_a, layer_b)
UNLESS isolation_clearance_or_nonplated_hole
rule "dielectric_isolation":
IF dielectric_between(layer_a, layer_b) AND no_intended_via_or_contact
THEN infer electrical_isolation(layer_a, layer_b)
NOTE physical isolation requires verified dielectric integrity
rule "return_path_discontinuity":
IF high_speed_signal_crosses_reference_plane_gap
THEN flag return_path_discontinuity_risk
REQUIRE field_or_measurement_validation
rule "copper_overtemperature":
IF validated_temperature_estimate > permitted_temperature
THEN flag thermal_limit_exceeded
REQUIRE design_review
rule "stackup_mismatch":
IF fabricated_stackup != approved_stackup
THEN flag impedance_and_manufacturing_review
rule "netlist_mismatch":
IF extracted_connectivity != intended_connectivity
THEN flag possible_open_or_short
REQUIRE independent_inspection
# ---------- CONFIDENCE ----------
CONFIDENCE:
high: verified geometry + manufacturer specifications + independent measurements
medium: validated model + partial measurement support
low: inferred layer function or unverified material assumptions
rule: never elevate model_estimate to verified_fact without evidence
# ---------- SEMANTIC_EQUIVALENCE ----------
SEMANTIC_EQUIVALENCE:
"PCB layer" ~= "printed circuit board layer"
"copper layer" ~= "conductive PCB layer" WHEN material_is_copper
"ground plane" ~= "reference plane" ONLY WHEN serving as the signal reference
"inner layer" != "outer layer"
"signal layer" != "dielectric layer"
"layer connectivity" != "physical adjacency"
# ---------- SAFETY ----------
SAFETY:
never_assume_isolation_from_visual_layout_alone
verify creepage_and_clearance using applicable voltage, pollution and material standards
check dielectric withstand and insulation requirements independently
require qualified review for mains, high-voltage, high-energy or safety-critical PCB designs
treat calculations as engineering support, not certification
# ---------- FLOW_HASH ----------
FLOW_HASH:
algorithm: "SHA-256"
value: "UNSET — compute over final canonical UTF-8 flow text at publication"
# ---------- UPDATE_MODEL ----------
UPDATE_MODEL:
version: "1.0"
revision_policy: "increment version when relationships, pathways or rules change"
trigger: ["new evidence", "revised standards", "fabrication constraints", "verified defect", "ontology update"]
preserve: ["source URL", "authors", "citation backlink", "revision history"]
output: "updated PCB layer state and traceable inference results"
# ---------- END FLOW ----------
Download Code
Copy to Clipboard