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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c4d2c583c89371bb97f7dac4542cc438fdf7853c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/restate_axiom.lean | 7a947ac9630c35f229a98424600478a6d3b9d2a0 | [
"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 | 3,161 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import tactic.doc_commands
open lean.parser tactic interactive
/--
`restate_axiom` takes a structure field, and makes a new, definitionally simplified copy of it.
I... |
5af6eea42b35f0bdb856522de26293a52cbd7ca5 | 682dc1c167e5900ba3168b89700ae1cf501cfa29 | /src/del/semantics/translation.lean | 2c9bdac6a1585eb9c6c333354c8af2a5a6926936 | [] | 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 | 4,203 | lean | /-
Copyright (c) 2021 Paula Neeley. All rights reserved.
Author: Paula Neeley
Following the textbook "Dynamic Epistemic Logic" by
Hans van Ditmarsch, Wiebe van der Hoek, and Barteld Kooi
-/
import del.semantics.translationlemmas
import del.semantics.completenessDEL del.syntax.syntaxlemmasPADEL
import tactic.linarith
... |
7635af9ae06dee5063ce4922404416dfa778ec32 | 0f5090f82d527e0df5bf3adac9f9e2e1d81d71e2 | /src/apurva/normal.lean | a2ee3eac7a9c63e434449ba264e587ab32d28dd1 | [] | no_license | apurvanakade/mc2020-lean-projects | 36eb42c4baccc37183635c36f8e1b3afa4ec1230 | 02466225aa629ab1232043bcc0a053a099fdb939 | refs/heads/master | 1,688,791,717,534 | 1,597,874,092,000 | 1,597,874,092,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,916 | lean | import data.complex.basic
import data.fintype.basic
import data.matrix.basic
import .unitary
import linear_algebra.determinant
import linear_algebra.nonsingular_inverse
import tactic
noncomputable theory
open_locale classical
open_locale matrix
universes u u'
variables {m n l : Type u} [fintype m] [fintype n] [fi... |
b0aab2aed666933e96ccc8031e5444ffca0cd7d2 | 90dc46f8fc146448b862ba6de3e708b9d4194c48 | /src/day02.lean | 6a6f3324ad2f0c2ca119160be04b33b86c1976a0 | [] | no_license | dwrensha/advent-of-code-2019 | 9dcdcd61a743229726354f5ef791449bdbbe2ed8 | f1e126afda47b588e28f1389559f2a4d6a3322bf | refs/heads/master | 1,600,746,467,066 | 1,575,508,148,000 | 1,575,508,148,000 | 225,037,851 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,925 | lean | import system.io data.buffer.parser
open parser nat
def go {α} (file : string) (p : parser α) (m: α → option string) : io unit :=
do s ← io.fs.read_file file,
sum.inr a ← return $ run p s,
some str ← return $ m a,
trace str (return ())
def parse_number := string.to_nat <$> many_char1 (sat char.is_digit)
def da... |
eabc410b80ecab0742e3d54a3146aae9df0333e2 | a5e2e6395319779f21675263bc0e486be5bc03bd | /bench/stlc5k.lean | 16ff916d8acd01b267098bb5eafd5cc0d616220e | [
"MIT"
] | permissive | AndrasKovacs/smalltt | 10f0ec55fb3f487e9dd21a740fe1a899e0cdb790 | c306f727ba3c92abe6ef75013da5a5dade6b15c8 | refs/heads/master | 1,689,497,785,394 | 1,680,893,106,000 | 1,680,893,106,000 | 112,098,494 | 483 | 26 | MIT | 1,640,720,815,000 | 1,511,713,805,000 | Lean | UTF-8 | Lean | false | false | 290,013 | lean | def Ty : Type 1
:= ∀ (Ty : Type)
(nat top bot : Ty)
(arr prod sum : Ty → Ty → Ty)
, Ty
def nat : Ty := λ _ nat _ _ _ _ _ => nat
def top : Ty := λ _ _ top _ _ _ _ => top
def bot : Ty := λ _ _ _ bot _ _ _ => bot
def arr : Ty → Ty → Ty
:= λ A B Ty nat top bot arr prod sum =>
arr (A Ty n... |
3dc7d2121b684b6b52e36870080380ea3d8ffb62 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/univ_bug1.lean | 2919ddf0a59129e9a00d6e30da2cb80b82d347d2 | [
"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,070 | lean | ----------------------------------------------------------------------------------------------------
--- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
--- Released under Apache 2.0 license as described in the file LICENSE.
--- Author: Jeremy Avigad
------------------------------------------------------... |
63331efd31acd17f6699585b0e89e9d57b19ae59 | f07ebb00c1b0eed4d4e2df146b6ab5d8aa10802d | /ch2.lean | 00bb91d97e55af9fa1ad51f20176284f8d0af712 | [] | no_license | jgarte/theorem-proving-in-lean | 7762e7339ef94269f04e2d8c89ccdcc77053204f | 4b7b62f3ca82d4463f6e607e0ef974c9577a5b7e | refs/heads/master | 1,650,893,202,520 | 1,587,934,185,000 | 1,587,934,185,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,853 | lean | -- Chapter 2
def double (x:ℕ): ℕ := x+x
-- incorrectly notated in the book
-- 2.4
def do_twice {α: Type}(f: α → α) (x: α) := f (f x)
#check do_twice
#reduce do_twice double 3
def compose {α β γ : Type} (g : β → γ) (f : α → β) (x : α) : γ := g (f x)
def Do_Twice {α: Type}(f:((α → α) → (α → α))) (g: α → α) (x : α)... |
57597ecdadf7a09a62c726fe883ef255a7808c99 | 037dba89703a79cd4a4aec5e959818147f97635d | /src/2022/logic/sheet1.lean | d780d7a16b066c3194d2eea33a030c2b107319b3 | [] | no_license | ImperialCollegeLondon/M40001_lean | 3a6a09298da395ab51bc220a535035d45bbe919b | 62a76fa92654c855af2b2fc2bef8e60acd16ccec | refs/heads/master | 1,666,750,403,259 | 1,665,771,117,000 | 1,665,771,117,000 | 209,141,835 | 115 | 12 | null | 1,640,270,596,000 | 1,568,749,174,000 | Lean | UTF-8 | Lean | false | false | 5,649 | lean | /-
Copyright (c) 2022 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author : Kevin Buzzard
-/
import tactic -- imports all the Lean tactics
/-!
# Logic in Lean, example sheet 1 : "implies" (`→`)
We learn about propositions, and implications `P → Q` between t... |
0bf85181b1f83f4849488c93d5a6d0b614c7d743 | 367134ba5a65885e863bdc4507601606690974c1 | /src/linear_algebra/clifford_algebra/conjugation.lean | 123956ce2f326a5c6a2e41650fe4718d6f348715 | [
"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 | 4,927 | lean | /-
Copyright (c) 2020 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import linear_algebra.clifford_algebra.basic
import algebra.module.opposites
/-!
# Conjugations
This file defines the grade reversal and grade involution functions on mul... |
5fd4ddfed3761da301cad7050fceb9e5e61f964b | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/group/basic.lean | c8c1c363d72f105320d69906375c9a21dbd19dd9 | [
"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 | 21,648 | 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, Simon Hudon, Mario Carneiro
-/
import algebra.group.defs
/-!
# Basic lemmas about semigroups, monoids, and groups
> THIS FILE IS SYNCHRONIZED WITH M... |
905384918ef240b9477b5fb2d41804a72404c6b5 | 4b846d8dabdc64e7ea03552bad8f7fa74763fc67 | /tests/lean/run/IO2.lean | aa17fafb012cc467fef877a7fd97868f95a0c8e2 | [
"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 | 381 | lean | import system.io
open list io
/- B and unit must be in the same universe
So, we must put B at Type₁ or use poly_unit
since unit is at Type₁
-/
definition foreach {A : Type} {B : Type} : list A → (A → io B) → io punit
| [] f := return punit.star
| (x::xs) f := do f x, foreach xs f
#eval foreach [1,2,3,4,5]... |
3025e70e4dbc66d46a2f9a4640ae338d82edbcb6 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/preadditive/generator.lean | 2bd0885545ce6fe6db296eaab229989efdd6d5c5 | [
"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 | 3,434 | lean | /-
Copyright (c) 2022 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import category_theory.generator
import category_theory.preadditive.yoneda
/-!
# Separators in preadditive categories
This file contains characterizations of separati... |
52f6298c9369d102d9c4045e6d84a7c5bd5dc0be | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/big_operators/option.lean | 2abc0b757aa9c31da4d6f4e4ef88d1b48112eac9 | [
"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 | 1,135 | 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 algebra.big_operators.basic
import data.finset.option
/-!
# Lemmas about products and sums over finite sets in `option α`
In this file we prove formulas f... |
e294b297424a58feb275fa4b46168c7dc7d0986f | 80746c6dba6a866de5431094bf9f8f841b043d77 | /src/topology/algebra/group.lean | 65407367349b524d320b63ce8ddce27775547533 | [
"Apache-2.0"
] | permissive | leanprover-fork/mathlib-backup | 8b5c95c535b148fca858f7e8db75a76252e32987 | 0eb9db6a1a8a605f0cf9e33873d0450f9f0ae9b0 | refs/heads/master | 1,585,156,056,139 | 1,548,864,430,000 | 1,548,864,438,000 | 143,964,213 | 0 | 0 | Apache-2.0 | 1,550,795,966,000 | 1,533,705,322,000 | Lean | UTF-8 | Lean | false | false | 6,983 | 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
Basic constructions for topological groups:
* `topological_add_group.to_uniform_space` and `topological_add_group_is_uniform` can be used to
construc... |
d90bf58a3a88a961171b7178e4caf4ed87d9da09 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/tactic/simps.lean | 167adf136e985a28a1462c42f314a6dbc6ae89da | [
"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 | 46,688 | lean | /-
Copyright (c) 2019 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import tactic.protected
import algebra.group.to_additive
/-!
# simps attribute
This file defines the `@[simps]` attribute, to automatically generate `simp` lemm... |
b0b721a737309682f9c11eb3eee182387fb4b233 | 947b78d97130d56365ae2ec264df196ce769371a | /stage0/src/Init/Coe.lean | 47a9e2442dc495e9fe749e91d0a1eef5be474e25 | [
"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,424 | 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
-/
prelude
import Init.HasCoe -- import legacy HasCoe
import Init.Core
universes u v w w'
class Coe (α : Sort u) (β : Sort v) :=
(coe : α → β)
/-- Auxiliary... |
94ab3ac07c5e1466897d28c043fc88beba315b02 | 7b9ff28673cd3dd7dd3dcfe2ab8449f9244fe05a | /src/floris/exercises-library-building.lean | 34540c95331fb144f526562660c5d150ce99146d | [] | no_license | jesse-michael-han/hanoi-lean-2019 | ea2f0e04f81093373c48447065765a964ee82262 | a5a9f368e394d563bfcc13e3773863924505b1ce | refs/heads/master | 1,591,320,223,247 | 1,561,022,886,000 | 1,561,022,886,000 | 192,264,820 | 1 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 3,895 | lean | import algebra.pi_instances
set_option old_structure_cmd true
universe variables u
/-
A non-unital ring or rng is a ring without unit. According to ncatlab
https://ncatlab.org/nlab/show/nonunital+ring
Definition 2.1. A nonunital ring or rng is a set R with operations of addition and multiplication, su... |
03374f9f173befbd67e7fd17b02a02e30c2a5282 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/linear_algebra/direct_sum_module.lean | aeb978a039a40876e675f6a267ba1942e5b60038 | [
"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 | 5,870 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Direct sum of modules over commutative rings, indexed by a discrete type.
-/
import algebra.direct_sum
import linear_algebra.dfinsupp
/-!
# Direct sum of modules over commutativ... |
f0bd9555049a79b8a74a678dff0a0d2a323817ab | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/locally_constant/basic.lean | 3ce3b11d4c509c5759555ffa9968d7f95008be9f | [
"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 | 16,261 | lean | /-
Copyright (c) 2021 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import topology.subset_properties
import topology.connected
import topology.algebra.monoid
import topology.continuous_function.basic
import tactic.tfae
import tactic.... |
fa03dd842fb92d62218e3379de72f095600ad008 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/types/nat/div.hlean | 8bd1fc4e3288258ea9acebd84ccdd5e07d0f69bf | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 25,903 | hlean | /-
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
Definitions prod properties of div prod mod. Much of the development follows Isabelle's library.
-/
import .sub
open eq eq.ops well_founded decidable p... |
84efdc3a75bd424dbdc8381303ec5a61c72a4cfc | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /tests/lean/run/autoparam.lean | 3aa2b5e82a10a1077c7a1066bac69ec860636085 | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 112 | lean |
def f (x y : Nat) (h : x = y := by assumption) : Nat :=
x + x
def g (x y z : Nat) (h : x = y) : Nat :=
f x y
|
b1de121a74fea63c7a42d8b79130bc90ea947ac0 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/eq11.lean | 08b7b383a9006923b128e92a841ba72ce0a24e97 | [
"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 | 907 | lean | inductive day :=
monday | tuesday | wednesday | thursday | friday | saturday | sunday
open day
definition next_weekday : day → day
| next_weekday monday := tuesday
| next_weekday tuesday := wednesday
| next_weekday wednesday := thursday
| next_weekday thursday := friday
| next_weekday _ := monday
theor... |
23382e0763d18e65b94a4b9f4eea5827a797968c | 4950bf76e5ae40ba9f8491647d0b6f228ddce173 | /src/dynamics/circle/rotation_number/translation_number.lean | 8454710c1635d24cfc7f729732c92953741d6fb3 | [
"Apache-2.0"
] | permissive | ntzwq/mathlib | ca50b21079b0a7c6781c34b62199a396dd00cee2 | 36eec1a98f22df82eaccd354a758ef8576af2a7f | refs/heads/master | 1,675,193,391,478 | 1,607,822,996,000 | 1,607,822,996,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 39,593 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury G. Kudryashov
-/
import analysis.specific_limits
import order.iterate
import order.semiconj_Sup
import algebra.iterate_hom
/-!
# Translation number of a monotone real map that... |
ae023b17630e9cf16e69ac2ac1af5255be1ff409 | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/category_theory/monoidal/internal/functor_category.lean | a004a54ad180187ae32a71846cb33940109bb83b | [
"Apache-2.0"
] | permissive | hjvromen/lewis | 40b035973df7c77ebf927afab7878c76d05ff758 | 105b675f73630f028ad5d890897a51b3c1146fb0 | refs/heads/master | 1,677,944,636,343 | 1,676,555,301,000 | 1,676,555,301,000 | 327,553,599 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,104 | 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.CommMon_
import category_theory.monoidal.functor_category
/-!
# `Mon_ (C ⥤ D) ≌ C ⥤ Mon_ D`
When `D` is a monoidal category,
monoid ... |
7bc854c6cd3881f170ede4c1240f79ffb34c0d74 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/group/hom_instances.lean | ce1ccfd62a75b9140dad5552ffa76601257d2e22 | [
"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 | 9,473 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Kevin Buzzard, Scott Morrison, Johan Commelin, Chris Hughes,
Johannes Hölzl, Yury Kudryashov
-/
import algebra.group_power.basic
/-!
# Instances on spaces of monoid... |
c61d73291c789f13805127bdf386ba6833b56e3a | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/topology/maps.lean | 83eb70464fc934415e8a4af4fae06049fde1c143 | [
"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 | 18,689 | 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... |
6bb048627240ba5d9af0a67ea6242c80ff002b17 | ea11767c9c6a467c4b7710ec6f371c95cfc023fd | /src/monoidal_categories/util/data/bin_tree.lean | 395471a81505221d4d139ac29c117c2f65ce8327 | [] | no_license | RitaAhmadi/lean-monoidal-categories | 68a23f513e902038e44681336b87f659bbc281e0 | 81f43e1e0d623a96695aa8938951d7422d6d7ba6 | refs/heads/master | 1,651,458,686,519 | 1,529,824,613,000 | 1,529,824,613,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,383 | lean | import .nonempty_list
open util.data.nonempty_list
namespace util.data.bin_tree'
universes u v
inductive bin_tree' (α : Type u)
| leaf : α → bin_tree'
| branch : bin_tree' → bin_tree' → bin_tree'
namespace bin_tree'
variables {α : Type u} {β : Type v}
def map (f : α → β) : bin_tree' α → bin_tree' β
| (leaf x) :=... |
d4c4bc2bf5f2f4e178750f1fa333269b301dda9c | 957a80ea22c5abb4f4670b250d55534d9db99108 | /library/tools/debugger/cli.lean | ee5937d42547e6de85c1e12db5c296cd457f18d0 | [
"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 | 8,276 | 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
Simple command line interface for debugging Lean programs and tactics.
-/
import tools.debugger.util
namespace debugger
inductive mode
| init | step | run |... |
54709b38bb7e575e73328e4fa029f41c361d99fe | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/generalizes.lean | 3b41b999631944e78ed1686a4abed0e0712349e2 | [
"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 | 3,526 | lean | /-
Copyright (c) 2020 Jannis Limperg. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jannis Limperg
-/
import tactic.generalizes
universes u
lemma example_from_docs₁ (P : ∀ n, fin n → Prop) (n : ℕ) (f : fin n)
(p : ∀ n xs, P n xs) : P (nat.succ n) (fin.succ f) :=
... |
06c4a1b581be2c5ccdb01aff2d09cfc51dad96bf | 46125763b4dbf50619e8846a1371029346f4c3db | /src/order/complete_lattice.lean | beafd0f02c6e4c41a8309ddecba953884212a4c2 | [
"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 | 33,094 | 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
Theory of complete lattices.
-/
import order.bounded_lattice order.bounds data.set.basic tactic.pi_instances tactic.alias
set_option old_structure_cmd true
open set
n... |
eb85dd2ca798d611bf795cb0727d3ef78123f6b8 | 618003631150032a5676f229d13a079ac875ff77 | /test/noncomm_ring.lean | 104f2f2729e8bb4e8e14f8e7683cdb21e649be07 | [
"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 | 2,409 | lean | import tactic.noncomm_ring
local notation `⁅`a`,` b`⁆` := a * b - b * a
local infix ` ⚬ `:70 := λ a b, a * b + b * a
variables {R : Type*} [ring R]
variables (a b c : R)
example : (a + b) * c = a * c + b * c := by noncomm_ring
example : a * (b + c) = a * b + a * c := by noncomm_ring
example : a - b = a + -b := by no... |
924a360082098cc15e9c676a191f1aa0e15b9f2f | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/geometry/manifold/algebra/monoid.lean | 3c2be5411253f1a69eec011cfef2e0d5d1511d34 | [
"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 | 15,611 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri
-/
import geometry.manifold.cont_mdiff_map
/-!
# Smooth monoid
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to m... |
2af8f94539377003110d10f16ae19f8c5f26c9b2 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/set_theory/surreal/dyadic.lean | 3c8884e57e6378d72857c23b604bc748f2e8fad9 | [
"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 | 10,083 | lean | /-
Copyright (c) 2021 Apurva Nakade. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Apurva Nakade
-/
import algebra.algebra.basic
import ring_theory.localization.away
import set_theory.game.birthday
import set_theory.surreal.basic
/-!
# Dyadic numbers
Dyadic numbers a... |
1dc18eed8383b388a7c655cc0147effe57f701bf | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /src/Lean/Meta/RecursorInfo.lean | 6c61fb0e8155362d4184372a3da7c51e4fc5c860 | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,989 | 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.AuxRecursor
import Lean.Util.FindExpr
import Lean.Meta.ExprDefEq
namespace Lean.Meta
def casesOnSuffix := "casesOn"
def recOnSuffix ... |
b1817c1ddde4e7b09b9c3416fad39e53088adc41 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/algebraic_geometry/Scheme.lean | fbf8a6352e6b751c584a6eeca9f031ce4a118cea | [
"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 | 3,866 | 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 algebraic_geometry.Spec
/-!
# The category of schemes
A scheme is a locally ringed space such that every point is contained in some open set
where there is a... |
cc7a8b872427fa50707e565719d5da5430d7194c | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/real/basic.lean | 2bdd7bc219ac3866ab023dda023e62d61393a1ec | [
"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 | 26,051 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Floris van Doorn
The (classical) real numbers ℝ. This is a direct construction
from Cauchy sequences.
-/
import order.conditionally_complete_lattice data.real.cau_seq_... |
49bae17782e907bb468b91fd669df6db319a1501 | 4727251e0cd73359b15b664c3170e5d754078599 | /test/has_scalar_comp_loop.lean | 3690a20bb990aa8dafff1fa68c483b8c7ed910d6 | [
"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,495 | lean | import group_theory.group_action.basic
variables (R M S : Type*)
/-- Some arbitrary type depending on `has_scalar R M` -/
@[irreducible, nolint has_inhabited_instance unused_arguments]
def foo [has_scalar R M] : Type* := ℕ
variables [has_scalar R M] [has_scalar S R] [has_scalar S M]
/-- This instance is incompatibl... |
df597d6169f7fe7c3ca3b6266ec0fb94d85a27a2 | d9ed0fce1c218297bcba93e046cb4e79c83c3af8 | /library/tools/debugger/cli.lean | f0a6cc3f383a07c79279a1c09487b86d87929568 | [
"Apache-2.0"
] | permissive | leodemoura/lean_clone | 005c63aa892a6492f2d4741ee3c2cb07a6be9d7f | cc077554b584d39bab55c360bc12a6fe7957afe6 | refs/heads/master | 1,610,506,475,484 | 1,482,348,354,000 | 1,482,348,543,000 | 77,091,586 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,328 | 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
Simple command line interface for debugging Lean programs and tactics.
-/
import tools.debugger.util
namespace debugger
inductive mode
| init | step | run |... |
a3955d74261861c7f032d769919d8413b3d36d80 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/category_theory/subobject/comma.lean | 682bab82079ffd5d9afa98694156b83d74946cc8 | [
"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 | 10,106 | lean | /-
Copyright (c) 2022 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import category_theory.subobject.well_powered
/-!
# Subobjects in the category of structured arrows
We compute the subobjects of an object `A` in the category `struct... |
dd3407a0282ac20d6a191ef716b34432ea5ee815 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/ring_theory/polynomial/cyclotomic/eval.lean | 085bbb16f3ee3400c9162f8e8cd493b202ff9d86 | [
"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 | 7,342 | lean | /-
Copyright (c) 2021 Eric Rodriguez. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Rodriguez
-/
import ring_theory.polynomial.cyclotomic.basic
import tactic.by_contra
import topology.algebra.polynomial
import number_theory.padics.padic_norm
/-!
# Evaluating cy... |
e4902a891edc058d40872698e05d28f7fe786e5a | 690889011852559ee5ac4dfea77092de8c832e7e | /src/tactic/simps.lean | a199900dc0e44477e492f0a8336b9d5a743bccc6 | [
"Apache-2.0"
] | permissive | williamdemeo/mathlib | f6df180148f8acc91de9ba5e558976ab40a872c7 | 1fa03c29f9f273203bbffb79d10d31f696b3d317 | refs/heads/master | 1,584,785,260,929 | 1,572,195,914,000 | 1,572,195,913,000 | 138,435,193 | 0 | 0 | Apache-2.0 | 1,529,789,739,000 | 1,529,789,739,000 | null | UTF-8 | Lean | false | false | 5,408 | lean | /-
Copyright (c) 2019 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import tactic.core
/-!
# simps attribute
This file defines the `@[simps]` attribute, to automatically generate simp-lemmas
reducing a definition when projec... |
3e1b3cdd5df4f150e874cd32a5cf292331b3c378 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/analysis/normed_space/basic.lean | b877f3b9b0f6bb5fe9c0ee21258428e9b5209800 | [
"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 | 94,716 | 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 algebra.algebra.restrict_scalars
import algebra.algebra.subalgebra
import order.liminf_limsup
import topology.algebra.group_completion
import t... |
b4e14baf8d1c2614ec23408e6a09ca658e73f9a1 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/norm_cast_coe_fn.lean | 2f87381d870de2a8efc77e0a39045e9bd6369b19 | [
"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 | 783 | lean | import tactic.norm_cast
structure hom (α β : Type) :=
(to_fun : α → β)
instance {α β} : has_coe_to_fun (hom α β) (λ _, α → β) :=
⟨hom.to_fun⟩
structure hom_plus (α β) extends hom α β
instance {α β} : has_coe (hom_plus α β) (hom α β) :=
⟨hom_plus.to_hom⟩
instance {α β} : has_coe_to_fun (hom_plus α β) (λ _, α → β) :... |
9eea940f829fe7625fb174cc49d030e18bfdf6fe | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/linear_algebra/basic.lean | 7e26f75860a18f0c6383d023e134840c393590ca | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 75,756 | 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, Kevin Buzzard
-/
import algebra.pi_instances data.finsupp data.equiv.mul_add order.order_iso
/-!
# Linear algebra
This file defines the basics of lin... |
5ad207f04e4f0ba09d336d3dbb1643a1b87def87 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/arith1.lean | 704defe8fa778db7cf184a88ff9b196b93205e6d | [
"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 | 333 | lean | import Int.
check 10 + 20
check 10
check 10 - 20
eval 10 - 20
eval 15 + 10 - 20
check 15 + 10 - 20
variable x : Int
variable n : Nat
variable m : Nat
print n + m
print n + x + m
set_option lean::pp::coercion true
print n + x + m + 10
print x + n + m + 10
print n + m + 10 + x
set_option lean::pp::notation false
print n ... |
99bb3cde86ee0454a78fd421cc0326a088ad7f61 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/field_theory/adjoin.lean | edf0eff7a8f8e054fabcf4a671c5d4d6263b6a3c | [
"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 | 33,797 | 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.intermediate_field
import field_theory.splitting_field
import field_theory.separable
import ring_theory.adjoin_root... |
e7edd52a217438470d023db4825c93a99c78c6da | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/polynomial/iterated_deriv.lean | 0e3a5cd2f250289e48fb3bc0558746e313a4a556 | [
"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 | 7,963 | lean | /-
Copyright (c) 2020 Jujian Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jujian Zhang
-/
import data.nat.interval
import data.polynomial.derivative
import tactic.linarith
/-!
# Theory of iterated derivative
We define and prove some lemmas about iterated (fo... |
f970adb39dc30a7539c15cc8face64eaefab940d | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/simpperf/simp1500.lean | b2918ad023b7599f1ea2caa8e59639301337aa46 | [
"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 | 129,098 | lean | axiom f (x : Prop) : Prop
axiom g0 (x : Prop) : Prop
axiom g1 (x : Prop) : Prop
axiom g2 (x : Prop) : Prop
axiom g3 (x : Prop) : Prop
axiom g4 (x : Prop) : Prop
axiom g5 (x : Prop) : Prop
axiom g6 (x : Prop) : Prop
axiom g7 (x : Prop) : Prop
axiom g8 (x : Prop) : Prop
axiom g9 (x : Prop) : Prop
axiom g10 (x : Prop) : P... |
0fae3a92f3324fa90ffb137afd0d14a9a6e135ac | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/group/units_hom.lean | e21151efe858c8eea7194c78937f7b73f6278f02 | [] | 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,936 | lean | /-
Copyright (c) 2018 Johan Commelin All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Chris Hughes, Kevin Buzzard
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.group.hom
import Mathlib.PostPort
universes u v w u_1 ... |
b8f126648767da595b392251d7e0b7cdca6e2147 | 3b15c7b0b62d8ada1399c112ad88a529e6bfa115 | /src/Lean/Elab/Inductive.lean | b7a3a7a96228a8121b52aa351ed82b27a2957f4c | [
"Apache-2.0"
] | permissive | stephenbrady/lean4 | 74bf5cae8a433e9c815708ce96c9e54a5caf2115 | b1bd3fc304d0f7bc6810ec78bfa4c51476d263f9 | refs/heads/master | 1,692,621,473,161 | 1,634,308,743,000 | 1,634,310,749,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,893 | 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.Util.ReplaceLevel
import Lean.Util.ReplaceExpr
import Lean.Util.CollectLevelParams
import Lean.Meta.Constructions
import Lean.Meta.CollectFVars
... |
255c7a8a337a71162d1e62e7c553afaa580283c5 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/t2.lean | 8409a6ead14558e3cc728af7b6d26eeafafd469d | [
"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 | 212 | lean | universe variable l
universe variable u
#print raw Type
#print raw Type.{1}
#print raw Type.{2}
#print raw Type.{l+1}
#print raw Type.{max l u 1}
#print raw Type.{imax (l+1) u 1}
#print raw Type.{imax (l+1) l u}
|
8fbbc31986edf3b732c6e666443695440a1cb394 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/blast_cc_heq2.lean | 0bccb9a62e0b7dced7492181cfc4b5d8dad53f40 | [
"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 | 395 | lean | set_option blast.strategy "cc"
set_option blast.cc.heq true -- make sure heterogeneous congruence lemmas are enabled
example (a b c : nat) (f : nat → nat) : a == b → b = c → f a == f c :=
by blast
example (a b c : nat) (f : nat → nat) : a == b → b = c → f a = f c :=
by blast
example (a b c d : nat) (f : nat → nat) :... |
2b412377d73ceaa8d057abf324396b3bffe61344 | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /algebra/ring.lean | 2638f3b1624e95b2382f09f6899e20e5e36e559e | [
"Apache-2.0"
] | permissive | rwbarton/mathlib | 939ae09bf8d6eb1331fc2f7e067d39567e10e33d | c13c5ea701bb1eec057e0a242d9f480a079105e9 | refs/heads/master | 1,584,015,335,862 | 1,524,142,167,000 | 1,524,142,167,000 | 130,614,171 | 0 | 0 | Apache-2.0 | 1,548,902,667,000 | 1,524,437,371,000 | Lean | UTF-8 | Lean | false | false | 5,637 | 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, Floris van Doorn
-/
import algebra.group tactic data.set.basic
universes u v
variable {α : Type u}
section
variable [semiring α]
theorem mul_two... |
7cb94ca537c5ef6b993373a51ae4bb9b09f66abb | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/playground/mapVShmap.lean | 11e49d1c5c00953628a815b5a4857c188f5dd8ed | [
"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 | 1,089 | lean | def mkBigPairs : Nat → Array (Nat × Nat) → Array (Nat × Nat)
| 0 ps := ps
| (n+1) ps := mkBigPairs n (ps.push (n, n))
set_option pp.implicit true
set_option pp.binder_types false
-- set_option trace.compiler.specialize true
-- set_option trace.compiler.boxed true
def f1 (ps : Array (Nat × Nat)) : Array (Nat × Nat... |
bc97c395325eadfdeb01294786b806dbd1eccfbb | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/linear_algebra/exterior_algebra.lean | 7777df2b78964827013435a4b75268e6e0079272 | [
"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 | 4,485 | lean | /-
Copyright (c) 2020 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhangir Azerbayev, Adam Topaz, Eric Wieser.
-/
import algebra.ring_quot
import linear_algebra.tensor_algebra
import group_theory.perm.sign
/-!
# Exterior Algebras
We construct the exter... |
fe8199bdef6e17289420afaf03904ddd5d00c632 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/220.lean | b2432b65a55e1b66b58b427a70c0d720ec604370 | [
"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 | 88 | lean | def f : List Nat → List Nat
| a::xs@(b::bs) => xs
| _ => []
#print f
|
dddde2962d018b656ee520c6ae6259b5f36d641f | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /test/differentiable.lean | f8bb95becc48f3145e20f4adb55aa335e993da3c | [
"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 | 2,424 | lean | import analysis.special_functions.trigonometric.basic
namespace real
example : differentiable ℝ (λ (x : ℝ), exp x) :=
by simp
example : differentiable ℝ (λ (x : ℝ), exp ((sin x)^2) - exp (exp (cos (x - 3)))) :=
by simp
example (x : ℝ) : deriv (λ (x : ℝ), (cos x)^2 + 1 + (sin x)^2) x = 0 :=
by { simp, ring }
exampl... |
feee50ac865e3bd593c401df30c8ef9f2aa7abba | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/localization/norm.lean | 641c9a51d323d170792481edbbe8c4130b4647cf | [
"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 | 2,166 | lean | /-
Copyright (c) 2023 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import ring_theory.localization.module
import ring_theory.norm
/-!
# Field/algebra norm and localization
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to thi... |
478cc8d1882ae737621c2bd1d6e1f5456279b8de | 78630e908e9624a892e24ebdd21260720d29cf55 | /src/logic_propositional/prop_15.lean | 0df59d6fc958894295395e7354ef2f72a7bf5061 | [
"CC0-1.0"
] | permissive | tomasz-lisowski/lean-logic-examples | 84e612466776be0a16c23a0439ff8ef6114ddbe1 | 2b2ccd467b49c3989bf6c92ec0358a8d6ee68c5d | refs/heads/master | 1,683,334,199,431 | 1,621,938,305,000 | 1,621,938,305,000 | 365,041,573 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 597 | lean | namespace prop_15
variables A B C : Prop
open classical
theorem prop_15 : ((A ∧ B) → C) → ((A → C) ∨ (B → C)) :=
assume h1 : (A ∧ B) → C,
show (A → C) ∨ (B → C), from or.elim (classical.em B)
(assume h2: B,
show (A → C) ∨ (B → C), from or.inl
(assume h3: A,
h1 (and.intro h3 h2)))
(assum... |
d70428dca1db4863fd7631643196820b5cb93dc7 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Util/ReplaceLevel.lean | df3c57b35ae762aabf5602bfa4545cce7c52ac4d | [
"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 | 3,381 | 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.Expr
namespace Lean
namespace Level
partial def replace (f? : Level → Option Level) (u : Level) : Level :=
match f? u with
| some v => v
... |
2978e7f10e64074f7ee8cf3eadbea3ac36ab32f5 | 5883d9218e6f144e20eee6ca1dab8529fa1a97c0 | /src/vrel/comp.lean | 978827c9f337348026788cb440985f78cae9bd36 | [] | no_license | spl/alpha-conversion-is-easy | 0d035bc570e52a6345d4890e4d0c9e3f9b8126c1 | ed937fe85d8495daffd9412a5524c77b9fcda094 | refs/heads/master | 1,607,649,280,020 | 1,517,380,240,000 | 1,517,380,240,000 | 52,174,747 | 4 | 0 | null | 1,456,052,226,000 | 1,456,001,163,000 | Lean | UTF-8 | Lean | false | false | 1,330 | lean | /-
This file contains declarations related to `vrel` composition or transitivity.
-/
import .id
namespace acie -----------------------------------------------------------------
namespace vrel -----------------------------------------------------------------
variables {V : Type} [decidable_eq V] -- Type of variable... |
6a84523641558536e44096478da2d17875d1fbb4 | 958488bc7f3c2044206e0358e56d7690b6ae696c | /lean/data_rewrite.lean | 5f19c846ae797ca7e92ccf3c99c5eb4eb24399bf | [] | no_license | possientis/Prog | a08eec1c1b121c2fd6c70a8ae89e2fbef952adb4 | d4b3debc37610a88e0dac3ac5914903604fd1d1f | refs/heads/master | 1,692,263,717,723 | 1,691,757,179,000 | 1,691,757,179,000 | 40,361,602 | 3 | 0 | null | 1,679,896,438,000 | 1,438,953,859,000 | Coq | UTF-8 | Lean | false | false | 503 | lean | universe u
example {α : Type u} [ring α] (a b c : α) :
a * 0 + 0 * b + c * 0 + 0 * a = 0 :=
begin
rw [mul_zero, mul_zero, zero_mul, zero_mul],
repeat { rw add_zero }
end
def ex2 {α : Type u} [ring α] (a b c : α) :
a * 0 + 0 * b + c * 0 + 0 * a = 0 :=
begin
rw [mul_zero, mul_zero, zero_mul, zero_... |
24e95bbfd786534acaee7480a105cd3fd1dd6504 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Elab/PreDefinition/WF/TerminationHint.lean | 2538b86a97c7eb7fce5c0dd908042f222310c88e | [
"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 | 8,321 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Parser.Command
namespace Lean.Elab.WF
/-! # Support for `decreasing_by` and `termination_by'` notations -/
structure TerminationHintValue whe... |
87fa59e60c7cf2e85ef50dd4836e0e074384cd4c | 2f8bf12144551bc7d8087a6320990c4621741f3d | /library/init/lean/declaration.lean | 7277f47455b89c3d2040a971191d38fa6248723b | [
"Apache-2.0"
] | permissive | jesse-michael-han/lean4 | eb63a12960e69823749edceb4f23fd33fa2253ce | fa16920a6a7700cabc567aa629ce4ae2478a2f40 | refs/heads/master | 1,589,935,810,594 | 1,557,177,860,000 | 1,557,177,860,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,407 | 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
-/
prelude
import init.lean.expr
namespace Lean
/--
Reducibility hints are used in the convertibility checker.
When trying to solve a constraint such a
... |
cf9e1a282f47237ca16e13074b22e9eb1d615f86 | 618003631150032a5676f229d13a079ac875ff77 | /src/topology/uniform_space/compare_reals.lean | 0f0b6be0b387cee9e2460e321b89f7b827ba3f92 | [
"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 | 4,781 | 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.absolute_value
import topology.instances.real
import topology.uniform_space.completion
/-!
# Comparison of Cauchy reals and Bourbaki re... |
512289a6697cae3600fe7b52334dc64a38ca2594 | ddf69e0b8ad10bfd251aa1fb492bd92f064768ec | /src/data/polynomial/basic.lean | 884675ef316f119ce95d97710608ceb1b09b0d4b | [
"Apache-2.0"
] | permissive | MaboroshiChan/mathlib | db1c1982df384a2604b19a5e1f5c6464c7c76de1 | 7f74e6b35f6bac86b9218250e83441ac3e17264c | refs/heads/master | 1,671,993,587,476 | 1,601,911,102,000 | 1,601,911,102,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,502 | 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, Scott Morrison, Jens Wagemaker
-/
import tactic.ring_exp
import tactic.chain
import algebra.monoid_algebra
import data.finset.sort
/-!
# Theory of univaria... |
f808b5c93fe78ae2abd41c7b6213a2ec29213e49 | 2f8bf12144551bc7d8087a6320990c4621741f3d | /library/init/env_ext.lean | 7f9a576014f8b3b00679115759161faf3a6d63a3 | [
"Apache-2.0"
] | permissive | jesse-michael-han/lean4 | eb63a12960e69823749edceb4f23fd33fa2253ce | fa16920a6a7700cabc567aa629ce4ae2478a2f40 | refs/heads/master | 1,589,935,810,594 | 1,557,177,860,000 | 1,557,177,860,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,135 | lean | prelude
/-
Environment extensions:
- private
* unsigned mCounter
* NameMap<Name> mInvMap; // map: hidden-Name -> user-Name (for pretty printing purposes) it is serialized
* NameSet mPrivatePrefixes; // transient (it is used for registerPrivateName)
- protected
* NameSet mProtected;
- noncomputa... |
0a8859c98bda6cd67841b01598e683a3d98a14cd | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/simp27.lean | 17753faec6f892b65fb5d2baccf3f00bb8361f54 | [
"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 | 339 | lean | rewrite_set simple
add_rewrite eq_id imp_truel imp_truer Nat::add_zeror : simple
variables a b : Nat
variable f : (Nat → Nat) → Nat
variable g : Nat → Nat
(*
local t = parse_lean('λ x x2, (∀ y, g y = x) → g (a + x + b) > x2 + g x')
local t2, pr = simplify(t, "simple")
print(t2)
print(pr)
get_environment():type_check... |
1fc5fd3f0fb94279bf47f23b64ac1f414cf0e9d8 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /library/algebra/priority.lean | 6c3145e6118b8c430b8097ea28faf8ac782ab0de | [
"Apache-2.0"
] | permissive | YHVHvx/lean | 732bf0fb7a298cd7fe0f15d82f8e248c11db49e9 | 038369533e0136dd395dc252084d3c1853accbf2 | refs/heads/master | 1,610,701,080,210 | 1,449,128,595,000 | 1,449,128,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 255 | 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
-/
namespace algebra
protected definition prio := num.sub std.priority.default 100
end algebra
|
8b155daaa56dfe18bf7dcc76a9a1cc4bb07b0bd2 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/algebra/order/compact.lean | 469fa59f229beb6f88b2613a9666fd130b046a71 | [
"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 | 17,905 | lean | /-
Copyright (c) 2021 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Yury Kudryashov
-/
import topology.algebra.order.intermediate_value
/-!
# Compactness of a closed interval
In this file we prove that a closed interval in a condition... |
991974c7e2693f076ea862b4bb792f3af4e26442 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/heapSort.lean | 34a8b68ffe726b8832cd0fd28089f968bd8ae0ab | [
"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 | 7,801 | lean | /-
Copyright (c) 2021 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
/-- A max-heap data structure. -/
structure BinaryHeap (α) (lt : α → α → Bool) where
arr : Array α
namespace BinaryHeap
/-- Core operation for binary heaps, expr... |
498e848ad0a3a09c46b3287437a4a9662ecc2d4c | 07f5f86b00fed90a419ccda4298d8b795a68f657 | /library/init/data/int/basic.lean | 2320afe311fbb980ffcc669e00016b6f116d2e40 | [
"Apache-2.0"
] | permissive | VBaratham/lean | 8ec5c3167b4835cfbcd7f25e2173d61ad9416b3a | 450ca5834c1c35318e4b47d553bb9820c1b3eee7 | refs/heads/master | 1,629,649,471,814 | 1,512,060,373,000 | 1,512,060,469,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,901 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
The integers, with addition, multiplication, and subtraction.
-/
prelude
import init.data.nat.lemmas init.data.nat.gcd init.meta.transfer init.data.list
open nat
/- the ... |
4f1517d0799919d48f53c1ece8dad422e4b33902 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/polynomial/inductions.lean | 67915ad78a8baafe98347dd92b18758edb52292b | [
"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 | 6,617 | lean | /-
Copyright (c) 2021 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Damiano Testa, Jens Wagemaker
-/
import data.nat.interval
import data.polynomial.degree.definitions
/-!
# Induction on polynomials
This f... |
9496c37b16b7f1bd0aa5c66d6bce6fe0a3fd0296 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/polynomial/lifts.lean | bd9b37d067e41580353559b82e39696fc46b0df4 | [
"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,958 | lean | /-
Copyright (c) 2020 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca
-/
import data.polynomial.algebra_map
import data.polynomial.monic
/-!
# Polynomials that lift
Given semirings `R` and `S` with a morphism `f : R →+* S`, we define a... |
902a5665709b2a86a663ddfb948949f580629a81 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/number_theory/arithmetic_function.lean | f0fded6d2a39cd497a72aac23ec0155d4135484d | [
"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 | 18,754 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import algebra.big_operators.ring
import number_theory.divisors
/-!
# Arithmetic Functions and Dirichlet Convolution
This file defines arithmetic functions, which a... |
0a60e8a94a03edda3ce0a8be383cd88bd0675f43 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/1375.lean | 96bee06272151a6d4f965dd0b1a86865302cd0ce | [
"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 | 175 | lean | example : True := by
fail_if_success (have : False := by assumption)
trivial
example : True := by
have : False := by
fail_if_success assumption
sorry
trivial
|
38a1b6102a56f53131c27269247e626058d2723e | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/algebra/category/Algebra/basic.lean | 2a292ee789845a4fb6faa28f7c6d2b644226563e | [
"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 | 4,782 | 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.algebra.basic
import algebra.algebra.subalgebra
import algebra.free_algebra
import algebra.category.CommRing.basic
import algebra.category.Module.basic... |
a2adaf05af8ee935def3273fed1e63670f96daa0 | 6e4f5982c07d6aa53cf055cdb5fa336dafa7571a | /src/basic.lean | e8c742c4e46302ab9adcdae4b3b616d7ecd7b1d5 | [] | no_license | Gunjeet-Singh/topology | cf3eb5547ad2dc7edc897f5a7ae252ff353e0e6d | 79f4f3afb634a04bb4d4544c9dc9b64bcdbaad32 | refs/heads/master | 1,673,176,391,277 | 1,603,952,291,000 | 1,603,952,291,000 | 308,227,575 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,163 | lean | import tactic
import data.real.basic
universe u
open set
structure topological_space (α : Type u) :=
(is_open : set α → Prop)
(is_open_univ : is_open univ)
(is_open_inter : ∀s t, is_open s → is_open t → is_open (s ∩ t))
(is_open_sUnion : ∀s, (∀t∈s, is_open t) → is_open (⋃₀ s))
structure topology (α : Typ... |
7066131037da88111f19a6fe5d4dfbe85659bf4a | ee8cdbabf07f77e7be63a449b8483ce308d37218 | /lean/src/test/mathd-algebra-125.lean | eaf3629059f0c1e2853b57e768a2b5c393d00802 | [
"MIT",
"Apache-2.0"
] | permissive | zeta1999/miniF2F | 6d66c75d1c18152e224d07d5eed57624f731d4b7 | c1ba9629559c5273c92ec226894baa0c1ce27861 | refs/heads/main | 1,681,897,460,642 | 1,620,646,361,000 | 1,620,646,361,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 269 | lean | /-
Copyright (c) 2021 OpenAI. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kunhao Zheng
-/
import data.real.basic
example (x y : ℕ+) (h₀ : 5 * x = y) (h₁ : (x - 3) + (y - 3) = 30) : x = 6 :=
begin
sorry
end
|
9c2aee99ffb9a1c267e34cf0228b96cfab46cf25 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/order/well_founded_auto.lean | 898a8152c39fc5e8204bb7901104de517320147a | [] | 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,854 | lean | /-
Copyright (c) 2020 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.set.basic
import Mathlib.PostPort
universes u_1
namespace Mathlib
/-... |
926d85cd87fbdd9d44ed10f5018bbfbf86d540e0 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/RightSpindle_Shelf.lean | a94f7345224dbb55357733fb2651c806d2e42e30 | [] | no_license | ysharoda/Deriving-Definitions | 3e149e6641fae440badd35ac110a0bd705a49ad2 | dfecb27572022de3d4aa702cae8db19957523a59 | refs/heads/master | 1,679,127,857,700 | 1,615,939,007,000 | 1,615,939,007,000 | 229,785,731 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,597 | lean | import init.data.nat.basic
import init.data.fin.basic
import data.vector
import .Prelude
open Staged
open nat
open fin
open vector
section RightSpindle_Shelf
structure RightSpindle_Shelf (A : Type) : Type :=
(rinv : (A → (A → A)))
(rightDistributive : (∀ {x y z : A} , (rinv (rinv y z) x) = (rinv (r... |
cee5da73d7a90a2fb6d1d100764d1718933ad1de | be853a09b5de8ba4d9114bd8a816647b584d4573 | /src/homework/practice_2.lean | 98f138777f71b542e10035dd854fa67644f35c52 | [] | no_license | sgoldberg02/cs2120f21mycopy | 4a665a92c5dcbb5b35be5461c42268c74366e3fa | 216fa0a813508d82594ac95aec0a048249f81291 | refs/heads/main | 1,692,136,103,389 | 1,632,328,880,000 | 1,632,328,880,000 | 405,192,256 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,084 | lean | /-
Prove the following simple logical conjectures.
Give a formal and an English proof of each one.
Your English language proofs should be complete
in the sense that they identify all the axioms
and/or theorems that you use.
-/
example : true := _
example : false := _ -- trick question? why?
example : ∀ (P : Prop)... |
3645f0dd7d6e72f8e31f6900ce77722a52bf2478 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/ring_theory/ideal/operations.lean | f903d842176bff29612cf10d1ff36527eb4cef74 | [
"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 | 86,073 | 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 algebra.algebra.operations
import algebra.ring.equiv
import data.nat.choose.sum
import ring_theory.coprime.lemmas
import ring_theory.ideal.quotient
import ring_theory.no... |
d56c5e7973da6e2dbc53a7e05f07d36674070be5 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/connected.lean | 3d678d0024937fac837797d1da437c421d763789 | [
"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 | 74,001 | 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, Yury Kudryashov
-/
import order.succ_pred.relation
import topology.subset_properties
import tactic.congrm
/-!
# Connected subsets of topological spaces... |
bf2e7b9af5dabec3b0023db97ed08a5603d60a6a | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/ring_theory/mv_polynomial/basic.lean | 5dcbf865db0a04ea8384626bdf3303ce5291ac9a | [
"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,466 | 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
-/
import ring_theory.ideal.operations
import linear_algebra.finsupp_vector_space
import algebra.char_p.basic
/-!
# Multivariate polynomials over commutative rings
Th... |
17fabf551823930045eef103ac428b9892bc9f4b | 928e43dd755d83a0986ba91420df8ad05b8d7c9f | /2_typesystems.lean | 69b40d008ee25b1ed03837bab9a5785e79ed0959 | [] | no_license | zmactep/llfgg | ea222b377095a42e0de5cf8d4846aff806ce0f31 | ed684ae69b94a4a042615c412fef68bdec8fc80c | refs/heads/master | 1,585,131,334,279 | 1,533,894,322,000 | 1,533,894,322,000 | 143,688,771 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,550 | lean | -- System F
def id_nat : ℕ → ℕ := λ x : ℕ, x -- функция id для натуральных чисел, для введения полифорфизма функция
-- также должна получать тип, это можно реализовать, например, введя переменную типа
universe u
variable α : Type u
def id_my : α → α := λ x : α, x -- получен... |
fecd28d90684b78242be007b3a00427c12784402 | e39f04f6ff425fe3b3f5e26a8998b817d1dba80f | /category_theory/fully_faithful.lean | 02e97e38d2dffb5ac0f72bd1c31cd18801d0b7ba | [
"Apache-2.0"
] | permissive | kristychoi/mathlib | c504b5e8f84e272ea1d8966693c42de7523bf0ec | 257fd84fe98927ff4a5ffe044f68c4e9d235cc75 | refs/heads/master | 1,586,520,722,896 | 1,544,030,145,000 | 1,544,031,933,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,645 | lean | -- Copyright (c) 2018 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
import category_theory.isomorphism
universes u₁ v₁ u₂ v₂ u₃ v₃
namespace category_theory
variables {C : Type u₁} [𝒞 : category.{u₁ v₁} C] {D : Type u₂} [𝒟 : ... |
f10cec40f94b48c4e08234770891281bcdb118a5 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/limits/preserves/finite.lean | 8619fd213fff2685c460989a66066f44bbbb37ec | [
"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 | 2,931 | lean | /-
Copyright (c) 2021 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import category_theory.limits.preserves.basic
import category_theory.fin_category
/-!
# Preservation of finite (co)limits.
These functors are also known as left exact (fl... |
af51bc13b2d75885fa713cfe3f393a6cc1f9d02f | f4bff2062c030df03d65e8b69c88f79b63a359d8 | /src/game/max/level08.lean | 506d5f053fd0f3386d84d28081d1059d4cc3a7ed | [
"Apache-2.0"
] | permissive | adastra7470/real-number-game | 776606961f52db0eb824555ed2f8e16f92216ea3 | f9dcb7d9255a79b57e62038228a23346c2dc301b | refs/heads/master | 1,669,221,575,893 | 1,594,669,800,000 | 1,594,669,800,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 760 | lean | import game.max.level07 -- hide
open_locale classical -- hide
noncomputable theory -- hide
namespace xena -- hide
/-
# Chapter ? : Max and abs
## Level 8
See if you can do `max_lt_iff` without introducing
any auxiliary hypotheses with `have`. Don't forget to
check the list of theorems to see the interface for `≤`... |
c73f0c98134daad81a38ee5e0ccfec40fdfb9cff | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/Server/FileWorker/Utils.lean | df05b44b2feca33714a9beb5b524de85978db3a7 | [
"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 | 3,736 | lean | /-
Copyright (c) 2020 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki, Marc Huisinga
-/
import Lean.Server.Utils
import Lean.Server.Snapshots
import Lean.Server.AsyncList
import Lean.Server.Rpc.Basic
namespace Lean.Server.FileWork... |
98f1d9475c838c25733194a2b144534e4f966d1d | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/nat/even_odd_rec.lean | cb861068866c7e68f2de79bd3962107b7a720a45 | [
"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 | 2,107 | lean | /-
Copyright (c) 2022 Stuart Presnell. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Stuart Presnell
-/
import data.nat.basic
/-! # A recursion principle based on even and odd numbers.
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a... |
76422495bd7579a8c68f789a988f736bea7cca75 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/order/filter/lift.lean | 0950523be76d27d594c9f202cff12be3d5cc1ef7 | [] | 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 | 21,580 | 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
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.order.filter.bases
import Mathlib.PostPort
universes u_1 u_2 u_3 u_4 u_5 u_6 u_7 u_8
nam... |
4d92dd4e664385d535a83a83038bcc5fa92515d6 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /tests/compiler/StackOverflow.lean | b741b114972bcccf0c11103f40e70c586547ac0b | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 116 | lean | #lang lean4
partial def foo : Nat → Nat | n => foo n + 1
@[neverExtract]
def main : IO Unit := IO.println $ foo 0
|
a8604c4171a5367ff1d1af602845595130864a37 | 82ad4119063bae9cb1cdabcb80c8f02d65e5b676 | /src/lecture1.lean | 073241b09dc3041f74088ba7b964b018190ded69 | [] | no_license | shingtaklam1324/analysis-i | fb009497e0410af51c2cdd8a6f440c7349d0a10b | 928dd413014ca6668560c504592e0a15a83ea63a | refs/heads/master | 1,677,838,878,682 | 1,612,371,654,000 | 1,612,371,654,000 | 332,424,640 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,836 | lean | import topology.instances.real
import topology.basic
import topology.algebra.group
import tactic
open_locale filter topological_space
open filter
notation `|` x `|` := abs x
/-
First, we shall define the definition of convergence of a sequence. mathlib uses filters, so
we will show the filter statement and the commo... |
8d0545903aaeda9af77b413228e48ff94a30145b | 0003047346476c031128723dfd16fe273c6bc605 | /src/tactic/basic.lean | 84895d32763d0aa7f272c69c951da90655fb6fbb | [
"Apache-2.0"
] | permissive | ChandanKSingh/mathlib | d2bf4724ccc670bf24915c12c475748281d3fb73 | d60d1616958787ccb9842dc943534f90ea0bab64 | refs/heads/master | 1,588,238,823,679 | 1,552,867,469,000 | 1,552,867,469,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 31,813 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Scott Morrison, Keeley Hoek
-/
import data.dlist.basic category.basic meta.expr meta.rb_map
namespace expr
open tactic
attribute [derive has_reflect] bin... |
776a93257c5de37aefc4a06246831680dac41122 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/arrow_auto.lean | cd54c3c45fbd6854d09c5b800dd7f23b5471814d | [] | 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 | 8,085 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.comma
import Mathlib.PostPort
universes v u l u₁ u₂ v₁ v₂
namespace Mathli... |
31b4e56a3ca464167c1e194980d13c24a8b6a99a | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/measure_theory/integral/lebesgue.lean | 8cf65d6d5b4ce31403280bcc3e4160e95cbc7574 | [
"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 | 109,926 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Johannes Hölzl
-/
import measure_theory.measure.mutually_singular
import measure_theory.constructions.borel_space
import algebra.indicator_function
import algebra.suppo... |
0d6600c2fe94256e1833c45ec087ef6eb2b44f43 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/topology/subset_properties.lean | 383b09b1d9b7e4225601f0e653e6551100d597a5 | [
"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 | 77,149 | 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, Yury Kudryashov
-/
import order.filter.pi
import topology.bases
import data.finset.order
import data.set.accumulate
import tactic.tfae
/-!
# Properties... |
ac68122da929c90f00546006a82c1818bb8d21d2 | dc253be9829b840f15d96d986e0c13520b085033 | /logic.hlean | b6863fcbd2f698ec8fb035fb21add91757542f15 | [
"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 | 1,507 | hlean | /-
Copyright (c) 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
-/
import types.trunc
open funext eq trunc is_trunc prod sum
--reserve prefix `¬`:40
--reserve prefix `~`:40
--reserve infixr ` ∧ `:35
--reserve infixr ` /\ `:35
--reserv... |
e4fed8b06ff6aa8e8ef833b4d6389c21851177a5 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/group_theory/group_action/opposite.lean | c0a98a8b8185d789e5a5b20b1a91fc632e65ef73 | [
"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 | 5,836 | lean | /-
Copyright (c) 2020 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import algebra.group.opposite
import group_theory.group_action.defs
/-!
# Scalar actions on and by `Mᵐᵒᵖ`
This file defines the actions on the opposite type `has_smul R M... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.