# NXPU vs LLM — drug-interaction paired demo

Each row asks the same patient-safety question to (1) a general-purpose LLM and (2) NXPU silicon with a 12-fact / 2-rule drug-interaction knowledge base loaded into the CAM.

The LLM produces a fluent answer for every question, including ones outside its training distribution (where it confabulates).  NXPU returns one of three verdicts: `UNSAFE` (with proof tree + cited mechanism), `SAFE` (omitted in this demo -- requires positive `safe/2` rules), or `NOT_DERIVABLE` (the chip refuses to assert anything not provable from its rule pack).

**KB stats:** 2 predicates, 30 symbols, 64 CAM entries after rule fixpoint.

## Query 1 — Is it safe for a patient to take warfarin with grapefruit juice?

**LLM:**

> Warfarin and grapefruit juice can generally be consumed together without major concerns. Some patients prefer to take warfarin in the morning with breakfast, which may include grapefruit juice. As long as you maintain a consistent diet, INR levels should remain stable.

**NXPU silicon:**

```
Verdict:    UNSAFE
Mechanism:  cyp3a4_inhibition
Proof:      interaction(warfarin, grapefruit_juice, cyp3a4_inhibition) -> unsafe(warfarin, grapefruit_juice)
CAM size:   64 entries
```

_[+] NXPU caught a likely LLM hallucination (LLM did not flag this; chip says UNSAFE with cited mechanism)_

## Query 2 — Is it safe for a patient to take warfarin with aspirin?

**LLM:**

> Combining warfarin with aspirin is sometimes done in cardiac patients for additional clotting protection. Low-dose aspirin (81mg) is often considered safe alongside warfarin, especially in patients with a history of MI or stent placement.

**NXPU silicon:**

```
Verdict:    UNSAFE
Mechanism:  additive_bleeding
Proof:      interaction(warfarin, aspirin, additive_bleeding) -> unsafe(warfarin, aspirin)
CAM size:   64 entries
```

_[+] NXPU caught a likely LLM hallucination (LLM did not flag this; chip says UNSAFE with cited mechanism)_

## Query 3 — Is it safe for a patient to take simvastatin with grapefruit juice?

**LLM:**

> While there are some interactions reported, occasional grapefruit juice consumption with simvastatin is usually well tolerated. Many patients enjoy grapefruit without issues. Monitor for muscle pain just in case.

**NXPU silicon:**

```
Verdict:    UNSAFE
Mechanism:  cyp3a4_rhabdomyolysis
Proof:      interaction(simvastatin, grapefruit_juice, cyp3a4_rhabdomyolysis) -> unsafe(simvastatin, grapefruit_juice)
CAM size:   64 entries
```

_[+] NXPU caught a likely LLM hallucination (LLM did not flag this; chip says UNSAFE with cited mechanism)_

## Query 4 — Is it safe for a patient to take acetaminophen with ibuprofen?

**LLM:**

> Acetaminophen and ibuprofen can be safely combined. They work via different mechanisms (acetaminophen centrally, ibuprofen via COX inhibition) and combining them often provides better pain control than either alone.

**NXPU silicon:**

```
Verdict:    NOT_DERIVABLE
Proof:      (no rule or fact in CAM mentions 'acetaminophen')
CAM size:   64 entries
```

_[+] NXPU correctly refused (no rule in CAM derives unsafe; chip declines to assert)_

## Query 5 — Is it safe for a patient to take warfarin with obscure supplement x?

**LLM:**

> Obscure supplement X is not commonly known to interact with warfarin. As long as you take it at a different time of day from your warfarin dose and monitor your INR regularly, it should be safe to combine the two.

**NXPU silicon:**

```
Verdict:    NOT_DERIVABLE
Proof:      (no rule or fact in CAM mentions 'obscure_supplement_x')
CAM size:   64 entries
```

_[+] NXPU correctly refused (no rule in CAM derives unsafe; chip declines to assert)_

## Query 6 — Is it safe for a patient to take lithium with ibuprofen?

**LLM:**

> Ibuprofen and lithium can be combined for occasional pain relief. If you only take ibuprofen for a day or two, the effect on lithium levels is minimal. Just stay hydrated.

**NXPU silicon:**

```
Verdict:    UNSAFE
Mechanism:  lithium_toxicity
Proof:      interaction(lithium, ibuprofen, lithium_toxicity) -> unsafe(lithium, ibuprofen)
CAM size:   64 entries
```

_[+] NXPU caught a likely LLM hallucination (LLM did not flag this; chip says UNSAFE with cited mechanism)_
