Encyclopedia Foundation Foundation Primitive Recognition Calculus Delta Probability Expectation Const
ARTICLE 3 claims 2 theorems 1 model
Foundation Primitive Recognition Calculus Delta Probability Expectation Const
In a finite probability space, the average of a quantity that never varies is that quantity itself, a fact the framework's machine-checked library proves.
The constant expectation
In ordinary probability, if a random variable takes the same value at every possible outcome, its expectation, or average, is simply that value. The declaration expectation_const establishes exactly this for the framework's primitive finite layer: it proves that on a space with N plus one possible outcomes, the expectation of a function that returns the same rational number c at every outcome equals c. This is not a new physical law but a basic, necessary property of averages, stated and verified in the framework's machine-checked library of formal theorems.
The setting is deliberately minimal. An event is a finite distinction event, a yes or no question about a finite set of alternatives. Probability is defined as a rational counting ratio: the number of outcomes where the event holds divided by the total number of outcomes. The framework proves the standard properties of such finite probabilities, that the impossible event has probability zero, the certain event has probability one, and every event has probability between zero and one. The expectation of a rational-valued observable is then the sum of its values across all outcomes divided by the number of outcomes.
Within this finite setting, expectation_const is a theorem, not an assumption. It follows directly from the definitions: summing a constant N plus one times and dividing by N plus one leaves the constant unchanged. The proof is short and the statement is exact. The declaration does not extend to infinite probability spaces, where a constant function still has that constant as its expectation under the usual measure-theoretic definition, but the framework's proof here covers only the finite case it defines.
The consequence for a reader is simple: the framework's primitive probability layer is internally consistent at its most basic point. Averages behave as averages must, and the machine-checked library records that fact. This is a foundation stone, not a surprising discovery. It means that when the framework later builds more elaborate structures, the expectation of a constant observable will not be a hidden assumption but a proved lemma available for use.
THEOREM expectation_const · IndisputableMonolith/Foundation/PrimitiveRecognitionCalculus/DeltaProbability.lean
theorem expectation_const {N : ℕ} (c : ℚ) :
expectation (N := N) (fun _ => c) = c := by
have h : ((N + 1 : ℚ) ≠ 0) := by positivity
simp [expectation, Finset.sum_const]
field_simp [h]
MODEL prob · IndisputableMonolith/Foundation/PrimitiveRecognitionCalculus/DeltaProbability.lean
/-- Uniform finite probability, as a rational counting ratio. -/
noncomputable def prob {N : ℕ} (E : Event N) : ℚ :=
(count E : ℚ) / (N + 1 : ℚ)
THEOREM delta_probability_headline · IndisputableMonolith/Foundation/PrimitiveRecognitionCalculus/DeltaProbability.lean
/-- **Delta-native probability headline.** Probability at the native finite layer
is rational counting over finite distinction alternatives: impossible event zero,
certain event one, and every event has probability in `[0,1]`. -/
theorem delta_probability_headline (N : ℕ) :
prob (N := N) (fun _ => False) = 0
∧ prob (N := N) (fun _ => True) = 1
∧ (∀ E : Event N, 0 ≤ prob E ∧ prob E ≤ 1)
∧ (∀ E F : Event N, (∀ i, E i → F i) → prob E ≤ prob F)
∧ (∀ E F : Event N, (∀ i, ¬ (E i ∧ F i)) →
prob (fun i => E i ∨ F i) = prob E + prob F) :=
⟨prob_empty N, prob_univ N, fun E => ⟨prob_nonneg E, prob_le_one E⟩,
fun _ _ h => prob_mono h, fun _ _ h => prob_disjoint_or h⟩
What this page does not claim
This declaration does not define expectation for infinite or continuous probability spaces. It does not introduce a new physical law; it verifies a basic property of averages in a finite setting. It does not claim that all observables in the framework are constant functions.
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/PrimitiveRecognitionCalculus/DeltaProbability.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:
- How does the finite expectation defined here connect to the cost function J that the framework forces?
- What further properties of expectation, such as linearity, are proved for this finite layer?
- Does the framework extend this rational probability to infinite or continuous spaces, and if so, how?
- What role does the finiteness of the distinction space play in the forcing chain that leads to the golden ratio?
MACHINE LAYER · GROUNDED CLAIM TABLE · CLICK TO EXPAND
THEOREM expectation_const · IndisputableMonolith/Foundation/PrimitiveRecognitionCalculus/DeltaProbability.lean
theorem expectation_const {N : ℕ} (c : ℚ) : expectation (N := N) (fun _ => c) = c := by have h : ((N + 1 : ℚ) ≠ 0) := by positivity simp [expectation, Finset.sum_const] field_simp [h]The declaration expectation_const proves that on a space with N plus one possible outcomes, the expectation of a function that returns the same rational number c at every outcome equals c. expectation_const · IndisputableMonolith/Foundation/PrimitiveRecognitionCalculus/DeltaProbability.leanMODEL prob · IndisputableMonolith/Foundation/PrimitiveRecognitionCalculus/DeltaProbability.lean
/-- Uniform finite probability, as a rational counting ratio. -/ noncomputable def prob {N : ℕ} (E : Event N) : ℚ := (count E : ℚ) / (N + 1 : ℚ)Probability is defined as a rational counting ratio: the number of outcomes where the event holds divided by the total number of outcomes. prob · IndisputableMonolith/Foundation/PrimitiveRecognitionCalculus/DeltaProbability.leanTHEOREM delta_probability_headline · IndisputableMonolith/Foundation/PrimitiveRecognitionCalculus/DeltaProbability.lean
/-- **Delta-native probability headline.** Probability at the native finite layer is rational counting over finite distinction alternatives: impossible event zero, certain event one, and every event has probability in `[0,1]`. -/ theorem delta_probability_headline (N : ℕ) : prob (N := N) (fun _ => False) = 0 ∧ prob (N := N) (fun _ => True) = 1 ∧ (∀ E : Event N, 0 ≤ prob E ∧ prob E ≤ 1) ∧ (∀ E F : Event N, (∀ i, E i → F i) → prob E ≤ prob F) ∧ (∀ E F : Event N, (∀ i, ¬ (E i ∧ F i)) → prob (fun i => E i ∨ F i) = prob E + prob F) := ⟨prob_empty N, prob_univ N, fun E => ⟨prob_nonneg E, prob_le_one E⟩, fun _ _ h => prob_mono h, fun _ _ h => prob_disjoint_or h⟩The framework proves the standard properties of such finite probabilities, that the impossible event has probability zero, the certain event has probability one, and every event has probability between zero and one. delta_probability_headline · IndisputableMonolith/Foundation/PrimitiveRecognitionCalculus/DeltaProbability.lean