Alphabeta Math
Pipeline-generated
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

PC algorithm and Markov-equivalence structure learning — Examples

1 · Prerequisites

2 · Logical flowchart

3 · Definitions, theorems and proofs

None yet.

4 · Examples, counterexamples and false statements

ExampleConstruction: Literature-sourcedVerification: AI-adaptedOpen item page →

PC distinguishes a chain from an unshielded collider

Example

Let all exogenous variables below be mutually independent standard normals. The chain model is X=UX, Y=X+UY, Z=Y+UZ, with graph X→Y→Z. The collider model is X=UX, Z=UZ, Y=X+Z+UY, with graph X→Y←Z. For a perfect conditional-independence oracle, PC retains an undirected chain in the first model and orients both arrows into Y in the second: the chain's unique endpoint separator contains Y, whereas the collider's endpoint separator is empty.

diagram failed to render:
\begin{tikzpicture}[>=stealth, node distance=19mm]
  \node at (0,0) (x1) {$X$}; \node at (1.7,0) (y1) {$Y$}; \node at (3.4,0) (z1) {$Z$};
  \draw[->] (x1) -- (y1); \draw[->] (y1) -- (z1);
  \node at (1.7,-0.55) {chain};
  \node at (0,-1.5) (x2) {$X$}; \node at (1.7,-1.5) (y2) {$Y$}; \node at (3.4,-1.5) (z2) {$Z$};
  \draw[->] (x2) -- (y2); \draw[<-] (y2) -- (z2);
  \node at (1.7,-2.05) {collider};
\end{tikzpicture}

The diagrams use vertices for variables and arrows for structural parenthood; they illustrate the two DAGs but are not used in the verification.

Facts & Assumptions

Given: Independent N(0,1) exogenous variables and the two recursive Gaussian models in the Example.

[F1]

Finite independent sums and affine shifts have the stated characteristic-function formulas. Independent random elements Characteristic functions under affine maps and independent sums

[F2]

The standard normal has density ϕ, scalar normal laws have characteristic function exp⁡(iμt−σ2t2/2), and equal scalar characteristic functions determine equal laws. Standard normal and normal laws Characteristic function of a normal law Uniqueness of a law from its characteristic function

[F3]

A finite vector is multivariate normal when every scalar linear projection has its corresponding normal law. Multivariate normal law, including singular covariance

[F4]

For a nondegenerate Gaussian vector, zero conditional covariance between two coordinates is equivalent to conditional independence given the conditioning coordinates. Zero Gaussian partial correlation is conditional independence

[F5]

PC deletes a pair at the first conditioning level with a separating set, records that set, orients an unshielded triple as a collider exactly when the middle vertex is absent from its recorded set, then applies R1–R3. Population PC causal-discovery algorithm

[F6]

The middle vertex of an unshielded triple lies outside a valid separating set exactly when the triple is a collider. A separating set identifies an unshielded collider

[F7]

A Gaussian law is faithful to a DAG when its conditional independences agree exactly with that DAG's d-separations. Causally sufficient perfect-oracle discovery regime

[F8]

A recursive SCM is Markovian when its exogenous variables are mutually independent; its displayed structural functions define the endogenous variables along the graph. Recursive structural causal models on finite DAGs

[F9]

Under the causally sufficient perfect-oracle regime, population PC terminates and returns the DAG's CPDAG. The PC algorithm recovers the oracle CPDAG

[F10]

D-separation requires every path between the queried vertex sets to be blocked by the conditioning set. Paths, active paths, and d-separation in a finite DAG

[A1]

AC is assumed by the supplied Gaussian probability interfaces. The Axiom of Choice

Verification

technique · direct covariance calculation and the population PC search
1.1F1F2F3A1construct

Let W1,…,Wm be a finite independent family of scalar normal variables with means μr and variances σr2. For any real coefficients a1,…,am,b, [F1]–[F2] give the characteristic function of b+∑rarWr as exp⁡ ⁣(it(b+∑rarμr)−t22∑rar2σr2); scalar uniqueness identifies this as the normal law with that mean and variance. Every scalar projection of a finite affine image of W=(W1,…,Wm) is such a sum, so [F3] proves that every such image is multivariate normal, including when a projection has variance zero.

2.1givenF1F2F4F7F8F10A1algebra

