AFTD Auto-Formalizing Theoretical Domains

BayesianSingleItemAuction.profileSplitMeasurableEquiv

defimported Lean

Split a profile into coordinate i and its opponents.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open BayesianSingleItemAuction in
open MeasureTheory in
variable {I : Type*} in
noncomputable def BayesianSingleItemAuction.profileSplitMeasurableEquiv
    (i : I) : (∀ _ : I, ℝ) ≃ᵐ ℝ × OpponentTypeProfile I i
Defined in
EconCSLib, `BayesianSingleItemAuction.profileSplitMeasurableEquiv`
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.
What was changed in BayesianSingleItemAuction.profileSplitMeasurableEquiv
--- EconCSLib/MechanismDesign/Auction/BayesianSingleItem.lean:449 (BayesianSingleItemAuction.profileSplitMeasurableEquiv)
+++ as compiled here
@@ -1,3 +1,7 @@
-/-- Split a profile into coordinate `i` and its opponents. -/
-noncomputable def profileSplitMeasurableEquiv
+set_option autoImplicit true in
+set_option relaxedAutoImplicit true in
+open BayesianSingleItemAuction in
+open MeasureTheory in
+variable {I : Type*} in
+noncomputable def BayesianSingleItemAuction.profileSplitMeasurableEquiv
     (i : I) : (∀ _ : I, ℝ) ≃ᵐ ℝ × OpponentTypeProfile I i where
@@ -23,3 +27,3 @@
       simpa using measurable_fst
-    · simpa [reportProfile, hji] using
+    · simpa [reportProfile, hji, Function.comp_def] using
         (measurable_pi_apply (⟨j, hji⟩ : {j // j ≠ i})).comp measurable_snd
Verified
08 Oct 2026
Axioms
none listed
Built on 13
Used by 3

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open BayesianSingleItemAuction in
open MeasureTheory in
variable {I : Type*} in
/-- Split a profile into coordinate `i` and its opponents. -/
noncomputable def BayesianSingleItemAuction.profileSplitMeasurableEquiv
    (i : I) : (∀ _ : I, ℝ) ≃ᵐ ℝ × OpponentTypeProfile I i where
  toFun t := (t i, fun j => t j)
  invFun p := reportProfile i p.1 p.2
  left_inv := by
    intro t
    funext j
    by_cases hji : j = i
    · subst hji
      simp
    · simp [reportProfile, hji]
  right_inv := by
    rintro ⟨v, t⟩
    ext j
    · simp
    · simp [reportProfile, j.property]
  measurable_toFun := (measurable_pi_apply i).prodMk <|
    measurable_pi_iff.2 fun j => measurable_pi_apply j.1
  measurable_invFun := measurable_pi_iff.2 fun j => by
    by_cases hji : j = i
    · subst hji
      simpa using measurable_fst
    · simpa [reportProfile, hji, Function.comp_def] using
        (measurable_pi_apply (⟨j, hji⟩ : {j // j ≠ i})).comp measurable_snd
See it in the graphDiscuss this resultChallenge it