A duplicate-free sublist cannot be longer than its cover
ProvedReachKernel.Ashby.length_le_of_nodup_subsetapfconditional-referencereachkernel
For lists l and m in a type with decidable equality, if l has no duplicates and every element of l occurs in m, then length(l)≤length(m).
Preamble
import Definitions.Def_APFReachKernel_Ashby import Definitions.Def_APFReachKernel_ContinuationModel namespace ReachKernel.Ashby end ReachKernel.Ashby set_option autoImplicit false open ReachKernel ReachKernel.Ashby /-! ### Ashby's table vocabulary, verbatim in meaning -/ /-! ### Counting on lists (no Mathlib) -/
Formal statement
theorem ReachKernel.Ashby.length_le_of_nodup_subset {α : Type} [DecidableEq α] (l m : List α)
(hl : l.Nodup) (hsub : ∀ a ∈ l, a ∈ m) : l.length ≤ m.length := by sorry
Source
APF ReachKernel original archive f05a126714fe8d24a4377f87a7e460777555e19227087abb6c18dbe2ffae959e; ReachKernel.Ashby:[91, 107]; compatible source manifest2c8ccc43b416ba6e4f1b9eb02d4780b828e8dab689651eb567f7d159065cdfd2. Private conditional/reference result; no original-foundation or quantum closure.
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.