The chain model's density is ϕ(x)ϕ(y−x)ϕ(z−y), where ϕ is the standard-normal density. Its factors are exactly the parent probability kernels KX(dx)=N(0,1)(dx), KY(x,dy)=N(x,1)(dy), and KZ(y,dz)=N(y,1)(dz), so the full-joint law factorizes in the topological order X,Y,Z. All three vertices are observed and [F8] gives the Markovian SCM condition. Its moments are Var⁡(X)=1, Var⁡(Y)=2, Var⁡(Z)=3, and distinct covariances Cov⁡(X,Y)=1, Cov⁡(Y,Z)=2, Cov⁡(X,Z)=1. The vector is multivariate normal by step 1.1, and its covariance matrix is positive definite because (X,Y,Z) is an invertible triangular linear transform of (UX,UY,UZ). The conditional covariance formula gives Cov⁡(X,Z∣Y)=1−1⋅22=0,Cov⁡(X,Y∣Z)=1−1⋅23=13,Cov⁡(Y,Z∣X)=2−1⋅11=1. Together with the nonzero marginal covariances, [F4] shows that the only conditional independence between distinct variables is X⊥Z∣Y. By [F10], the only d-separated vertex pair is also X,Z given Y: the adjacent pairs have an active one-edge path, and the X–Z path is blocked only by conditioning on Y. Any conditional independence between vertex sets would imply the corresponding coordinate independences, so the set-level independence and d-separation models also agree. This verifies faithfulness in [F7].

2.2givenF1F2F4F7F8F10A1algebra

The collider model's density is ϕ(x)ϕ(z)ϕ(y−x−z). Its factors are exactly the parent probability kernels KX(dx)=N(0,1)(dx), KZ(dz)=N(0,1)(dz), and KY(x,z,dy)=N(x+z,1)(dy), so the full-joint law factorizes in the topological order X,Z,Y. All vertices are observed and [F8] gives the Markovian SCM condition. Its variances are Var⁡(X)=Var⁡(Z)=1, Var⁡(Y)=3, its covariances are Cov⁡(X,Y)=Cov⁡(Z,Y)=1, and Cov⁡(X,Z)=0. The vector is multivariate normal by step 1.1, and this covariance matrix is positive definite by the invertible triangular map from the exogenous variables. The conditional covariances are Cov⁡(X,Z∣Y)=0−1⋅13=−13,Cov⁡(X,Y∣Z)=1,Cov⁡(Y,Z∣X)=1. Therefore [F4] shows that X⊥Z marginally, but there is no conditional independence after conditioning on the third variable and no independence for an adjacent pair. By [F10], this is exactly the collider DAG's d-separation list: the collider path is blocked unconditioned and opened by conditioning on Y, while each adjacent pair has an active one-edge path. Any set conditional independence would imply coordinate independences, so [F7] holds at the set level as well.

3.1F5F6F9step 2.1cases

Thus PC does not delete any pair at level 0. At level 1, X−Z is deleted and its separator is recorded as {Y}; X−Y and Y−Z remain because step 2.1 shows that each is dependent both marginally and conditional on the third variable. The sole unshielded triple has its middle vertex in the separator, so [F5] or [F6] leaves both edges undirected. No Meek rule applies without a directed edge, and the output is the undirected chain CPDAG. The run terminates under [F9], since step 2.1 verifies the chain model's discovery-regime hypotheses.

4.1F4F5F9step 2.2cases∎

PC deletes X−Z at level 0 and records the empty separator. It retains X−Y and Y−Z by their nonzero marginal covariances. Since Y is absent from the separator, [F5] orients X→Y←Z; the output is the collider CPDAG. The run terminates under [F9], since step 2.2 verifies the collider model's discovery-regime hypotheses. These calculations verify both claimed outputs without relying on the diagrams.

ExampleConstruction: Literature-sourcedVerification: AI-adaptedOpen item page →

A hidden common cause is observationally indistinguishable from an edge

Example

Let L,UX,UY be independent standard normals and set X=L+UX, Y=L+UY, with latent common-cause graph L→X and L→Y; only X,Y are observed. Their joint law is the same as that of the observed direct-edge model X=VX, Y=12X+ε, where VX∼N(0,2) and ε∼N(0,32) are independent. A perfect observational PC oracle therefore returns the undirected edge X−Y. This identifies an association but cannot distinguish the hidden common cause from a direct causal edge, and the latent model violates the observed-only causal-sufficiency requirement.

diagram failed to render:
\begin{tikzpicture}[>=stealth, node distance=16mm]
  \node[draw,dashed,rounded corners,inner sep=2pt] at (0,0) (l) {$L$};
  \node at (1.6,0) (x) {$X$}; \node at (1.6,-1.3) (y) {$Y$};
  \draw[->] (l) -- (x); \draw[->] (l) -- (y);
  \node at (0,0.6) {latent model};
  \node at (4,0) (x2) {$X$}; \node at (5.6,0) (y2) {$Y$};
  \draw[->] (x2) -- (y2);
  \node at (4.8,0.6) {observed direct-edge model};
\end{tikzpicture}

