An injection into a finite product bounds a list
ProvedReachKernel.Ashby.injection_boundapfconditional-referencereachkernel
If f maps a duplicate-free list ds injectively into pairs drawn from lists ws and as, then length(ds)≤length(ws) times length(as).
Preamble
import Definitions.Def_APFReachKernel_Ashby import Definitions.Def_APFReachKernel_ContinuationModel import Theorems.Thm_ReachKernel_Ashby_length_le_of_nodup_subset 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.injection_bound {D W E : Type} [DecidableEq W] [DecidableEq E]
(f : D → W × E) (ds : List D) (ws : List W) (as : List E)
(hds : ds.Nodup)
(hinj : ∀ d ∈ ds, ∀ d' ∈ ds, f d = f d' → d = d')
(hmem : ∀ d ∈ ds, (f d).1 ∈ ws ∧ (f d).2 ∈ as) :
ds.length ≤ ws.length * as.length := by sorry
Source
APF ReachKernel original archive f05a126714fe8d24a4377f87a7e460777555e19227087abb6c18dbe2ffae959e; ReachKernel.Ashby:[109, 138]; 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.