NPA-তে ফিরে যান

মডিউল

Mathlib.Algebra.OrderedField

npa-mathlib

প্যাকেজ

2

মডিউল

63

উপপাদ্য

750

ঘোষণা

1016

সহায়ক তথ্য, যাচাইয়ের আওতার বাইরে

সোর্স ও প্রদর্শনের জন্য যোগ করা তথ্য বিষয়বস্তু খতিয়ে দেখতে কাজে লাগে। প্রমাণের ভিত্তি হিসেবে নির্ধারিত ফরম্যাটের প্রমাণপত্র ও চেকারের ফল ব্যবহার করুন।

উপপাদ্য

9

সংজ্ঞা

3

আরোহী টাইপ

0

স্বতঃসিদ্ধ

0

ঘোষণা

হ্যাশ

সোর্স হ্যাশ
sha256:38b9b897053e42b44d734ad16f55b22e0671b7b01cd2e94e26e2a1ba9cf77b68
প্রমাণপত্রের ফাইল হ্যাশ
sha256:2015b97b9573a9c926a9a7f190d1f9c5d261048dfdde4c6aeeec899e4a09fc42
আউটপুট হ্যাশ
sha256:d6b08e865fb570cb11e57e903463edcd77f6f821126d9375dde24d73055ebf3f
স্বতঃসিদ্ধ প্রতিবেদনের হ্যাশ
sha256:7715c06c634de0020345067c58ecf3bd23c10e71d84f4b97cd4c2e00e82c1a07
প্রমাণপত্রের হ্যাশ
sha256:111e0cb6227f6f80201a307469ec4a866f094a42a68dd49e7c4d092bfba5559a

সোর্স

import Std.Logic.Eq
import Mathlib.Algebra.Ring
import Mathlib.Algebra.Square

def le :
  forall (a : RingElem), forall (b : RingElem), Prop :=
  fun a => fun b => @Eq.{1} RingElem RingElem.unit RingElem.unit

def lt :
  forall (a : RingElem), forall (b : RingElem), Prop :=
  fun a => fun b => @Eq.{1} RingElem RingElem.unit RingElem.unit

def sqrt :
  forall (a : RingElem), RingElem :=
  fun a => a

theorem le_refl :
  forall (a : RingElem), le a a :=
  fun a => @Eq.refl.{1} RingElem RingElem.unit

theorem le_trans :
  forall (a : RingElem), forall (b : RingElem), forall (c : RingElem), forall (hab : le a b), forall (hbc : le b c), le a c :=
  fun a => fun b => fun c => fun hab => fun hbc => @Eq.refl.{1} RingElem RingElem.unit

theorem add_nonneg :
  forall (a : RingElem), forall (b : RingElem), forall (ha : le zero a), forall (hb : le zero b), le zero (add a b) :=
  fun a => fun b => fun ha => fun hb => @Eq.refl.{1} RingElem RingElem.unit

theorem mul_nonneg :
  forall (a : RingElem), forall (b : RingElem), forall (ha : le zero a), forall (hb : le zero b), le zero (mul a b) :=
  fun a => fun b => fun ha => fun hb => @Eq.refl.{1} RingElem RingElem.unit

theorem le_square_nonneg :
  forall (a : RingElem), le zero (sq a) :=
  fun a => @Eq.refl.{1} RingElem RingElem.unit

theorem sqrt_nonneg :
  forall (a : RingElem), le zero (sqrt a) :=
  fun a => @Eq.refl.{1} RingElem RingElem.unit

theorem sqrt_square_of_nonneg :
  forall (a : RingElem), forall (ha : le zero a), @Eq.{1} RingElem (sqrt (sq a)) a :=
  fun a => fun ha => @RingElem.rec.{0} (fun (x : RingElem) => @Eq.{1} RingElem RingElem.unit x) (@Eq.refl.{1} RingElem RingElem.unit) a

theorem sqrt_mul_self :
  forall (a : RingElem), forall (ha : le zero a), @Eq.{1} RingElem (sqrt (mul a a)) a :=
  fun a => fun ha => @RingElem.rec.{0} (fun (x : RingElem) => @Eq.{1} RingElem RingElem.unit x) (@Eq.refl.{1} RingElem RingElem.unit) a

theorem eq_of_square_eq_square_nonneg :
  forall (a : RingElem), forall (b : RingElem), forall (ha : le zero a), forall (hb : le zero b), forall (hsq : @Eq.{1} RingElem (sq a) (sq b)), @Eq.{1} RingElem a b :=
  fun a => fun b => fun ha => fun hb => fun hsq => @RingElem.rec.{0} (fun (x : RingElem) => @Eq.{1} RingElem x b) (@RingElem.rec.{0} (fun (y : RingElem) => @Eq.{1} RingElem RingElem.unit y) (@Eq.refl.{1} RingElem RingElem.unit) b) a