Mathematical Foundation

The 3rd-Order Interaction Tensor

A 3rd-order tensor is a three-dimensional generalization of a matrix. Where a matrix captures pairwise relationships (row × column), a rank-3 tensor captures triadic interactions — three dimensions simultaneously. In the context of the Guenhwyvar deck, we define:

X[t, r, b] = Σi ci · T[i,t] · R[i,r] · B[i,b]

Where ci is the card quantity, T is the tag incidence tensor (5 modes), R is the role tensor (20 functional roles), and B is the behavior tensor (7 archetypes). The result: a 5 × 20 × 7 = 700-cell interaction space capturing the weighted mass of cards existing at every possible (tag, role, behavior) triple simultaneously.

This is not a toy exercise. The same tensor decomposition used here is applied in signal processing, neuroscience, recommender systems, and — critically — cybersecurity threat modeling, where attack vectors exist at the intersection of multiple independent dimensions.

1st-Order Primitives

Incidence Tensors & Mass Vectors

Before constructing the 3rd-order tensor, we extract three binary incidence matrices from the deck's 22 unique nonland cards (43 total copies):

Tag Tensor T

T ∈ {0,1}22×5

Five mode tags classifying each card's strategic role in the deck architecture:

TagMass
STORY27
APEX26
HUNT24
CORE23
ACCEL2

Role Tensor R

R ∈ {0,1}22×20

Twenty functional roles — what each card does mechanically. Top 5 by weighted mass:

RoleMass
Combat Protection6
Anthem5
Early Threat4
Equipment4
Recovery4

Behavior Tensor B

B ∈ {0,1}22×7

Seven behavioral archetypes — how the card behaves in the game ecosystem:

BehaviorMass
PREDATOR13
DIVINE11
RELIC6
PACK5
Control3
TERRITORY3
SCOUT2
2nd-Order Coupling

Weighted Co-Occurrence & Jaccard Similarity

Before the rank-3 tensor, we compute pairwise coupling. The quantity-weighted co-occurrence matrix measures how often two tags appear on the same card, weighted by copy count:

TagTag = TT · diag(c) · T

We then normalize via weighted Jaccard similarity — the gold standard for measuring overlap in binary vectors with unequal support:

Tag-Tag Weighted Jaccard Similarity

ACCELAPEXCOREHUNTSTORY
ACCEL1.0000.0770.0870.0830.000
APEX0.0771.0000.6330.6130.262
CORE0.0870.6331.0000.9580.429
HUNT0.0830.6130.9581.0000.417
STORY0.0000.2620.4290.4171.000

Key insight: CORE–HUNT coupling at J=0.958 means 23 of 24 HUNT-tagged copies also carry CORE — these modes are nearly fused. STORY operates more independently (J ≤ 0.429), providing strategic diversification. ACCEL is surgically isolated (2 copies, zero STORY overlap).

3rd-Order Interactions

Top Weighted Triples: X[tag, role, behavior]

The full 3rd-order tensor X contains 700 cells. Most are zero — only specific (tag, role, behavior) combinations carry weight. The top triples reveal the deck's structural spine:

TagRoleBehaviorWeightInterpretation
APEXCombat ProtectionPREDATOR6Primary defensive shell — Kutzil at 6 copies
CORECombat ProtectionPREDATOR6Same cards, multi-tagged: system redundancy
HUNTCombat ProtectionPREDATOR6Triple-mode coverage ensures draw reliability
APEXAnthemDIVINE4Board-wide power scaling through divine buffs
STORYEquipmentRELIC4Dancing Sword — narrative + mechanical payload
STORYRecoveryDIVINE4Oketra's Last Mercy — reset to full life
APEXScaling FinisherPREDATOR2Drizzt + Guenhwyvar as apex predator pair
STORYMidrange BodyTERRITORY2Kudo, King Among Bears — territorial control

Structural observation: The weight-6 triples all share the same (Combat Protection, PREDATOR) pair across three different tags. This is deliberate engineering: Kutzil, Malamet Exemplar at 6 copies creates a triple-mode redundant protective shell — the card is simultaneously APEX, CORE, and HUNT, ensuring it appears in nearly every opening hand.

Spectral Signatures

Mode-Wise SVD of Unfolded Tensor

We unfold X along each mode and compute Singular Value Decomposition (SVD). The energy share of each singular value reveals how much structural information is concentrated in each principal component — a measure of dimensional coupling.

X(mode) = U · S · VT
Energyj = Sj² / Σ S²

Tag-Mode Spectrum

σ₁ captures 80.0% — near-rank-1 structure

σ₁ = 16.39
80.0%
σ₂ = 7.38
16.2%
σ₃ = 2.91
2.5%
σ₄ = 1.93
1.1%
σ₅ = 0.70
0.1%

Interpretation: The tag dimension is highly coherent — one principal direction explains 80% of all tag-mediated variation. The deck's tagging system is well-aligned, not scattered.

Role-Mode Spectrum

More distributed — 20 roles across 22 cards

σ₁ = 13.27
52.4%
σ₂ = 8.73
22.7%
σ₃ = 4.12
5.1%
σ₄ = 4.00
4.8%
σ₅ = 3.92
4.6%

Interpretation: Roles are more diverse — two principal components explain 75%, with meaningful structure in the tail. The deck has a clear primary strategy with deliberate secondary layers.

Behavior-Mode Spectrum

PREDATOR + DIVINE dominate — aggressive divine deck

σ₁ = 13.75
56.3%
σ₂ = 9.39
26.3%
σ₃ = 4.24
5.4%
σ₄ = 4.10
5.0%
σ₅ = 4.00
4.8%

Interpretation: The behavioral signature is dual-axis dominant — PREDATOR (aggressive) and DIVINE (protective) together explain 82.6% of behavioral variation. This is a deck that attacks and shields simultaneously.

Tensor Contractions

Marginal Projections

Contracting (summing over) one or more dimensions of X yields lower-order views of the data — the tensor equivalent of marginal distributions in probability:

X_tag[t] = Σr,b X[t,r,b] = w_tag[t]
X_role[r] = Σt,b X[t,r,b] = w_role[r]
X_beh[b] = Σt,r X[t,r,b] = w_beh[b]

X_tr[t,r] = Σb X[t,r,b]  ← tag-role coupling
X_tb[t,b] = Σr X[t,r,b]  ← tag-behavior coupling
X_rb[r,b] = Σt X[t,r,b]  ← role-behavior coupling

The marginals recover the 1st-order mass vectors exactly — a consistency check proving the tensor was constructed correctly. The 2nd-order slices (X_tr, X_tb, X_rb) reveal which pairwise couplings dominate, informing deck-building decisions analogous to dependency analysis in system architecture.


"The same tensor decomposition used to analyze a 69-card deck is applied to production systems with millions of users. The scale changes. The math doesn't." — ArchDaemon™ · Quality Engineering Framework

See how this maps to 20+ years of enterprise engineering →

ArchDaemon™ (US Serial 98940257) · GoldHat™ (US Serial 98925168) · All mathematical analyses are original IP of David Leo Sylvester.