AFTD Auto-Formalizing Theoretical Domains

EconCSLib.StrategicGame.uniformDist

defimported Lean

Uniform mixed strategy on a finite nonempty index type.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open Finset BigOperators in
set_option linter.unusedSectionVars false in
variable {I : Type} [Fintype I] [Nonempty I] [DecidableEq I] in
noncomputable def EconCSLib.StrategicGame.uniformDist : stdSimplex ℝ I
Defined in
EconCSLib, `EconCSLib.StrategicGame.uniformDist`
Lean proof
By xbei (from the file's git history), from github.com/gametheoryinlean/EconCSLib at 1a88f809b538 (Copyright (c) 2026 EconCSLib contributors. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.30.0.
Verified
08 Oct 2026
Axioms
none listed
Used by 2

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open Finset BigOperators in
set_option linter.unusedSectionVars false in
variable {I : Type} [Fintype I] [Nonempty I] [DecidableEq I] in
/-- Uniform mixed strategy on a finite nonempty index type. -/
noncomputable def EconCSLib.StrategicGame.uniformDist : stdSimplex ℝ I :=
  ⟨fun _ => (1 : ℝ) / (Fintype.card I : ℝ),
    fun _ => by
      have : (0 : ℝ) ≤ (Fintype.card I : ℝ) := by exact_mod_cast Nat.zero_le _
      exact div_nonneg (by norm_num) this,
    by
      have hcard_pos : 0 < (Fintype.card I : ℝ) := by
        exact_mod_cast Fintype.card_pos
      rw [Finset.sum_const, Finset.card_univ, nsmul_eq_mul]
      field_simp⟩
See it in the graphDiscuss this resultChallenge it