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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0e715b94cde73b4f08762de70e5445d81ab5da49 | 618003631150032a5676f229d13a079ac875ff77 | /test/doc_commands.lean | 3f77fffd3fe99b4060e71c9c6977d599d103b0d6 | [
"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 | 159 | lean | import tactic.doc_commands
open tactic
namespace bar
def foo := 5
/-- ok -/
add_decl_doc foo
#eval do
ds ← doc_string ``foo,
guard $ ds = "ok"
end bar
|
707c6150c4af62dd93e6527a7b43ee267ad3ff71 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/algebra/opposites.lean | 453a18fc44c4bff7398d75effa0614cdd686acd3 | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 23,849 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import data.opposite
import algebra.field
import algebra.group.commute
import group_theory.group_action.defs
import data.equiv.mul_add
/-!
# Algebraic operations on `αᵒᵖ`
Thi... |
52303e4ffc7ff06de36a3ad9ce889f9c88d0df4f | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/ring_theory/adjoin/basic.lean | d096a9484f91a7bc231a23030aa956b1dc6cf218 | [
"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 | 9,233 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.algebra.subalgebra
import linear_algebra.prod
/-!
# Adjoining elements to form subalgebras
This file develops the basic theory of subalgebras of an R-algebra g... |
832327be2cff26391a15c4a509f81c4615b474ff | 957a80ea22c5abb4f4670b250d55534d9db99108 | /library/init/propext.lean | bb6fde2f5645a42675c2886f157b2b77e3573de8 | [
"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 | 1,387 | 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.logic
constant propext {a b : Prop} : (a ↔ b) → a = b
/- Additional congruence lemmas. -/
universes u v
lemma forall_congr_eq {a : Sor... |
06b4e71c1b0b8a51bbed8a2cf66fa8a9bb6a764d | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/print_ax3.lean | 6101b7d62dcf8095c256d45e2f0f97f6b2532e5b | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 207 | lean | theorem foo1 : 0 = 0 :=
rfl
theorem foo2 : 0 = 0 :=
rfl
theorem foo3 : 0 = 0 :=
foo2
definition foo4 : 0 = 0 :=
eq.trans foo2 foo1
print axioms foo4
print "------"
print axioms
print "------"
print foo3
|
652f485dee2d8db03395d3a692c2a36757779420 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /tests/lean/interactive/run.lean | 422cb0360c55129c3af6158815462777aec57117 | [
"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 | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 7,263 | lean | import Lean.Data.Lsp
import Lean.Widget
open Lean
open Lean.Lsp
open Lean.JsonRpc
namespace Client
/- Client-side types for showing interactive goals. -/
structure SubexprInfo where
subexprPos : String
highlightColor? : Option String
deriving FromJson, Repr
structure Hyp where
type : Widget.TaggedText Subex... |
6cfd342c2ddfc1589ce60f6f22b24ba3c87b6f87 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /src/Lean/Data/Name.lean | c55b14082e033df234dd85f6075e8bfd3d9a341d | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,146 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
import Std.Data.HashSet
import Std.Data.RBMap
import Std.Data.RBTree
namespace Lean
instance : Coe String Name := ⟨Name.mkSimple⟩
namespace Name
@[export ... |
d4eabfcfbbd915dd391e4858df139b6e3793c356 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Compiler/IR/LiveVars.lean | e4c707943b5350315e6291ac4920396d3d9686d1 | [
"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 | 6,905 | 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.Compiler.IR.Basic
import Lean.Compiler.IR.FreeVars
namespace Lean.IR
/-! Remark: in the paper "Counting Immutable Beans" the concepts of
fr... |
4bdba6679227766f14abc6a260fc3077c25c01cf | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/finsupp/to_dfinsupp.lean | 1721a0622f4c9a9c97c68039e0fe1a844a63d548 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 11,401 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import algebra.module.equiv
import data.dfinsupp.basic
import data.finsupp.basic
/-!
# Conversion between `finsupp` and homogenous `dfinsupp`
This module provides convers... |
4873bddad616d26b1868d9197931581cf36cb864 | 94637389e03c919023691dcd05bd4411b1034aa5 | /src/inClassNotes/higherOrderFunctions/composeTest.lean | 97b04ceda29d7a44f572831d1b791908c3d15971 | [] | no_license | kevinsullivan/complogic-s21 | 7c4eef2105abad899e46502270d9829d913e8afc | 99039501b770248c8ceb39890be5dfe129dc1082 | refs/heads/master | 1,682,985,669,944 | 1,621,126,241,000 | 1,621,126,241,000 | 335,706,272 | 0 | 38 | null | 1,618,325,669,000 | 1,612,374,118,000 | Lean | UTF-8 | Lean | false | false | 4,613 | lean | /-
Let's build up to notion of
higher-order functions.
-/
namespace hidden
-- Increment functions
def inc (n : nat) := n + 1
def sqr (n : nat) := n * n
def incThenSqr (n : nat) := sqr (inc n)
/-
36 <-- sqr <-- inc <-- 5
Think of data flowing right to left
through a composition of functions:
given n (on the righ... |
dd2c2a889b42d888014081457107a5b09b79842d | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/analysis/complex/exponential.lean | 42014efce6b6b11d478f7f71edb6b7b621020acb | [
"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 | 88,648 | 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 tactic.linarith data.complex.exponential analysis.specific_limits
group_theory.quotient_group analysis.comple... |
6fefd977b0921751bd4f4f18f3284d25633de0d8 | 205f0fc16279a69ea36e9fd158e3a97b06834ce2 | /src/06_Forall/00_intro.lean | 2d993be2f3042e35265cf8325a6cbf59e8e4164c | [] | no_license | kevinsullivan/cs-dm-lean | b21d3ca1a9b2a0751ba13fcb4e7b258010a5d124 | a06a94e98be77170ca1df486c8189338b16cf6c6 | refs/heads/master | 1,585,948,743,595 | 1,544,339,346,000 | 1,544,339,346,000 | 155,570,767 | 1 | 3 | null | 1,541,540,372,000 | 1,540,995,993,000 | Lean | UTF-8 | Lean | false | false | 10,010 | lean | /-
We've met but haven't yet been
properly introduced to ∀.
Assuming P is a Type and Q is a
proposition, What does (∀ p : P,
Q) mean?
For example, what does this mean?
∀ n : nat, n + 1 ≠ 0
First, you can read ∀ n : nat
"for all values, n, of type nat."
This proposition thus asserts that,
for all natural num... |
c92c6b7ac717d689d881d1ec370dc86a628597b5 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/order/absolute_value.lean | 128c200ecb03eff6e4f11ec0a4438cd159c56193 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,009 | lean | /-
Copyright (c) 2021 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Anne Baanen
-/
import algebra.order.field
/-!
# Absolute values
This file defines a bundled type of absolute values `absolute_value R S`.
## Main definitions
* `absol... |
1ba783e8dd65644888171d37127fe285e4e19090 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/computability/primrec.lean | d0860bfbdc7af7f50c946c70325e4a503af641b3 | [
"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 | 51,980 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.equiv.list
import logic.function.iterate
/-!
# The primitive recursive functions
The primitive recursive functions are the least collection of functions
... |
eb186d97d08be6645f6a1f277f5dac55d65cfadd | 646fc4b41ca4adb82b3f7fbae3ea3c58ff496b4c | /plugin/ExamplePlugin.lean | d2da54f56e73d4c5bf4dd0c4e9749cfc52fa461f | [] | no_license | cpehle/lean4-plugin-example | 82e63420463483381c91de0705b5626a336863fa | d32d3b310645cfecf4c33acafe996755f67cf30b | refs/heads/main | 1,690,367,192,612 | 1,631,531,751,000 | 1,631,531,751,000 | 405,148,785 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 14 | lean | import Example |
be1ac3678885627516cedfc14e485b8d5cfc6be1 | 50e6ffa56cd703f20b86b116355ffd021acff51c | /06-formalizacija-dokazov/dokazi.lean | 12f5d4a734b2d16d62f2c4e81c47fdcc1bdcef4c | [] | no_license | petrare/teorija-programskih-jezikov | bf258a448ae2c3c8157f9013ffb9f4dbfa636735 | 5092c07eded87a49c87d86dd8f44c681c3451b09 | refs/heads/master | 1,607,048,747,046 | 1,577,184,046,000 | 1,577,184,046,000 | 221,446,748 | 0 | 0 | null | 1,573,645,609,000 | 1,573,645,608,000 | null | UTF-8 | Lean | false | false | 1,210 | lean | inductive naravno : Type
| nic : naravno
| nasl : naravno -> naravno
inductive seznam_naravnih_stevil : Type
| prazen : seznam_naravnih_stevil
| sestavljen : naravno -> seznam_naravnih_stevil -> seznam_naravnih_stevil
inductive seznam_dolzine : naravno -> Type
| prazen : seznam_dolzine naravno.nic
| sestavljen : ∀ n,... |
4c5035464fbc187eeb9c0985e4518aa8c93d201b | 3f7026ea8bef0825ca0339a275c03b911baef64d | /src/group_theory/coset.lean | 5a9fb7b1c9091038119f307af55cc3617ce20eb7 | [
"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 | 8,693 | lean | /-
Copyright (c) 2018 Mitchell Rowett. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mitchell Rowett, Scott Morrison
-/
import group_theory.subgroup data.equiv.basic data.quot
open set function
variable {α : Type*}
@[to_additive left_add_coset]
def left_coset [has_m... |
a45adb7b92f39ed6bf02167de23d9b2eda602b26 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /tests/lean/run/reverts_tac.lean | 9b3e0a34ab7af471acf6b3ac7909a01a8698e73b | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 552 | lean | import logic
theorem tst {a b c : Prop} : a → b → c → a ∧ b :=
begin
intros [Ha, Hb, Hc],
reverts [Hb, Ha],
intros [Hb2, Ha2],
apply (and.intro Ha2 Hb2),
end
theorem foo1 {A : Type} (a b c : A) (P : A → Prop) : P a → a = b → P b :=
begin
intros [Hp, Heq],
reverts [Heq, Hp],
intro Heq,
apply (eq.rec_o... |
e54c0b1b5cd0f2450245fc5a817bd60436297965 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/run/class3.lean | ac647a855d36cec58d9216f53738447dcfecc1db | [
"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 | 217 | lean | open tactic
section
variable {A : Type}
variable {B : Type}
variable Ha : inhabited A
variable Hb : inhabited B
include Ha Hb
theorem tst : inhabited (Prop × A × B) := by apply_instance
end
print tst
|
ae14f50a84d128bd7ecbad321ac829496a827b26 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/buffer/basic.lean | 7ae8a6654b64e83c7dc1a6116ca412d5e9bc2e81 | [
"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 | 1,974 | 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
import data.array.lemmas
import control.traversable.instances
namespace buffer
open function
variables {α : Type*} ... |
4f1c86cb247de1cb9dc51b7ce4fe7381cb1f1aad | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/finset/pi.lean | cb86fab2dba10607ded8af0e8da042a77a488420 | [] | 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,585 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.finset.basic
import Mathlib.data.multiset.pi
import Mathlib.PostPort
universes u_1 u_2... |
36a791153b1ea1804db0314677e2230a623d4111 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/field_theory/polynomial_galois_group.lean | 47bb202fbf0aa8e7203501f78c3bc5ba9e1448c7 | [
"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 | 14,603 | lean | /-
Copyright (c) 2020 Thomas Browning, Patrick Lutz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning, Patrick Lutz
-/
import field_theory.galois
/-!
# Galois Groups of Polynomials
In this file we introduce the Galois group of a polynomial, defined as
... |
38a88c31e85ce222acf2d571df55003184066f71 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/number_theory/class_number/admissible_card_pow_degree.lean | c511c307293d36a55f369b3cf31805871f175d83 | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,912 | lean | /-
Copyright (c) 2021 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import data.polynomial.degree.card_pow_degree
import field_theory.finite.basic
import number_theory.class_number.admissible_absolute_value
/-!
# Admissible absolute values... |
18258cda61c65459cf037379fc06cdc989d537ee | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/linear_algebra/trace.lean | 1eff304e71d4815f86dff83a342efa209f6137bb | [
"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 | 11,317 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Patrick Massot, Casper Putz, Anne Baanen, Antoine Labelle
-/
import linear_algebra.matrix.to_lin
import linear_algebra.matrix.trace
import linear_algebra.contraction
im... |
5d8dfd56b9e6e5505c7e359a1a7fcc7a3834f3b1 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/PPRoundtrip.lean | 7677bc324c2f47bd59a2fdc11e8d1ea6dbb06496 | [
"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 | 2,794 | lean | import Lean
new_frontend
open Lean
open Lean.Elab
open Lean.Elab.Term
open Lean.Elab.Command
open Lean.Format
open Lean.Meta
def checkM (stx : TermElabM Syntax) (optionsPerPos : OptionsPerPos := {}) : TermElabM Unit := do
let opts ← getOptions;
let stx ← stx;
let e ← elabTermAndSynthesize stx none <* throwErrorIfErro... |
933895496bf9e911d2f222782eceee87f6c838d2 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/algebra/uniform_group.lean | 2fbf010bd4a04bd511f6eb9c1d7392512fc4b069 | [
"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 | 25,870 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl
-/
import topology.uniform_space.uniform_convergence
import topology.uniform_space.uniform_embedding
import topology.uniform_space.complete_separated
imp... |
10f08a6c7f45144fe59938177ceb929a50db3cd9 | bb31430994044506fa42fd667e2d556327e18dfe | /src/topology/continuous_function/zero_at_infty.lean | 947c71539b09c6be09ff87c4264b66acfc6c62bc | [
"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 | 22,934 | lean | /-
Copyright (c) 2022 Jireh Loreaux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jireh Loreaux
-/
import topology.continuous_function.bounded
import topology.continuous_function.cocompact_map
/-!
# Continuous functions vanishing at infinity
The type of continuous ... |
7723870188c158f7571022bde73bb32bcab85d83 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/attr_at3.lean | 150fce778e1b6a2cdff412a4d9d74e70ea44478b | [
"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 | 182 | lean | namespace bla
definition f (a : nat) := a + 1
attribute f [reducible] at foo
print f
end bla
section
open foo
print bla.f
end
print bla.f
namespace foo
print bla.f
end foo
|
6d11e1004cdc631c8255ead5e64eb4aa7dc277e9 | 947b78d97130d56365ae2ec264df196ce769371a | /stage0/src/Init/Data/Random.lean | 76fe642730b9af4fc8af043030bd62bcb02e960e | [
"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 | 4,043 | 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.System.IO
import Init.Data.Int
universes u
/-
Basic random number generator support based on the one
available on the Haskell library
-... |
57cc420dd7c8db36a877b36b975698a64d1f1516 | c76cc4eaee3c806716844e49b5175747d1aa170a | /src/solutions_sheet_one.lean | ffada619c840219ad2a7ac07385758fef638382a | [] | no_license | ImperialCollegeLondon/M40002 | 0fb55848adbb0d8bc4a65ca5d7ed6edd18764c28 | a499db70323bd5ccae954c680ec9afbf15ffacca | refs/heads/master | 1,674,878,059,748 | 1,607,624,828,000 | 1,607,624,828,000 | 309,696,750 | 3 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,499 | lean |
import tactic
import data.real.basic
import data.real.irrational
-- Q1) what's the biggest element of {x ∈ ℝ | x < 1}?
theorem soln1 : ∀ a ∈ {x : ℝ | x < 1}, ∃ b ∈ {x : ℝ | x < 1}, a < b :=
begin
intro a,
rintro (ha : a < 1),
use (a + 1) / 2,
split,
{ simp,
linarith },
linarith,
end
open real
-- Q2... |
d8cc65756a4e233922f665171a38825258b16bf4 | dc253be9829b840f15d96d986e0c13520b085033 | /move_to_lib.hlean | 3c1acc93e56593b1c69cf39847960c5661558907 | [
"Apache-2.0"
] | permissive | cmu-phil/Spectral | 4ce68e5c1ef2a812ffda5260e9f09f41b85ae0ea | 3b078f5f1de251637decf04bd3fc8aa01930a6b3 | refs/heads/master | 1,685,119,195,535 | 1,684,169,772,000 | 1,684,169,772,000 | 46,450,197 | 42 | 13 | null | 1,505,516,767,000 | 1,447,883,921,000 | Lean | UTF-8 | Lean | false | false | 12,076 | hlean | -- definitions, theorems and attributes which should be moved to files in the HoTT library
import homotopy.sphere2 homotopy.cofiber homotopy.wedge hit.prop_trunc hit.set_quotient eq2 types.pointed2 algebra.graph algebra.category.functor.equivalence
open eq nat int susp pointed sigma is_equiv equiv fiber algebra trunc... |
e1def7b68875133c4254a0b07717f2035a7a682c | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Meta/FunInfo.lean | 9194fa7bd53f96b0672ea20cba3a653228af9ebf | [
"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 | 4,266 | 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.InferType
namespace Lean.Meta
@[inline] private def checkFunInfoCache (fn : Expr) (maxArgs? : Option Nat) (k : Met... |
4bcac42eb2204af871c5463264cf3b50ed60c651 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/algebra/monoid_algebra/degree.lean | a15a552b8fba11224d050d1de713583fe74b0b16 | [
"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 | 6,478 | lean | /-
Copyright (c) 2022 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import algebra.monoid_algebra.basic
/-!
# Lemmas about the `sup` and `inf` of the support of `add_monoid_algebra`
## TODO
The current plan is to state and prove lemma... |
cfef148bc94c6ce6abd5c0d6f4e62a21cb75dcd9 | e0b0b1648286e442507eb62344760d5cd8d13f2d | /tests/lean/run/KyleAlg.lean | 3fa5330d0b9f434dffe6fc4c5aa286733c9e6c63 | [
"Apache-2.0"
] | permissive | MULXCODE/lean4 | 743ed389e05e26e09c6a11d24607ad5a697db39b | 4675817a9e89824eca37192364cd47a4027c6437 | refs/heads/master | 1,682,231,879,857 | 1,620,423,501,000 | 1,620,423,501,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,485 | lean | import Lean
/- from core:
class OfNat (α : Type u) (n : Nat) where
ofNat : α
class Mul (α : Type u) where
mul : α → α → α
class Add (α : Type u) where
add : α → α → α
-/
class Inv (α : Type u) where
inv : α → α
postfix:max "⁻¹" => Inv.inv
class One (α : Type u) where
one : α
export One (one)
instance... |
b474e973ff9b7ea2540330969ade4113ad6368d5 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/data/list/cycle.lean | 4453b9a2cfbf88741433582997ed7dea0eee4468 | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,210 | lean | /-
Copyright (c) 2021 Yakov Pechersky. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yakov Pechersky
-/
import data.list.rotate
import data.finset.sort
import data.fintype.list
/-!
# Cycles of a list
Lists have an equivalence relation of whether they are rotational ... |
a1aa5144d304b35f34239057c9dd8b6aea684dea | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch2/ex0702.lean | 95377e4f086e6bbda42986e2ef3f6bc4d8aa4ee0 | [] | 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 | 53 | lean | #check list.nil
#check list.cons
#check list.append
|
3cd24cb1c80c84ba49d169d697c843b8409b553d | 682dc1c167e5900ba3168b89700ae1cf501cfa29 | /src/basicmodal/semantics/semantics.lean | 3468f5a12443c7210e2ef5ac647591fb744f2bf3 | [] | no_license | paulaneeley/modal | 834558c87f55cdd6d8a29bb46c12f4d1de3239bc | ee5d149d4ecb337005b850bddf4453e56a5daf04 | refs/heads/master | 1,675,911,819,093 | 1,609,785,144,000 | 1,609,785,144,000 | 270,388,715 | 13 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 2,344 | lean | /-
Copyright (c) 2021 Paula Neeley. All rights reserved.
Author: Paula Neeley
-/
import basicmodal.language basicmodal.syntax.syntax
import logic.basic data.set.basic
local attribute [instance] classical.prop_decidable
open form
---------------------- Semantics ----------------------
-- Definition of relational f... |
1dd8fe9825f4fa21861ab2c7d1ebe3d9a87e4235 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /stage0/src/Lean/Elab/Tactic/ElabTerm.lean | 8e838484ce2ad2b41bcb13a8220f1bda6e716401 | [
"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 | 4,728 | 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 Lean.Meta.CollectMVars
import Lean.Meta.Tactic.Apply
import Lean.Meta.Tactic.Assert
import Lean.Elab.Tactic.Basic
import Lean.Elab.SyntheticMVars
na... |
591d6cd6940865d2147e41e05cdbc085318befa4 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/adjunction/fully_faithful.lean | 2a44246edfb028777a7b3039f86f2e843417fce0 | [] | 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,318 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.adjunction.basic
import Mathlib.category_theory.conj
import Mathlib.categor... |
b1eeeeec94ae1589a655ec1e91bdbdc5ad5edabe | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/forall1.lean | ab5dd4a5a2e6ed5443871d36c871998b2a53b33b | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 70 | lean | import Int.
variable P : Int -> Bool
axiom Ax (x : Int) : P x
check Ax |
bc128bef3b67daf25b976ab3834a2042afe096e6 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/compiler/thunk.lean | 2b80fe043bb0075c5d62069ee7004acb3549d6d5 | [
"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 | 297 | lean | def compute (v : Nat) : Thunk Nat :=
⟨fun _ => let xs := List.replicate 100000 v; xs.foldl Nat.add 0⟩
@[noinline]
def test (t : Thunk Nat) (n : Nat) : Nat :=
n.repeat (fun r => t.get + r) 0
def main (xs : List String) : IO UInt32 :=
IO.println (toString (test (compute 1) 100000)) *>
pure 0
|
ae03d477b535b16126b41266875ccfaa257c9d0e | 1fbca480c1574e809ae95a3eda58188ff42a5e41 | /src/util/data/minimum/basic.lean | 2f210c0d708acbe9abae538c4a53447d28ac0700 | [] | no_license | unitb/lean-lib | 560eea0acf02b1fd4bcaac9986d3d7f1a4290e7e | 439b80e606b4ebe4909a08b1d77f4f5c0ee3dee9 | refs/heads/master | 1,610,706,025,400 | 1,570,144,245,000 | 1,570,144,245,000 | 99,579,229 | 5 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,413 | lean |
import data.set
import data.set.basic
import util.meta.tactic.basic
import util.data.order
open nat
universe variables u
class has_minimum (α : Type u) extends partial_order α :=
(minimum : set α → α)
(minimum_mem : ∀ s, s ≠ ∅ → minimum s ∈ s)
(minimum_le : ∀ s x, x ∈ s → minimum s ≤ x)
(le_minimum_of_foral... |
95c579d6d6df71a7c087d1045f3ea7f610771557 | 1446f520c1db37e157b631385707cc28a17a595e | /src/Init/Lean/Meta/ExprDefEq.lean | e860144e5a6c82208b9bdcacb4c79d66a424ca58 | [
"Apache-2.0"
] | permissive | bdbabiak/lean4 | cab06b8a2606d99a168dd279efdd404edb4e825a | 3f4d0d78b2ce3ef541cb643bbe21496bd6b057ac | refs/heads/master | 1,615,045,275,530 | 1,583,793,696,000 | 1,583,793,696,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 40,354 | 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.ProjFns
import Init.Lean.Meta.WHNF
import Init.Lean.Meta.InferType
import Init.Lean.Meta.FunInfo
import Init.Lean.Meta.LevelDefEq
i... |
31918a854743517e7ef1e9ac8e834fc894d182ef | 46125763b4dbf50619e8846a1371029346f4c3db | /src/topology/maps.lean | ab49f0d21ef1bc162d3a4918cf918a90a42cd5e7 | [
"Apache-2.0"
] | permissive | thjread/mathlib | a9d97612cedc2c3101060737233df15abcdb9eb1 | 7cffe2520a5518bba19227a107078d83fa725ddc | refs/heads/master | 1,615,637,696,376 | 1,583,953,063,000 | 1,583,953,063,000 | 246,680,271 | 0 | 0 | Apache-2.0 | 1,583,960,875,000 | 1,583,960,875,000 | null | UTF-8 | Lean | false | false | 15,712 | 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, Patrick Massot
-/
import topology.order
/-!
# Specific classes of maps between topological spaces
This file introduces the following properties of a m... |
53ef1b2116dd8dfc2af824cb0d87fd8fb468cc86 | b32d3853770e6eaf06817a1b8c52064baaed0ef1 | /src/super/debug.lean | afebaae8531a4f35d1d2dc39014ece9cca7b73c7 | [] | no_license | gebner/super2 | 4d58b7477b6f7d945d5d866502982466db33ab0b | 9bc5256c31750021ab97d6b59b7387773e54b384 | refs/heads/master | 1,635,021,682,021 | 1,634,886,326,000 | 1,634,886,326,000 | 225,600,688 | 4 | 2 | null | 1,598,209,306,000 | 1,575,371,550,000 | Lean | UTF-8 | Lean | false | false | 500 | lean | import super.utils
namespace super
def debugging_enabled : bool :=
tt
open tactic
@[inline] def if_debug {α} (debug no_debug : α) :=
by do to_expr ```(if debugging_enabled then debug else no_debug) >>= whnf >>= exact
@[inline] def when_debug {m} [monad m] (tac : m unit) : m unit :=
if_debug tac (pure ())
@[inline]... |
3b11610e9e44ad7006272001ab59573d1ee08e66 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/normed_space/star/basic.lean | 5051945464265810fd5ed81274552c42cc5510df | [
"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 | 8,973 | lean | /-
Copyright (c) 2021 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 analysis.normed.group.hom
import analysis.normed_space.basic
import analysis.normed_space.linear_isometry
import algebra.star.self_adjoint
import algebra.st... |
218a18ff6d521890e63757289960c2f6c6477b35 | c45b34bfd44d8607a2e8762c926e3cfaa7436201 | /uexp/src/uexp/TDP_test.lean | 6765107cc60a6db3e71165807405e14afcd773db | [
"BSD-2-Clause"
] | permissive | Shamrock-Frost/Cosette | b477c442c07e45082348a145f19ebb35a7f29392 | 24cbc4adebf627f13f5eac878f04ffa20d1209af | refs/heads/master | 1,619,721,304,969 | 1,526,082,841,000 | 1,526,082,841,000 | 121,695,605 | 1 | 0 | null | 1,518,737,210,000 | 1,518,737,210,000 | null | UTF-8 | Lean | false | false | 1,650 | lean | import .TDP
import .cosette_tactics
open list io
example {p q r s} {f : Tuple p → Tuple q → Tuple r → Tuple s → usr}
: (∑ (a : Tuple p) (b : Tuple q) (c : Tuple r) (d : Tuple s), f a b c d)
= (∑ (c : Tuple r) (a : Tuple p) (d : Tuple s) (b : Tuple q), f a b c d) :=
begin
TDP' tactic.ac_refl,
end
example {p} {R... |
a6e0855ba8ed9c3858140c7b3d151501ccc2aee3 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/data/array/lemmas.lean | ded639b3c34ab1ba38fec729922dcadfdb73abf2 | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 9,466 | 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, Mario Carneiro
-/
import data.list.basic category.traversable.equiv data.vector2
universes u w
namespace d_array
variables {n : ℕ} {α : fin n → Type u}
ins... |
2dc3e49c0ccf7129382868c15d99ca43cded8919 | 2c41ae31b2b771ad5646ad880201393f5269a7f0 | /Lean/Qualities/KeyPersonnel.lean | 5a3aaeb0d673eafcf1bdcdac9a5114a6e4a8df00 | [] | no_license | kevinsullivan/Boehm | 926f25bc6f1a8b6bd47d333d936fdfc278228312 | 55208395bff20d48a598b7fa33a4d55a2447a9cf | refs/heads/master | 1,586,127,134,302 | 1,488,252,326,000 | 1,488,252,326,000 | 32,836,930 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 571 | lean | -- KeyPersonnel
/-
[KeyPersonnel] is parameterized by an instance of type [SystemType], and it's a sub-attribute to [Efficient].
-/
import SystemModel.System
inductive KeyPersonnel (sys_type: SystemType): Prop
| intro : (exists keyPersonnel: sys_type ^.Contexts -> sys_type ^.Phases -> sys_type ^.Stakeholders... |
0959bd1eefbb8996182ab947bc21e2fbc89e3a94 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/data/equiv/mul_add.lean | ce813e1f8e06043c327d93b8249ffb848d6180e9 | [
"Apache-2.0"
] | permissive | mcncm/mathlib | 8d25099344d9d2bee62822cb9ed43aa3e09fa05e | fde3d78cadeec5ef827b16ae55664ef115e66f57 | refs/heads/master | 1,672,743,316,277 | 1,602,618,514,000 | 1,602,618,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 19,134 | 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, Callum Sutton, Yury Kudryashov
-/
import data.equiv.basic
import deprecated.group
import algebra.group.hom
/-!
# Multiplicative and additive equivs
In this file we de... |
cf8ae6bb31b4ab4740558e9f1e3d1bede24ff21f | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/analysis/analytic/basic.lean | 9f0a2852094b4696dd3c2111f45919ad0e01ec4f | [
"Apache-2.0"
] | permissive | DanielFabian/mathlib | efc3a50b5dde303c59eeb6353ef4c35a345d7112 | f520d07eba0c852e96fe26da71d85bf6d40fcc2a | refs/heads/master | 1,668,739,922,971 | 1,595,201,756,000 | 1,595,201,756,000 | 279,469,476 | 0 | 0 | null | 1,594,696,604,000 | 1,594,696,604,000 | null | UTF-8 | Lean | false | false | 37,970 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.calculus.times_cont_diff
import tactic.omega
import analysis.special_functions.pow
/-!
# Analytic functions
A function is analytic in one dime... |
591f731072173be8ed3b40cabd27878b4d2c549c | c062f1c97fdef9ac746f08754e7d766fd6789aa9 | /algebra/lattice/bounded_lattice.lean | f0fa6c4671ef9b43ef252b7bff5363eb99beda08 | [] | no_license | emberian/library_dev | 00c7a985b21bdebe912f4127a363f2874e1e7555 | f3abd7db0238edc18a397540e361a1da2f51503c | refs/heads/master | 1,624,153,474,804 | 1,490,147,180,000 | 1,490,147,180,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,923 | 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
Defines bounded lattice type class hierarchy.
Includes the Prop and fun instances.
-/
import .basic
universes u v
variable {α : Type u}
namespace lattice
/- Bounde... |
1456dc6490a67c83d7c9262b1665dbbbce3b9752 | e0b0b1648286e442507eb62344760d5cd8d13f2d | /stage0/src/Lean/Meta/Tactic/Cases.lean | 8a2a51dad4cda3dba21ab840c95c57b35345c1fe | [
"Apache-2.0"
] | permissive | MULXCODE/lean4 | 743ed389e05e26e09c6a11d24607ad5a697db39b | 4675817a9e89824eca37192364cd47a4027c6437 | refs/heads/master | 1,682,231,879,857 | 1,620,423,501,000 | 1,620,423,501,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,408 | 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 Lean.Meta.AppBuilder
import Lean.Meta.Tactic.Induction
import Lean.Meta.Tactic.Injection
import Lean.Meta.Tactic.Assert
import Lean.Meta.Tactic.Subst... |
5bbb4309352c384d783f256a94ea8cb274479a5b | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/integration.lean | ac763e3ca7fc6a53be621739990fb5830c368f0e | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 5,062 | lean | /-
Copyright (c) 2021 Benjamin Davidson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Benjamin Davidson
-/
import analysis.special_functions.integrals
open interval_integral real
open_locale real
/-! ### Simple functions -/
/- constants -/
example : ∫ x : ℝ in 8..... |
8aeea375b904d98bad0783308f25b3716e9eed39 | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/lean/compiler/ir/livevars.lean | 26c8a53c834f743f93124bca5f7448bee83a6122 | [
"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 | 6,932 | 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.compiler.ir.basic
import init.lean.compiler.ir.freevars
import init.control.reader
import init.control.conditional
namespace Lean
... |
053ac1524452e4bbe50318bef72f882d6817f494 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Meta/Tactic/Acyclic.lean | 58de1b70cec9081b6cf8df8dc7a4fba386bea320 | [
"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 | 1,939 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.MatchUtil
import Lean.Meta.Tactic.Simp.Main
namespace Lean.MVarId
open Meta
private def isTarget (lhs rhs : Expr) : MetaM Bool := do
if... |
5e035fe51e2ef7cf7362da508a658bd727456ee3 | c9e78e68dc955b2325401aec3a6d3240cd8b83f4 | /src/justification.lean | b13d4b735384e959a4be5fb6b12dff980d89c315 | [] | no_license | loganrjmurphy/lean-strategies | 4b8dd54771bb421c929a8bcb93a528ce6c1a70f1 | 832ea28077701b977b4fc59ed9a8ce6911654e59 | refs/heads/master | 1,682,732,168,860 | 1,621,444,295,000 | 1,621,444,295,000 | 278,458,841 | 3 | 0 | null | 1,613,755,728,000 | 1,594,324,763,000 | Lean | UTF-8 | Lean | false | false | 3,426 | lean | import data.set
variables {α β: Type}
def Property (α : Type) : Type := α → Prop
structure Claim (α : Type) :=
(X : set α)
(P : Property α)
@[instance] def claim_default {α : Type} : inhabited (Claim α) :=
⟨Claim.mk ∅ (λ x, true)⟩
@[reducible]
def meaning {α : Type} (C : Claim α) : Prop :=
∀ x ∈ C.X, C.P x
... |
9a1b968e6471529283943d571cd9c840fc46bffc | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/set_theory/cardinal.lean | 0bd2c464ad97f39ec4d192a4abee10fa2f4b73e7 | [
"Apache-2.0"
] | permissive | JLimperg/aesop3 | 306cc6570c556568897ed2e508c8869667252e8a | a4a116f650cc7403428e72bd2e2c4cda300fe03f | refs/heads/master | 1,682,884,916,368 | 1,620,320,033,000 | 1,620,320,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 51,959 | 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, Floris van Doorn
-/
import data.set.countable
import set_theory.schroeder_bernstein
import data.fintype.card
import data.nat.enat
/-!
# Cardinal Number... |
8f2034a634153414cba9b6296cf131556a50daf8 | e61a235b8468b03aee0120bf26ec615c045005d2 | /stage0/src/Init/Data/Queue/Basic.lean | 5faa6573f64a8c273927cf074476bb240da4f6c6 | [
"Apache-2.0"
] | permissive | SCKelemen/lean4 | 140dc63a80539f7c61c8e43e1c174d8500ec3230 | e10507e6615ddbef73d67b0b6c7f1e4cecdd82bc | refs/heads/master | 1,660,973,595,917 | 1,590,278,033,000 | 1,590,278,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 965 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Daniel Selsam
Simple queue implemented using two lists.
Note: this is only a temporary placeholder.
-/
prelude
import Init.Data.Array
import Init.Data.Int
universes u v w
stru... |
b54c806244287fd608781677eb33feb1ad6d616e | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/geometry/algebra/lie_group.lean | 08476506d460fe17ece98bd554bab96e0fe38484 | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 11,380 | 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... |
c94588fa3aff82a1bdd51bd827964872e6bcbe6b | 618003631150032a5676f229d13a079ac875ff77 | /src/tactic/default.lean | bdc0ae670103407dc97b56ba5dc3f5dda96b3398 | [
"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 | 903 | lean | /-
This file imports many useful tactics ("the kitchen sink").
You can use `import tactic` at the beginning of your file to get everything.
(Although you may want to strip things down when you're polishing.)
Because this file imports some complicated tactics, it has many transitive dependencies
(which of course may n... |
f1fa47f6d282e5a793af40c396c114319d496f84 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/data/nat/examples/partial_sum.lean | 4c0a3cadbda3ec5571c215770727019a019041c6 | [
"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 | 1,161 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
import data.nat
open nat
definition partial_sum : nat → nat
| 0 := 0
| (succ n) := succ n + partial_sum n
example : partial_sum 5 = 15 :=
rfl
examp... |
a3197fea09eca0909741c4d2e46798f2440cb49a | 618003631150032a5676f229d13a079ac875ff77 | /src/data/finmap.lean | 405221b0939cbc99291afc6c03632b47d10c470b | [
"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 | 18,200 | lean | /-
Copyright (c) 2018 Sean Leather. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sean Leather, Mario Carneiro
Finite maps over `multiset`.
-/
import data.list.alist
import data.finset
import data.pfun
universes u v w
open list
variables {α : Type u} {β : α → Type v... |
1a84aed9598ddb23dab584d550d1bf81cb545bfa | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/coeIssue3.lean | 0a9c5c6b4c4f19d54bbd5ba6e612c65d75a92117 | [
"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 | 504 | lean | structure Var : Type := (name : String)
instance Var.nameCoe : Coe String Var := ⟨Var.mk⟩
structure A : Type := (u : Unit)
structure B : Type := (u : Unit)
def a : A := A.mk ()
def b : B := B.mk ()
def Foo.chalk : A → List Var → Unit := fun _ _ => ()
def Bar.chalk : B → Unit := fun _ => ()
instance listCoe {α β} [C... |
86ce879c58ed92083482587944ad8465a49eafd1 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/topology/uniform_space/separation.lean | ebaa30918477e7306192c1f090cd28fe79bd7a7a | [
"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 | 22,525 | 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, Patrick Massot
-/
import topology.uniform_space.basic
import tactic.apply_fun
/-!
# Hausdorff properties of uniform spaces. Separation quotient.
This file studies un... |
2e61f47c9554c7d205d5490200e119c12e1a3219 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/linear_algebra/affine_space/affine_equiv.lean | 8e6ab93d2c543c0508af8c78f7f79ba9cb32fe1d | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,096 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import linear_algebra.affine_space.affine_map
import algebra.invertible
/-!
# Affine equivalences
In this file we define `affine_equiv k P₁ P₂` (notation: `... |
8f566702d726f6325b93fe522c09ef000188cbb4 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /src/Lean/Parser/Extra.lean | d0dd8f88c0c46a13e83433d43147eeaaa60696eb | [
"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 | 3,012 | 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.Parser.Basic
-- necessary for auto-generation
import Lean.PrettyPrinter.Parenthesizer
import Lean.PrettyPrinter.Formatter
... |
ab0be323355a24e0d8c3657740ac60a896dbd9bf | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/algebra/lie/nilpotent.lean | 7f9584eef7148725fac91a982c2473c7cd76882f | [
"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 | 7,756 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.lie.solvable
import linear_algebra.eigenspace
/-!
# Nilpotent Lie algebras
Like groups, Lie algebras admit a natural concept of nilpotency. More generally,... |
f1540b1788712d532eb488fb76c685ef1de11ae3 | 4e0d7c3132ce31edc5829849735dd25db406b144 | /lean/love05_inductive_predicates_demo.lean | 02fe7318ad5626779741f5f4fe2aa9dbcff02c07 | [] | no_license | gonzalgu/logical_verification_2020 | a0013a6c22ea254e9f4d245f2948f0f4d44df4bb | 724d0457dff2c3ff10f9ab2170388f4c5e958b75 | refs/heads/master | 1,660,886,374,533 | 1,589,859,641,000 | 1,589,859,641,000 | 256,069,971 | 0 | 0 | null | 1,586,997,430,000 | 1,586,997,429,000 | null | UTF-8 | Lean | false | false | 15,680 | lean | import .love03_forward_proofs_demo
import .love04_functional_programming_demo
/-! # LoVe Demo 5: Inductive Predicates
__Inductive predicates__, or inductively defined propositions, are a convenient
way to specify functions of type `⋯ → Prop`. They are reminiscent of formal
systems and of the Horn clauses of Prolog, ... |
b82bb86339a02a4a4cbd4923f399ae3f1ff555e3 | b32d3853770e6eaf06817a1b8c52064baaed0ef1 | /src/super/resolve.lean | 336b7b4eaffd28d08546829e894aa03eb6ded7de | [] | no_license | gebner/super2 | 4d58b7477b6f7d945d5d866502982466db33ab0b | 9bc5256c31750021ab97d6b59b7387773e54b384 | refs/heads/master | 1,635,021,682,021 | 1,634,886,326,000 | 1,634,886,326,000 | 225,600,688 | 4 | 2 | null | 1,598,209,306,000 | 1,575,371,550,000 | Lean | UTF-8 | Lean | false | false | 5,085 | lean | import super.clause
universes u v w
noncomputable def or.elim' {a b : Prop} {c : Sort u} :
a ∨ b → (a → c) → (b → c) → c :=
λ ab ac bc,
match classical.prop_decidable a with
| decidable.is_true h := ac h
| decidable.is_false h := bc (ab.elim (λ ha, (h ha).elim) id)
end
def psum.elim {α : Sort u} {β : Sort v} {γ : ... |
77ac5b6fa7d8c2818a27de47e3eb840f448af8e1 | 43390109ab88557e6090f3245c47479c123ee500 | /src/finite_dimensional_vector_spaces/ring_n_is_module.lean | e3a727a0145cc98509fd57e052d0cca4a60867ae | [
"Apache-2.0"
] | permissive | Ja1941/xena-UROP-2018 | 41f0956519f94d56b8bf6834a8d39473f4923200 | b111fb87f343cf79eca3b886f99ee15c1dd9884b | refs/heads/master | 1,662,355,955,139 | 1,590,577,325,000 | 1,590,577,325,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,556 | lean | import algebra.module linear_algebra.basic analysis.real data.vector data.list.basic
universes u
namespace vector
variables (n : ℕ) (R : Type u)
instance to_module [h : ring R] : module R (vector R n) :=
{
add := map₂ h.add,
add_assoc := by
{ intros a b c,
cases a with a la,
cases b... |
52a6dd459d3c5787a68e3c09cec069f720956609 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/measure_theory/category/Meas.lean | 189935cd135d174e66831672aeba72ac7817a9c6 | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,324 | 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 topology.category.Top.basic
import measure_theory.measure.giry_monad
import category_theory.monad.algebra
/-!
# The category of measurable spaces
Measurable ... |
9cb3c46107d2ae43f1b61208faf30ac94daed29a | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/field_theory/finite/polynomial.lean | 156caacf61b7b6f276e47bd139aef461be3593b9 | [
"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 | 8,070 | 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 linear_algebra.finite_dimensional
import linear_algebra.basic
import ring_theory.mv_polynomial.basic
import data.mv_polynomial.expand
import field_theory.fini... |
db1af7700ecc33f9c58fb99243fb5cf1a7ec57bf | 3de1f42c556c29dec35f78b82950d93ee1fe0e39 | /library/init/meta/tactic.lean | b56cf654b43f73e8c082bcd62497c7b6f15743f4 | [
"Apache-2.0"
] | permissive | anamariasosam/lean | a410ca781afc1117a56686436f48c40f6f5e9306 | 4887d8a30621941c883f208e151e61ab268c006d | refs/heads/master | 1,693,033,022,523 | 1,636,381,977,000 | 1,636,381,977,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 76,479 | 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.function init.data.option.basic init.util
import init.control.combinators init.control.monad init.control.alternative init.control.monad... |
93e4c4382ab9bb15f3deca3f0fcf1543de1a4c58 | 367134ba5a65885e863bdc4507601606690974c1 | /src/set_theory/lists.lean | d36334e8112e10722e3d8e8e2d1c413fef8ed43f | [
"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 | 11,852 | 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 computable model of hereditarily finite sets with atoms
(ZFA without infinity). This is useful for calculations in naive
set theory.
-/
import data.list.basic
import d... |
906c17c6a53de609ff07700b7585d377a2a8aa58 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/order/filter/bases.lean | 705e18f6a6d0faf7d04e22462d262a3507eb8d00 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 38,221 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Johannes Hölzl, Mario Carneiro, Patrick Massot
-/
import order.filter.basic
import data.set.countable
import data.pprod
/-!
# Filter bases
A filter basis `B : filte... |
d24cd078908f3d94a55dfad653375f445b1a68fe | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/add_torsor.lean | 6b72f08f2be914bcdb163908be43584228379806 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 14,674 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers, Yury Kudryashov
-/
import data.set.pointwise.smul
/-!
# Torsors of additive group actions
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a ... |
3350e75e1d5aa6d72cc5f8b8a12d6ae22a1a7eaa | c777c32c8e484e195053731103c5e52af26a25d1 | /src/category_theory/monoidal/braided.lean | 79d3d2935f8c27ca8a933f8ab55d04c5f6290a9a | [
"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 | 34,893 | 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 category_theory.monoidal.coherence_lemmas
import category_theory.monoidal.natural_transformation
import category_theory.monoidal.discrete
/-!
# Braided and sy... |
4067fc26eed8c6f50d9dfb76677f32207b339b0b | 3dc4623269159d02a444fe898d33e8c7e7e9461b | /.github/workflows/project_1_a_decrire/lean-scheme-submission/src/scheme.lean | f0c5e86714a6f822039e74022d9af703094b7c3f | [] | no_license | Or7ando/lean | cc003e6c41048eae7c34aa6bada51c9e9add9e66 | d41169cf4e416a0d42092fb6bdc14131cee9dd15 | refs/heads/master | 1,650,600,589,722 | 1,587,262,906,000 | 1,587,262,906,000 | 255,387,160 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 738 | lean | /-
Definition of a scheme.
https://stacks.math.columbia.edu/tag/01II
-/
import topology.basic
import sheaves.covering.covering
import sheaves.presheaf_of_rings_maps
import sheaves.locally_ringed_space
import spectrum_of_a_ring.zariski_topology
import spectrum_of_a_ring.structure_sheaf
open topological_space
uni... |
6ef2a43115de70593eb430a69f67319eb2209ca2 | d1bbf1801b3dcb214451d48214589f511061da63 | /src/topology/instances/ennreal.lean | d78937b8f813ff7de534f2b6f4c653a7e2a4b40e | [
"Apache-2.0"
] | permissive | cheraghchi/mathlib | 5c366f8c4f8e66973b60c37881889da8390cab86 | f29d1c3038422168fbbdb2526abf7c0ff13e86db | refs/heads/master | 1,676,577,831,283 | 1,610,894,638,000 | 1,610,894,638,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 43,647 | 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
-/
import topology.instances.nnreal
/-!
# Extended non-negative reals
-/
noncomputable theory
open classical set filter metric
open_locale classical topological_space e... |
d38e7c670d78d1c369e742b9bfca432c8d369c78 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/1598.lean | 72e928e4a23c170795bc51da900456a8b5aaeb53 | [
"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 | 75 | lean | lemma notc : exists b, b = false :=
begin
existsi 0, -- ERROR here
end
|
f56234b490c813d9af00f158746dffd665821672 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/linear_algebra/general_linear_group.lean | 37278cb102c74dd1500f28ca588736bec3d3412b | [
"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 | 8,561 | lean | /-
Copyright (c) 2021 Chris Birkbeck. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Birkbeck
-/
import linear_algebra.matrix.nonsingular_inverse
import linear_algebra.special_linear_group
/-!
# The General Linear group $GL(n, R)$
This file defines the elements... |
a7a198c115d7d1b70a88ff29c8c2334b736a3af7 | b3c7090f393c11bd47c82d2f8bb4edf8213173f5 | /src/bundled_group_homs.lean | 5ce9b049d1a198c69263fc4e717d3d36147378e1 | [] | no_license | ImperialCollegeLondon/lean-groups | 964b197478f0313d826073576a3e0ae8b166a584 | 9a82d2a66ef7f549107fcb4e1504d734c43ebb33 | refs/heads/master | 1,592,371,184,330 | 1,567,197,270,000 | 1,567,197,270,000 | 195,810,480 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 489 | lean | import algebra.group.to_additive algebra.group.basic algebra.group.hom group_theory.quotient_group
namespace group_hom
variables {G : Type*} [group G] {H : Type*} [group H]
def mk {G H} [group G] [group H] (f : G → H) [is_group_hom f] : G →* H :=
{ to_fun := f,
map_one' := is_group_hom.map_one f,
map_mul' := (is_... |
62b0b762b3052cebaf67211551f2d86961799913 | 35b83be3126daae10419b573c55e1fed009d3ae8 | /_target/deps/mathlib/data/fin.lean | 50ee65f1f9768008932945f631e87c14fee05ff0 | [] | no_license | AHassan1024/Lean_Playground | ccb25b72029d199c0d23d002db2d32a9f2689ebc | a00b004c3a2eb9e3e863c361aa2b115260472414 | refs/heads/master | 1,586,221,905,125 | 1,544,951,310,000 | 1,544,951,310,000 | 157,934,290 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,891 | lean | /-
Copyright (c) 2017 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
More about finite numbers.
-/
import data.nat.basic
open fin nat
/-- `fin 0` is empty -/
def fin_zero_elim {C : Sort*} : fin 0 → C :=
λ x, false.elim $ nat.not_lt_ze... |
6540d06f9b86c140987c3898d9179c88cf7924a2 | aa101d73b1a3173c7ec56de02b96baa8ca64c42e | /src/solutions/06_sub_sequences.lean | 5a4e8a07c643d65863cfd381dda3baf0cf33ff3f | [
"Apache-2.0"
] | permissive | gihanmarasingha/tutorials | b554d4d53866c493c4341dc13e914b01444e95a6 | 56617114ef0f9f7b808476faffd11e22e4380918 | refs/heads/master | 1,671,141,758,153 | 1,599,173,318,000 | 1,599,173,318,000 | 282,405,870 | 0 | 0 | Apache-2.0 | 1,595,666,751,000 | 1,595,666,750,000 | null | UTF-8 | Lean | false | false | 4,790 | 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 (x y : ℝ) : |x - y... |
145b2b2bbc13651981bb3d4cb07edc5d9ed9a723 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/match1.lean | b7905c97840bbcdb713ed3058a058b1ddef4858b | [
"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 | 683 | lean | import data.nat
open nat
definition two1 : nat := 2
definition two2 : nat := succ (succ (zero))
constant f : nat → nat → nat
(*
local tc = type_checker_with_hints(get_env(), true)
local plugin = whnf_match_plugin(tc)
function tst_match(p, t)
local r1, r2 = match(p, t, plugin)
assert(r1)
print("---... |
ad18e27204c7243077b2225ad4195e4bb4b10854 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/tensor_product.lean | 2e031039e06180a1bbfb5712aac8f1c36ff904e9 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 44,102 | 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
-/
import group_theory.congruence
import algebra.module.submodule.bilinear
/-!
# Tensor product of modules over commutative semirings.
> THIS FILE IS SYNCHRONIZ... |
5865b977f8c08e43e14560d7431eb336af5974f3 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/set/constructions.lean | d9cf3138c6c88264de99f6842fbc580e59ba975c | [
"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 | 2,837 | lean | /-
Copyright (c) 2020 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
import tactic
import data.finset.basic
/-!
# Constructions involving sets of sets.
## Finite Intersections
We define a structure `has_finite_inter` which asserts that a s... |
4293498af293a8d6fccf060b13efbf448247bc38 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/run/typeclass_metas_internal_goals1.lean | 675311dab53ede49ea88fe42e526b017c17019ad | [
"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 | 340 | lean | class Foo (α : Type) : Type := (u : Unit := ())
class Bar (α : Type) : Type := (u : Unit := ())
class Top : Type := (u : Unit := ())
instance FooAll (α : Type) : Foo α := {u:=()}
instance BarNat : Bar Nat := {u:=()}
instance FooBarToTop (α : Type) [Foo α] [Bar α] : Top := {u:=()}
new_frontend
set_option pp.all true... |
99899bd1b73c4938494d48176515fa3c18d2e367 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/Lean/Compiler/IR/ResetReuse.lean | 9863a39b8dc3a76b62ee5fd767a924e6049c517a | [
"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 | 6,094 | 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.Control.State
import Init.Control.Reader
import Init.Lean.Compiler.IR.Basic
import Init.Lean.Compiler.IR.LiveVars
import Init.Lean.Compi... |
0797d4898b6d56c728318c14f3e1fc4c32e978fc | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/algebra/linear_ordered_comm_group_with_zero.lean | 32d8f9c83d2d6caf81a49432da7685977125f630 | [
"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 | 5,931 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Johan Commelin, Patrick Massot
-/
import algebra.ordered_group
import algebra.group_with_zero
import algebra.group_with_zero_power
/-!
# Linearly ordered commutative groups wit... |
cc5fb09d870161b00bb574c0e6ab5f1f53a30a88 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/number_theory/legendre_symbol/quadratic_reciprocity.lean | 9f97b90b400a40ab302f6e65776f7e82d2edf4fc | [
"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 | 15,251 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Michael Stoll
-/
import number_theory.legendre_symbol.gauss_eisenstein_lemmas
import number_theory.legendre_symbol.quadratic_char
/-!
# Legendre symbol and quadratic recip... |
f2fc8df771c9b7b58c5fab07e97e130002e73b6a | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/eta_tac.lean | da49a5f8f3a5e8911c9e92ee64dc4916ba942135 | [
"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 | 526 | lean | open tactic
set_option pp.binder_types true
set_option pp.implicit true
set_option pp.notation false
example (a : nat) : true :=
by do
mk_const `has_add.add >>= head_eta_expand >>= trace,
mk_const `nat.succ >>= head_eta_expand >>= trace,
to_expr ```(has_add.add a) >>= head_eta_expand >>= trace,
to_expr ``(λ x... |
4012fe2195993d43d7d39271c130490ffc78d687 | c31182a012eec69da0a1f6c05f42b0f0717d212d | /src/for_mathlib/rational_cones.lean | 34a56cdd18cd713bc89833d4f3ee681bfb8916ea | [] | 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 | 19,586 | lean | import polyhedral_lattice.basic
import linear_algebra.dual
import for_mathlib.nnrat
universe u
variables {Λ : Type u} [add_comm_group Λ]
variable {ι : Type*}
open_locale big_operators
open_locale nnreal
variable {α : Type*}
def nnrat_module {Λ : Type*} [add_comm_group Λ] [module ℚ Λ] : module (ℚ≥0) Λ :=
restrict_sc... |
4dbd2443fe9dcad16d5cf0b65da0b126f07d9917 | 9bb72db9297f7837f673785604fb89b3184e13f8 | /library/init/meta/expr.lean | ece737c7346860a7038e16d1dfd32b3ca0a9a7e1 | [
"Apache-2.0"
] | permissive | dselsam/lean | ec83d7592199faa85687d884bbaaa570b62c1652 | 6b0bd5bc2e07e13880d332c89093fe3032bb2469 | refs/heads/master | 1,621,807,064,966 | 1,611,454,685,000 | 1,611,975,642,000 | 42,734,348 | 3 | 3 | null | 1,498,748,560,000 | 1,442,594,289,000 | C++ | UTF-8 | Lean | false | false | 23,520 | 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.level init.control.monad init.meta.rb_map
universes u v
open native
/-- Column and line position in a Lean source file. -/
structur... |
2138447f292c547d88e06f87c6f83cd9870e4467 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/periodic.lean | 442c4cafb585bfb42bf89d69e75271c2d0e0b2b6 | [
"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 | 20,017 | lean | /-
Copyright (c) 2021 Benjamin Davidson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Benjamin Davidson
-/
import algebra.field.opposite
import algebra.module.basic
import algebra.order.archimedean
import data.int.parity
import group_theory.coset
/-!
# Periodicity
... |
f1f05f7d1a825dedceb3089655a59c842df06f86 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/group_theory/coset.lean | a97463113e5a8e518a0afac03caa093fffb8cedd | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 9,208 | lean | /-
Copyright (c) 2018 Mitchell Rowett. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mitchell Rowett, Scott Morrison
-/
import deprecated.subgroup
open set function
variable {α : Type*}
@[to_additive left_add_coset]
def left_coset [has_mul α] (a : α) (s : set α) : s... |
60e6ab083d5f620560add30deec512c3a825357f | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/lie/abelian.lean | 839f700ca0978f4383d4076818e566b9dc02546c | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,811 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.lie.of_associative
import algebra.lie.ideal_operations
/-!
# Trivial Lie modules and Abelian Lie algebras
The action of a Lie algebra `L` on a module `M` i... |
cc490882bb56d44aac33240802c81ec21e65d560 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /tests/lean/run/doNotation2.lean | 684f0f4608b92a5429bf80441c235ca30857ab6f | [
"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 | 4,046 | lean | def f (x : Nat) : IO Nat := do
IO.println "hello world"
let aux (y : Nat) (z : Nat) : IO Nat := do
IO.println "aux started"
IO.println s!"y: {y}, z: {z}"
pure (x+y)
aux x
(x + 1) -- It is part of the application since it is indented
aux x (x -- parentheses use `withoutPosition`
-1)
aux x x;
aux x
x
#eval f ... |
5bd740b61bd32bf34acf34ce69a2607351f43e5a | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Init.lean | 40dcc8541cbc55559db4fc2baafd7eb7afce9782 | [
"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 | 553 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Prelude
import Init.Notation
import Init.Tactics
import Init.Core
import Init.Control
import Init.Data.Basic
import Init.WF
import Init.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.