def
definition
modes
show as:
view math explainer →
open explainer
Read the cached plain-language explainer.
open lean source
IndisputableMonolith.ClassicalBridge.Fluids.Galerkin2D on GitHub at line 41.
browse module
All declarations in this module, on Recognition.
explainer page
depends on
used by
-
Jphi_numerical_band -
lambda_PBM_approx -
phi_eighth_in_gamma_band -
coeffAt -
coeffAt_add -
coeffAt_smul -
extendByZero_laplacianCoeff -
FourierState2D -
galerkinForcing -
GalerkinForcingDominatedConvergenceHypothesis -
norm_extendByZero_le -
nsDuhamelCoeffBound_galerkinKernel_of_forcing -
nsDuhamelCoeffBound_galerkinKernel_of_forcingHyp -
of_convectionNormBound -
GalerkinState -
laplacianCoeff_inner_self_nonpos -
mem_modes_iff -
modeTrunc -
encodeGalerkin2D -
encodeIndex -
coeffMag_foldPlusOneStep -
coeffSign_foldPlusOneStep -
decide_lt_zero_foldPlusOneStep -
decodeCoeff_voxelStep_foldMinusOne_encodeIndex -
decodeGalerkin2D -
foldMinusOneDecodedStep -
foldPlusOneStep -
SimulationHypothesis -
voxelStep_foldPlusOne_encodeIndex -
equation_of_state -
PhaseLocked -
initial_state_is_zero_defect -
omega_lambda_lt_one -
experimentalStatus -
amplitude_derivation -
two_cube_powerset_256 -
VacuumPersistence -
numericalMethodCount -
congruence_prime_7_is_dft_mode_count -
congruence_primes_Q3_geometric_origins
formal source
38 max k.1.natAbs k.2.natAbs ≤ N
39
40/-- The finite set of truncated modes. -/
41noncomputable def modes (N : ℕ) : Finset Mode2 :=
42 ((Finset.Icc (-((N : ℤ))) (N : ℤ)).product (Finset.Icc (-((N : ℤ))) (N : ℤ)))
43
44lemma mem_modes_iff {N : ℕ} {k : Mode2} :
45 k ∈ modes N ↔ k.1 ∈ Finset.Icc (-((N : ℤ))) (N : ℤ) ∧ k.2 ∈ Finset.Icc (-((N : ℤ))) (N : ℤ) := by
46 simp [modes, and_left_comm, and_assoc, and_comm]
47
48/-!
49## Galerkin state space
50-/
51
52-- We use Euclidean (L²) norms/inner products for energy identities, so we model coefficients
53-- in `EuclideanSpace`, not plain Pi types (which carry the sup norm).
54
55/-- Velocity Fourier coefficient at a mode: a Euclidean real 2-vector (û₁, û₂). -/
56abbrev VelCoeff : Type := EuclideanSpace ℝ (Fin 2)
57
58/-- The Galerkin state: velocity coefficients for each truncated mode and each component. -/
59abbrev GalerkinState (N : ℕ) : Type :=
60 EuclideanSpace ℝ ((modes N) × Fin 2)
61
62/-!
63## Discrete dynamics
64-/
65
66/-- Squared wave number \( |k|^2 \) as a real number. -/
67noncomputable def kSq (k : Mode2) : ℝ :=
68 (k.1 : ℝ) ^ 2 + (k.2 : ℝ) ^ 2
69
70/-- Fourier Laplacian on coefficients: (Δ û)(k) = -|k|² û(k). -/
71noncomputable def laplacianCoeff {N : ℕ} (u : GalerkinState N) : GalerkinState N :=