- Preface
- Part I: Foundations
- 1. Why Petri Nets?
- 2. The Mathematics of Flow
- 3. From Discrete to Continuous
- 4. The Token Language
- Part II: Applications
- 5. Resource Modeling — The Coffee Shop
- 6. Game Mechanics — Tic-Tac-Toe
- 7. Constraint Satisfaction — Sudoku
- 8. Optimization — The Knapsack Problem
- 9. Biochemistry — Enzyme Kinetics
- 10. Complex State Machines — Texas Hold'em
- Part III: Advanced Topics
- 11. Process Mining
- 12. Zero-Knowledge Proofs
- 13. Topology-Driven Verification
- 14. On-Chain ZK Verification
- 15. Exponential Weights and Scoring Systems
- 16. Declarative Infrastructure
- Part IV: Building with pflow
- 17. The Visual Editor — pflow.xyz
- 18. Code Generation — From Model to Application
- 19. The go-pflow Library
- 20. Dual Implementation and Verification
- Epilogue
- 21. What the Abstraction Sits On
- Appendices
- 22. Solver Parameter Reference
- 23. Token Language Grammar
- 24. JSON Schema Reference
- 25. Glossary
- 26. Categorical Foundations