Skip to main content

CAD Layer Ontology

CAD and Digital Model Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 26 November 2026
Audio Overview
FLOW "CADLayer" v1.0
AUTHORS: Mark Anthony Higgins — Sky Recursive AI
LICENCE: Open Research — attribution required
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/cad-and-digital-model-entities/cad-layer-ontology.html
LANGUAGE: en-GB
SOURCE_STATUS: Proposed specification; source ontology not independently verified.

PURPOSE
Represent CAD layers as versioned organisational and presentation entities. Separate geometry, membership, effective display properties, editing state and output eligibility. This is a proposed cross-platform semantic specification, not a CAD vendor implementation.

STATE_MODEL
S_t = (I_t,R,B,K_t)
I_t: typed ground assertions; R: rules; B: fixed evidence snapshot; K_t: derivation provenance.
E_t = expand(I_t,R)
V_t = {x in E_t : valid(x,B) and supported(x,I_t,B)}
N_t = V_t minus I_t
If N_t is empty terminate; otherwise select x_t = argmax score(x|I_t,R,B,K_t), breaking ties by canonical assertion ID.
I_(t+1) = I_t union {x_t}; K_(t+1) = K_t union derivation(x_t).

ENTITIES AND PATHWAYS
CADLayer --hasIdentity--> LayerIdentifier : Persistent identity within model namespace
CADLayer --hasName--> LayerName : Display name, not global identity
CADLayer --hasRevision--> ModelRevision : Pinned model snapshot
CADLayer --belongsTo--> CADModel : Owning model
CADLayer --contains--> EntityOccurrence : Explicit layer membership
CADLayer --hasClassification--> LayerClass : Declared discipline or purpose
CADLayer --hasVisibility--> VisibilityState : Global display state
CADLayer --hasFreezeState--> FreezeState : Application-specific regeneration state
CADLayer --hasLockState--> LockState : Editing restriction
CADLayer --hasPlotState--> PlotState : Output eligibility
CADLayer --hasColour--> ColourProperty : Default display colour
CADLayer --hasLineType--> LineType : Default line pattern
CADLayer --hasLineWeight--> LineWeight : Default stroke weight
CADLayer --hasTransparency--> Transparency : Default opacity setting
CADLayer --hasMaterial--> MaterialReference : Optional display material
CADLayer --hasOverride--> ViewportOverride : Context-specific property
CADLayer --appliesIn--> Viewport : Display context
CADLayer --references--> ExternalReference : Versioned linked model
CADLayer --hasNamespace--> Namespace : Reference-qualified scope
CADLayer --hasFilter--> LayerFilter : Selection predicate
CADLayer --hasGroup--> LayerGroup : Organisational grouping
CADLayer --hasStandard--> LayerConvention : Applicable naming convention
CADLayer --hasMapping--> ExchangeMapping : Target layer mapping
CADLayer --hasBaseline--> ConfigurationBaseline : Controlled snapshot
CADLayer --hasChange--> DesignRevision : Recorded change
CADLayer --hasEvidence--> EvidenceRecord : Source provenance
CADLayer --hasVerification--> VerificationRecord : Checked mapping or output
CADLayer --hasPolicy--> PresentationPolicy : Explicit precedence rules

INFERENCE_RULES
R01: Require model namespace and revision for each layer identity.
R02: Preserve original layer names and apply only declared normalisation.
R03: Do not merge layers solely because their names match.
R04: Resolve entity membership against the pinned model revision.
R05: Distinguish entity definitions from nested block occurrences.
R06: Resolve external references using their own namespace and version.
R07: Report unresolved external references rather than treating them as empty.
R08: Require explicit visibility state or mark it unknown.
R09: Distinguish visibility, freeze, lock and plot eligibility.
R10: Do not infer deletion from hidden or frozen state.
R11: Do not infer edit authorisation from an unlocked layer.
R12: Do not infer security access control from display state.
R13: Apply viewport overrides only in their declared context.
R14: Resolve inherited properties using the declared application precedence.
R15: Distinguish explicit entity properties from inherited layer properties.
R16: Resolve block inheritance only with occurrence context.
R17: Detect cyclic reference or inheritance chains.
R18: Preserve colour encoding and colour-space metadata.
R19: Require units for physical line weights.
R20: Check transparency values against the declared encoding range.
R21: Do not infer physical material from display colour or material appearance.
R22: Evaluate layer filters without modifying membership.
R23: Treat naming convention violations separately from geometry errors.
R24: Require explicit mapping when exchanging layers between formats.
R25: Report many-to-one mapping collisions and lost properties.
R26: Do not assume hidden entities are excluded from every export.
R27: Evaluate plot eligibility using the output profile and viewport context.
R28: Record layer membership changes independently of geometry changes.
R29: Propagate changed layer properties to dependent presentation outputs.
R30: Re-evaluate affected views after external reference updates.
R31: Retain historical baseline membership and property values.
R32: Do not infer engineering conformity from layer organisation.
R33: Retain provenance for every derived assertion.
R34: Preserve unresolved property conflicts as unknown.
R35: Recompute affected assertions on evidence snapshot changes.