Arrows represent structural causes, the dashed box marks the unobserved vertex, and the second graph is a different model with the same observed law. The diagram is explanatory; equality of laws and the PC output are verified below.

Facts & Assumptions

Given: Independent Gaussian exogenous variables in the latent model and independent variables VX,ε in the direct-edge model.

[F1]

A recursive structural causal model may distinguish observed and latent vertices; its Markovian case uses mutually independent exogenous variables. Recursive structural causal models on finite DAGs

[F2]

The causally sufficient discovery regime requires every graph vertex to be observed and the full-joint law to have a parent-kernel factorization, so an omitted latent vertex is outside that regime. Causally sufficient perfect-oracle discovery regime

[F3]

Independent scalar normal inputs have product characteristic functions, and finite affine sums use the scalar normal characteristic formula and scalar uniqueness. Independent random elements Standard normal and normal laws Characteristic functions under affine maps and independent sums Characteristic function of a normal law Uniqueness of a law from its characteristic function

[F4]

A finite vector is multivariate normal when every scalar linear projection has its corresponding normal law. Multivariate normal law, including singular covariance

[F5]

A multivariate normal law has characteristic function exp⁡(it⋅m−tTΣt/2), and this function uniquely determines its vector law. Characteristic function of a multivariate normal law

[F6]

DAGs with the same skeleton and no unshielded colliders are Markov equivalent. DAG Markov equivalence is determined by skeletons and unshielded colliders

[F7]

With two vertices, a CPDAG leaves the only edge undirected when both orientations occur among equivalent DAGs. DAG Markov equivalence, patterns, and CPDAGs

[F8]

PC retains an edge unless a tested conditioning set establishes independence; with two vertices it has no unshielded triples or Meek-rule configurations. Population PC causal-discovery algorithm

[F9]

Under the causally sufficient perfect-oracle regime, population PC terminates and returns the DAG's CPDAG. The PC algorithm recovers the oracle CPDAG

[A1]

AC is assumed by the Gaussian-law probability interfaces. The Axiom of Choice

Verification

technique · covariance comparison and direct inspection of the two-vertex PC search
1.1F3F4A1construct

Let W1,…,Wm be a finite independent family of scalar normal variables with means μr and variances σr2. For real coefficients a1,…,am,b, [F3] gives the characteristic function of b+∑rarWr as exp⁡ ⁣(it(b+∑rarμr)−t22∑rar2σr2); scalar uniqueness identifies this as the normal law with that mean and variance. Every scalar projection of a finite affine image of W=(W1,…,Wm) is such a sum, so [F4] proves that every such image is multivariate normal, including when a projection has variance zero.

2.1givenF5step 1.1A1algebra

In the latent model, E(X,Y)=(0,0), Var⁡(X)=Var⁡(Y)=2, and Cov⁡(X,Y)=1, by independence of L,UX,UY. In the direct-edge model, E(X,Y)=(0,0), Var⁡(X)=2, Cov⁡(X,Y)=12Var⁡(X)=1, and Var⁡(Y)=14(2)+32=2. Both vectors are Gaussian by step 1.1 and have the same positive-definite covariance matrix Σ=(2112), whose leading principal minors are 2 and 3. By [F5], both vector characteristic functions equal exp⁡(−tTΣt/2) for every t∈R2; the uniqueness clause of [F5] gives equality of the full observed laws.

3.1F1F2step 2.1algebra

The latent model is a finite recursive Markovian SCM with observed set {X,Y} and omitted latent vertex L, so it does not satisfy [F2]. The direct-edge model has observed set {X,Y} and independent exogenous variables; its full-joint law factors as N(0,2)(dx)N(x/2,3/2)(dy), the root probability kernel for X followed by the probability kernel for Y given its parent X. In its two-vertex graph X→Y, the only pair of nonempty disjoint endpoint sets is {X},{Y}, which is not d-separated because of the direct path; step 2.1 gives Cov⁡(X,Y)=1, so they are not independent. Thus this law is faithful to the direct-edge DAG, and the direct-edge model satisfies the observed-only Markovian factorization and faithfulness conditions in the discovery regime. Since the observed laws agree by step 2.1, no procedure using only that law can distinguish the two causal explanations.

4.1F6F7F8F9step 2.1step 3.1A1algebra∎

The common observed law has Cov⁡(X,Y)=1≠0, so X,Y are dependent and the perfect oracle does not delete their only edge. With only two vertices there is no unshielded triple and none of R1–R3 applies; by [F9] the regime-compliant run terminates, and its computed output is X−Y. Reversing the single edge in the direct-edge DAG keeps the same skeleton and no unshielded collider, so [F6] proves the reverse DAG is equivalent; [F7] therefore gives the same undirected CPDAG. The PC output reports adjacency but cannot recover the latent-versus-direct causal distinction.

