ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
Loading...
Searching...
No Matches
mobius_evaluate.h
Go to the documentation of this file.
1/**
2 * @file mobius_evaluate.h
3 * @brief Shared declaration for the Möbius-route probability sweep.
4 *
5 * The safe-UCQ Möbius compiler (@c mobius_evaluate.cpp) materialises a circuit
6 * rooted at a @c gate_mobius signed combination over certified-independent
7 * Boolean islands. Its probability is a single linear sweep that, at each
8 * @c gate_mobius, sums the children's probabilities with the stored integer
9 * coefficients (clamped to [0,1]); the Boolean islands evaluate read-once. The
10 * sweep lives next to the rest of the probability machinery
11 * (@c probability_evaluate.cpp) but is called both there (the @c gate_mobius
12 * root dispatch) and from the stats SRF, hence this shared declaration.
13 */
14#ifndef MOBIUS_EVALUATE_H
15#define MOBIUS_EVALUATE_H
16
17extern "C" {
18#include "postgres.h"
19#include "utils/uuid.h"
20}
21
22/**
23 * @brief Probability of a Möbius-route token (a @c gate_mobius-rooted circuit,
24 * or any Boolean island beneath one). Linear sweep: independent OR /
25 * AND on the Boolean islands, signed coefficient combination at each
26 * @c gate_mobius, clamped to [0,1].
27 */
29
30#endif /* MOBIUS_EVALUATE_H */
double mobius_probability_of(pg_uuid_t token)
Probability of a Möbius-route token (a gate_mobius-rooted circuit, or any Boolean island beneath one)...
UUID structure.