enc1385Game
def
Given a finite-state three-priority tree game, construct a phase-state game that encodes each original direction followed by a one-hot target-state code, uses zero priorities before the final bit, and pulls the winning branch sets back through the projection to block-leading bits. Invalid prefixes have a deterministic fallback so every position has a legal move.
Statement
noncomputable def enc1385Game {Q : Type} [Fintype Q] (G : PrioritizedBorelGame Q 3) : PrioritizedBorelGame (Enc1385State Q) 3
- Source
- Block-encoded phase arena for arXiv:2611.10136, Conjecture 19.
- Verified
- 17 Nov 2026
- Axioms
- none listed
- Built on 3
- PrioritizedBorelGameA structure PrioritizedBorelGame (Q : Type*) (k : ℕ) representing a prioritized Borel game with state space Q and k priorities, with…
- TreeGameEdgeA structure TreeGameEdge (Q : Type*) (k : ℕ) representing an edge in a binary tree game arena with state space Q and k priorities, with…
- BorelGamePlayerThe two players in a prioritized Borel game, Eve and Adam.
- Used by 41
- prioritized_borel_phase_strategy_transferGiven an index that decodes and updates the phase branch at every reached original position, a winning phase strategy with memory M…
- prioritized_borel_expanded_play_payoffFor every original edge sequence, the phase-game prioritized payoff of its encoded sequence is equivalent to the original prioritized…
- prioritized_borel_bounded_state_history_one_state_reductionConsider a finite-state three-priority tree game. Suppose that for every tree node and current state, at most d distinct state sequences…
- prioritized_borel_encoding_follow_proper_actionsDuring the proper-prefix steps of a controlled block, the recorded action directions equal the current pending bits and every recorded…
- prioritized_borel_state_predictor_trace_trackerA predictor of the next state yields an encoded-node memory component that stays unchanged on every correct prediction and is reset on an…
- prioritized_borel_encoding_trace_extendExtending a state history by an edge extends its encoded node by the edge's direction-and-target block.
- prioritized_borel_eventually_unambiguous_segments_reductionMark edges so that every legal play uses only finitely many marked edges and any unmarked segment has its encoded trace determined by its…
- prioritized_borel_encoded_arena_wins_from_one_stateIf every one-state three-priority game has a winner using at most b memory states, then the phase-state encoded game has a winner using at…
- prioritized_borel_encoding_choice_action_traceAt a position owned by the phase strategy player, its entire block of direction-and-priority choices is the encoding of one legal original…
- prioritized_borel_encoding_follow_proper_prefixAt an original position controlled by the given player, after any number of phase-game strategy steps up to the number of states, the…
- enc1385FollowActionsThe sequence of public bits and priorities selected by a phase-game strategy in its first n steps from a specified memory and position.
- prioritized_borel_expanded_play_max_priorityThe encoded sequence has exactly the same maximal recurring priority as the original edge sequence.
- prioritized_borel_encoded_arena_forward_deterministicIn the phase-state encoded game, any two legal edges from the same state with the same branch direction have the same target state.
- enc1385BlockMovesThe phase-game actions for one original edge, with the original priority on the final bit and priority zero on preceding bits.
- prioritized_borel_encoding_actions_eq_blockA sequence of zero-priority actions followed by a final action with the original priority equals the encoded edge-action block when its…
- prioritized_borel_encoding_follow_finalAt a controlled original position, after the proper-prefix phase steps, the strategy’s final phase choice completes the code of some legal…
- prioritized_borel_encoding_real_prefix_has_nextA proper prefix of the code of a legal edge always admits a real next encoding move at the matching source position.
- prioritized_borel_expanded_play_legalThe encoded sequence of any legal original play is a legal play of the phase-state arena, with the correct initial position and…
- prioritized_borel_eventually_predicted_state_reductionIf a fixed predictor of the next state from the public node, current state and chosen direction makes only finitely many errors on every…
- prioritized_borel_no_double_cycle_segmentsIf a finite state-transition graph admits at most one closed state walk for each start and public word, segments that stay inside a…
- enc1385ReplayReplay the bit-and-priority block of an original edge from a phase-game node, state, and strategy memory, returning the resulting memory,…
- prioritized_borel_encoding_replay_block_legalThe complete encoded block of any legal original edge consists of legal phase-game edges when replayed from the matching block boundary.
- enc1385ReplayEdgesConstruct the phase-game edge sequence generated by replaying a finite sequence of direction-priority actions from a given phase position.
- enc1385FollowStarting with a phase-game memory and position, follow a fixed strategy for a specified number of phase steps, returning the resulting…
- prioritized_borel_encoding_state_code_lengthThe one-hot code of a state has length equal to the number of states.
- prioritized_borel_encoding_controlled_blockAt a position controlled by a player, following that player’s strategy in the phase game for a complete block agrees with replaying the…
- prioritized_borel_encoding_replay_boundaryReplaying an edge block from a block boundary appends its encoded bits to the phase-game node and ends at the original child node and…
- prioritized_borel_bounded_history_trace_trackerIf at most d legal state histories reach each position, an index in Fin d recovers the accumulated encoded branch from the visible…
- enc1385ExpandedPlayExpand an arbitrary sequence of original edges into phase-game edges by indexing its fixed-length direction-and-state blocks. This…
- prioritized_borel_expanded_play_branch_bitThe first bit of each encoded block is the direction of the corresponding original edge.
- prioritized_borel_encoding_allowed_is_real_when_viableWhen a real encoding move exists, every allowed move is real and the fallback cannot be used.
- prioritized_borel_follow_actions_replayIf each of the first n selected phase-game moves is legal at its selected position, replaying their direction and priority actions…
- Op1385SegmentTraceEncoded public bits of a finite original segment starting at a specified position and traversing only legal, unmarked edges.
- enc1385TraceEncode a visible node and its state history as successive blocks, each containing the visible direction followed by the one-hot code of…
- prioritized_borel_expanded_block_strategy_simulationFor an expanded sequence with matching consecutive positions and the phase strategy memory updates, full-block replay gives its memory and…
- prioritized_borel_encoding_decode_stateDecoding a valid one-hot state code recovers the original state.
- prioritized_borel_encoding_state_code_injectiveDistinct states have distinct one-hot bit codes.
- prioritized_borel_encoding_trace_lengthAn encoded state history has one fixed-length block per original edge.
- prioritized_borel_expanded_play_node_adjacencyFor any original edge sequence, consecutive encoded edges have matching tree-node endpoints; this assertion alone does not establish state…
- prioritized_borel_encoding_controlled_choices_legalAt a controlled original position, every strategy choice within one encoded block is a legal phase-game edge from the selected phase-game…
- prioritized_borel_segment_trace_trackerIf the endpoints of an unmarked segment determine its encoded trace, a memory component storing the last marked boundary and prefix…
Lean source view module on GitHub
structure Enc1385State (Q : Type) where origNode : List Bool origState : Q pending : List Bool noncomputable def enc1385StateCode {Q : Type} [Fintype Q] (q : Q) : List Bool := by classical exact List.ofFn (fun i : Fin (Fintype.card Q) => decide (i = Fintype.equivFin Q q)) noncomputable def enc1385Block {Q : Type} [Fintype Q] (e : TreeGameEdge Q 3) : List Bool := e.dir :: enc1385StateCode e.target_state noncomputable def enc1385Decode {Q : Type} [Fintype Q] (G : PrioritizedBorelGame Q 3) (bits : List Bool) : Q := by classical exact if h : ∃ q : Q, enc1385StateCode q = bits then Classical.choose h else G.init_state noncomputable def enc1385Step {Q : Type} [Fintype Q] (G : PrioritizedBorelGame Q 3) (s : Enc1385State Q) (bit : Bool) : Enc1385State Q := by let bits := s.pending ++ [bit] exact if bits.length = Fintype.card Q + 1 then ⟨s.origNode ++ [bits.headD false], enc1385Decode G bits.tail, []⟩ else ⟨s.origNode, s.origState, bits⟩ noncomputable def enc1385Real {Q : Type} [Fintype Q] (G : PrioritizedBorelGame Q 3) (s : Enc1385State Q) (bit : Bool) (prio : Fin 3) : Prop := ∃ e ∈ G.edges, e.source_node = s.origNode ∧ e.source_state = s.origState ∧ s.pending ++ [bit] <+: enc1385Block e ∧ (if (s.pending ++ [bit]).length = Fintype.card Q + 1 then prio = e.prio else prio = 0) noncomputable def enc1385Allowed {Q : Type} [Fintype Q] (G : PrioritizedBorelGame Q 3) (s : Enc1385State Q) (bit : Bool) (prio : Fin 3) : Prop := enc1385Real G s bit prio ∨ ((¬ ∃ bit' prio', enc1385Real G s bit' prio') ∧ bit = false ∧ prio = 0) lemma enc1385_allowed_exists {Q : Type} [Fintype Q] (G : PrioritizedBorelGame Q 3) (s : Enc1385State Q) : ∃ bit prio, enc1385Allowed G s bit prio := by classical by_cases h : ∃ bit prio, enc1385Real G s bit prio · obtain ⟨bit, prio, h⟩ := h exact ⟨bit, prio, Or.inl h⟩ · exact ⟨false, 0, Or.inr ⟨h, rfl, rfl⟩⟩ noncomputable def enc1385Game {Q : Type} [Fintype Q] (G : PrioritizedBorelGame Q 3) : PrioritizedBorelGame (Enc1385State Q) 3 where owner := fun vq => G.owner (vq.2.origNode, vq.2.origState) init_state := ⟨[], G.init_state, []⟩ edges := {e | e.target_state = enc1385Step G e.source_state e.dir ∧ enc1385Allowed G e.source_state e.dir e.prio} edges_outgoing := by intro v s obtain ⟨bit, prio, h⟩ := enc1385_allowed_exists G s exact ⟨⟨v, s, bit, prio, enc1385Step G s bit⟩, ⟨rfl, h⟩, rfl, rfl⟩ winning_sets := fun p => {β | (fun n => β (n * (Fintype.card Q + 1))) ∈ G.winning_sets p} winning_measurable := by intro p apply (G.winning_measurable p).preimage exact measurable_pi_lambda _ (fun n => measurable_pi_apply _)