Programs you can run

Six practical ways into Verisyntax.

Every example uses implemented syntax and is checked by the authoritative C++ test suite.

1. Select customers

dataset danish_customers:
  from customers as customer
  select customer.id as id
  select customer.name as name
  where customer.country = "DK"

The typed dataset returns only rows matching the declared filter.

2. Join customers and orders

dataset paid_customer_orders:
  from customers as customer
  inner join orders as order_item on customer.id = order_item.customer_id
  select customer.name as customer_name
  select order_item.total as total
  where order_item.status = "paid"

The compiler rejects unknown aliases, incompatible column types, and cross-database joins.

3. Estimate a proportion

p ~ beta(alpha = 2, beta = 2)
successes ~ binomial(trials = 20, probability = p)
observe successes = 14
ask p
  interval 0.89 hdi

The result explains posterior mean, HDI, effective sample size, R-hat, acceptance, and seed.

4. Track article claims over time

Import the first line-text article with create and later articles with append. Capture selected lines as mentions, request a local claim draft, and approve a fact only after review.

Claim Library shows version, status, evidence, hash, and active_fact. Approved metadata facts do not automatically become executable logic predicates.

5. Handle aggregated health data carefully

The synthetic example joins aggregate contact counts to organization metadata and filters a declared diagnosis group. It contains no person identifiers and is not diagnostic.

Grain and denominators matter: raw contact counts are not patients, prevalence, or risk.

6. Find indirect dependencies

depends_on(report, dataset)
depends_on(dataset, source)

indirect_dependency(X, Z)
  if depends_on(X, Y)
  and depends_on(Y, Z)

ask indirect_dependency(report, What)

The open-world result binds What = source and shows both supporting facts in the proof.