ExampleConstruction: Literature-sourcedVerification: AI-adaptedOpen item page →

A complete three-vertex skeleton has several equivalent DAGs

Example

On vertices A,B,C, the DAGs A→B, A→C, B→C and C→B, C→A, B→A have the same complete skeleton and no unshielded colliders. They are Markov equivalent. Suppose the first DAG has a full-joint law from an observed-only Markovian recursive model with a topological parent-kernel factorization, faithful to that DAG, and a perfect conditional-independence oracle for that law. Each edge points in opposite directions in the two DAGs, so their CPDAG is the fully undirected triangle; perfect-oracle PC retains all three edges and returns that pattern.

diagram failed to render:
\begin{tikzpicture}[>=stealth, node distance=15mm]
  \node at (0,0) (a1) {$A$}; \node at (1.5,0) (b1) {$B$}; \node at (0,-1.3) (c1) {$C$};
  \draw[->] (a1) -- (b1); \draw[->] (a1) -- (c1); \draw[->] (b1) -- (c1);
  \node at (4,0) (a2) {$A$}; \node at (2.5,0) (b2) {$B$}; \node at (4,-1.3) (c2) {$C$};
  \draw[->] (b2) -- (a2); \draw[->] (c2) -- (a2); \draw[->] (c2) -- (b2);
  \node at (0,-3.1) (a3) {$A$}; \node at (1.5,-3.1) (b3) {$B$}; \node at (0,-4.4) (c3) {$C$};
  \draw[-] (a3) -- (b3); \draw[-] (a3) -- (c3); \draw[-] (b3) -- (c3);
  \node at (0.75,0.55) {first DAG};
  \node at (3.25,0.55) {second DAG};
  \node at (0.75,-5) {CPDAG};
\end{tikzpicture}

Vertices denote graph variables, arrows denote directed edges, and plain segments denote undirected edges. The pictures illustrate the edge orientations; the verification uses the path and equivalence definitions directly.

Facts & Assumptions

Given: The two finite DAGs, the first DAG's observed-only Markovian recursive model and full-joint parent-kernel factorization, its faithful law, and its perfect conditional-independence oracle.

[F1]

A direct one-edge path has no internal vertices and is active under every conditioning set disjoint from its endpoints. Paths, active paths, and d-separation in a finite DAG

[F2]

DAGs are Markov equivalent exactly when their skeletons and unshielded colliders agree. DAG Markov equivalence is determined by skeletons and unshielded colliders

[F3]

A CPDAG directs exactly the edges with one orientation throughout the class and leaves an edge undirected when both directions occur. DAG Markov equivalence, patterns, and CPDAGs

[F4]

PC deletes a pair only after a conditional-independence answer, then orients unshielded colliders and closes under R1–R3. Population PC causal-discovery algorithm

[F5]

The background-free R1–R3 closure of the collider pattern is the CPDAG. The background-free Meek rules complete a CPDAG

[F6]

The causally sufficient discovery regime supplies the observed-only Markovian parent-kernel model, faithfulness to the first DAG, and the exact oracle; hence oracle independences agree with its d-separations. Causally sufficient perfect-oracle discovery regime

Verification

technique · direct graph comparison and the perfect-oracle algorithm
1.1givenF1F2F6algebra

Each graph has all three possible edges, so there is no triple with nonadjacent endpoints and in particular no unshielded collider. Their skeletons and unshielded colliders agree; [F2] proves Markov equivalence. Every distinct pair has a direct active path under every allowed conditioning set by [F1], so neither DAG has a d-separation between distinct vertices. Faithfulness in [F6] makes the oracle dependent on every pair and set.

1.2F2F3algebra

In the two DAGs, the orientations of A−B, A−C, and B−C are respectively A→B versus B→A, A→C versus C→A, and B→C versus C→B. Thus each edge is oriented both ways in the equivalence class, and [F3] makes every edge undirected in the CPDAG.

2.1F1F4F5step 1.1step 1.2cases∎

The perfect oracle never reports independence for any pair by step 1.1, so the algorithm deletes no edge. With three vertices, after the level-0 tests the complete triangle permits level 1; at level 1 each pair has only one possible conditioning vertex at each endpoint, and the oracle again returns dependence by step 1.1. The stopping condition then fails because an endpoint has at most one neighbor other than the other endpoint, fewer than the required two. Thus the skeleton search terminates. There is no unshielded triple to orient, and none of R1–R3 can fire because each requires at least one directed edge; the finite orientation scan therefore terminates as well. PC returns the undirected triangle, which [F5] identifies with the CPDAG found in step 1.2. The diagram is only a rendering of these verified adjacencies and orientations.

Sources