FormalConjecturesForMathlib/Analysis/SpecialFunctions/NthRoot.lean
10 declarations, 0 contain sorry, 0 declared as axioms
nth root operations
This file provides Real.nthRoot n to compute ⁿ√,
which operates as expected on negative values when n is odd.
The trap this avoids is that using rpow, (-8 : ℝ) ^ (1/3 : ℝ) = 1.
This is being upstreamed to Mathlib in leanprover-community/mathlib4#26935.
Imports (1)
Imported by 1 file
- def
Real.nthRootline 35 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,RealProof uses:
ite,Even,HPow.hPow,Inv.inv,HMul.hMul,OrderHom,SignType,SignType.sign,abs28 instances, coercions and auxiliary constants left out.
- theorem
Real.nthRoot_of_evenline 38 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Even,Real,Eq, Real.nthRoot,HPow.hPow,Inv.invProof uses:
if_pos,HMul.hMul,OrderHom,SignType,SignType.sign,abs34 instances, coercions and auxiliary constants left out.
- theorem
Real.nthRoot_of_oddline 41 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Odd,Real,Eq, Real.nthRoot,HMul.hMul,HPow.hPow,OrderHom,SignType,SignType.sign,abs,Inv.invProof uses:
if_neg,Even,Iff.mpr,Not,Nat.not_even_iff_odd56 instances, coercions and auxiliary constants left out.
- theorem
Real.nthRoot_of_odd_of_nonposline 45 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Odd,Real,LE.le,OfNat.ofNat,Eq, Real.nthRoot,HMul.hMul,HPow.hPow,Neg.neg,Inv.invProof uses:
Eq.mpr,OrderHom,SignType,SignType.sign,abs,id,congrArg, Real.nthRoot_of_odd,LT.lt,Or,LE.le.eq_or_lt,Eq.trans,congr,congrFun',sign_zero,abs_zero,neg_zero,Ne,Nat.ne_of_odd_add,zero_powand 14 more99 instances, coercions and auxiliary constants left out.
Tactic trace: 11 steps
Open to load the checked before-and-after goal states.
- theorem
Real.nthRoot_of_nonnegline 57 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Real,LE.le,OfNat.ofNat,Eq, Real.nthRoot,HPow.hPow,Inv.invProof uses:
Even,Odd,Or,Nat.even_or_odd,Or.inl,Eq.mpr,id,congrArg, Real.nthRoot_of_even,Eq.refl,Or.inr,Ne,Nat.ne_of_odd_add,HMul.hMul,OrderHom,SignType,SignType.sign,abs, Real.nthRoot_of_odd,abs_of_nonnegand 19 more84 instances, coercions and auxiliary constants left out.
Tactic trace: 9 steps
Open to load the checked before-and-after goal states.
- theorem
Real.nthRoot_neg_of_oddline 71 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Odd,Real,Eq, Real.nthRoot,Neg.negProof uses:
LE.le,OfNat.ofNat,Or,le_total,Eq.mpr,HMul.hMul,HPow.hPow,Inv.inv,id,congrArg, Real.nthRoot_of_odd_of_nonpos,Odd.neg_one_pow,neg_one_mul,neg_neg, Real.nthRoot_of_nonneg,Iff.mpr,neg_nonneg,Eq.refl,neg_nonpos51 instances, coercions and auxiliary constants left out.
Tactic trace: 5 steps
Open to load the checked before-and-after goal states.
- theorem
Real.pow_nthRootline 79 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Real,Or,And,Ne,OfNat.ofNat,LE.le,Odd,Eq,HPow.hPow, Real.nthRootProof uses:
Even,Nat.even_or_odd,Or.inl,Or.resolve_right,Iff.mpr,Not,Nat.not_odd_iff_even,Eq.mpr,Inv.inv,id,congrArg, Real.nthRoot_of_even,Real.rpow_inv_natCast_pow,Eq.refl,Or.inr,Nat.ne_of_odd_add,HMul.hMul,OrderHom,SignType,SignType.signand 10 more88 instances, coercions and auxiliary constants left out.
Tactic trace: 7 steps
Open to load the checked before-and-after goal states.
- theorem
Real.nthRoot_powline 90 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Real,Or,And,Ne,OfNat.ofNat,LE.le,Odd,Eq, Real.nthRoot,HPow.hPowProof uses:
Even,Nat.even_or_odd,Or.inl,Or.resolve_right,Iff.mpr,Not,Nat.not_odd_iff_even,Eq.mpr,Inv.inv,id,congrArg, Real.nthRoot_of_even,Real.pow_rpow_inv_natCast,Eq.refl,Or.inr,Nat.ne_of_odd_add,HMul.hMul,OrderHom,SignType,SignType.signand 11 more86 instances, coercions and auxiliary constants left out.
Tactic trace: 6 steps
Open to load the checked before-and-after goal states.
- theorem
Real.nthRoot_mul_of_even_of_nonnegline 101 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Real,Even,LE.le,OfNat.ofNat,Eq, Real.nthRoot,HMul.hMulProof uses:
of_eq_true,Eq.trans,HPow.hPow,Inv.inv,True,congr,congrArg, Real.nthRoot_of_even,Real.mul_rpow,eq_self17 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- theorem
Real.nthRoot_mul_of_oddline 106 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Real,Odd,Eq, Real.nthRoot,HMul.hMulProof uses:
Eq.mpr,HPow.hPow,OrderHom,SignType,SignType.sign,abs,Inv.inv,id,congr,congrArg,Eq.trans, Real.nthRoot_of_odd,congrFun',sign_mul,SignType.coe_mul,abs_mul,Real.mul_rpow,abs_nonneg,LE.le,Mathlib.Tactic.Ring.of_eqand 25 more76 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.