Examples Gallery

Complete .qvr programs spanning probabilistic regressions, latent-variable models, state-space models, language models, encoder-decoder networks, and weighted deductions. Every example ships a ## Try it section with synthetic-data generation, an SVI fit, and a Bayesian posterior block; all snippets are executed in CI.

All source files live under docs/examples/source/.

Regressions

Latent-variable models

State-space and time-series models

Language models

Encoder-decoder and structured outputs

Weighted deductions

  • PCFG: probabilistic context-free grammar with learnable production weights.
  • CCG: combinatory categorial grammar with forward / backward application and composition.
  • Type-Logical Grammar (Lambek): Lambek calculus with residuated slashes and tensor.
  • PMCFG: probabilistic multiple context-free grammar with WH-movement via a rank-2 non-terminal.
  • Multimodal TLG: Lambek calculus extended with diamond and box modalities.
  • Custom Sequent Rules: user-defined sequents over a free residuated category.
  • Quantifier Scope: continuation-monad lift for generalized quantifiers.
  • Montague NLI: Montague-style lambda-term LFs plus modus-ponens NLI prover.