# Ternary Intelligence Stack (TIS) Tutorials

This directory contains a series of tutorials for the `.tern` language, covering concepts from basic trit values to building complex agents.

| # | File | Description |
|---|------|-------------|
| 01 | [01_what_is_a_trit.tern](./01_what_is_a_trit.tern) | Core trit values (-1, 0, 1) and balanced logic intuition. |
| 02 | [02_consensus_explained.tern](./02_consensus_explained.tern) | Deep dive into the `consensus(a, b)` truth table. |
| 03 | [03_invert_and_negate.tern](./03_invert_and_negate.tern) | Difference between logical inversion and negation. |
| 04 | [04_hard_gate_pattern.tern](./04_hard_gate_pattern.tern) | Implementing safety mechanisms using trits as vetos. |
| 05 | [05_hold_as_routing.tern](./05_hold_as_routing.tern) | Using the 'Hold' (0) state for expert routing. |
| 06 | [06_cascading_consensus.tern](./06_cascading_consensus.tern) | Chaining consensus calls for multi-signal aggregation. |
| 07 | [07_density_check.tern](./07_density_check.tern) | Measuring information density before taking action. |
| 08 | [08_confidence_threshold.tern](./08_confidence_threshold.tern) | Setting commitment thresholds in decision pipelines. |
| 09 | [09_bitnet_intuition.tern](./09_bitnet_intuition.tern) | Ternary quantization logic for AI (BitNet/1.58-bit). |
| 10 | [10_moe_routing.tern](./10_moe_routing.tern) | Synergistic routing in Mixture of Experts (MoE). |
| 11 | [11_triad_field.tern](./11_triad_field.tern) | Emergent certainty fields and 1+1=3 intuition. |
| 12 | [12_deliberation_loop.tern](./12_deliberation_loop.tern) | Modeling EMA and convergence through loops. |
| 13 | [13_safety_veto.tern](./13_safety_veto.tern) | MetaSafety as an absolute override mechanism. |
| 14 | [14_evidence_aggregation.tern](./14_evidence_aggregation.tern) | Aggregating evidence while respecting disagreement. |
| 15 | [15_epistemic_humility.tern](./15_epistemic_humility.tern) | Design patterns for "I don't know" in AI agents. |
| 16 | [16_binary_vs_ternary.tern](./16_binary_vs_ternary.tern) | Side-by-side comparison of boolean vs balanced logic. |
| 17 | [17_real_world_hold.tern](./17_real_world_hold.tern) | Critical domains where 'Hold' prevents catastrophe. |
| 18 | [18_ternary_voting.tern](./18_ternary_voting.tern) | Quorum and abstention patterns in consensus voting. |
| 19 | [19_chained_decisions.tern](./19_chained_decisions.tern) | Building multi-stage logical fuses and pipelines. |
| 20 | [20_building_an_agent.tern](./20_building_an_agent.tern) | A full agent loop integrating all TIS patterns. |
