Physlib.instFintypeDerivativeIndex
instanceimported Lean
Physlib.instFintypeDerivativeIndex
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in noncomputable instance Physlib.instFintypeDerivativeIndex (d k : ℕ) : Fintype (DerivativeIndex d k)
- Defined in
- Physlib, `Physlib.instFintypeDerivativeIndex`
- Lean proof
- By Juan Jose Fernandez Morales, from github.com/leanprover-community/physlib at
e411c6e89692(Copyright (c) 2026 Juan Jose Fernandez Morales. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.34.1.Physlib.instFintypeDerivativeIndex← @Physlib/SpaceAndTime/Space/Derivatives/DerivativeIndex.lean:46 (Physlib/SpaceAndTime/Space/Derivatives/DerivativeIndex.lean:46): verbatim
- Verified
- 10 Oct 2026
- Axioms
- none listed
- Built on 20
- Physlib.MultiIndex.order_zeroPhyslib.MultiIndex.order_zero
- Physlib.MultiIndex.toList_singlePhyslib.MultiIndex.toList_single
- Physlib.MultiIndexA multi-index on
dsource coordinates. - Physlib.MultiIndex.instZeroPhyslib.MultiIndex.instZero
- Physlib.MultiIndex.orderThe order
|I|of a multi-indexI, defined as the sum of its components. - Physlib.DerivativeIndexThe multi-indices on
dcoordinates of order at mostk. - Physlib.MultiIndex.toList_zeroPhyslib.MultiIndex.toList_zero
- Physlib.MultiIndex.increment_apply_samePhyslib.MultiIndex.increment_apply_same
- Physlib.MultiIndex.tail_zeroPhyslib.MultiIndex.tail_zero
- Physlib.MultiIndex.instAddPhyslib.MultiIndex.instAdd
- Physlib.MultiIndex.increment_apply_nePhyslib.MultiIndex.increment_apply_ne
- Physlib.MultiIndex.tail_increment_zeroPhyslib.MultiIndex.tail_increment_zero
- Physlib.MultiIndex.zero_applyPhyslib.MultiIndex.zero_apply
- Physlib.MultiIndex.order_incrementPhyslib.MultiIndex.order_increment
- Physlib.MultiIndex.instCoeFunForallFinNatPhyslib.MultiIndex.instCoeFunForallFinNat
- Physlib.MultiIndex.add_applyPhyslib.MultiIndex.add_apply
- Physlib.MultiIndex.tail_increment_succPhyslib.MultiIndex.tail_increment_succ
- Physlib.MultiIndex.extPhyslib.MultiIndex.ext
- Physlib.MultiIndex.toList_increment_zeroPhyslib.MultiIndex.toList_increment_zero
- Physlib.MultiIndex.order_singlePhyslib.MultiIndex.order_single
- Used by 4
- Physlib.DerivativeIndex.zero_applyPhyslib.DerivativeIndex.zero_apply
- Physlib.instZeroDerivativeIndexPhyslib.instZeroDerivativeIndex
- Physlib.instDecidableEqDerivativeIndexPhyslib.instDecidableEqDerivativeIndex
- Physlib.DerivativeIndex.coe_zeroPhyslib.DerivativeIndex.coe_zero
Lean source view module on GitHub
set_option autoImplicit true in set_option relaxedAutoImplicit true in noncomputable instance Physlib.instFintypeDerivativeIndex (d k : ℕ) : Fintype (DerivativeIndex d k) := Fintype.ofInjective (fun I : DerivativeIndex d k => fun i : Fin d => ((⟨I.1 i, by have hle_order : I.1 i ≤ I.1.order := by classical unfold Physlib.MultiIndex.order simpa using (Finset.single_le_sum (fun j _ => Nat.zero_le (I.1 j)) (by simp : i ∈ Finset.univ) : I.1 i ≤ ∑ j : Fin d, I.1 j) exact Nat.lt_succ_of_le (le_trans hle_order I.2)⟩) : Fin (k + 1))) (by intro I J h apply Subtype.ext apply Physlib.MultiIndex.ext intro i exact congrArg Fin.val (congrFun h i))