← Existence And Smoothness Of The Navier–Stokes Equation (navier_stokes_existence_and_smoothness_R3)
Index of theproofnetwork/open-problems@860a535/Prove2Me/Definitions/Def_AJGames_Game.lean
qedmarket’s copy of theproofnetwork/open-problems@860a535, 1 Dec 2026original source ↗
/-From Prove2Me, definition `AJGames_Game` (https://prove2.me/definitions/c9ea9c0a-045a-4a1c-8e81-c11fbd1f68f0). Apache-2.0 per Prove2Me's terms.-/import Mathlib universe u namespace AJGames /-- Player or Opponent. -/inductive Pl | P | O deriving DecidableEq namespace Pl /-- Swap the roles. -/def flip : Pl → Pl | P => O | O => P @[simp] theorem flip_flip (p : Pl) : p.flip.flip = p := by cases p <;> rfl theorem flip_ne (p : Pl) : p.flip ≠ p := by cases p <;> decide theorem ne_iff_flip_eq {p q : Pl} : p ≠ q ↔ p.flip = q := by cases p <;> cases q <;> decide theorem flip_ne_flip {p q : Pl} : p.flip ≠ q.flip ↔ p ≠ q := by cases p <;> cases q <;> decide end Pl /-- `s` is an *alternately labelled* sequence of moves. -/def Alt {α : Type u} (lab : α → Pl) (s : List α) : Prop := List.IsChain (fun a b => lab a ≠ lab b) s /-- **Game** (Abramsky and Jagadeesan, *Games and Full Completeness for Multiplicative Linear Logic*, J. Symbolic Logic 59(2) (1994), 543–574, §3.1, Definition 2, without the infinite-play set `W`; axioms G1, G2, G3 are the three fields `nil_mem`, `prefix_closed`, `alt`): moves `M`, a labelling `λ : M → {P,O}`, and anon-empty prefix-closed set `P` of alternately labelled finite sequences. -/structure Game where M : Type u lab : M → Pl pos : Set (List M) nil_mem : [] ∈ pos prefix_closed : ∀ s t : List M, s <+: t → t ∈ pos → s ∈ pos alt : ∀ s ∈ pos, Alt lab s namespace Game /-- Linear negation `A⊥`: swap the labelling, keep the positions. -/@[reducible] def dual (A : Game) : Game where M := A.M lab := fun m => (A.lab m).flip pos := A.pos nil_mem := A.nil_mem prefix_closed := A.prefix_closed alt := fun s hs => (A.alt s hs).imp fun a b h => Pl.flip_ne_flip.2 h end Game end AJGames