Encyclopedia Foundation Foundation Pair Kernel Discrete Gauss Sigma Sum Zero Of Continuity
ARTICLE 6 claims 4 theorems 2 models
Foundation Pair Kernel Discrete Gauss Sigma Sum Zero Of Continuity
In a discrete ledger, a simple antisymmetry rule forces a powerful conservation law: the total of all sources and sinks is always zero.
The conservation law
In the Recognition Science framework, a ledger is a discrete record of events, each event a transfer between two accounts. The declaration sigma_sum_zero_of_continuity establishes a conservation law for such a ledger: if the net outflow at each account equals a local source (or sink), then the sum of all sources across the entire ledger is zero. This is the discrete analogue of Gauss's law, where the total charge in a closed system is conserved.
The key structural assumption is antisymmetry: the flow from account i to account j is exactly the negative of the flow from j to i. This is the formal expression of double-entry bookkeeping, where every debit has a matching credit. The theorem proves that this antisymmetry alone, without any additional assumptions about the nature of the flows, forces global conservation. A decoy flow that is not antisymmetric, such as a constant flow of 1 between every pair, demonstrably breaks this conservation, confirming that the antisymmetry is load-bearing.
The theorem is not a tautology. It does not define the current as a gradient of some potential, which would make the conservation law trivially true. Instead, the current is kept abstract, and the conservation law emerges purely from the antisymmetry. The result also has a regional form: the total source within any region equals the net flux through its boundary. This is the discrete divergence theorem, holding for any antisymmetric current.
What this establishes is a fundamental constraint on any system modeled as a recognition ledger. It means that within the framework, you cannot have a net creation or destruction of recognition events; they are always transferred. This is a strong, non-trivial consequence of the double-entry structure, and it underpins the framework's treatment of physical conservation laws.
MODEL elementaryPosting · IndisputableMonolith/Foundation/PairKernelDiscreteGauss.lean
/-- The elementary current of a single recognition posting from account `a` to account `b`:
`+1` on the ordered pair `(a,b)`, `−1` on `(b,a)`, `0` elsewhere. This is the double-entry
structure of one recognition event, built from postings, NOT from a potential. -/
def elementaryPosting {n : ℕ} (a b : Fin n) : Fin n → Fin n → ℝ :=
fun i j => (if i = a ∧ j = b then (1 : ℝ) else 0) - (if i = b ∧ j = a then (1 : ℝ) else 0)
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]
MODEL IsAntisym · IndisputableMonolith/Foundation/PairKernelDiscreteGauss.lean
/-- **Double-entry structure.** A recognition current is antisymmetric: the flow from `i` to `j` is
minus the flow from `j` to `i`. This is exactly what "every debit has a matching credit" means
at the level of the elementary current. It is NOT the gradient condition; a gradient
`F i j = φ i − φ j` is one instance, but the theorems below use only antisymmetry. -/
def IsAntisym {n : ℕ} (F : Fin n → Fin n → ℝ) : Prop := ∀ i j, F i j = - F j i
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 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 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]
What this page does not claim
This theorem does not claim that the recognition current is a gradient of any potential. This theorem does not claim to derive the inverse-square law or any specific force law; that is a separate result. This theorem does not claim anything about the specific values of constants like 5/8 or 27/16.
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 discrete Laplacian, and how does it lead to an inverse-distance law?
- How does this discrete conservation law connect to the framework's derivation of physical constants?
- What is the significance of the unit dipole in bridging the discrete ledger to a continuum description?
MACHINE LAYER · GROUNDED CLAIM TABLE · CLICK TO EXPAND
MODEL elementaryPosting · IndisputableMonolith/Foundation/PairKernelDiscreteGauss.lean
/-- The elementary current of a single recognition posting from account `a` to account `b`: `+1` on the ordered pair `(a,b)`, `−1` on `(b,a)`, `0` elsewhere. This is the double-entry structure of one recognition event, built from postings, NOT from a potential. -/ def elementaryPosting {n : ℕ} (a b : Fin n) : Fin n → Fin n → ℝ := fun i j => (if i = a ∧ j = b then (1 : ℝ) else 0) - (if i = b ∧ j = a then (1 : ℝ) else 0)In the Recognition Science framework, a ledger is a discrete record of events, each event a transfer between two accounts. elementaryPosting · 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 declaration sigma_sum_zero_of_continuity establishes a conservation law for such a ledger: if the net outflow at each account equals a local source (or sink), then the sum of all sources across the entire ledger is zero. sigma_sum_zero_of_continuity · IndisputableMonolith/Foundation/PairKernelDiscreteGauss.leanMODEL IsAntisym · IndisputableMonolith/Foundation/PairKernelDiscreteGauss.lean
/-- **Double-entry structure.** A recognition current is antisymmetric: the flow from `i` to `j` is minus the flow from `j` to `i`. This is exactly what "every debit has a matching credit" means at the level of the elementary current. It is NOT the gradient condition; a gradient `F i j = φ i − φ j` is one instance, but the theorems below use only antisymmetry. -/ def IsAntisym {n : ℕ} (F : Fin n → Fin n → ℝ) : Prop := ∀ i j, F i j = - F j iThe key structural assumption is antisymmetry: the flow from account i to account j is exactly the negative of the flow from j to i. IsAntisym · IndisputableMonolith/Foundation/PairKernelDiscreteGauss.leanTHEOREM 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 theorem proves that this antisymmetry alone, without any additional assumptions about the nature of the flows, forces global conservation. sum_divF_zero · 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 decoy flow that is not antisymmetric, such as a constant flow of 1 between every pair, demonstrably breaks this conservation, confirming that the antisymmetry is load-bearing. constFlow_breaks_conservation · 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]The result also has a regional form: the total source within any region equals the net flux through its boundary. sum_divF_region_eq_boundary_flux · IndisputableMonolith/Foundation/PairKernelDiscreteGauss.lean