Encyclopedia Foundation Foundation Pair Kernel Discrete Gauss
ARTICLE 5 claims 5 theorems
Foundation Pair Kernel Discrete Gauss
A conservation law for discrete flows: if every flow out of one account is matched by a flow into another, the total source over any closed system is exactly zero.
The discrete Gauss law
The discrete Gauss law is a conservation statement for flows on a finite lattice of sites. In its classical form, it says that the total amount of a quantity leaving a region through its boundary equals the total amount created inside the region. On a discrete lattice, the same idea becomes an identity about sums: the source at each site is the net outflow from that site, and when you add up all sources over the whole lattice, the total is zero, provided the flow is antisymmetric, meaning the flow from site i to site j is the negative of the flow from j to i.
The classical history begins with Carl Friedrich Gauss, who in 1813 published the divergence theorem relating a volume integral of a divergence to a surface integral of a flux. The discrete version studied here is the finite-lattice analogue: for a current F on a finite set of n sites, the divergence at site i is defined as the sum of all flows out of i. The central theorem, global Gauss, proves that for any antisymmetric current, the sum of divergences over all sites is zero. A second theorem, the regional divergence theorem, states that the sum of sources inside a region S equals the sum of flows from S to its complement, the boundary flux.
The key structural fact is that antisymmetry, not any particular form of the flow, drives conservation. A uniform flow that is constant and equal to 1 in every direction is not antisymmetric, and its total divergence is n², not zero. This decoy shows the hypothesis is load-bearing. The framework's machine-checked library of formal theorems proves these statements for any antisymmetric current on a finite lattice, with no assumption that the current is a gradient of a potential.
In Recognition Science, the framework models a recognition event as a double-entry posting: a debit at one account matched by a credit at another. The elementary posting from account a to account b is an antisymmetric current, and its divergence is +1 at a and -1 at b, exactly the source and sink of a single event. The framework proves that any source which satisfies the continuity law, meaning it equals the divergence of an antisymmetric current, must have total sum zero. This is the sigma = 0 conservation law, derived without ever defining the source as a Laplacian of a potential. The consequence is that the double-entry structure of recognition events forces global neutrality: no net recognition is created or destroyed across the whole lattice.
THEOREM sum_divF_zero · IndisputableMonolith/Foundation/PairKernelDiscreteGauss.lean
/-- **Global discrete Gauss.** The total recognition source over the whole lattice is zero: the
sigma = 0 conservation law, forced by double-entry antisymmetry (not by any `φ`). -/
theorem sum_divF_zero {n : ℕ} {F : Fin n → Fin n → ℝ} (h : IsAntisym F) :
∑ i : Fin n, divF F i = 0 := by
simp only [divF]
simpa using antisym_sum_finset_zero h (Finset.univ)
THEOREM sum_divF_region_eq_boundary_flux · IndisputableMonolith/Foundation/PairKernelDiscreteGauss.lean
/-- **Regional discrete Gauss (divergence theorem).** Source in a region `S` equals the flux
through its boundary: `∑_{i∈S} divF F i = ∑_{i∈S} ∑_{j∈Sᶜ} F i j`. Holds for ANY antisymmetric
current — gradient or circulating — so it is not a statement about `∇φ`. -/
theorem sum_divF_region_eq_boundary_flux {n : ℕ} {F : Fin n → Fin n → ℝ} (h : IsAntisym F)
(S : Finset (Fin n)) :
∑ i ∈ S, divF F i = ∑ i ∈ S, ∑ j ∈ Sᶜ, F i j := by
have hsplit : ∀ i, divF F i = (∑ j ∈ S, F i j) + (∑ j ∈ Sᶜ, F i j) := by
intro i
rw [divF, ← Finset.sum_add_sum_compl S (fun j => F i j)]
calc ∑ i ∈ S, divF F i
= ∑ i ∈ S, ((∑ j ∈ S, F i j) + (∑ j ∈ Sᶜ, F i j)) := by
apply Finset.sum_congr rfl; intro i _; exact hsplit i
_ = (∑ i ∈ S, ∑ j ∈ S, F i j) + (∑ i ∈ S, ∑ j ∈ Sᶜ, F i j) := by
rw [Finset.sum_add_distrib]
_ = 0 + (∑ i ∈ S, ∑ j ∈ Sᶜ, F i j) := by rw [antisym_sum_finset_zero h S]
_ = ∑ i ∈ S, ∑ j ∈ Sᶜ, F i j := by rw [zero_add]
THEOREM constFlow_breaks_conservation · IndisputableMonolith/Foundation/PairKernelDiscreteGauss.lean
/-- **Null test passes.** A non-antisymmetric current breaks global conservation
(`∑ divF ≠ 0`). So the double-entry hypothesis is load-bearing in the Gauss law. -/
theorem constFlow_breaks_conservation (n : ℕ) (hn : 0 < n) :
∑ i : Fin n, divF (constFlow n) i ≠ 0 := by
rw [constFlow_sum_div]
have hpos : (0 : ℝ) < (n : ℝ) := by exact_mod_cast hn
exact (mul_pos hpos hpos).ne'
THEOREM elementaryPosting_antisym · elementaryPosting_div_source · elementaryPosting_div_sink · IndisputableMonolith/Foundation/PairKernelDiscreteGauss.lean
theorem elementaryPosting_antisym {n : ℕ} (a b : Fin n) : IsAntisym (elementaryPosting a b) := by
intro i j
unfold elementaryPosting
have c1 : (j = b ∧ i = a) ↔ (i = a ∧ j = b) := and_comm
have c2 : (j = a ∧ i = b) ↔ (i = b ∧ j = a) := and_comm
simp only [c1, c2]
ring
/-- The divergence of the elementary a→b posting is `+1` at the source `a` (for `a ≠ b`): the
concrete debit at `a`. Together with the `−1` at `b` this is the sigma-imbalance the current
carries — the double-entry source, read off the postings, not off `∇φ`. -/
theorem elementaryPosting_div_source {n : ℕ} (a b : Fin n) (hab : a ≠ b) :
divF (elementaryPosting a b) a = 1 := by
have hstep : ∀ j : Fin n,
elementaryPosting a b a j = (if j = b then (1 : ℝ) else 0) := by
intro j
simp only [elementaryPosting]
have hb : (a = b ∧ j = a) → False := fun hc => hab hc.1
rw [if_neg hb]
simp only [true_and, sub_zero]
calc divF (elementaryPosting a b) a
= ∑ j : Fin n, elementaryPosting a b a j := rfl
_ = ∑ j : Fin n, (if j = b then (1 : ℝ) else 0) := by
exact Finset.sum_congr rfl (fun j _ => hstep j)
_ = 1 := by simp
theorem elementaryPosting_div_sink {n : ℕ} (a b : Fin n) (hab : a ≠ b) :
divF (elementaryPosting a b) b = -1 := by
have hstep : ∀ j : Fin n,
elementaryPosting a b b j = (if j = a then (-1 : ℝ) else 0) := by
intro j
simp only [elementaryPosting]
have ha : (b = a ∧ j = b) → False := fun hc => hab hc.1.symm
rw [if_neg ha]
by_cases hja : j = a
· subst hja; simp
· simp [hja]
calc divF (elementaryPosting a b) b
= ∑ j : Fin n, elementaryPosting a b b j := rfl
_ = ∑ j : Fin n, (if j = a then (-1 : ℝ) else 0) := by
exact Finset.sum_congr rfl (fun j _ => hstep j)
_ = -1 := by simp
THEOREM sigma_sum_zero_of_continuity · IndisputableMonolith/Foundation/PairKernelDiscreteGauss.lean
/-- **Continuity ⇒ global neutrality.** If a source `sigma` is the divergence of an antisymmetric
current (`divF F = sigma`, the Gauss law "site-divergence = sigma-imbalance"), then the total
source is zero. This is the sigma = 0 conservation law stated on the source, with no `sigma :=
Δφ` definitional shortcut. -/
theorem sigma_sum_zero_of_continuity {n : ℕ} {F : Fin n → Fin n → ℝ} {sigma : Fin n → ℝ}
(h : IsAntisym F) (hcont : ∀ i, divF F i = sigma i) :
∑ i : Fin n, sigma i = 0 := by
have : ∑ i : Fin n, sigma i = ∑ i : Fin n, divF F i := by
apply Finset.sum_congr rfl
intro i _
exact (hcont i).symm
rw [this, sum_divF_zero h]
What this page does not claim
This module does not derive the 1/r potential from the Gauss law alone. This module does not assume the current is a gradient of a potential. This module does not introduce the constants 5/8, 5/16, 27/16, or Z_eff.
Verify this page
Every tagged claim above names its theorem. To check one yourself rather than trust this page, elaborate the source module with Lean 4 and audit its axiom basis:
$ lake env lean IndisputableMonolith/Foundation/PairKernelDiscreteGauss.lean
expected axiom basis: [propext, Classical.choice, Quot.sound] (the Lean kernel's standard three; no RS-specific axioms)
A page whose claims cannot be reproduced this way does not ship. In production, every anchor links to the exact declaration in the public source release, and this block carries the build receipt for the page itself.
Derived articles
This page is generated by a question-recursion engine: the questions its answers raise become the next pages. The current agenda, with open targets marked red:
- What is the Green's function of the resulting Laplacian on a finite lattice?
- How does the discrete Gauss law connect to the continuum divergence theorem as the lattice spacing goes to zero?
- What is the unit dipole source used in the finite Dirichlet action?
- Does the regional divergence theorem hold for regions that are not simply connected?
- How does the double-entry conservation law generalize to currents that are not antisymmetric but have nonzero total source?
- What is the physical interpretation of the sigma = 0 neutrality law in recognition events?
MACHINE LAYER · GROUNDED CLAIM TABLE · CLICK TO EXPAND
THEOREM sum_divF_zero · IndisputableMonolith/Foundation/PairKernelDiscreteGauss.lean
/-- **Global discrete Gauss.** The total recognition source over the whole lattice is zero: the sigma = 0 conservation law, forced by double-entry antisymmetry (not by any `φ`). -/ theorem sum_divF_zero {n : ℕ} {F : Fin n → Fin n → ℝ} (h : IsAntisym F) : ∑ i : Fin n, divF F i = 0 := by simp only [divF] simpa using antisym_sum_finset_zero h (Finset.univ)The central theorem, global Gauss, proves that for any antisymmetric current, the sum of divergences over all sites is zero. sum_divF_zero · IndisputableMonolith/Foundation/PairKernelDiscreteGauss.leanTHEOREM sum_divF_region_eq_boundary_flux · IndisputableMonolith/Foundation/PairKernelDiscreteGauss.lean
/-- **Regional discrete Gauss (divergence theorem).** Source in a region `S` equals the flux through its boundary: `∑_{i∈S} divF F i = ∑_{i∈S} ∑_{j∈Sᶜ} F i j`. Holds for ANY antisymmetric current — gradient or circulating — so it is not a statement about `∇φ`. -/ theorem sum_divF_region_eq_boundary_flux {n : ℕ} {F : Fin n → Fin n → ℝ} (h : IsAntisym F) (S : Finset (Fin n)) : ∑ i ∈ S, divF F i = ∑ i ∈ S, ∑ j ∈ Sᶜ, F i j := by have hsplit : ∀ i, divF F i = (∑ j ∈ S, F i j) + (∑ j ∈ Sᶜ, F i j) := by intro i rw [divF, ← Finset.sum_add_sum_compl S (fun j => F i j)] calc ∑ i ∈ S, divF F i = ∑ i ∈ S, ((∑ j ∈ S, F i j) + (∑ j ∈ Sᶜ, F i j)) := by apply Finset.sum_congr rfl; intro i _; exact hsplit i _ = (∑ i ∈ S, ∑ j ∈ S, F i j) + (∑ i ∈ S, ∑ j ∈ Sᶜ, F i j) := by rw [Finset.sum_add_distrib] _ = 0 + (∑ i ∈ S, ∑ j ∈ Sᶜ, F i j) := by rw [antisym_sum_finset_zero h S] _ = ∑ i ∈ S, ∑ j ∈ Sᶜ, F i j := by rw [zero_add]A second theorem, the regional divergence theorem, states that the sum of sources inside a region S equals the sum of flows from S to its complement, the boundary flux. sum_divF_region_eq_boundary_flux · IndisputableMonolith/Foundation/PairKernelDiscreteGauss.leanTHEOREM constFlow_breaks_conservation · IndisputableMonolith/Foundation/PairKernelDiscreteGauss.lean
/-- **Null test passes.** A non-antisymmetric current breaks global conservation (`∑ divF ≠ 0`). So the double-entry hypothesis is load-bearing in the Gauss law. -/ theorem constFlow_breaks_conservation (n : ℕ) (hn : 0 < n) : ∑ i : Fin n, divF (constFlow n) i ≠ 0 := by rw [constFlow_sum_div] have hpos : (0 : ℝ) < (n : ℝ) := by exact_mod_cast hn exact (mul_pos hpos hpos).ne'A uniform flow that is constant and equal to 1 in every direction is not antisymmetric, and its total divergence is n², not zero. constFlow_breaks_conservation · IndisputableMonolith/Foundation/PairKernelDiscreteGauss.leanTHEOREM elementaryPosting_antisym · elementaryPosting_div_source · elementaryPosting_div_sink · IndisputableMonolith/Foundation/PairKernelDiscreteGauss.lean
theorem elementaryPosting_antisym {n : ℕ} (a b : Fin n) : IsAntisym (elementaryPosting a b) := by intro i j unfold elementaryPosting have c1 : (j = b ∧ i = a) ↔ (i = a ∧ j = b) := and_comm have c2 : (j = a ∧ i = b) ↔ (i = b ∧ j = a) := and_comm simp only [c1, c2] ring/-- The divergence of the elementary a→b posting is `+1` at the source `a` (for `a ≠ b`): the concrete debit at `a`. Together with the `−1` at `b` this is the sigma-imbalance the current carries — the double-entry source, read off the postings, not off `∇φ`. -/ theorem elementaryPosting_div_source {n : ℕ} (a b : Fin n) (hab : a ≠ b) : divF (elementaryPosting a b) a = 1 := by have hstep : ∀ j : Fin n, elementaryPosting a b a j = (if j = b then (1 : ℝ) else 0) := by intro j simp only [elementaryPosting] have hb : (a = b ∧ j = a) → False := fun hc => hab hc.1 rw [if_neg hb] simp only [true_and, sub_zero] calc divF (elementaryPosting a b) a = ∑ j : Fin n, elementaryPosting a b a j := rfl _ = ∑ j : Fin n, (if j = b then (1 : ℝ) else 0) := by exact Finset.sum_congr rfl (fun j _ => hstep j) _ = 1 := by simptheorem elementaryPosting_div_sink {n : ℕ} (a b : Fin n) (hab : a ≠ b) : divF (elementaryPosting a b) b = -1 := by have hstep : ∀ j : Fin n, elementaryPosting a b b j = (if j = a then (-1 : ℝ) else 0) := by intro j simp only [elementaryPosting] have ha : (b = a ∧ j = b) → False := fun hc => hab hc.1.symm rw [if_neg ha] by_cases hja : j = a · subst hja; simp · simp [hja] calc divF (elementaryPosting a b) b = ∑ j : Fin n, elementaryPosting a b b j := rfl _ = ∑ j : Fin n, (if j = a then (-1 : ℝ) else 0) := by exact Finset.sum_congr rfl (fun j _ => hstep j) _ = -1 := by simpThe elementary posting from account a to account b is an antisymmetric current, and its divergence is +1 at a and -1 at b, exactly the source and sink of a single event. elementaryPosting_antisym · elementaryPosting_div_source · elementaryPosting_div_sink · IndisputableMonolith/Foundation/PairKernelDiscreteGauss.leanTHEOREM sigma_sum_zero_of_continuity · IndisputableMonolith/Foundation/PairKernelDiscreteGauss.lean
/-- **Continuity ⇒ global neutrality.** If a source `sigma` is the divergence of an antisymmetric current (`divF F = sigma`, the Gauss law "site-divergence = sigma-imbalance"), then the total source is zero. This is the sigma = 0 conservation law stated on the source, with no `sigma := Δφ` definitional shortcut. -/ theorem sigma_sum_zero_of_continuity {n : ℕ} {F : Fin n → Fin n → ℝ} {sigma : Fin n → ℝ} (h : IsAntisym F) (hcont : ∀ i, divF F i = sigma i) : ∑ i : Fin n, sigma i = 0 := by have : ∑ i : Fin n, sigma i = ∑ i : Fin n, divF F i := by apply Finset.sum_congr rfl intro i _ exact (hcont i).symm rw [this, sum_divF_zero h]The framework proves that any source which satisfies the continuity law, meaning it equals the divergence of an antisymmetric current, must have total sum zero. sigma_sum_zero_of_continuity · IndisputableMonolith/Foundation/PairKernelDiscreteGauss.lean