Algorithmadvanced
Tong-Xu-Kailath blind identification
Also called second-order statistics blind identification.
Estimates an oversampled FIR channel, up to a phase, from the output correlations at lags 0 and 1 by whitening and a shift. It is exact when the subchannels have no common zero.
- Solves
- Blind equalization
- Time
- O(K P^2 N^2 + P^3 N^3) worst
- Space
- O(P^2 N^2) extra
- Where
- K = the number of samples; L = the number of channel taps; N = the window length in symbols; P = the number of subchannels
- Model
- Real RAM
- Properties
- blinddeterministicneeds known orderneeds white inputofflinesecond order statistics
- Evidence
- Proof sketchCode in 1 languages
- Origin
- Lang Tong, Guanghan Xu, Thomas Kailath, 1991
Tong-Xu-Kailath identification estimates a channel with one input and outputs, such as a receiver that takes samples per symbol, from two correlation matrices of the received signal: the lag-0 matrix and the lag-1 matrix of a stacked window. It removes the noise, whitens the signal part of , and uses , which is the whitened channel times a shift, to read off the channel one tap at a time. The result is exact, up to a phase, when the subchannels have no common zero, the input is white with known power, and the statistics are exact. This was the first proof that second-order statistics are enough for blind equalization once the signal is oversampled, which is impossible at one sample per symbol. It differs from subspace identification, which uses only the noise subspace of , needs no whitening and works for any input covariance of full rank. TXK uses the signal subspace and the lag-1 shift, and needs a white input. Both need the channel length and differ from CMA, which uses fourth-order statistics and adapts online.
In plain words
If a receiver takes two samples per symbol, it sees the same symbols through two different channels. The method measures how the received samples are correlated with each other, both within one window and between one window and the next. From the first measurement it builds a transform that makes the signal look like plain uncorrelated symbols. The second measurement, after the transform, shows how each symbol moves one step through the window. Following this step from the first symbol reveals the channel, one echo after another. It fails only if all the channels share a common zero, because then a different channel gives the same correlations.
The problem
The received vectors are , with independent symbols of unit power and white noise of power on each output. The window has length and equals plus noise, where and is the block Toeplitz matrix with block equal to . Let and let be the shift with ones just below the diagonal. Then
where is the shift. The noise term in appears because consecutive windows overlap in samples. The input is estimates of and , the noise power (or an estimate), , and . The output is .
The algorithm
TXK-IDENTIFY(R(0), R(1), σ², P, L, N)- 1
A0 ← R(0) - σ² I; A1 ← R(1) - σ² (J_N ⊗ I_P) - 2
(U, Λ) ← the d = N + L - 1 largest eigenpairs of A0 - 3
F ← Λ^(-1/2) U^H ▷ whitening, d × PN - 4
M ← F A1 F^H ▷ d × d, equals V J V^H - 5
v ← the unit eigenvector of M M^H for its smallest eigenvalue - 6
for l ← 0 to L - 1 do - 7
h(l) ← block 0 of U Λ^(1/2) v - 8
v ← M v - 9
return h
Line L1 removes the noise from both correlations. Line L2 keeps the signal subspace: has rank . Line L3 builds a whitening matrix , so that is a unitary matrix. Line L4 maps the lag-1 correlation through , which gives . Since has the null vector , line L5 finds , the whitened first column of . Lines L6 to L8 walk down the columns: , and is column of , whose first block is . If is unknown, the code estimates it as the mean of the smallest eigenvalues of .
Example
A hand case. Two subchannels and , so , , , and , . Without noise,
The eigenvalues of are , so line L2 keeps the last three. The rest of the run gives : the channel with the phase . Because the input has unit power, the gain is exact; only the phase is unknown. The same output comes from with added on the diagonal and with added on its block subdiagonal.
From samples. For , , QPSK symbols, noise of power per output and an estimated , the largest entry error after the best phase is percent of for and (seed 1, a measurement). With exact statistics it is below .
A common zero. Let both subchannels contain the factor : with , . Replace the factor by , which has the same magnitude on the unit circle. The two channels differ, but their and agree to , so no method that uses these statistics can tell them apart.
Correctness
Claim. Assume that the subchannels have no common zero, , , , the input is white with unit power, and the statistics are exact. Then lines L1 to L9 return . This is a theorem.
Key steps. First, has full column rank ; this needs the no-common-zero condition, and for it is Lemma 1 of the subspace page's proof. So with positive eigenvalues, and satisfies , so is unitary. Second, the input correlation at lag 1 is , so , and exactly when is a multiple of . Third, , and , whose block 0 is . The proofs folder has the details.
The condition is also necessary. If the subchannels share a zero, flipping it to its reciprocal conjugate in every subchannel changes but, with a white input, keeps for every lag . The example above shows this. So no method can identify such a channel from second-order statistics.
What it needs. The white input with known power is part of the model: with a colored input, has in place of , and the shift structure breaks. The channel length must be right, for the rank in line L2.
Proof: With exact correlations, a white input of unit power and subchannels with no common zero, the TXK steps return the channel up to a phasefull
Setting. The window has length , where is the block Toeplitz matrix with block equal to , , and . The symbols are independent with and . The noise stacks , white with power on each output and independent of the symbols. is the matrix with if and otherwise, and is the same for size . Indices start at 0, and is unit vector .
Lemma 1 (the correlations). and .
Proof. , so . For lag 1, , which is 1 if and 0 otherwise, so . For the noise, block of is , which is if and 0 otherwise; this is . The cross terms vanish by independence and zero means.
So line L1 gives and exactly.
Lemma 2 (rank). If the subchannels have no common zero, , and , then has full column rank .
For this is Lemma 1 in the proof on the subspace identification page, which is complete. For , a common zero of all subchannels is the only obstruction; this is the result of Tong, Xu and Kailath (1994) and Moulines and others (1995), cited and not proved here. If two of the subchannels already have no common zero, the proof applies to their rows, and the full matrix, which has more rows, has full column rank as well.
Theorem. Under the conditions of Lemma 2, lines L1 to L9 return for some real .
Proof. By Lemma 2, is positive semidefinite with rank , and its range equals the range of . Line L2 takes with of size , orthonormal columns, and diagonal and positive. Then is the orthogonal projector onto the range of , so .
Step 1: V is unitary. Let (line L3) and , a matrix. Then
A square matrix with is unitary.
Step 2: M. Line L4 gives .
Step 3: the null vector. , and is diagonal with entries : row 0 of is zero and every other row has a single 1. So the eigenvalues of are once and with multiplicity , and the eigenvector for is . Line L5 returns for some , since a unit eigenvector of a simple eigenvalue is fixed up to a unit scalar.
Step 4: the walk. for , so for . Since , after passes through line L8, for .
Step 5: back to the channel. , which is column of . Block 0 of that column is . So line L7 sets for every .
The unknown noise power. If is not given, the code takes the mean of the smallest eigenvalues of . By Lemma 1 and Lemma 2, has exactly eigenvalues equal to and eigenvalues larger than , so the estimate is exact with exact statistics.
Necessity of the condition. Suppose every subchannel has the factor , with and , and let be the channel in which this factor is replaced by in every subchannel. On the unit circle , so the matrix spectrum of equals that of . With a white input, the output correlation at every lag is a Fourier coefficient of that spectrum, so is the same for and at every lag . The two channels are not related by a scalar, so no method based on second-order statistics can identify the channel. The test test_a_common_zero_flipped_by_an_allpass_gives_the_same_statistics checks this for .
Remark on the white input. If or the lag-1 input correlation is not , then Step 1 gives in place of the identity, and Step 3 fails. The input model is part of the method.
Complexity
Estimating and from samples costs . The eigenproblem of line L2 costs . Lines L3 to L5 multiply matrices of size at most , which costs , and line L5 is an eigenproblem of size . Lines L6 to L8 cost . The extra space is . All counts are in the real RAM.
Properties
- Blind and second order. It needs only , and the input power, not the alphabet.
- Only a phase is unknown. With a white input of known power, the gain of is found exactly; only remains.
- Batch. It needs enough samples to estimate the correlations.
- Needs a white input. The shift structure in line L4 depends on it.
- Works for nonminimum-phase channels. The oversampling breaks the phase ambiguity of symbol-rate second-order statistics.
Variants and improvements
- The subspace method. Subspace identification uses the noise subspace of alone. It does not need a white input or .
- Frequency-domain form. The cyclostationary correlation of the oversampled signal gives the same information in the frequency domain; see cyclostationary feature detection for the property used.
- Using more lags. Using for several lags , or a least squares fit of the shift structure, reduces the variance.
- Cross-relation method. The identity between pairs of outputs gives a least squares estimate directly from the data.
- Equalization from the estimate. With , an FIR zero-forcing or MMSE fractionally spaced equalizer can be designed directly; with no common zero, an exact FIR zero-forcing equalizer exists.
When to use it
Use it as a direct, closed form way to identify an oversampled channel from short blocks when the input is white and its power is known. It is also the cleanest demonstration that oversampling makes second-order blind identification possible. The subspace method avoids the whitening and the walk of line L8, whose errors grow along the taps, so it is often preferred. CMA is used when the receiver must adapt online.
Pitfalls
- Leaving out the noise term of R(1) in line L1. Consecutive windows share samples, so the noise contributes to , not zero. Without this term, the estimate is biased.
- A wrong rank in line L2. If is wrong, is wrong, and the whitening keeps a noise direction or drops a signal direction.
- Nearly common zeros. If the subchannels nearly share a zero, the smallest kept eigenvalue in line L2 is small, amplifies the estimation error, and the result is poor.
- Errors that grow along the walk in line L8. Each step multiplies by , so an error in or grows over the taps. Late taps are less accurate than early ones.
- A colored or unknown-power input. The method assumes . Scale the data first if the power is known; use the subspace method if the input is colored.
Implementations
Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/tong-xu-kailath-identification/. The authors are listed in prov/WX9EA1.jsonl.
"""Tong-Xu-Kailath blind identification from the correlations at lags 0 and 1.
The channel has P outputs and L taps: y[k] = sum_l h(l) a[k-l] + w[k], with
h(l) a vector of length P, white symbols of unit power and white noise of
power sigma^2. The stacked channel h = (h(0); ...; h(L-1)) has length P L,
so h[l*P + p] is tap l of subchannel p.
The window Y[k] = (y[k]; ...; y[k-N+1]) is H_N s[k] + noise, with the
block Toeplitz H_N (block (i, m) = h(m - i)) and s[k] = (a[k], ..., a[k-N-L+2]).
Its correlations are
R(0) = E[Y[k] Y[k]^H] = H_N H_N^H + sigma^2 I,
R(1) = E[Y[k] Y[k-1]^H] = H_N J H_N^H + sigma^2 (J_N kron I_P),
where J is the shift with ones just below the diagonal. With no common zero
of the subchannels and N >= L, H_N has full column rank d = N + L - 1. Then
F = Lambda^(-1/2) U^H from the d nonzero eigenpairs of R(0) - sigma^2 I
makes V = F H_N unitary, M = F (R(1) - sigma^2 J_N kron I_P) F^H = V J V^H,
the first column v_0 of V spans the null space of M^H, the next columns are
v_l = M^l v_0, and h(l) is block 0 of U Lambda^(1/2) v_l.
"""
import math
def jacobi_eigh(a: list[list[float]], tol: float = 1e-14, sweeps: int = 100) -> tuple[list[float], list[list[float]]]:
"""Eigenvalues (ascending) and eigenvectors of a real symmetric matrix, by cyclic Jacobi rotations."""
n = len(a)
m = [list(map(float, r)) for r in a]
v = [[1.0 if i == k else 0.0 for k in range(n)] for i in range(n)]
for _ in range(sweeps):
off = sum(m[i][k] ** 2 for i in range(n) for k in range(n) if i != k)
if off <= tol * tol * max(1.0, sum(m[i][i] ** 2 for i in range(n))):
break
for p in range(n - 1):
for q in range(p + 1, n):
if m[p][q] == 0.0:
continue
theta = (m[q][q] - m[p][p]) / (2.0 * m[p][q])
t = (1.0 if theta >= 0 else -1.0) / (abs(theta) + math.sqrt(theta * theta + 1.0))
c = 1.0 / math.sqrt(t * t + 1.0)
s = t * c
for r in range(n):
mrp, mrq = m[r][p], m[r][q]
m[r][p], m[r][q] = c * mrp - s * mrq, s * mrp + c * mrq
for r in range(n):
mpr, mqr = m[p][r], m[q][r]
m[p][r], m[q][r] = c * mpr - s * mqr, s * mpr + c * mqr
for r in range(n):
vrp, vrq = v[r][p], v[r][q]
v[r][p], v[r][q] = c * vrp - s * vrq, s * vrp + c * vrq
order = sorted(range(n), key=lambda i: m[i][i])
return [m[i][i] for i in order], [[v[r][i] for r in range(n)] for i in order]
def hermitian_eigh(a: list[list[complex]]) -> tuple[list[float], list[list[complex]]]:
"""Eigenpairs of a Hermitian matrix, one per eigenvalue, ascending, with orthonormal eigenvectors.
The real form [[B, -C], [C, B]] of A = B + j C has each eigenvalue twice.
The pairs are split by Gram-Schmidt: a complex vector is kept only if it
is not in the span of the vectors kept so far.
"""
n = len(a)
big = [[0.0] * (2 * n) for _ in range(2 * n)]
for i in range(n):
for k in range(n):
b, c = complex(a[i][k]).real, complex(a[i][k]).imag
big[i][k] = b
big[i + n][k + n] = b
big[i][k + n] = -c
big[i + n][k] = c
vals, vecs = jacobi_eigh(big)
out_vals, out_vecs = [], []
for lam, v in zip(vals, vecs):
u = [complex(v[i], v[i + n]) for i in range(n)]
for w in out_vecs:
ip = sum(x.conjugate() * y for x, y in zip(w, u))
u = [y - ip * x for x, y in zip(w, u)]
nu = math.sqrt(sum(abs(x) ** 2 for x in u))
if nu > 0.5 and len(out_vecs) < n:
out_vals.append(lam)
out_vecs.append([x / nu for x in u])
return out_vals, out_vecs
def block_toeplitz(h: list[complex], p: int, n: int) -> list[list[complex]]:
"""The P N by (N + L - 1) matrix H_N, with block (i, m) equal to h(m - i)."""
taps = len(h) // p
out = [[0j] * (n + taps - 1) for _ in range(p * n)]
for i in range(n):
for l in range(taps):
for q in range(p):
out[i * p + q][i + l] = complex(h[l * p + q])
return out
def correlations(y: list[list[complex]], n: int) -> tuple[list[list[complex]], list[list[complex]]]:
"""Sample estimates of R(0) = E[Y[k] Y[k]^H] and R(1) = E[Y[k] Y[k-1]^H] from the windows of N outputs."""
wins = [[complex(v) for i in range(n) for v in y[k - i]] for k in range(n - 1, len(y))]
d = len(wins[0])
r0 = [[0j] * d for _ in range(d)]
r1 = [[0j] * d for _ in range(d)]
for t in range(len(wins)):
w = wins[t]
wc = [v.conjugate() for v in w]
for i in range(d):
for k in range(d):
r0[i][k] += w[i] * wc[k]
if t > 0:
pc = [v.conjugate() for v in wins[t - 1]]
for i in range(d):
for k in range(d):
r1[i][k] += w[i] * pc[k]
k0, k1 = len(wins), len(wins) - 1
return [[v / k0 for v in r] for r in r0], [[v / k1 for v in r] for r in r1]
def txk_identify(
r0: list[list[complex]], r1: list[list[complex]], p: int, taps: int, n: int, sigma2: float | None = None
) -> list[complex]:
"""Estimate h (length P L, up to a unit complex scalar) from R(0) and R(1) of windows of N outputs.
If sigma2 is None, it is estimated as the mean of the P N - (N + L - 1) smallest eigenvalues of R(0).
"""
d = n + taps - 1
dim = p * n
if p < 2 or taps < 1 or n < taps or len(r0) != dim or len(r1) != dim or dim <= d:
raise ValueError("need P >= 2, N >= L, P N > N + L - 1 and R of size P N")
if sigma2 is None:
vals0, _ = hermitian_eigh(r0)
sigma2 = sum(vals0[: dim - d]) / (dim - d)
a0 = [[r0[i][k] - (sigma2 if i == k else 0) for k in range(dim)] for i in range(dim)] # @line L1
a1 = [[r1[i][k] - (sigma2 if i == k + p else 0) for k in range(dim)] for i in range(dim)] # @line L1
vals, vecs = hermitian_eigh(a0) # @line L2
lam, us = vals[dim - d :], vecs[dim - d :] # @line L2
if min(lam) <= 0:
raise ValueError("R(0) - sigma^2 I has fewer than N + L - 1 positive eigenvalues")
f = [[us[r][i].conjugate() / math.sqrt(lam[r]) for i in range(dim)] for r in range(d)] # @line L3
fa = [[sum(f[r][i] * a1[i][k] for i in range(dim)) for k in range(dim)] for r in range(d)] # @line L4
m = [[sum(fa[r][k] * f[c][k].conjugate() for k in range(dim)) for c in range(d)] for r in range(d)] # @line L4
mmh = [[sum(m[r][k] * m[c][k].conjugate() for k in range(d)) for c in range(d)] for r in range(d)] # @line L5
v = hermitian_eigh(mmh)[1][0] # @line L5
h = []
for _ in range(taps): # @line L6
col = [sum(us[r][i] * math.sqrt(lam[r]) * v[r] for r in range(d)) for i in range(p)] # @line L7
h.extend(col) # @line L7
v = [sum(m[r][c] * v[c] for c in range(d)) for r in range(d)] # @line L8
return h # @line L9
test_tong_xu_kailath_identification.py 109 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/tong-xu-kailath-identification/. The authors are listed in prov/WX9EA1.jsonl.
import math
import random
import pytest
from tong_xu_kailath_identification import block_toeplitz, correlations, hermitian_eigh, txk_identify
def conv(a, b):
out = [0j] * (len(a) + len(b) - 1)
for i, x in enumerate(a):
for k, y in enumerate(b):
out[i + k] += x * y
return out
def stack_subchannels(subs):
return [complex(subs[p][l]) for l in range(len(subs[0])) for p in range(len(subs))]
def exact_correlations(h, p, n, s2):
hn = block_toeplitz(h, p, n)
d, c = len(hn), len(hn[0])
r0 = [[sum(hn[i][m] * hn[k][m].conjugate() for m in range(c)) + (s2 if i == k else 0) for k in range(d)] for i in range(d)]
r1 = [[sum(hn[i][m] * hn[k][m - 1].conjugate() for m in range(1, c)) + (s2 if i == k + p else 0) for k in range(d)] for i in range(d)]
return r0, r1
def phase_aligned_error(he, h):
# max |e^(j phi) he - h| over the entries, with the best phase phi
ip = sum(a.conjugate() * b for a, b in zip(he, h))
ph = ip / abs(ip)
return max(abs(a * ph - b) for a, b in zip(he, h))
H3 = stack_subchannels([[1, 0.5 + 0.2j, -0.3], [0.4j, 1, 0.6]])
def test_eigensolver_splits_the_pairs() -> None:
rng = random.Random(2)
n = 4
a = [[0j] * n for _ in range(n)]
for i in range(n):
a[i][i] = complex(rng.gauss(0, 1))
for k in range(i + 1, n):
a[i][k] = complex(rng.gauss(0, 1), rng.gauss(0, 1))
a[k][i] = a[i][k].conjugate()
vals, vecs = hermitian_eigh(a)
assert len(vals) == n
for lam, v in zip(vals, vecs):
av = [sum(a[i][k] * v[k] for k in range(n)) for i in range(n)]
assert max(abs(x - lam * y) for x, y in zip(av, v)) < 1e-10
for i in range(n):
for k in range(n):
ip = sum(x.conjugate() * y for x, y in zip(vecs[i], vecs[k]))
assert abs(ip - (1 if i == k else 0)) < 1e-10
def test_hand_example() -> None:
h = stack_subchannels([[1, 0.5], [0.5, 1]])
r0, r1 = exact_correlations(h, 2, 2, 0.3)
he = txk_identify(r0, r1, 2, 2, 2, 0.3)
assert phase_aligned_error(he, h) < 1e-9
def test_exact_statistics_give_the_channel_up_to_a_phase() -> None:
for n in (3, 4):
r0, r1 = exact_correlations(H3, 2, n, 0.1)
assert phase_aligned_error(txk_identify(r0, r1, 2, 3, n, 0.1), H3) < 1e-9
# the noise power estimated from the smallest eigenvalues of R(0) is exact too
assert phase_aligned_error(txk_identify(r0, r1, 2, 3, n), H3) < 1e-9
def test_sample_statistics_give_a_small_error() -> None:
rng = random.Random(1)
k = 3000
s = math.sqrt(0.005)
a = [complex(rng.choice((-1, 1)), rng.choice((-1, 1))) / math.sqrt(2) for _ in range(k)]
y = [
[sum(H3[l * 2 + q] * a[t - l] for l in range(3) if t - l >= 0) + complex(rng.gauss(0, s), rng.gauss(0, s)) for q in range(2)]
for t in range(k)
]
norm = math.sqrt(sum(abs(v) ** 2 for v in H3))
for n in (3, 4):
r0, r1 = correlations(y, n)
assert phase_aligned_error(txk_identify(r0, r1, 2, 3, n), H3) / norm < 0.05
def test_a_common_zero_flipped_by_an_allpass_gives_the_same_statistics() -> None:
# (1 - 0.5 z^-1) and (-0.5 + z^-1) have the same magnitude on the unit circle
q1, q2 = [1, 0.3], [0.2, 1]
ha = stack_subchannels([conv([1, -0.5], q1), conv([1, -0.5], q2)])
hb = stack_subchannels([conv([-0.5, 1], q1), conv([-0.5, 1], q2)])
a0, a1 = exact_correlations(ha, 2, 3, 0.1)
b0, b1 = exact_correlations(hb, 2, 3, 0.1)
assert max(abs(a0[i][k] - b0[i][k]) for i in range(6) for k in range(6)) < 1e-12
assert max(abs(a1[i][k] - b1[i][k]) for i in range(6) for k in range(6)) < 1e-12
assert phase_aligned_error(ha, hb) > 0.1
def test_bad_input() -> None:
r0, r1 = exact_correlations(H3, 2, 3, 0.1)
with pytest.raises(ValueError):
txk_identify(r0, r1, 2, 3, 2)
with pytest.raises(ValueError):
txk_identify(r0, r1, 1, 3, 6)
History
Lang Tong, Guanghan Xu and Thomas Kailath presented the method in 1991 and published the full time-domain version in 1994. It showed that, unlike at the symbol rate, second-order statistics of a fractionally sampled output identify the channel, including its phase, if the subchannels have no common zero. It started a line of second-order blind methods, among them the subspace method of Moulines, Duhamel, Cardoso and Mayrargue (1995) and the cross-relation method of Xu, Liu, Tong and Kailath (1995).
References
- Lang Tong, Guanghan Xu and Thomas Kailath, Blind identification and equalization based on second-order statistics: a time domain approach, IEEE Transactions on Information Theory 40(2), 1994, pages 340 to 349, the identifiability condition (no common zero of the subchannels) and the identification algorithm from the correlations at lags 0 and 1
- Lang Tong, Guanghan Xu and Thomas Kailath, A new approach to blind identification and equalization of multipath channels, Conference Record of the 25th Asilomar Conference on Signals, Systems and Computers, Pacific Grove, 1991, volume 2, pages 856 to 860, the first, conference version of the method; this page relies on the 1994 journal version
- Eric Moulines, Pierre Duhamel, Jean-Francois Cardoso and Sylvie Mayrargue, Subspace methods for the blind identification of multichannel FIR filters, IEEE Transactions on Signal Processing 43(2), 1995, pages 516 to 525, the full column rank of the block Toeplitz channel matrix, used here as a lemma
- C. Richard Johnson, Jr., Philip Schniter, Thomas J. Endres, James D. Behm, Donald R. Brown and Raul A. Casas, Blind equalization using the constant modulus criterion: a review, Proceedings of the IEEE 86(10), 1998, starting at page 1927, the background on fractionally spaced blind equalization and the role of second-order methods
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H1 sketch |
|
| Lean | L0 no Lean part |
|
| Code (python) | I0 not checked yet |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag WX9EA1 Edit this page History Report an error Markdown