Visited.singleton
defimported Lean
Mark a single sub-problem a as visited.
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in variable {A : Type*} in def Visited.singleton (a : A) : Visited A
- Defined in
- EconCSLib, `Visited.singleton`
- 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.Visited.singleton← Visited.singleton (EconCSLib/Foundation/CostM/Visited.lean:75): verbatim
- Verified
- 08 Oct 2026
- Axioms
- none listed
- Built on 3
- Visited.instZeroVisited.instZero
- VisitedCost type tracking the set of sub-problem indices an algorithm touches, with
(∪, ∅)as its(+, 0)monoid. Type synonym for… - Visited.toFinset_zeroVisited.toFinset_zero
- Used by 1
- Visited.toFinset_singletonVisited.toFinset_singleton
Lean source view module on GitHub
set_option autoImplicit true in set_option relaxedAutoImplicit true in variable {A : Type*} in /-- Mark a single sub-problem `a` as visited. -/ def Visited.singleton (a : A) : Visited A := ({a} : Finset A)