Buckets:
cfahlgren1/math / lean /OAI /Combinatorics /EditApproximation /Refinement /PhysicalRandomRequestBounds.lean
| import OAI.Combinatorics.EditApproximation.Refinement.PhysicalRandomDataRequest | |
| import OAI.Combinatorics.EditApproximation.Geometry.LocalRandomQueryKeys | |
| import OAI.Combinatorics.EditApproximation.Refinement.PhysicalRefinementReadWork | |
| namespace OAI | |
| namespace EditApproximation | |
| theorem physicalRandomDataRequest_keys_bounded {σ α : Type*} (source target : List α) {M J : ℕ} [NeZero M] | |
| (N P F exponent H Q : ℕ) (tau a eta kappa delta : ℚ) | |
| (passes copies pass copy T S t : ℕ) (ht : 0 < t) (htS : t ≤ S) | |
| (hpass : pass < passes) (hcopy : copy < copies) | |
| (node : PhysicalNode M J) (hbelow : node.1.val < J) | |
| (readGroup : GroupScalarKey M F Q → FiniteQuery σ) | |
| (readInteger : (ℕ × TargetInterval target.length) → ℕ → FiniteQuery σ) | |
| (q : TargetInterval target.length) (oracle) : | |
| ∀ key ∈ (physicalRandomDataRequestQuery source target N P F exponent H Q tau a eta kappa delta | |
| pass copy T S t ht node hbelow readGroup readInteger q).keys oracle, | |
| (match key with | .inl _ => True | .inr table => table.val.Bounded passes copies T S) := by | |
| unfold physicalRandomDataRequestQuery | |
| apply localRandomDataQuery_keys_all | |
| · intro input | |
| apply FiniteQuery.keys_all_mapKeys | |
| intro key _ | |
| trivial | |
| · intro input range | |
| apply FiniteQuery.keys_all_mapKeys | |
| intro key _ | |
| trivial | |
| · intro input | |
| apply FiniteQuery.keys_all_mapKeys | |
| intro key hk | |
| unfold physicalRefinementEarlierQuery at hk | |
| split_ifs at hk with hs | |
| · simp only [FiniteQuery.keys, List.mem_singleton] at hk | |
| subst key | |
| exact PhysicalTableRequest.refinement_bounded passes copies pass copy | |
| (physicalChild node hbelow input.1) T S input.2.1 input.2.2 hpass hcopy (by omega) | |
| · exact False.elim (List.not_mem_nil hk) | |
| · intro input | |
| apply FiniteQuery.keys_all_mapKeys | |
| intro key hk | |
| simp only [physicalRefinementCurrentQuery, FiniteQuery.keys, List.mem_singleton] at hk | |
| subst key | |
| exact PhysicalTableRequest.refinement_bounded passes copies pass copy | |
| (physicalChild node hbelow input.1) T S t input.2 hpass hcopy htS | |
| · intro r | |
| apply FiniteQuery.keys_all_mapKeys | |
| intro key hk | |
| exact physicalRefinementWarmupRead_keys_bounded passes copies pass copy T S t ht hpass hcopy | |
| node q node le_rfl 0 (Nat.zero_le T) r _ key hk | |
| · intro input | |
| apply FiniteQuery.keys_all_mapKeys | |
| unfold physicalRefinementMassQuery | |
| apply FiniteQuery.keys_all_collect | |
| · intro j _ key hk | |
| exact physicalRefinementWarmupRead_keys_bounded passes copies pass copy T S t ht hpass hcopy | |
| node q (physicalChild node hbelow input.1) _ j.val (Nat.le_of_lt j.isLt) input.2 _ key hk | |
| · intro values key hk | |
| exact False.elim (List.not_mem_nil hk) | |
| · intro input | |
| apply FiniteQuery.keys_all_mapKeys | |
| intro key hk | |
| exact physicalRefinementWarmupRead_keys_bounded passes copies pass copy T S t ht hpass hcopy | |
| node q (physicalChild node hbelow input.1) _ 0 (Nat.zero_le T) input.2 _ key hk | |
| end EditApproximation | |
| end OAI | |
Xet Storage Details
- Size:
- 3.05 kB
- Xet hash:
- 0c3a0032a0efeaeffc6801cd956bc014ad09d8cf4accb1729141218072a024f3
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.