blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 139 | content_id stringlengths 40 40 | detected_licenses listlengths 0 16 | license_type stringclasses 2
values | repo_name stringlengths 7 55 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 6
values | visit_date int64 1,471B 1,694B | revision_date int64 1,378B 1,694B | committer_date int64 1,378B 1,694B | github_id float64 1.33M 604M ⌀ | star_events_count int64 0 43.5k | fork_events_count int64 0 1.5k | gha_license_id stringclasses 6
values | gha_event_created_at int64 1,402B 1,695B ⌀ | gha_created_at int64 1,359B 1,637B ⌀ | gha_language stringclasses 19
values | src_encoding stringclasses 2
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 1
class | length_bytes int64 3 6.4M | extension stringclasses 4
values | content stringlengths 3 6.12M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
115e8ef3966200dcd66e4b3d50775c07d454ec10 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/analysis/special_functions/exp_deriv.lean | be948bb1a5f98a805ccf403613a56223ecb5b462 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 10,782 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne
-/
import analysis.calculus.inverse
import analysis.complex.real_deriv
import analysis.special_functions.exp
/-!
# Complex a... |
45fdc9e587722132dffc0d57346908b28308bbe3 | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/data/quot.lean | 6c7f35343a55f3bfe062bf2a1ebc5d6ea18099b5 | [
"Apache-2.0"
] | permissive | SAAluthwela/mathlib | 62044349d72dd63983a8500214736aa7779634d3 | 83a4b8b990907291421de54a78988c024dc8a552 | refs/heads/master | 1,679,433,873,417 | 1,615,998,031,000 | 1,615,998,031,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 21,117 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import logic.relator
/-!
# Quotient types
This module extends the core library's treatment of quotient types (`init.data.quot`).
## Tags
quotient
-/
variables {α... |
5d09fddda5e10b1ed213f04051a518a03bbbe55e | 3f7026ea8bef0825ca0339a275c03b911baef64d | /src/data/polynomial.lean | 70f0068effaceed526a037010ca2eb3bd66c9023 | [
"Apache-2.0"
] | permissive | rspencer01/mathlib | b1e3afa5c121362ef0881012cc116513ab09f18c | c7d36292c6b9234dc40143c16288932ae38fdc12 | refs/heads/master | 1,595,010,346,708 | 1,567,511,503,000 | 1,567,511,503,000 | 206,071,681 | 0 | 0 | Apache-2.0 | 1,567,513,643,000 | 1,567,513,643,000 | null | UTF-8 | Lean | false | false | 97,900 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Jens Wagemaker
Theory of univariate polynomials, represented as `ℕ →₀ α`, where α is a commutative semiring.
-/
import data.finsupp algebra.gcd_domain ring... |
14c948009b8d9dcd660adaaa7dc3943f188ffa20 | 9b9a16fa2cb737daee6b2785474678b6fa91d6d4 | /src/category_theory/opposites.lean | 3f7d83c7630a6b184cda8be18e1ec7225aa8329f | [
"Apache-2.0"
] | permissive | johoelzl/mathlib | 253f46daa30b644d011e8e119025b01ad69735c4 | 592e3c7a2dfbd5826919b4605559d35d4d75938f | refs/heads/master | 1,625,657,216,488 | 1,551,374,946,000 | 1,551,374,946,000 | 98,915,829 | 0 | 0 | Apache-2.0 | 1,522,917,267,000 | 1,501,524,499,000 | Lean | UTF-8 | Lean | false | false | 7,226 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Stephen Morgan, Scott Morrison
import category_theory.products
import category_theory.types
namespace category_theory
universes v₁ v₂ u₁ u₂ -- declare the `v`'s first; see `ca... |
61f063013a3fda121e5a657fdc0f838fa98ac1d6 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /stage0/src/Lean/ResolveName.lean | 098cbcdac0419c78c19ecc9d7dded975924fc611 | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 9,331 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Data.OpenDecl
import Lean.Hygiene
import Lean.Modifiers
import Lean.Exception
namespace Lean
/-!
We use aliases to impleme... |
8ce6254e4ee66d390b571d71f1c393dc60587c7d | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/data/sigma/lex.lean | 237453601e331891328a214db4b3772cdff5181b | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,279 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.data.sigma.basic
import Mathlib.Lean3Lib.init.meta.default
universes u v
namespace Mathlib
namespac... |
f7c791e97eabd5fd5b91135262c6a38137db05dd | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/kernelMVarBug.lean | b2f7b770e0f2433eb739c915e0e7d07eed86aab5 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 217 | lean | -- This example used to produce
-- `error: (kernel) declaration has metavariables`
-- Because we were not registering postponed instance metavariables
def f {α : Type u} (a : α) : α :=
let g a b := a + b
g a a
|
aecfb1e46c35d335aa84b69a823d8c8cfb46d7c2 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/run/try_for1.lean | 11ceab09addad7e4784b9f050c77b13e431b5d52 | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 394 | lean | meta def f : nat → nat
| n := f (n + 1)
vm_eval try_for 100 (f 10)
vm_eval try_for 1000 (f 10)
meta def mk : nat → list nat
| 0 := []
| (n+1) := n :: mk n
example : true :=
begin
tactic.fail_if_success (guard(to_bool (try_for 1 ((mk 1000)^.length) = some 1000))),
constructor
end
example : true :=
begin
g... |
7bb6d0fc20775374431cd46025c3d35ed79ca90c | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/linear_algebra/affine_space/affine_subspace.lean | 87bf749d9b091fada13ebf111db80955fc1e724f | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 44,291 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Joseph Myers.
-/
import linear_algebra.affine_space.basic
import linear_algebra.tensor_product
import data.set.intervals.unordered_interval
/-!
# Affine spaces
This file defines affine ... |
5f7a9e06d9fa62aadf49f12117aa8ebccd288834 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/number_theory/cyclotomic/primitive_roots.lean | 34ba1d7be7705435b9b274570f407824900f8bcc | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 25,544 | lean | /-
Copyright (c) 2022 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alex Best, Riccardo Brasca, Eric Rodriguez
-/
import data.pnat.prime
import algebra.is_prime_pow
import number_theory.cyclotomic.basic
import ring_theory.adjoin.power_basis
import ri... |
b0c287f0f1d444a7f7a9788deb7a5d5a899dd688 | 453dcd7c0d1ef170b0843a81d7d8caedc9741dce | /data/buffer/basic.lean | ac2e1e1a183cb03c58d3bf843ea81e89a1665b87 | [
"Apache-2.0"
] | permissive | amswerdlow/mathlib | 9af77a1f08486d8fa059448ae2d97795bd12ec0c | 27f96e30b9c9bf518341705c99d641c38638dfd0 | refs/heads/master | 1,585,200,953,598 | 1,534,275,532,000 | 1,534,275,532,000 | 144,564,700 | 0 | 0 | null | 1,534,156,197,000 | 1,534,156,197,000 | null | UTF-8 | Lean | false | false | 1,825 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
Traversable instance for buffers.
-/
import data.buffer data.array.lemmas
import category.traversable.instances data.equiv.basic
tactic.ext
namespace buffer
open fu... |
a6488e5d97ff5bc69fa2d240f36921599b80bdf5 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/set/countable.lean | d34c75984800cc55030fb125ee04c3399daded6b | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 8,072 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
Countable sets.
-/
import data.equiv.list data.set.finite logic.function data.set.function
noncomputable theory
open function set encodable
open classical (hiding som... |
2edd1a0a63deac95b30ba62162b2958c4903ce00 | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /library/init/meta/smt/ematch.lean | 1577cabe545f3228c638b31a8fd611f259d8017c | [
"Apache-2.0"
] | permissive | bjoeris/lean | 0ed95125d762b17bfcb54dad1f9721f953f92eeb | 4e496b78d5e73545fa4f9a807155113d8e6b0561 | refs/heads/master | 1,611,251,218,281 | 1,495,337,658,000 | 1,495,337,658,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,071 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.smt.congruence_closure
import init.meta.attribute init.meta.simp_tactic
open tactic
/- Heuristic instantiation lemma -/
meta const... |
2a3c0e51809e2ac39a4509ad6b47329b9d4c7974 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch5/ex0216.lean | fcbd47e817e5297a2cdb1ef4522883e185b6a0a3 | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 102 | lean | example (x y : ℕ) (h : x = y) : y = x :=
begin
revert x y,
intros,
symmetry,
assumption
end
|
d8f14233af4f99636a75bbce152f62fb797c6d8d | bb31430994044506fa42fd667e2d556327e18dfe | /src/category_theory/filtered.lean | 2dfb410c9718d9a7ba8a9b0c8f6cd6000c17d705 | [
"Apache-2.0"
] | permissive | sgouezel/mathlib | 0cb4e5335a2ba189fa7af96d83a377f83270e503 | 00638177efd1b2534fc5269363ebf42a7871df9a | refs/heads/master | 1,674,527,483,042 | 1,673,665,568,000 | 1,673,665,568,000 | 119,598,202 | 0 | 0 | null | 1,517,348,647,000 | 1,517,348,646,000 | null | UTF-8 | Lean | false | false | 28,299 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Scott Morrison
-/
import category_theory.fin_category
import category_theory.limits.cones
import category_theory.adjunction.basic
import category_theory.category.preorder
imp... |
bc82c69413369a4fd0ee9298ebf535df354c9b15 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/smt_tests3.lean | 791c6b7624b51f5339ee4ec3e989cf501f50ed8b | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 670 | lean | def f : nat → nat
| 0 := 1
| (n+1) := f n + 1
lemma ex(a : nat) : f a ≠ 0 :=
begin
induction a,
dsimp [f], intro x, contradiction,
dsimp [f],
change nat.succ (f a) ≠ 0,
apply nat.succ_ne_zero
end
lemma ex2 (a : nat) : f a ≠ 0 :=
begin [smt]
induction a,
{ intros, ematch_using [f] },
{ repeat {ema... |
07a2a4f47c7bf2789da803bbb09d8a8436e33ba1 | 367134ba5a65885e863bdc4507601606690974c1 | /src/order/preorder_hom.lean | 17a943fa13460d8643dfa668d1bafd1061a43805 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 7,274 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
# Preorder homomorphisms
Bundled monotone functions, `x ≤ y → f x ≤ f y`.
-/
import logic.function.iterate
import order.basic
import order.bounded_lattice
import order... |
1dec1c681e9c3722c44b9dae048c2638853fcb8e | c31182a012eec69da0a1f6c05f42b0f0717d212d | /src/pseudo_normed_group/profinitely_filtered.lean | 7bc1c80253b045e1ec8e9424024e26d1c63f427c | [] | no_license | Ja1941/lean-liquid | fbec3ffc7fc67df1b5ca95b7ee225685ab9ffbdc | 8e80ed0cbdf5145d6814e833a674eaf05a1495c1 | refs/heads/master | 1,689,437,983,362 | 1,628,362,719,000 | 1,628,362,719,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 27,367 | lean | import algebra.punit_instances
import topology.algebra.group
import pseudo_normed_group.basic
import hacks_and_tricks.type_pow
import facts
/-!
# profinitely_filtered_pseudo_normed_group
The definition of a profinitely_filtered_pseudo_normed_group, and an API for this
definition.
-/
open pseudo_normed_group
open_l... |
f20128269b244454ae3d13e54e887123dcb3a76a | 4b846d8dabdc64e7ea03552bad8f7fa74763fc67 | /library/tools/super/simp.lean | ddaae27c38fa85efd8ff7dde78bfcbdb7dbc1d91 | [
"Apache-2.0"
] | permissive | pacchiano/lean | 9324b33f3ac3b5c5647285160f9f6ea8d0d767dc | fdadada3a970377a6df8afcd629a6f2eab6e84e8 | refs/heads/master | 1,611,357,380,399 | 1,489,870,101,000 | 1,489,870,101,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,503 | lean | /-
Copyright (c) 2016 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import .clause_ops .prover_state
open tactic monad
namespace super
meta def prove_using_assumption : tactic unit := do
tgt ← target,
ass ← mk_local_def `h tgt,
exact ... |
505d6b88aa8811d83658acc62549311da1c6b002 | b147e1312077cdcfea8e6756207b3fa538982e12 | /tactic/basic.lean | 4fdaa906d9a38b79b8768325f33af05091627845 | [
"Apache-2.0"
] | permissive | SzJS/mathlib | 07836ee708ca27cd18347e1e11ce7dd5afb3e926 | 23a5591fca0d43ee5d49d89f6f0ee07a24a6ca29 | refs/heads/master | 1,584,980,332,064 | 1,532,063,841,000 | 1,532,063,841,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,004 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.dlist.basic
namespace expr
open tactic
protected meta def to_pos_nat : expr → option ℕ
| `(has_one.one _) := some 1
| `(bit0 %%e) := bit0 <$> e.to_pos_... |
1c89ae5f4ebbe6d9cf4157aae5ef7f7c2f3fef20 | d320d01276642370017b4ce56793b5f73e0016f9 | /lean projects and notes/hw8_sa3tnc.lean | e6aec0b62b5f8a0438a2d1d0538d877d5d2e0a4f | [] | no_license | samiazam00/my-work | 388d815ddc7e47860375959ba31be2530be7f11e | e9a8218b2441dce00bf117d3d985d00e6ee14ec0 | refs/heads/master | 1,608,518,076,248 | 1,580,268,523,000 | 1,580,268,523,000 | 236,280,156 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,751 | lean | /-
Samreen Azam (sa3tnc)
CS 2102 F19, Homework #8, Predicate Logic & Proofs.
-/
namespace hw8
/-
#1. Equality and proofs of equality.
-/
/-
A. [10 points] Fill in the blank.
When we say that the binary equality relation,
=, on objects of any type, α, is reflexive, we
mean that for any value, a, of... |
bdd28bb233cfe1ff85ed3af7c55a282fc3ee6260 | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/data/finsupp/pointwise.lean | cd164c995fd2b23c2a2d78e4c6a3ba7576e04af2 | [
"Apache-2.0"
] | permissive | anthony2698/mathlib | 03cd69fe5c280b0916f6df2d07c614c8e1efe890 | 407615e05814e98b24b2ff322b14e8e3eb5e5d67 | refs/heads/master | 1,678,792,774,873 | 1,614,371,563,000 | 1,614,371,563,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,972 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import data.finsupp.basic
/-!
# The pointwise product on `finsupp`.
TODO per issue #1864:
We intend to remove the convolution product on finsupp, and define
it only... |
a25923a95252cb962b93ca6826bf300edb1e6678 | e1da55f4222dac91b940ca052928eaace09762da | /src/corner.lean | fc4b89eddcd117b84755302274b9bbb1975274fa | [] | no_license | b-mehta/regularity-lemma | c5826e22c280d0b073a4e62dba731f4dd3d1b69f | cf26082b0c88fa54276e6fdc3338c15e607c52c6 | refs/heads/master | 1,658,209,524,267 | 1,644,406,456,000 | 1,644,406,456,000 | 457,327,371 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 21,556 | lean | /-
Copyright (c) 2021 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import .triangle_removal
import combinatorics.additive.salem_spencer
/-!
# The corners theorem and Roth's theorem
This file proves the corners theorem and Roth's theore... |
fd67ff8fa46f0bb760bb10e051ce5803743d38af | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /07_Induction_and_Recursion.org.14.lean | 267ece5edd49a5f26111d78a656390d542c188d7 | [] | no_license | cjmazey/lean-tutorial | ba559a49f82aa6c5848b9bf17b7389bf7f4ba645 | 381f61c9fcac56d01d959ae0fa6e376f2c4e3b34 | refs/heads/master | 1,610,286,098,832 | 1,447,124,923,000 | 1,447,124,923,000 | 43,082,433 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 405 | lean | /- page 105 -/
import standard
import data.examples.vector
open nat vector prod
-- BEGIN
variables {A B : Type}
definition unzip : Π {n : nat}, vector (A × B) n → vector A n × vector B n
| zero nil := (nil, nil)
| (succ n) ((a, b)::v) :=
match unzip v with
(va, vb) := (a :: va, b :: vb)
end
example : unz... |
50e2f7edb56302070f869d7f7f84654ae341f81a | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/tactic/suggest.lean | 47ed0a70d02e534d1c3bb8a78b2ffd7d77dae893 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 20,601 | lean | /-
Copyright (c) 2019 Lucas Allen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Lucas Allen and Scott Morrison
-/
import data.mllist
import tactic.solve_by_elim
/-!
# `suggest` and `library_search`
`suggest` and `library_search` are a pair of tactics for applying l... |
361dacf05ff19bb82c7cb244581e6d18f98adb87 | 626e312b5c1cb2d88fca108f5933076012633192 | /src/group_theory/nilpotent.lean | fb140b51c454638f67ab4f29d922d587d19cc8c4 | [
"Apache-2.0"
] | permissive | Bioye97/mathlib | 9db2f9ee54418d29dd06996279ba9dc874fd6beb | 782a20a27ee83b523f801ff34efb1a9557085019 | refs/heads/master | 1,690,305,956,488 | 1,631,067,774,000 | 1,631,067,774,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,334 | lean | /-
Copyright (c) 2021 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Ines Wright
-/
import group_theory.general_commutator
import group_theory.quotient_group
/-!
# Nilpotent groups
An API for nilpotent groups, that is, groups for which... |
c5b188c44859c1daec2f58ee1604b8c49836a947 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/playground/flat_parser2.lean | 44708caf52b2dccf0c979af418dff4f03e7cd3fe | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 17,143 | lean | import init.Lean.Message init.Lean.Parser.Syntax init.Lean.Parser.Trie init.Lean.Parser.basic
import init.Lean.Parser.token
namespace Lean
namespace flatParser
open String
open Parser (Syntax Syntax.missing Syntax.atom Syntax.ident Syntax.rawNode number stringLit)
open Parser (Trie TokenMap)
def maxPrec : Nat := 1024
... |
39835314e7ddfc85b93f8a5c47356cab1c7442b6 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/matrix.lean | a4a043dd3870a657b74e7b350c2649b3fd0683f3 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 20,619 | lean | /-
Copyright (c) 2021 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth, Eric Wieser
-/
import analysis.normed_space.basic
import analysis.normed_space.pi_Lp
import analysis.inner_product_space.pi_L2
/-!
# Matrices as a normed space
In t... |
12e637a6152f6482fbb36e940045e816371d2fbe | ac1c2a2f522b0fdf854095ba00f882ca849669e7 | /library/init/meta/coinductive_predicates.lean | 5d8c8c40982b811e520af914a654a8897c4412ad | [
"Apache-2.0"
] | permissive | abliss/lean | b8b336abc8d50dbb0726dcff9dd16793c23bfbe1 | fb24cc99573c153f97a1951ee94bbbdda300b6be | refs/heads/master | 1,611,536,584,520 | 1,497,811,981,000 | 1,497,811,981,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 22,618 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl (CMU)
-/
prelude
import init.meta.expr init.meta.tactic init.meta.constructor_tactic init.meta.attribute
import init.meta.interactive
namespace name
def last_string : n... |
3d0076719f00fbfaa08b7e1e94b66b3c32afd39f | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/geometry/algebra/lie_group.lean | 279823f040536898e39501acd9b84d9bf1703be3 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 11,347 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Nicolò Cavalleri.
-/
import geometry.manifold.times_cont_mdiff
/-!
# Lie groups
A Lie group is a group that is also a smooth manifold, in which the group operations of
multiplication... |
18546cbda1c921f85114deddf4836128c6239bcf | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/default.lean | a3d2c358a9bfc1d85e974ba3ac2f584f3a703729 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 49 | lean | import algebra.group
import algebra.module.basic
|
6b893bc69d0c75eb6255e1bf240158727731a67b | 4e39e38e0c2134eafdc7ab6e0f8ca5c27795f7a2 | /00_Foundations/example.lean | e99a7ec4e666111f9cf6a7b68a4a51e5feb85e93 | [] | no_license | tcmch/cs-dm | a33c4169b8282b54653be72b9600e83ad329953c | 4d9e45e398d7ec12538fe0335c007b98f0b32403 | refs/heads/master | 1,585,694,000,689 | 1,544,118,938,000 | 1,544,118,938,000 | 152,622,502 | 0 | 0 | null | 1,539,275,269,000 | 1,539,275,269,000 | null | UTF-8 | Lean | false | false | 941 | lean | variables P Q : Prop
variable pfP : P
variable pfQ : Q
#check (and.intro pfP pfQ)
def and_comm1(P Q: Prop)(pq: P /\ Q) : (Q /\ P) :=
and.intro (and.elim_right pq) (and.elim_left pq)
#check and_comm1 P Q (and.intro pfP pfQ)
def and_comm2 : ∀ P Q: Prop, P /\ Q → Q /\ P :=
λ X Y pq,
and.intro (and.elim_right... |
bebad9e94754328edaa3fe7919752950503af355 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/algebra/infinite_sum.lean | 635e1ba677e82483812140e741e5b276c42b2b99 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 68,363 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import algebra.big_operators.intervals
import algebra.big_operators.nat_antidiagonal
import logic.encodable.lattice
import topology.algebra.mul_action
import topology... |
c4df947fc5a9f3f642a55804781cf5b473dc3094 | c8b4b578b2fe61d500fbca7480e506f6603ea698 | /src/flt_regular.lean | 15c3fcd3fe1da1827baf600e847df71802bae111 | [] | no_license | leanprover-community/flt-regular | aa7e564f2679dfd2e86015a5a9674a6e1197f7cc | 67fb3e176584bbc03616c221a7be6fa28c5ccd32 | refs/heads/master | 1,692,188,905,751 | 1,691,766,312,000 | 1,691,766,312,000 | 421,021,216 | 19 | 4 | null | 1,694,532,115,000 | 1,635,166,136,000 | Lean | UTF-8 | Lean | false | false | 649 | lean | import caseI.statement
import caseII.statement
open flt_regular
/-- Statement of Fermat's last theorem for regular primes. -/
def flt_regular.statement : Prop := ∀ ⦃a b c : ℤ⦄ ⦃p : ℕ⦄ [hpri : fact p.prime]
(hreg : @is_regular_prime p hpri) (hodd : p ≠ 2) (hprod : a * b * c ≠ 0),
a ^ p + b ^ p ≠ c ^ p
/-- Fermat'... |
f2169532b4e52df1226b4a42b16eb7abadc580db | bb31430994044506fa42fd667e2d556327e18dfe | /src/ring_theory/localization/basic.lean | aff3a6372c8cc0afb3cfac71ad875ae260e12770 | [
"Apache-2.0"
] | permissive | sgouezel/mathlib | 0cb4e5335a2ba189fa7af96d83a377f83270e503 | 00638177efd1b2534fc5269363ebf42a7871df9a | refs/heads/master | 1,674,527,483,042 | 1,673,665,568,000 | 1,673,665,568,000 | 119,598,202 | 0 | 0 | null | 1,517,348,647,000 | 1,517,348,646,000 | null | UTF-8 | Lean | false | false | 45,667 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro, Johan Commelin, Amelia Livingston, Anne Baanen
-/
import algebra.algebra.equiv
import algebra.ring.equiv
import group_theory.monoid_localization
import ring_theor... |
77788110416b71f8d6ad1ad6b165a25570986ea3 | 3f1a1d97c03bb24b55a1b9969bb4b3c619491d5a | /library/init/meta/coinductive_predicates.lean | 2d731813cccc34066318d9f3ddfcc9e14c0d6978 | [
"Apache-2.0"
] | permissive | praveenmunagapati/lean | 00c3b4496cef8e758396005013b9776bb82c4f56 | fc760f57d20e0a486d14bc8a08d89147b60f530c | refs/heads/master | 1,630,692,342,183 | 1,515,626,222,000 | 1,515,626,222,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 23,250 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl (CMU)
-/
prelude
import init.meta.expr init.meta.tactic init.meta.constructor_tactic init.meta.attribute
import init.meta.interactive
namespace name
def last_string : n... |
6e2bb397a2c169f245397f52bdbf0f60cabbe237 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/uniform_space/pi.lean | 7b0bedb535794c345cb7f00fc58ef46ab8fb93a5 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 1,910 | lean | /-
Copyright (c) 2019 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import topology.uniform_space.cauchy
import topology.uniform_space.separation
/-!
# Indexed product of uniform spaces
-/
noncomputable theory
open_locale uniformit... |
3760198b173fd0a311725d50a18ee7966d027a87 | cf39355caa609c0f33405126beee2739aa3cb77e | /library/init/meta/congr_tactic.lean | 340317e2899eeebf226026d75f68aca1d4de78fc | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 1,222 | lean | /-
Copyright (c) 2017 Daniel Selsam. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Daniel Selsam
-/
prelude
import init.meta.tactic init.meta.congr_lemma init.meta.relation_tactics init.function
namespace tactic
meta def apply_congr_core (clemma : congr_lemma) : tact... |
82ad24a6379b3b43a908ea4343c4049ca5ba03ee | c777c32c8e484e195053731103c5e52af26a25d1 | /src/category_theory/preadditive/biproducts.lean | b6f15e50a9d78437925ee1f9a72b60cc628e2bdc | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 46,175 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.group.ext
import category_theory.limits.shapes.biproducts
import category_theory.limits.preserves.shapes.binary_products
import category_theory.limits.... |
57d7d400d3db01292a68c62a3f7d796105b44ad9 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/data/finsupp/basic.lean | 9346ad0575a094bc939cd432d7937b05093ed16f | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 95,095 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Scott Morrison
-/
import algebra.big_operators.order
import algebra.module.pi
import group_theory.submonoid.basic
import algebra.big_operators.ring
import data.finset.p... |
4b8bf32c67638e31a61acfbc839855e35a3a868e | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/interactive/1313.lean | 6f729d946a5d1b81e50cfd2a0a841804c346d108 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 556 | lean | example (p q : Prop) (a : p) (b : q) : p ∧ q ∧ p :=
begin
--^ "command": "info"
end
example (p q : Prop) (a : p) (b : q) : p ∧ q ∧ p :=
begin
apply and.intro,
--^ "command": "info"
end
example (p q : Prop) (a : p) (b : q) : p ∧ q ∧ p :=
begin
apply and.intro,
--^ "command": "info"
end
e... |
cca05ea957c99c27b15ca6283ae578f46b8f5778 | 51241b440c9d9e72556bd50c272c2654f722af28 | /20170116_POPL/assoc/ac_by_simp.lean | 6bfa04d0237ed95d2401153d8dae58f08301d599 | [
"Apache-2.0"
] | permissive | jroesch/presentations | deb419a483a788fa6bf3c5b4949e151186e9ea6d | b64fd2bf65a64faf16c52729cde0436f0d2f2cca | refs/heads/master | 1,610,543,247,969 | 1,484,284,236,000 | 1,484,284,236,000 | 78,833,725 | 0 | 0 | null | 1,484,298,759,000 | 1,484,298,759,000 | null | UTF-8 | Lean | false | false | 4,352 | lean | import data.set
/-
The Lean simplifer can be also use to "flat" nested application of associatiave operators,
and "sort" associative/commutative ones.
The Lean simplifier can be viewed as a ordered rewriting system.
It can be customized with user provided lemmas.
It is well-known that we can use ordered rewriting to... |
5193267b75ab799f9a688ef99708ec3844f0ab7e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/mk_iff_of_inductive_prop.lean | c478455bd69608f90e93081f9985810779951f37 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,891 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.core
import Mathlib.tactic.lint.default
import Mathlib.PostPort
universes u_1 u_2
... |
ee7fb9898726c046e638344f561074eb434fbef1 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/ring_theory/dedekind_domain.lean | 732a640b190c3ac260ed1660e75c4ab0bf17da10 | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 44,361 | lean | /-
Copyright (c) 2020 Kenji Nakagawa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenji Nakagawa, Anne Baanen, Filippo A. E. Nuccio
-/
import ring_theory.discrete_valuation_ring
import ring_theory.fractional_ideal
import ring_theory.ideal.over
import ring_theory.int... |
8bf8b913287d21dc5d647962e92c9293595b0a04 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/ulift.lean | ad33defd3e921d6476b99c477ea4d0aeb033b641 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 2,678 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import logic.equiv.basic
/-!
# Extra lemmas about `ulift` and `plift`
In this file we provide `subsingleton`, `unique`, `decidable_eq`, and `is_empty` instances f... |
c4ca3bd6337fcb166c48a8e85e58a9d5308fcc92 | 5d95c8513fa8592ce314d1f40c23ad5eecfe1e34 | /src/algebra/identities/common.lean | 0fe8226d78b1d8d03832535d6472238030619987 | [
"Apache-2.0"
] | permissive | solovay/lean-universal | 6b792513ced2fe82218e7828400743375dd59e24 | 417ed5e1b030e547912cbfefe34df9d3d01c2b65 | refs/heads/master | 1,598,052,603,315 | 1,565,981,123,000 | 1,565,981,123,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,177 | lean | -- Copyright © 2019 François G. Dorais. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
import algebra.notations.basic
import .basic
namespace algebra
variables (α : Type*) (β : Type*)
def add_assoc [has_add α] [class.op_associative (has_add.add:α→α→α)] :
∀ (x y z : α), ... |
0fbb466d1e24f125744927cd454d4b0129909293 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/set_theory/game_auto.lean | 401493d1533d11999c3bffb27c949edd38916c9e | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,332 | lean | /-
Copyright (c) 2019 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Mario Carneiro, Isabel Longbottom, Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.set_theory.pgame
import Mathlib.PostPort
u... |
d6700e9bc6073a0adb153ac9904675b6ab1ff554 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/measure_theory/integral/divergence_theorem.lean | 251b3b2f3d9486f14624239cc9981df93c6067f6 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 30,346 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.box_integral.divergence_theorem
import analysis.box_integral.integrability
import measure_theory.integral.interval_integral
import data.set.interval... |
91ecbcbf6e8e46d39544699d00cb9a4e69047b3e | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/instances/rat.lean | eec32ff7596fa6decb52ac7037d91c7e9a75cb21 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 4,203 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import topology.metric_space.basic
import topology.instances.int
import topology.instances.nat
import topology.instances.real
/-!
# Topology on the ra... |
3ca7e96131e8d762ce9680ba22dade48c2ac42ae | dc06cc9775d64d571bf4778459ec6fde1f344116 | /src/ring_theory/noetherian.lean | 25d5afb41d71654c956486787a6b82a84b9a383e | [
"Apache-2.0"
] | permissive | mgubi/mathlib | 8c1ea39035776ad52cf189a7af8cc0eee7dea373 | 7c09ed5eec8434176fbc493e0115555ccc4c8f99 | refs/heads/master | 1,642,222,572,514 | 1,563,782,424,000 | 1,563,782,424,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 19,991 | lean | /-
Copyright (c) 2018 Mario Carneiro and Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kevin Buzzard
-/
import data.equiv.algebra
import linear_algebra.finsupp
import ring_theory.ideal_operations
import ring_theory.subring
open set lat... |
5c71350bc6297278f0831570085f7bb631765ee7 | 54a6e18abbdb2dc60326019200c15aec35794b37 | /lean/mbair.lean | a4cd0a453ccf70928554e3906c11b321e72eaf5a | [
"MIT"
] | permissive | ahelwer/formal-methods-experiments | 33326ec3f90c6595e2e215cd59981bc79c262980 | d8391d6901927f17dfcb8426fceafe46605dbae9 | refs/heads/master | 1,692,361,742,269 | 1,691,080,299,000 | 1,691,080,299,000 | 218,297,227 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,293 | lean | inductive BinTree (α : Type) where
| leaf : BinTree α
| branch : BinTree α → α → BinTree α → BinTree α
deriving Repr
def example_tree :=
BinTree.branch
(BinTree.branch
(BinTree.branch BinTree.leaf 6 BinTree.leaf)
5
(BinTree.branch BinTree.leaf 4 BinTree.leaf)
)
3
(BinTree.branch... |
f408f78a0d688407fdc2ee9cd57bd31eb7c42e71 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/algebra/module/linear_map.lean | 7dc2d0f66c5323b9e3ffccc147f9f4df36810c14 | [
"Apache-2.0"
] | permissive | troyjlee/mathlib | e18d4b8026e32062ab9e89bc3b003a5d1cfec3f5 | 45e7eb8447555247246e3fe91c87066506c14875 | refs/heads/master | 1,689,248,035,046 | 1,629,470,528,000 | 1,629,470,528,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 23,637 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nathaniel Thomas, Jeremy Avigad, Johannes Hölzl, Mario Carneiro, Anne Baanen
-/
import algebra.group.hom
import algebra.module.basic
import algebra.group_action_hom
/-!
# Linear maps and... |
84612b66332db7d17e1b64ddda892c80899640e4 | 3863d2564418bccb1859e057bf5a4ef240e75fd7 | /hott/types/pi.hlean | 19dd307109aaea4e16e13d6ebd50de59ce49bc95 | [
"Apache-2.0"
] | permissive | JacobGross/lean | 118bbb067ff4d4af48a266face2c7eb9868fa91c | eb26087df940c54337cb807b4bc6d345d1fc1085 | refs/heads/master | 1,582,735,011,532 | 1,462,557,826,000 | 1,462,557,826,000 | 46,451,196 | 0 | 0 | null | 1,462,557,826,000 | 1,447,885,161,000 | C++ | UTF-8 | Lean | false | false | 12,431 | hlean | /-
Copyright (c) 2014-15 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Partially ported from Coq HoTT
Theorems about pi-types (dependent function spaces)
-/
import types.sigma arity
open eq equiv is_equiv funext sigma unit bool is_... |
321bb11a24cb03b5329014c7a6c296fe9f86e1b5 | 59aed81a2ce7741e690907fc374be338f4f88b6f | /src/math-688/lectures/lec-2.lean | 1f3a8bfcc86118c297da24446341a6dbdbd8f324 | [] | no_license | agusakov/math-688-lean | c84d5e1423eb208a0281135f0214b91b30d0ef48 | 67dc27ebff55a74c6b5a1c469ba04e7981d2e550 | refs/heads/main | 1,679,699,340,788 | 1,616,602,782,000 | 1,616,602,782,000 | 332,894,454 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,961 | lean | /- 30 Aug 2019 -/
-- degree
-- incidence matrix
-- adjacency matrix
/-
## Definitions:
* A sequence of nonnegative integers is called `graphic` if it is the degree
sequence of a simple graph.
how does one write dn where n is a subscript?
Havel-Hakimi Theorem: Let d_1 ≥ d_2 ≥ ... ≥ d_n ≥ 0 be a (finite) sequence of... |
a9b348437a721dfeb2060d4e9e3110abc8aaebd9 | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/order/bounds.lean | 6588039d2362acb71d84b7852909e49f6746077e | [
"Apache-2.0"
] | permissive | keeferrowan/mathlib | f2818da875dbc7780830d09bd4c526b0764a4e50 | aad2dfc40e8e6a7e258287a7c1580318e865817e | refs/heads/master | 1,661,736,426,952 | 1,590,438,032,000 | 1,590,438,032,000 | 266,892,663 | 0 | 0 | Apache-2.0 | 1,590,445,835,000 | 1,590,445,835,000 | null | UTF-8 | Lean | false | false | 24,983 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Yury Kudryashov
-/
import data.set.intervals.basic
/-!
# Upper / lower bounds
In this file we define:
* `upper_bounds`, `lower_bounds` : the set of upper bounds (res... |
8f4d11fe33855f91f362f7150899bdcb9d900dab | 957a80ea22c5abb4f4670b250d55534d9db99108 | /library/init/meta/constructor_tactic.lean | 92039e2009ae911a5ea059a61ac37dd5f7258fe9 | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 3,139 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.tactic init.function
namespace tactic
/- Return target after instantiating metavars and whnf -/
private meta def target' : tactic... |
f40dcff7eca26c8ad4e1f0d9313e80a5d59aa2d4 | 5719a16e23dfc08cdea7a5bf035b81690f307965 | /stage0/src/Init/Lean/Meta/AppBuilder.lean | 898f8a6662f5a2cf09fb4b0126d2a467f078c2bc | [
"Apache-2.0"
] | permissive | postmasters/lean4 | 488b03969a371e1507e1e8a4df9ebf63c7cbe7ac | f3976fc53a883ac7606fc59357d43f4b51016ca7 | refs/heads/master | 1,655,582,707,480 | 1,588,682,595,000 | 1,588,682,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,949 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Init.Lean.Util.Recognizers
import Init.Lean.Meta.SynthInstance
namespace Lean
namespace Meta
/-- Given `e` s.t. `inferType e` is definitionally equ... |
6c80eeffbc3b45f28afaa173245224ff22540ca6 | 7bf54883c04ff2856c37f76a79599ceb380c1996 | /non-mathlib/quartic.lean | 182dc7ba9048b78acf03da9c5d5623af7d3fcd2a | [] | no_license | anonymousLeanDocsHosting/lean-polynomials | 4094466bf19acc0d1a47b4cabb60d8c21ddb2b00 | 361ef4cb7b68ef47d43b85cfa2d13f2ea0a47613 | refs/heads/main | 1,691,112,899,935 | 1,631,819,522,000 | 1,631,819,522,000 | 405,448,439 | 0 | 2 | null | null | null | null | UTF-8 | Lean | false | false | 81,302 | lean | import field_definition
import field_results
import numbers
import roots
import quadratic
import cubic
lemma not_char_four (f : Type) [myfld f] [fld_not_char_two f] :
(four f) ≠ myfld.zero :=
begin
unfold four, rw two_plus_two f,
exact mul_nonzero f (two f) (two f) fld_not_char_two.not_char_two fld_not_c... |
907a0f791d2df62358a25596434dd12815081519 | b70447c014d9e71cf619ebc9f539b262c19c2e0b | /hott/homotopy/wedge.hlean | ba1e73490f7efb3ce2f382f9493ab10616aafd7d | [
"Apache-2.0"
] | permissive | ia0/lean2 | c20d8da69657f94b1d161f9590a4c635f8dc87f3 | d86284da630acb78fa5dc3b0b106153c50ffccd0 | refs/heads/master | 1,611,399,322,751 | 1,495,751,007,000 | 1,495,751,007,000 | 93,104,167 | 0 | 0 | null | 1,496,355,488,000 | 1,496,355,487,000 | null | UTF-8 | Lean | false | false | 3,656 | hlean | /-
Copyright (c) 2016 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jakob von Raumer, Ulrik Buchholtz
The Wedge Sum of Two Pointed Types
-/
import hit.pushout .connectedness types.unit
open eq pushout pointed unit trunc_index
definition wedge (A B... |
2106d1eea49aa722bd73c46e4946619121018f59 | 75bd9c50a345718d735a7533c007cf45f9da9a83 | /src/data/mv_polynomial/variables.lean | 2c8e7f6b4207b06489f4f1d4142caa53d067c58a | [
"Apache-2.0"
] | permissive | jtbarker/mathlib | a1a3b1ddc16179826260578410746756ef18032c | 392d3e376b44265ef2dedbd92231d3177acc1fd0 | refs/heads/master | 1,671,246,411,096 | 1,600,801,712,000 | 1,600,801,712,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 19,265 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Johan Commelin, Mario Carneiro
-/
import data.mv_polynomial.basic
import data.set.disjointed
/-!
# Degrees and variables of polynomials
This file establishes many re... |
635f598f3faa23ef8ace3614cd9fb622bda0fc57 | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/lean/compiler/exportattr.lean | 92b791dd252085b065b61949a361d30b85ba389e | [
"Apache-2.0"
] | permissive | GaloisInc/lean4 | 74c267eb0e900bfaa23df8de86039483ecbd60b7 | 228ddd5fdcd98dd4e9c009f425284e86917938aa | refs/heads/master | 1,643,131,356,301 | 1,562,715,572,000 | 1,562,715,572,000 | 192,390,898 | 0 | 0 | null | 1,560,792,750,000 | 1,560,792,749,000 | null | UTF-8 | Lean | false | false | 1,274 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.lean.attributes
namespace Lean
private def isValidCppId (id : String) : Bool :=
let first := id.get 0;
first.isAlpha && (id.toSubstri... |
5dbee5ae8516079ba2ccdb4afed5f743646e596a | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/computability/turing_machine.lean | 1d1fa76fa0a679293295f7fe4f90a5e22a1f78c2 | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 109,917 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import algebra.order
import data.fintype.basic
import data.pfun
import tactic.apply_fun
import logic.function.iterate
/-!
# Turing machines
This file defines a sequ... |
b8811789d02ee1cbaa81cced91ab3859dfb97a0c | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /stage0/src/Lean/Meta.lean | 2274788ece9b0fae631b71c465be5d3b351acdb9 | [
"Apache-2.0"
] | permissive | banksonian/lean4 | 3a2e6b0f1eb63aa56ff95b8d07b2f851072d54dc | 78da6b3aa2840693eea354a41e89fc5b212a5011 | refs/heads/master | 1,673,703,624,165 | 1,605,123,551,000 | 1,605,123,551,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 745 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Basic
import Lean.Meta.LevelDefEq
import Lean.Meta.WHNF
import Lean.Meta.InferType
import Lean.Meta.FunInfo
import Lean.Meta.ExprDefEq
impo... |
217a13465fb19a054e365fa4f95a7669e7382b22 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /library/init/data/repr.lean | 646e5a0911df7476beae1068e35cd1a0c132595f | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 3,836 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import init.data.string.basic init.data.bool.basic init.data.subtype.basic
import init.data.unsigned.basic init.data.prod init.data.sum.basic init.da... |
1bc58cca820175c4fb7512559d94fb4231390197 | d1e4f66050635dc90e91499961af6648c3059f3e | /extra/demorgans law.lean | 87faa2decf91ab6db82ba9c36cfa7ae4de3a3d7e | [] | no_license | xivh/leanpractice | 26612ef7dd3cc030c348ac97ab938b0767714bd0 | a75115fc22da1e69dbe99d2bd9e90f153d2527a5 | refs/heads/master | 1,586,485,026,265 | 1,544,137,859,000 | 1,544,137,859,000 | 160,740,341 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,413 | lean | open classical
--one way DeMorgan's Law
lemma DeMorganOne : ∀ P Q : Prop, ¬ (P ∧ Q) → ¬ P ∨ ¬ Q :=
begin
assume P Q : Prop,
assume npq : ¬ (P ∧ Q),
change (P ∧ Q) → false at npq,
have pnp : P ∨ ¬ P := em P,
have qnq : Q ∨ ¬ Q := em Q,
cases pnp with p np,
cases qnq with q nq,
have pq : P ∧ Q := and.intro p... |
18680b38d82e04e8191bb951bdd7dd822a08b766 | 7282d49021d38dacd06c4ce45a48d09627687fe0 | /src/builtin/heq.lean | 9912bc3ee91fac2503d06210d2297886207ed648 | [
"Apache-2.0"
] | permissive | steveluc/lean | 5a0b4431acefaf77f15b25bbb49294c2449923ad | 92ba4e8b2d040a799eda7deb8d2a7cdd3e69c496 | refs/heads/master | 1,611,332,256,930 | 1,391,013,244,000 | 1,391,013,244,000 | 16,361,079 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,314 | lean | -- Heterogenous equality
variable heq {A B : TypeU} : A → B → Bool
infixl 50 == : heq
axiom heq_eq {A : TypeU} (a b : A) : a == b ↔ a = b
theorem to_eq {A : TypeU} {a b : A} (H : a == b) : a = b
:= (heq_eq a b) ◂ H
theorem to_heq {A : TypeU} {a b : A} (H : a = b) : a == b
:= (symm (heq_eq a b)) ◂ H
theorem hrefl {A... |
5cde05dc745843e90c5c3f161cc8b47afd2d6711 | 0c1546a496eccfb56620165cad015f88d56190c5 | /library/init/data/list/default.lean | 07e3d69e1562fa40f9cc79312ae4bf32bd8b262e | [
"Apache-2.0"
] | permissive | Solertis/lean | 491e0939957486f664498fbfb02546e042699958 | 84188c5aa1673fdf37a082b2de8562dddf53df3f | refs/heads/master | 1,610,174,257,606 | 1,486,263,620,000 | 1,486,263,620,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 247 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.data.list.basic init.data.list.instances init.data.list.lemmas
|
1f68b9d7f21477f9bd6edbe77d6e7542a2ad61ba | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Std/Data.lean | 0397c49f45fc3c09a2dbe094aa43e0ec815620d3 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 478 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Std.Data.BinomialHeap
import Std.Data.DList
import Std.Data.Stack
import Std.Data.Queue
import Std.Data.HashMap
import Std.Data.HashSet
import Std.Da... |
4c9977abd0ddd4da6170f49dfe558973fd6bc84b | b2e508d02500f1512e1618150413e6be69d9db10 | /src/ring_theory/integral_closure.lean | d4185bd063a42660606e160fa6d60e02bc8dae11 | [
"Apache-2.0"
] | permissive | callum-sutton/mathlib | c3788f90216e9cd43eeffcb9f8c9f959b3b01771 | afd623825a3ac6bfbcc675a9b023edad3f069e89 | refs/heads/master | 1,591,371,888,053 | 1,560,990,690,000 | 1,560,990,690,000 | 192,476,045 | 0 | 0 | Apache-2.0 | 1,568,941,843,000 | 1,560,837,965,000 | Lean | UTF-8 | Lean | false | false | 13,497 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Integral closure of a subring.
-/
import ring_theory.adjoin
universes u v
open polynomial submodule
variables (R : Type u) {A : Type v}
variables [comm_ring R] [comm_ring A]
... |
9b0a5866a4203d63c9d83a720f6ab94eae8287b8 | ebbdcbd7ddc89a9ef7c3b397b301d5f5272a918f | /qp/p1_categories/c3_wtypes/s1_base_change.lean | 125e5f990ba91a2a70ab6e1ad08cd7a0a502ec28 | [] | no_license | intoverflow/qvr | 34b9ef23604738381ca20b7d622fd0399d88f2dd | 0cfcd33fe4bf8d93851a00cec5bfd21e77105d74 | refs/heads/master | 1,616,591,570,371 | 1,492,575,772,000 | 1,492,575,772,000 | 80,061,627 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,096 | lean | /- -----------------------------------------------------------------------
Base change, dependent sum, and dependent product.
----------------------------------------------------------------------- -/
import ..c2_limits
namespace qp
open stdaux
universe variables ℓobj ℓhom
/- --------------------------------------... |
efcafd6814c259eeff8234e73e5169db17bd93d7 | 618003631150032a5676f229d13a079ac875ff77 | /src/data/pnat/factors.lean | 807d4937e691d1713fa0ea3533ba80472e5ef1cd | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 13,915 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Neil Strickland
-/
import data.pnat.basic
import data.multiset
import data.int.gcd
import algebra.group
/-- The type of multisets of prime numbers. Unique factorization
gives an equ... |
1d95af3ff23b61607ae3865dee02a80a3c0815a4 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/one2.lean | e7af7ca78892f62e854d6b8069fac9e4e5b65534 | [
"Apache-2.0"
] | permissive | tjiaqi/lean | 4634d729795c164664d10d093f3545287c76628f | d0ce4cf62f4246b0600c07e074d86e51f2195e30 | refs/heads/master | 1,622,323,796,480 | 1,422,643,069,000 | 1,422,643,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 401 | lean | import data.num
inductive one.{l} : Type.{l} :=
unit : one
inductive pone : Type.{0} :=
unit : pone
inductive two.{l} : Type.{max 1 l} :=
o : two,
u : two
inductive wrap.{l} : Type.{max 1 l} :=
mk : true → wrap
inductive wrap2.{l} (A : Type.{l}) : Type.{max 1 l} :=
mk : A → wrap2 A
set_option pp.universes true
ch... |
447ecb3434577a7d21df56a203dcd8607f078e4b | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/WF.lean | 1d1e1200af682bbf188e8625043fed9f88b1e731 | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 13,439 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import Init.Data.Nat.Basic
universes u v
set_option codegen false
inductive Acc {α : Sort u} (r : α → α → Prop) : α → Prop
| intro (x : α) (h : ∀ ... |
7e6c22bb5e92dc34004e6567827e5b4d71c23880 | b2fe74b11b57d362c13326bc5651244f111fa6f4 | /src/analysis/calculus/deriv.lean | 49a86241bf94f8cb8155a29525e8d04a2658806c | [
"Apache-2.0"
] | permissive | midfield/mathlib | c4db5fa898b5ac8f2f80ae0d00c95eb6f745f4c7 | 775edc615ecec631d65b6180dbcc7bc26c3abc26 | refs/heads/master | 1,675,330,551,921 | 1,608,304,514,000 | 1,608,304,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 72,900 | lean | /-
Copyright (c) 2019 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Sébastien Gouëzel
-/
import analysis.calculus.fderiv
import data.polynomial.derivative
/-!
# One-dimensional derivatives
This file defines the derivative of a function... |
b2dc5477fb972073e53aa8e38a539b0cbb1fa372 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Init/Notation.lean | 81d7c50bb544f5d5558e072917da57601782f0de | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 13,228 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
Notation for operators defined at Prelude.lean
-/
prelude
import Init.Prelude
import Init.Coe
/-- Auxiliary type used to represent syntax categories. We main... |
13676ba01a394ba42cd9cebff5dff409d358a4a4 | b29f946a2f0afd23ef86b9219116968babbb9f4f | /src/filter2.lean | 6dbcb7fa3df44b89354fd23df9017982546f2c95 | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/M1P1-lean | 58be7394fded719d95e45e6b10e1ecf2ed3c7c4c | 3723468cc50f8bebd00a9811caf25224a578de17 | refs/heads/master | 1,587,063,867,779 | 1,572,727,164,000 | 1,572,727,164,000 | 165,845,802 | 14 | 4 | Apache-2.0 | 1,549,730,698,000 | 1,547,554,675,000 | Lean | UTF-8 | Lean | false | false | 2,398 | lean | -- begin header
import limits
import order.filter
import topology.basic
import topology.instances.real
--set_option pp.notation false
--set_option trace.simplify.rewrite true
-- end header
/- Section
Sequence tending to a limit
-/
/-
Here we show that a sequence $(a_n)_n$ tends to a limit $ℓ$ iff the
cofinite filter... |
067aa178f11eea9c2b4fd4d8930cdaf488056713 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/algebra/ring.lean | 93849ba91def5392baf4a2df2d84d7df5224e89a | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 17,308 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
Structures with multiplicative and additive components, including semirings, rings, and fields.
The development is modeled after Isabelle's library.
-/... |
56b74a5e74bce4c8eaab89d1680be5c988dd9e5f | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/interactive/completion5.lean | 5d9fffe661650bb0418d2d1af73b23c2edd4daee | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 185 | lean | structure C where
f1 : Nat
f2 : Bool
b1 : String
def f (c : C) : IO Unit :=
visit c
where
visit (c : C) : IO Unit :=
let x := c.
--^ textDocument/completion
|
14fe58cd0c41f3b73a3ca1d1dae6000ac197231c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/data/nat/basic.lean | 1fbdfe539943d7e8416dbadbc80df530ac04dce4 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,411 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.logic
universes u
namespace Mathlib
namespace nat
notation:1024 "ℕ" => Mathlib... |
cdd8fe572f2ba0ca58069707970ff8ad41fc12fc | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/matrix/pequiv.lean | 43cd965d4ce0f20b8fb88df41121f8659a5c5f53 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 6,108 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.matrix.basic
import data.pequiv
/-!
# partial equivalences for matrices
Using partial equivalences to represent matrices.
This file introduces the function ... |
b9280d13f2da839eeff9d873be199a51ae566359 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/analysis/convex/gauge.lean | 46f967daad3d7c1ac157ffa89b3ace29451efcf4 | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 18,376 | lean | /-
Copyright (c) 2021 Yaël Dillies, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies, Bhavik Mehta
-/
import analysis.convex.star
import analysis.normed_space.pointwise
import analysis.seminorm
import data.complex.is_R_or_C
import tactic.congrm... |
708253897ad533e3f9bcaa5344a165c6f1332757 | 367134ba5a65885e863bdc4507601606690974c1 | /src/analysis/special_functions/polynomials.lean | a16da0b2919bcf242e4d4672af8a8a954a30c353 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 6,131 | lean | /-
Copyright (c) 2020 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker
-/
import analysis.asymptotics.asymptotic_equivalent
import analysis.asymptotics.specific_asymptotics
import data.polynomial.erase_lead
/-!
# Limits related to poly... |
535a95290fa85addb9d6e3183b2754cdc8dcf894 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/Meta/Tactic.lean | 971b9e085fba360870f79d406201702c283b0a96 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 807 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Tactic.Intro
import Lean.Meta.Tactic.Assumption
import Lean.Meta.Tactic.Contradiction
import Lean.Meta.Tactic.Apply
import Lean.Meta.Tactic... |
d9ded4e8117e0808798ac28b9057d071fb8438a4 | 9b9a16fa2cb737daee6b2785474678b6fa91d6d4 | /src/data/real/basic.lean | f062495ba23e0ae48b015797b4accda414364508 | [
"Apache-2.0"
] | permissive | johoelzl/mathlib | 253f46daa30b644d011e8e119025b01ad69735c4 | 592e3c7a2dfbd5826919b4605559d35d4d75938f | refs/heads/master | 1,625,657,216,488 | 1,551,374,946,000 | 1,551,374,946,000 | 98,915,829 | 0 | 0 | Apache-2.0 | 1,522,917,267,000 | 1,501,524,499,000 | Lean | UTF-8 | Lean | false | false | 24,496 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
The (classical) real numbers ℝ. This is a direct construction
from Cauchy sequences.
-/
import order.conditionally_complete_lattice data.real.cau_seq_completion
algeb... |
fb9e94629283575c89e10bc7a0d0d595ab6d75f2 | 367134ba5a65885e863bdc4507601606690974c1 | /src/category_theory/sites/types.lean | 40d99d804ecce2d782dbf4a412be94cda2d1616f | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 7,506 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import category_theory.sites.canonical
import category_theory.sites.sheaf_of_types
/-!
# Grothendieck Topology and Sheaves on the Category of Types
In this file we define a ... |
b2cd5e2722a423973683a639e1490aaa0b6c39cd | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/order/smul.lean | f80243dff13ee73122430251e245fc1e360acf6f | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 8,496 | lean | /-
Copyright (c) 2020 Frédéric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Frédéric Dupuis
-/
import group_theory.group_action.group
import algebra.smul_with_zero
/-!
# Ordered scalar product
In this file we define
* `ordered_smul R M` : an ordered addit... |
8e8d43e985743d40c591255c7ff7ac4b33afe065 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/system/random_auto.lean | 0a6113826493ddd2549437a5fd1a82df5b8a6b0d | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,273 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
universes u l
namespace Mathlib
/-
Basic random number generator support based on the one
av... |
6827120e88d75b06aef37a5b86b7fb943f13c9e2 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/LE.lean | cecf470432f5f4245122c35fe5f21f3bc01dea54 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 100 | lean | inductive LE' : Nat → Nat → Prop where
| refl (n : Nat) : LE' n n
#check LE'.refl
#print LE'
|
dd022899e17728e028ecbe6f3e13685e20a08e4d | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/basics/unnamed_1310.lean | 773f48faab16832de92a21533dbe59dba65a6a16 | [] | no_license | jamescheuk91/mathematics_in_lean | 09f1f87d2b0dce53464ff0cbe592c568ff59cf5e | 4452499264e2975bca2f42565c0925506ba5dda3 | refs/heads/master | 1,679,716,410,967 | 1,613,957,947,000 | 1,613,957,947,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 126 | lean | import data.real.basic
import tactic
example (a : ℝ) : 0 ≤ a^2 :=
begin
-- library_search,
exact pow_two_nonneg a
end |
1776aac34d75654c53baa085c899dd7302dbff09 | 2914802b4ed2844bcc7ef2a02cda40ec82fb975f | /hott/algebra/category/nat_trans.hlean | 3b144836732c4e65af860db3ad85031a787f265b | [
"Apache-2.0"
] | permissive | UlrikBuchholtz/lean | 60a81367f049cddb37083d3fe3e6fd2f96b7d5e7 | cc70845332e63a1f1be21dc1f96d17269fc85909 | refs/heads/master | 1,586,129,615,121 | 1,467,727,039,000 | 1,468,085,570,000 | 30,432,484 | 0 | 0 | null | 1,423,255,902,000 | 1,423,255,902,000 | null | UTF-8 | Lean | false | false | 7,489 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn, Jakob von Raumer
-/
import .functor.basic
open eq category functor is_trunc equiv sigma.ops sigma is_equiv function pi funext iso
structure nat_trans {C : Precateg... |
82c7350f34837dbab58377ed3109745cca31f537 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/newfrontend2.lean | 8ded42cfd48cc73c06e9e09a9adcbe7e2b8e6a68 | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 467 | lean | new_frontend
def foo {α} (a : Option α) (b : α) : α :=
match a with
| some a => a
| none => b
structure S :=
(x : Nat)
#check if 0 == 1 then true else false
def f (x : Nat) : Nat :=
if x < 5 then x+1 else x-1
def x := 1
#check foo x x
#check match 1 with x => x + 1
#check match 1 : Int with x => x + 1
#check ... |
83a4fb7cc83aaac8d28b78dec0f65a31482bc9bc | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/data/real/ennreal.lean | 0b44b6da27e78dd6647001a01f332c482cd71ade | [
"Apache-2.0"
] | permissive | SAAluthwela/mathlib | 62044349d72dd63983a8500214736aa7779634d3 | 83a4b8b990907291421de54a78988c024dc8a552 | refs/heads/master | 1,679,433,873,417 | 1,615,998,031,000 | 1,615,998,031,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 59,557 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl, Yury Kudryashov
-/
import data.real.nnreal
import data.set.intervals
/-!
# Extended non-negative reals
We define `ennreal = ℝ≥0∞ := with_no ℝ≥0` to be the type of exte... |
bd7431187ce651f4b8bf9c4969e565e088945539 | 29cc89d6158dd3b90acbdbcab4d2c7eb9a7dbf0f | /3.3/x33_library.lean | d53515252e95d3f0e87dc3958d1875de99ae2251 | [] | no_license | KjellZijlemaker/Logical_Verification_VU | ced0ba95316a30e3c94ba8eebd58ea004fa6f53b | 4578b93bf1615466996157bb333c84122b201d99 | refs/heads/master | 1,585,966,086,108 | 1,549,187,704,000 | 1,549,187,704,000 | 155,690,284 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,180 | lean | /- Library 3.3: Programming Semantics — Denotational Semantics -/
/- This file contains some basic material for the Hoare logic lecture, exercise, and homework.
This file contains the following concepts:
* `state`: representing the state space of an imperative program (defined as `string → ℕ`)
* `∅` is the empty s... |
cbc4f8af246c02d10f228bb84b0124abe87790ca | f5f7e6fae601a5fe3cac7cc3ed353ed781d62419 | /src/data/erased.lean | 6c197646fc5330e16923aeaa2053de132219b74d | [
"Apache-2.0"
] | permissive | EdAyers/mathlib | 9ecfb2f14bd6caad748b64c9c131befbff0fb4e0 | ca5d4c1f16f9c451cf7170b10105d0051db79e1b | refs/heads/master | 1,626,189,395,845 | 1,555,284,396,000 | 1,555,284,396,000 | 144,004,030 | 0 | 0 | Apache-2.0 | 1,533,727,664,000 | 1,533,727,663,000 | null | UTF-8 | Lean | false | false | 2,139 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
A type for VM-erased data.
-/
import data.set.basic data.equiv.basic
/-- `erased α` is the same as `α`, except that the elements
of `erased α` are erased in the VM i... |
8e7ce434a4042cfd5e5535a7649566e54ecd2645 | 39ef80a23ca45a679ce3047fabd002248e3ee410 | /src/real-analysis/06_sub_sequences.lean | a8c09889b88737b913265b61fc35af0c126e548c | [
"MIT"
] | permissive | sanjitdp/lean-projects | 5baa4d97f38b0d5af41e4960dc69ecc7c65a1e4c | 05b9a58e8bda3baebd4269536db39815a73cb123 | refs/heads/main | 1,690,059,014,811 | 1,630,696,075,000 | 1,630,696,075,000 | 399,831,128 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 3,271 | lean | import tuto_lib
/-
This file continues the elementary study of limits of sequences.
It can be skipped if the previous file was too easy, it won't introduce
any new tactic or trick.
Remember useful lemmas:
abs_le (x y : ℝ) : |x| ≤ y ↔ -y ≤ x ∧ x ≤ y
abs_add (x y : ℝ) : |x + y| ≤ |x| + |y|
abs_sub_comm (x y : ℝ) : |... |
ef1a9d4a72fbf013a9dea8ce4c207c3ae5f17a15 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/ring_theory/discriminant.lean | 1d851a10e5461d47cd1d0717a82f75d0507f7036 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 16,461 | lean | /-
Copyright (c) 2021 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca
-/
import ring_theory.trace
import ring_theory.norm
import number_theory.number_field.basic
/-!
# Discriminant of a family of vectors
Given an `A`-algebra `B` and `... |
6b4ed52eed1974dba8dd7e1ae49998cc89c04e6b | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/playground/uf1.lean | 4ae25b2f7e55d6808064cc80799000185ccaaf0b | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 4,655 | lean | def StateT (m : Type → Type) (σ : Type) (α : Type) := (Unit × σ) → m (α × σ)
namespace StateT
variables {m : Type → Type} [Monad m] {σ : Type} {α β : Type}
@[inline] protected def pure (a : α) : StateT m σ α := λ ⟨_, s⟩, pure (a, s)
@[inline] protected def bind (x : StateT m σ α) (f : α → StateT m σ β) : StateT m σ β :... |
9fbe04dc6eddf68ae0ed7defbe654abc59437bc7 | a46270e2f76a375564f3b3e9c1bf7b635edc1f2c | /10.3.lean | d7eebe86e2c9fa5b69d63d670843887c77defb57 | [
"CC0-1.0"
] | permissive | wudcscheme/lean-exercise | 88ea2506714eac343de2a294d1132ee8ee6d3a20 | 5b23b9be3d361fff5e981d5be3a0a1175504b9f6 | refs/heads/master | 1,678,958,930,293 | 1,583,197,205,000 | 1,583,197,205,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 123 | lean | instance list_has_add {α : Type*} [has_add α] : has_add (list α) := ⟨list.append⟩
#reduce [0, 2, 4] + [1, 3, 5]
|
de426f9a278d8a2531fc611ca851ea4b4a909d88 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/ring_theory/ideal/basic.lean | b085195f21f2025a67333f055fe2aa8584d28ddb | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 23,114 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Chris Hughes, Mario Carneiro
-/
import algebra.associated
import linear_algebra.basic
import order.zorn
import order.atoms
import order.compactly_generated
import tactic.abel
imp... |
3d16d517489fbfcf39317010f9b847e081b496ae | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebraic_geometry/prime_spectrum.lean | 2b9d1791aa26f8efe3cc3c68ce9732ae2e647849 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,225 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.opens
import Mathlib.ring_theory.ideal.prod
import Mathlib.linear_algebra.finsupp
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.