/- Copyright 2026 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -/ module public import Mathlib.MeasureTheory.Function.L2Space public import Mathlib.MeasureTheory.Measure.Lebesgue.Basic@[expose] public section

Spectral sets

This file defines the basic notions used in problems related to spectral sets and Fuglede's conjecture: translations, exponential characters, spectral pairs, spectral sets, and translational tilings in Euclidean space.

open Real Set Complex MeasureTheoryopen scoped InnerProductSpace

The translate of a set Ω by a vector t.

def translateSet {d : } (Ω: Set (Fin d )) (t : Fin d ) : Set (Fin d ) := {x | x - t Ω}

The exponential character x ↦ exp(2π i ⟪ξ, x⟫).

noncomputable def exponentialCharacter {d : } (ξ x : Fin d ) : := Complex.exp (2 * π * Complex.I * ( i, ξ i * x i))

The exponential character is continuous.

theorem continuous_exponentialCharacter {d : } (ξ : Fin d ) : Continuous (exponentialCharacter ξ) := d:ξ:Fin d Continuous (exponentialCharacter ξ) d:ξ:Fin d Continuous fun x cexp (2 * π * I * (∑ i, ξ i * x i)) All goals completed! 🐙

The exponential character has norm one.

All goals completed! 🐙

On a finite-measure set, every exponential character belongs to L^2.

d:Ω:Set (Fin d )hΩ_finite:volume Ω ξ:Fin d Integrable (fun x exponentialCharacter ξ x ^ 2) (volume.restrict Ω) simp_rw d:Ω:Set (Fin d )hΩ_finite:volume Ω ξ:Fin d Integrable (fun x exponentialCharacter ξ x ^ 2) (volume.restrict Ω)d:Ω:Set (Fin d )hΩ_finite:volume Ω ξ:Fin d Integrable (fun x 1 ^ 2) (volume.restrict Ω)] d:Ω:Set (Fin d )hΩ_finite:volume Ω ξ:Fin d IntegrableOn (fun x 1 ^ 2) Ω volume All goals completed! 🐙

(Ω, Λ) is called a spectral pair if Λ is a spectrum for Ω, i.e. a set Λ of frequencies such that the associated exponential characters form an orthogonal basis of L^2(Ω).

def spectralPair {d : } (Ω Λ : Set (Fin d )) : Prop := hΩ_finite : volume Ω , let e : (Fin d ) MeasureTheory.Lp 2 (volume.restrict Ω) := fun ξ MeasureTheory.MemLp.toLp (exponentialCharacter ξ) (exponentialCharacter_memLp hΩ_finite ξ) ( ξ₁ Λ, ξ₂ Λ, ξ₁ ξ₂ e ξ₁, e ξ₂⟫_ = 0) Submodule.topologicalClosure (Submodule.span (Set.range fun (ξ : Λ) e ξ.1)) =

A set is spectral if it belongs to a spectral pair.

def isSpectral {d : } (Ω : Set (Fin d )) : Prop := Λ : Set (Fin d ), spectralPair Ω Λ

A set Ω tiles ℝ^d by translation if there exists a set T of translation vectors such that the translates of Ω by T cover ℝ^d without overlap.

def tilesByTranslation {d : } (Ω : Set (Fin d )) : Prop := T : Set (Fin d ), T.Countable volume (Set.univ \ ( t T, translateSet Ω t)) = 0 ( {t₁ t₂ : Fin d }, t₁ T t₂ T t₁ t₂ volume (translateSet Ω t₁ translateSet Ω t₂) = 0)