DOMAIN MODELS AND EQUATIONS
Layer key L=(model_namespace, persistent_layer_id, revision). Name is an attribute. Membership M_r subset E_r × L_r relates versioned entity occurrences to layers; nested occurrence paths must be retained. Do not assume a single layer per entity unless the native schema requires it.
For layer l, E(l)={e : (e,l) in M_r}. For group G, E(G)=union of E(l) for l in G. Count distinct occurrences rather than summing overlapping memberships.
Effective property P(e,v,k)=resolve(k, entity_properties, occurrence_context, layer_properties, viewport_overrides, policy). The policy is format and application specific; explicit overrides and inheritance must be resolved in documented order. Unknown precedence produces unknown, not a guessed value.
Example policy for a simple non-nested entity: explicit entity value wins; otherwise use applicable viewport layer override; otherwise use layer default. This example is not universal.
Visibility V(e,v)=AND of applicable visibility predicates under the selected policy. Use three-valued logic (true, false, unknown). False AND unknown is false; true AND unknown is unknown. Visibility is not geometric existence.
Plot eligibility Q(e,v,o)=V_plot(e,v,o) AND plot_enabled(e,v,o) AND included_by_profile(e,o), where V_plot is the output-specific visibility policy. Screen visibility need not equal plot visibility.
Layer filter F(l)=predicate(attributes(l)); filtered set={l : F(l)=true}. Unknown evaluations are separately reported. Filters do not alter M_r.
Membership delta: added=M_new minus M_old; removed=M_old minus M_new, after explicit identity reconciliation. Property delta records changed values with old and new revisions. Renaming is not necessarily deletion and creation.
Exchange mapping f:L_source -> L_target may be partial. Collision set={(a,b): a != b and f(a)=f(b)} for mapped layers. A collision is not automatically erroneous but requires explicit intent and property reconciliation.
For opacity encoded as a fraction alpha in [0,1], transparency fraction=1-alpha. Other encodings require explicit conversion. Physical stroke width must be converted to a common unit before comparison.
Dependency impact: D_0=changed layer or reference assertions; D_(n+1)=D_n union {y : exists x in D_n with dependsOn(y,x)}. Stop when unchanged. Affected outputs require regeneration or review, not automatic geometry modification.

COVERAGE
Membership coverage = resolved required membership references / required membership references.
Property resolution coverage = resolved required effective properties / required effective properties.
Exchange coverage = mapped required source layers / required source layers.
Output verification coverage = checked required output occurrences / required output occurrences.
Report unknown, conflicting and intentionally excluded items separately. Empty denominators yield N/A. Coverage does not establish engineering correctness.

CONFIDENCE AND SEMANTIC EQUIVALENCE
Rank native versioned records above unverified exports or inferred names. Scores are heuristic, not calibrated probabilities. Layer equivalence requires explicit identity mapping, compatible scope, membership semantics and relevant properties. Equal names or colours alone do not establish equivalence. Presentation equivalence is context-dependent and does not imply geometry equivalence.

MINI RECURSION ENGINE
1. Load immutable model snapshot, layer table, occurrence paths, reference graph and presentation policy.
2. Resolve identities and membership; quarantine missing or ambiguous references.
3. Resolve inherited properties and viewport overrides; detect cycles.
4. Evaluate visibility, edit state and output eligibility separately.
5. Compare baseline and exchange mappings; record collisions and property loss.
6. Expand rules, filter unsupported assertions and insert novel assertions deterministically.
7. Repeat to fixed point; return provenance, unresolved items and affected outputs.
Native CAD parsing and rendering are external operations; this specification does not implement them.

TRI-MAPPING
Semantic | Mathematical | Engineering evidence
Layer identity | L=(namespace,id,revision) | Native layer table
Membership | (e,l) in M_r | Entity occurrence record
Effective colour | P(e,v,colour) | Property and override records
Visibility | V(e,v) | Viewport and layer states
Plot eligibility | Q(e,v,o) | Output profile
Layer mapping | f(l) | Exchange mapping report
Membership change | M_new minus M_old | Revision comparison
Impact | dependency closure D | View and export dependencies

VALIDATION AND FAILURE MODES
Reject dangling identifiers, invalid property encodings and incompatible units. Report duplicate names within restricted namespaces, unresolved external references, cyclic inheritance, stale viewport overrides and lossy exports. Test cases: hidden entity retained in geometry; locked visible layer; viewport-specific override; nested block inheritance; same name in two external references; many-to-one export mapping; rename with stable ID; missing plot policy; empty coverage denominator. Never use visibility as proof of absence or safety.

RECURSIVE UPDATE MODEL
For new evidence B', identify affected assertions via provenance and dependency closure. Recompute or retract unsupported conclusions in a new snapshot. Preserve old baselines. Re-evaluate dependent views, filters, plots and exchange outputs. Record geometry changes separately from presentation changes.

CONDITIONAL EXECUTION GUARANTEE
With finite ground assertion space, fixed evidence, terminating rule evaluation and monotonic insertion, the inference loop terminates after at most the number of initially absent admissible assertions. This does not guarantee correct rendering, complete evidence or engineering conformity.

AI SEARCH FLOW
Resolve CAD layer identifier -> model revision -> namespace -> entity membership -> classification -> property defaults -> occurrence context -> viewport overrides -> visibility and lock state -> output profile -> exchange mapping -> baseline and verification. Rank exact revision and authoritative native records above lexical similarity. Return source references, context and unresolved questions. Never fabricate missing layer properties.

SOURCE BACKLINK
https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/cad-and-digital-model-entities/cad-layer-ontology.html

FLOW_HASH
SHA-256: e0d2a380ed4531ac5d3fd5f6c75a2bb55e821003cf338e074e8b2e8c50e7e657
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