The toy doping model checks majority type and margin only.

The toy doping model checks majority type and margin only. Exact arithmetic here means exact results for the stated model inputs; measured inputs still carry uncertainty and significant-figure limits.

highlighted = computed this step

Donors make the toy majority ledger n-type

Two intrinsic electrons plus 6 donors gives 8 electrons against 2 holes, so the margin is 6.

n=2+6=8,Δ=6n=2+6=8,\quad \Delta=6
Donor majority ledgerThe toy model checks majority type, not real minority density.intrinsic_e=2intrinsic_h=2donors=6acceptors=0electrons=8holes=2majority=n-typemargin=6

Acceptors make the toy majority ledger p-type

Five acceptors with two intrinsic holes gives 7 holes against 2 electrons.

p=2+5=7p=2+5=7
Acceptor majority ledgerThe majority label follows exact counts.intrinsic_e=2intrinsic_h=2donors=0acceptors=5electrons=2holes=7majority=p-typemargin=5

Equal donor and acceptor additions are a boundary case

Four donors and four acceptors give equal toy ledgers and margin 0.

Δ=0⇒balanced\Delta=0\Rightarrow \mathrm{balanced}
Balanced doping boundaryBalanced is an explicit checked state.intrinsic_e=2intrinsic_h=2donors=4acceptors=4electrons=6holes=6majority=balancedmargin=0