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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d0c1ceea7f50acd55b0e95df7bb42fcee8d0c3e5 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/linear_algebra/tensor_product.lean | 215fddce71f54c28ba79e9fb64189471a9e0c0af | [
"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 | 38,384 | 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 linear_algebra.bilinear_map
/-!
# Tensor product of modules over commutative semirings.
This file constructs the tensor... |
aabf9f70595f82051003941dd6da81dbb02f2db5 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/measure_theory/group/action.lean | 82da7ac4e501434d0ba09ac316d82cc36b4cc8a8 | [
"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 | 10,677 | lean | /-
Copyright (c) 2021 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import measure_theory.group.measurable_equiv
import measure_theory.measure.regular
import dynamics.ergodic.measure_preserving
import dynamics.minimal
/-!
# M... |
6adcf8baf77f111184595922b5e58c3809e3181a | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/slow/simp_loop.lean | 02f800ef5c10f86b05569d55b6f8d51972010abe | [
"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 | 259 | lean | import tactic
import macros
variable f : Nat → Nat
variable g : Nat → Nat
axiom Ax1 (a : Nat) : f a = g a
axiom Ax2 (a : Nat) : g a = f a
add_rewrite Ax1 Ax2
-- The following call to simp should produce a stack overflow
theorem T : f 0 = 0
:= by simp
|
5c257945eae3ad8eb9051e6400807c3a7993bc11 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/tactic/equiv_rw.lean | 6f254703f28377020d02f4cd1b37b56bf21ea408 | [
"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 | 12,058 | 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 tactic.simp_result
import tactic.clear
import control.equiv_functor.instances
/-!
# The `equiv_rw` tactic transports goals or hypotheses along equivalences.
... |
1c55f40ef886554c65f77760b9f2a5a8ed41e77e | 097294e9b80f0d9893ac160b9c7219aa135b51b9 | /instructor/propositional_logic/propositional_with_vars_2.lean | acf1114cd02cd35ef158c3d3f50f02b0fb2fd058 | [] | no_license | AbigailCastro17/CS2102-Discrete-Math | cf296251be9418ce90206f5e66bde9163e21abf9 | d741e4d2d6a9b2e0c8380e51706218b8f608cee4 | refs/heads/main | 1,682,891,087,358 | 1,621,401,341,000 | 1,621,401,341,000 | 368,749,959 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,171 | lean |
/-
Propositional logic.
-/
/-
Propositions.
P: Kevin Is at Home.
Q: It's warm outside.
If P and Q are propositions, then so are
- not P
- P and Q
- P or Q
- P implies Q
-/
/-
Syntax -- defines set of well formed expressions.
We formalize syntax as an inductive data type.
Expressions are then just values of this... |
9892ce4a497d65ab07b90e525ab7797ce03b78f2 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/linear_algebra/quadratic_form/real.lean | 6865657a450de8602ed7bd2b3932f9bb039684eb | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 4,354 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen, Kexing Ying, Eric Wieser
-/
import linear_algebra.quadratic_form.basic
import analysis.special_functions.pow
import data.real.sign
/-!
# Real quadratic forms
Sylvester's la... |
649008ddb10afaeb575be2ab01292bac349f5f9c | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /src/Lean/Compiler/IR/Borrow.lean | 1c8fcd2e06d0868ec7f550efab00bb773cef6d7b | [
"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 | 11,224 | 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.ExportAttr
import Lean.Compiler.IR.CompilerM
import Lean.Compiler.IR.NormIds
namespace Lean
namespace IR
namespace Borrow
namespace O... |
7583cc7712ca572ad07ba709c12fd70df95e50fa | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/tactic/explode.lean | 8fd32328bc850e4061e570d27b1870c86779b44a | [
"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,367 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Minchao Wu
-/
import tactic.core
/-!
# `#explode` command
Displays a proof term in a line by line format somewhat akin to a Fitch style
proof or the Metamath proof sty... |
9685827b4fe58dedccc219a01e81a4db11f11bec | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/probability_theory/notation.lean | 45b03c3e4ff8fe30e112f01ccb2ad2bed4a88cd8 | [
"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 | 2,394 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import measure_theory.function.conditional_expectation
/-! # Notations for probability theory
This file defines the following notations, for functions `X,Y`, measures `... |
b82d078cb2a49f465ddf817c86959dc029956a29 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/sheaves/sheaf_condition/opens_le_cover.lean | c74bb17306eea1799ad16cb27e28e1c76a362f89 | [
"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 | 7,693 | 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 topology.sheaves.sheaf_condition.sites
/-!
# Another version of the sheaf condition.
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file re... |
19f29cde840b14c519caa0fdbfe066d66f071eb6 | e61a235b8468b03aee0120bf26ec615c045005d2 | /stage0/src/Init/Lean/Compiler/IR/CompilerM.lean | 1ff594753cf83bbf8ecc0f3a7c28b35bcd63249c | [
"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 | 4,882 | 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.Reader
import Init.Lean.Environment
import Init.Lean.Compiler.IR.Basic
import Init.Lean.Compiler.IR.Format
namespace Lean
names... |
4c245c3ad7c3b1aabe9ab28cddba7f394e121875 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/Elab/Tactic/Induction.lean | 4a039f627aa246f7414b7f545ab44c32a7bcbd32 | [
"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 | 20,099 | 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, Sebastian Ullrich
-/
import Lean.Util.CollectFVars
import Lean.Parser.Term
import Lean.Meta.RecursorInfo
import Lean.Meta.CollectMVars
import Lean.Meta.Tactic... |
8863e5dd86c9ca66ac1bce9b697935e3b8b4bc58 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/ring_theory/integral_closure.lean | aadaeeac3f8bfc102044eb4ebd81d79c6b120fa8 | [
"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 | 47,369 | 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 data.polynomial.expand
import linear_algebra.finite_dimensional
import linear_algebra.matrix.charpoly.linear_map
import ring_theory.adjoin.fg
import ring_theory.finite_t... |
3df6c0546fbffa6ded2be02684834d00e6443724 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Parser/Term.lean | a6ebbda1d7e0be509d71d6e71684afbcc350da7e | [
"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 | 20,549 | 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.Attr
import Lean.Parser.Level
namespace Lean
namespace Parser
namespace Command
def commentBody : Parser :=
{ fn := ... |
65ab7bf889a8bfef97edf520a6c15acee453ebca | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/algebra/pointwise.lean | 3f26db9a988cfee5ee2b5c631cb4a7abb25e1f3d | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,969 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Floris van Doorn
-/
import algebra.module.basic
import data.set.finite
import group_theory.submonoid.basic
/-!
# Pointwise addition, multiplication, and scalar multipl... |
8a3f49366323112b07807f9bb237cb4bf5264f54 | 5df84495ec6c281df6d26411cc20aac5c941e745 | /src/formal_ml/with_top.lean | dcdf72fea1486cbe94a8ab7446130eb0f4977484 | [
"Apache-2.0"
] | permissive | eric-wieser/formal-ml | e278df5a8df78aa3947bc8376650419e1b2b0a14 | 630011d19fdd9539c8d6493a69fe70af5d193590 | refs/heads/master | 1,681,491,589,256 | 1,612,642,743,000 | 1,612,642,743,000 | 360,114,136 | 0 | 0 | Apache-2.0 | 1,618,998,189,000 | 1,618,998,188,000 | null | UTF-8 | Lean | false | false | 1,200 | lean | /-
Copyright 2020 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... |
b961b4126a08a0e9eaa10f07330f9d6e0321b2f5 | 7da5ceac20aaab989eeb795a4be9639982e7b35a | /src/group_theory/lie_type.lean | de72d774761b6866f650f7db00e7b9b22872ddbc | [
"MIT"
] | permissive | formalabstracts/formalabstracts | 46c2f1b3a172e62ca6ffeb46fbbdf1705718af49 | b0173da1af45421239d44492eeecd54bf65ee0f6 | refs/heads/master | 1,606,896,370,374 | 1,572,988,776,000 | 1,572,988,776,000 | 96,763,004 | 165 | 28 | null | 1,555,709,319,000 | 1,499,680,948,000 | Lean | UTF-8 | Lean | false | false | 5,232 | lean | import .basic data.dvector data.nat.prime
noncomputable theory
universes u v
/- Dynkin diagrams -/
/-- A Dynkin diagram is a graph where the edges are annotated with positive natural numbers. If an edge is annotated with 1, then it is undirected, otherwise directed -/
/- To do: maybe add hypothesis ¬edge x x -/
stru... |
aa41c5886b0a32543e09d6dc77b6bb4648bd612e | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/congr_tac2.lean | b0108cdaa3c43c902c0d943d99a72b12347ea737 | [
"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,325 | lean | import data.finset
open finset list
example (A : Type) (f : nat → nat → nat → nat) (a b : nat) : a = b → f a = f b :=
begin
intros,
congruence,
assumption
end
structure finite_set [class] {T : Type} (xs : set T) :=
(to_finset : finset T) (is_equiv : to_set to_finset = xs)
definition finset_set.is_subsingleton ... |
0e25f7b21f0175f06e9a59b62b38b01220380a79 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/char_p/algebra.lean | 0748eeb869bcbf8b5347daedf4d6fd86bb8124c5 | [
"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,077 | lean | /-
Copyright (c) 2021 Jon Eugster. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jon Eugster, Eric Wieser
-/
import algebra.char_p.basic
import ring_theory.localization.fraction_ring
import algebra.free_algebra
/-!
# Characteristics of algebras
In this file we desc... |
f80d155db33a9238e73c36dd2a466f4194180720 | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/topology/algebra/uniform_group.lean | 20de10ff7045b7ce9690f273b52c84b181b5cd54 | [
"Apache-2.0"
] | permissive | molodiuc/mathlib | cae2ba3ef1601c1f42ca0b625c79b061b63fef5b | 98ebe5a6739fbe254f9ee9d401882d4388f91035 | refs/heads/master | 1,674,237,127,059 | 1,606,353,533,000 | 1,606,353,533,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 19,663 | 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_embedding
import topology.uniform_space.complete_separated
import topology.algebra.group
import tactic.abel
/-!... |
cdb1225c2e5893ffc9af555ce39e80aa3b08a3ac | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/vector3.lean | fef88f084d99b791111a26648e535fc35f6a8e62 | [
"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 | 7,940 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.fin.fin2
import tactic.localized
/-!
# Alternate definition of `vector` in terms of `fin2`
This file provides a locale `vector3` which overrides `[a, b,... |
1a5ff6e725cf2deffbac92398e2c630dfadac497 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/def_brec4.lean | 957891c4132d59d896ac9a40bc37e129bb240e09 | [
"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 | 492 | lean | open nat
inductive bv : nat → Type
| nil : bv 0
| cons : ∀ (n) (hd : bool) (tl : bv n), bv (succ n)
open bv
variable (f : bool → bool → bool)
definition map2 : ∀ {n}, bv n → bv n → bv n
| 0 nil nil := nil
| (n+1) (cons .n b1 v1) (cons .n b2 v2) := cons n (f b1 b2) (map2 v1 v2)
example :... |
5cf60ef4d30579afd495b7241077be3e7d12b48f | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/field_theory/fixed_auto.lean | 1f322973220cac81b5d2256751c6cc8d25c1b287 | [] | 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 | 10,256 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.polynomial.group_ring_action
import Mathlib.deprecated.subfield
import Mathlib.field_theory.n... |
4ab6f14126a77d9597a8b6562b59c586a79697c2 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/topology/category/Compactum.lean | 6781d7a5b8c038ef04093d1425acc6b3f7596207 | [
"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 | 16,495 | 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 category_theory.monad.types
import category_theory.monad.limits
import category_theory.equivalence
import topology.category.CompHaus
import data.set.constructions
/-... |
f8834bf989dda7cefc1affe7772783419f282208 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Init/Data/Stream.lean | f1e464871aebf68b470406250f9ca8c01a13c461 | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 3,192 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich, Andrew Kent, Leonardo de Moura
-/
prelude
import Init.Data.Array.Subarray
import Init.Data.Range
/-
Remark: we considered using the following alternative des... |
0451e1318e185e80a0e846c004944a4b59999c58 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/fintype/sigma.lean | 7cea94a731f50de8f599af7a01e9a6a6b168035c | [
"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 | 978 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.fintype.basic
import data.finset.sigma
/-!
# fintype instances for sigma types
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file re... |
e3f24a8c92446c42dc89bdb3604ff1a86130ebbc | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/integral_domain.lean | 1f325173541f94d44a064bbc24ae65c76032f973 | [
"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 | 10,080 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Chris Hughes
-/
import data.polynomial.ring_division
import group_theory.specific_groups.cyclic
import algebra.geom_sum
/-!
# Integral domains
> THIS FILE IS SYNCHRO... |
1d9b1888b0a3f043f30a081ac2ce0b47c2a44203 | 00c000939652bc85fffcfe8ba5dd194580a13c4b | /src/qpf.lean | 5c7690c514112f39c6578f859a590fe13d7c1453 | [
"Apache-2.0"
] | permissive | johoelzl/qpf | a795220c4e872014a62126800313b74ba3b06680 | d93ab1fb41d085e49ae476fa364535f40388f44d | refs/heads/master | 1,587,372,400,745 | 1,548,633,467,000 | 1,548,633,467,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,009 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
We assume the following:
`P` : a polynomial functor
`W` : its W-type
`M` : its M-type
`F` : a functor
We define:
`q` : `qpf` data, representing `F` as a quoti... |
ec0b4ebc027578f9df26391becccdf21bb403639 | 618003631150032a5676f229d13a079ac875ff77 | /src/data/option/defs.lean | f19e3502d0935862788890752450a2e015dd22f8 | [
"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,758 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Extra definitions on option.
-/
namespace option
variables {α : Type*} {β : Type*}
attribute [inline] option.is_some option.is_none
/-- An elimination principle for ... |
761b56e5ed95433ab889d0eb928625d000ef791c | 0c1546a496eccfb56620165cad015f88d56190c5 | /library/init/meta/level.lean | d47b992dc40bf70cda343ef34324f00eb444e166 | [
"Apache-2.0"
] | permissive | Solertis/lean | 491e0939957486f664498fbfb02546e042699958 | 84188c5aa1673fdf37a082b2de8562dddf53df3f | refs/heads/master | 1,610,174,257,606 | 1,486,263,620,000 | 1,486,263,620,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,313 | 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.name init.meta.format
/- Reflect a C++ level object. The VM replaces it with the C++ implementation. -/
inductive level
| zero :... |
0bde239a3ffc64e0e1a863a2dad0b002765ea8b9 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/geometry/manifold/cont_mdiff.lean | 2ffd0e1c3c7d883cf36172b6200bf857ebd34b7a | [
"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 | 87,379 | 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, Floris van Doorn
-/
import geometry.manifold.smooth_manifold_with_corners
import geometry.manifold.local_invariant_properties
/-!
# Smooth functions between smoo... |
87003ed94bcfb2e8d998ed91c54925e949219502 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/order/boolean_algebra.lean | e605c65b9966c472f8d654dae68b7db1107e96f4 | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 3,281 | 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
Type class hierarchy for Boolean algebras.
-/
import order.bounded_lattice
import logic.function.basic
set_option old_structure_cmd true
universes u
variables {α : Typ... |
3f38d6a2f263e96e90e3d4696f0ac09fa11e16af | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/640.hlean | 29f59ef4823cd9e3e54962b2eb1a3aebffbafe37 | [
"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 | 635 | hlean | import hit.quotient
open quotient eq sum
constants {A : Type} (R : A → A → Type)
local abbreviation C := quotient R
definition f [unfold 2] (a : A) (x : unit) : C :=
!class_of a
inductive S : C → C → Type :=
| Rmk {} : Π(a : A) (x : unit), S (f a x) (!class_of a)
set_option pp.notation false
set_o... |
ab17a3a10a48630647e39a6f82617c9a0455e005 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/measure_theory/function/conditional_expectation/indicator.lean | fdba24c63553a88c3c6dc5b31cd32976b7d21d2c | [
"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 | 10,115 | lean | /-
Copyright (c) 2022 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import measure_theory.function.conditional_expectation.basic
/-!
# Conditional expectation of indicator functions
This file proves some results about the conditional ... |
b2b326fa955b666e25ec73f98e0511dddd67349a | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Init/Control/Option.lean | e9b4d14f8d150e2c286919eb673fefa099e2f94b | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 2,158 | 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, Sebastian Ullrich
-/
prelude
import Init.Data.Option.Basic
import Init.Control.Basic
import Init.Control.Except
universe u v
instance {α} : ToBool (Option α... |
110fd9c977cded91e52cf6b743075ea72283831d | 5d95c8513fa8592ce314d1f40c23ad5eecfe1e34 | /src/algebra/theories/action.lean | b8f1a453ab6376ecef275fa4cd9502fba04e4906 | [
"Apache-2.0"
] | permissive | solovay/lean-universal | 6b792513ced2fe82218e7828400743375dd59e24 | 417ed5e1b030e547912cbfefe34df9d3d01c2b65 | refs/heads/master | 1,598,052,603,315 | 1,565,981,123,000 | 1,565,981,123,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,748 | lean | -- Copyright © 2019 François G. Dorais. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
import .basic
namespace algebra
signature left_action (α : Type*) (β : Type*) :=
(act : α → β → β)
class left_action {α : Type*} {β : Type*} (s : left_action_sig α β) : Prop := intro ... |
092bed65799c62bfe16e698be6652b9754d39b33 | 54ce0561cebde424526f41d45f490ed56be2bd0c | /src/game/ch2_Natural_Numbers/1_The_Peano_axioms.lean | ee17d155af2979cba51af7dd41c1e3dd137f1fa5 | [] | no_license | melembroucarlitos/Tao_Analysis-LEAN | cf7b3298d317891a09e4bf21cfe7c7ffcb57b9a9 | 3f4fc7e090d96b6cef64896492fba4bef124794b | refs/heads/master | 1,692,952,385,694 | 1,636,287,522,000 | 1,636,287,522,000 | 400,630,166 | 3 | 0 | null | 1,635,910,807,000 | 1,630,096,823,000 | Lean | UTF-8 | Lean | false | false | 1,201 | lean | -- Level name : The Peano axioms
/-
Definition 2.1.1 (Informal)
ℕ := {0, 1, 2, 3, 4, ...}
-/
constant myNat: Type
/-Axiom: 2.1
0 is a natural number
-/
axiom zero : myNat
/-Axiom: 2.2
If n is a natural number, then n++ is also a natural number
-/
axiom succ : myNat → myNat
-- Definition 2.1.3
-- Proposition 2.1.4
... |
943422f65ea39ccaa4ad5a1e0a80aad117caf711 | 947b78d97130d56365ae2ec264df196ce769371a | /src/Lean/Util/MonadCache.lean | 661121ca2dec07be028be15aebe54fff15dc3a38 | [
"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 | 6,037 | 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 Std.Data.HashMap
namespace Lean
/-- Interface for caching results. -/
class MonadCache (α β : Type) (m : Type → Type) :=
(findCached? : α → m (Optio... |
80770fdb02bb8b846b32abcfed970cc8f450232b | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/data/int/basic.lean | 8b5cc306ad432343e3fa0b328cfd16923410160f | [
"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 | 51,600 | 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.
-/
import data.nat.basic data.list.basic algebra.char_zero algebra.order_functions
open nat
namespace int
... |
64381fc84bcb47017391adadd69cfabf75ee962c | a4673261e60b025e2c8c825dfa4ab9108246c32e | /tests/lean/match1.lean | 79e72797ce26ac1280f2be9d7796af8ba240f336 | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,517 | lean | --
#print "---- h1"
def h1 (b : Bool) : Nat :=
match b with
| true => 0
| false => 10
#eval h1 false
#print "---- h2"
def h2 (x : List Nat) : Nat :=
match x with
| [x1, x2] => x1 + x2
| x::xs => x
| _ => 0
#eval h2 [1, 2]
#eval h2 [10, 4, 5]
#eval h2 []
#print "---- h3"
def h3 (x : Array Nat) : Nat :... |
6e10a155e8f0a5ac0487864319f40e9d25d03bc2 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Util/MonadCache.lean | b11bb11a31b127545414cef7e2c0b1e2b57ccfe3 | [
"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,817 | 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.Data.HashMap
namespace Lean
/-- Interface for caching results. -/
class MonadCache (α β : Type) (m : Type → Type) where
findCached? : α → m ... |
db0e108120ca277187b65a1193e8cb2f853350b6 | 98beff2e97d91a54bdcee52f922c4e1866a6c9b9 | /src/category/preserving.lean | 3281917fd73efad0b1d805b8768eb8a5526a1b22 | [] | no_license | b-mehta/topos | c3fc43fb04ba16bae1965ce5c26c6461172e5bc6 | c9032b11789e36038bc841a1e2b486972421b983 | refs/heads/master | 1,629,609,492,867 | 1,609,907,263,000 | 1,609,907,263,000 | 240,943,034 | 43 | 3 | null | 1,598,210,062,000 | 1,581,877,668,000 | Lean | UTF-8 | Lean | false | false | 10,882 | lean | import category_theory.limits.limits
import category_theory.comma
import category_theory.limits.over
import category_theory.limits.shapes.constructions.equalizers
import category.preserve_binary_products
import category.pullbacks
namespace category_theory
noncomputable theory
open category limits
universes v u v₂ u₂
... |
c440b8988ee9b62995b57c1149939020a3323276 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/data/finset/locally_finite.lean | dfc91aa831ea4be11f46a7537472533adc1dd2b9 | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,079 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Yaël Dillies
-/
import order.locally_finite
/-!
# Intervals as finsets
This file provides basic results about all the `finset.Ixx`, which are defined in
`order.locall... |
b6995c6f5e76fe08848b465fb1f3ef5ed40dd5c0 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/field_theory/krull_topology.lean | 79eff4c09f6de30272633b7be144ddaa3f6a6074 | [
"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 | 13,217 | lean | /-
Copyright (c) 2022 Sebastian Monnet. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Monnet
-/
import field_theory.galois
import topology.algebra.filter_basis
import topology.algebra.open_subgroup
import tactic.by_contra
/-!
# Krull topology
We define th... |
004e8dda787ef4ca1390cea7e0f79f79a868e98a | 94e33a31faa76775069b071adea97e86e218a8ee | /src/algebraic_geometry/Scheme.lean | d071a492cc6c76bbfab0b59c53356f61881e529d | [
"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 | 9,534 | 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... |
5551af318af9b1e0297f24a2ada3d7ff7907f645 | 5e60919d574b821fabd9387be5589c0c4d3f3fe2 | /src/unitb/models/pointers/basic.lean | a31c0b76936e12f1326c57040d884aa0036564fd | [] | no_license | unitb/unitb-pointers | 3fc72b873377a12e3f677ccd30143fc001a56c63 | c057420c1e72bba00181bc6db30cf369ef2bfd23 | refs/heads/master | 1,629,969,967,065 | 1,511,386,892,000 | 1,511,386,892,000 | 110,323,164 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,240 | lean |
import unitb.logic
import unitb.scheduling
import separation.specification
universes u
namespace unitb.pointers
open unitb separation
section definitions
parameter σ : Type u
private def pred := σ → Prop
parameter {σ}
variable inv : pred
variable shape : σ → hprop
parameter σ
structure event :=
(coarse : pr... |
ff6c309ba6b4a8030c1c46ed3480d4eb01196521 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /tests/lean/run/forest_height.lean | dd1a3656267756fd6ee5b4134f346bde72c70aaf | [
"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 | 4,292 | lean | import data.nat.basic data.sum data.sigma data.bool
open nat sigma
inductive tree (A : Type) : Type :=
| node : A → forest A → tree A
with forest : Type :=
| nil : forest A
| cons : tree A → forest A → forest A
namespace manual
check tree.rec_on
definition tree.height {A : Type} (t : tree A) : nat :=
tree.rec_on t
... |
482d62f84de6f3814e02fe13dff0193a44bce020 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/simpa.lean | 0d0ab4a381357e8ebcec20fe8fd5d07735cab7ee | [
"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,434 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import tactic.doc_commands
open interactive
open interactive.types
namespace tactic
namespace interactive
open expr lean.parser
local postfix (name := parser.optio... |
b1d488306e27fa38b1bdbb99a317d00685587281 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/field_power.lean | 03038e1bb81a8222b780ae965b8ab5fd9bd2e52e | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 8,840 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import algebra.group_with_zero.power
import tactic.linarith
import data.equiv.ring
/-!
# Integer power operation on fields and division rings
This file collects b... |
a61562f845ba3541c30d00caf88c7cfc5842aeb6 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/lake/Lake/Util/Async.lean | f52ddb143ed8f8cf5072a7729d0d94e97f6bbdaf | [
"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 | 11,073 | lean | /-
Copyright (c) 2021 Mac Malone. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mac Malone
-/
import Lake.Util.Task
import Lake.Util.OptionIO
import Lake.Util.Lift
/-!
This module Defines the asynchronous monadic interface for Lake.
The interface is composed of three... |
255c9d34be0b42e49e08a1db90a953c4499eafba | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/topology/metric_space/algebra.lean | d0ae10f54034f938ed8b6068392201ef8b065e33 | [
"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,125 | lean | /-
Copyright (c) 2021 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import topology.algebra.mul_action
import topology.metric_space.lipschitz
/-!
# Compatibility of algebraic operations with metric space structures
In this file we... |
cf892fbc3a8197777a5fb647fe55783e0d51e024 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/tactic/compute_degree.lean | fcf643a7266cf499ae0e96f415c68de689ceba3c | [
"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,337 | 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 data.polynomial.degree.lemmas
/-! # `compute_degree_le` a tactic for computing degrees of polynomials
This file defines the tactic `compute_degree_le`.
Using ... |
7be831980f000d358c7fbd94733cc532d7dd8f1a | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/order/lattice.lean | 66877bbc6e257a81c28256133dc2fe480f1da204 | [
"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 | 42,125 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import order.monotone
import order.rel_classes
import tactic.simps
import tactic.pi_instances
/-!
# (Semi-)lattices
Semilattices are partially ordered sets with joi... |
80bd638f53c81137c5225c26105d59d59221b7c0 | f00cc9c04d77f9621aa57d1406d35c522c3ff82c | /library/init/data/list/basic.lean | f60f55e34d1fc4c2caf4a564ebcfa0d945c6aaf9 | [
"Apache-2.0"
] | permissive | shonfeder/lean | 444c66a74676d74fb3ef682d88cd0f5c1bf928a5 | 24d5a1592d80cefe86552d96410c51bb07e6d411 | refs/heads/master | 1,619,338,440,905 | 1,512,842,340,000 | 1,512,842,340,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,824 | 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 init.data.nat.basic init.data.bool.basic init.propext
open decidable list
universes u v w
instance (α : Type u) : inhabited (list... |
c983284b4cad31c5387ee4f18914e7d2a696f5a4 | 35b83be3126daae10419b573c55e1fed009d3ae8 | /_target/deps/mathlib/data/padics/padic_integers.lean | 17a23982ab87cf6c02df66d57ab96fd7d0705adf | [] | 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 | 10,927 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
Define the p-adic integers ℤ_p as a subtype of ℚ_p. Construct algebraic structures on ℤ_p.
-/
import data.padics.padic_numbers ring_theory.ideals data.int.modeq
impo... |
745302dcd00a08ad93462f85880bba5c136950f4 | c45b34bfd44d8607a2e8762c926e3cfaa7436201 | /uexp/src/uexp/rules/ExtractJoinFilterRule.lean | 4622c6d213623f495b5b7e3b7bc60c4c5a8201ff | [
"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,870 | lean | import ..sql
import ..tactics
import ..u_semiring
import ..extra_constants
import ..ucongr
import ..TDP
import ..cosette_tactics
set_option profiler true
open Expr
open Proj
open Pred
open SQL
open tree
notation `int` := datatypes.int
variable integer_1: const datatypes.int
theorem rule:
forall ( Γ scm_t scm_ac... |
f2db56503166affa21623757738266dfb9d77bb2 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/group_theory/presented_group.lean | e1c6eb448ef22e356d5a891981832cbd6295edc4 | [
"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,087 | lean | /-
Copyright (c) 2019 Michael Howes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michael Howes
-/
import group_theory.free_group
import group_theory.quotient_group
/-!
# Defining a group given by generators and relations
Given a subset `rels` of relations of the f... |
ca4cd67b1bfc20e7dcbd8f787413a82a898d1b23 | da23b545e1653cafd4ab88b3a42b9115a0b1355f | /src/tidy/force.lean | 52d64540b0d8c10cac79df506655859b8ddb9777 | [] | no_license | minchaowu/lean-tidy | 137f5058896e0e81dae84bf8d02b74101d21677a | 2d4c52d66cf07c59f8746e405ba861b4fa0e3835 | refs/heads/master | 1,585,283,406,120 | 1,535,094,033,000 | 1,535,094,033,000 | 145,945,792 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 408 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
open tactic
meta def force { α : Type } (t : tactic α) : tactic α :=
do
goals ← get_goals,
result ← t,
goals' ← get_goals,
guard (goals ≠ goals') <|> fa... |
bcab0ce32b5ede03927fec0d99880e8ae5675308 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebraic_geometry/presheafed_space/has_colimits.lean | 5f6f6fe4f78a3718d969be7c61dbfffd2567c0a9 | [
"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,254 | 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.presheafed_space
import topology.category.Top.limits
import topology.sheaves.limits
import category_theory.limits.concrete_category
/-!
# `... |
c15a9bd16822e7eed70899813d15f541fee3937e | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/algebra/category/Mon/basic.lean | 559012232dfbf09328e4ef7f9faad7f200637db1 | [
"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 | 6,846 | 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.concrete_category.bundled_hom
import category_theory.concrete_category.reflects_isomorphisms
import algebra.punit_instances
/-!
# Category ins... |
d684d6d7b4ff3642ea9e57f8d2f0ac0e6054729c | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/algebra/binary.lean | c29b5c7469e04e71ad5f93e551bf707c3ad72af8 | [
"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 | 3,288 | 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, Jeremy Avigad
General properties of binary operations.
-/
open eq.ops function
namespace binary
section
variable {A : Type}
variables (op₁ : A → A... |
b4c37e4e810755784c30d668596c94e2d3c8492e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/multiset/antidiagonal_auto.lean | c0cda906d6aa486c234562cdc5e30fa87ca6cf64 | [] | 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 | 2,531 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.multiset.powerset
import Mathlib.PostPort
universes u_1 u_2
namespace Mathlib
/-!
#... |
64ff697ad6b948cdf040331979224e5a6ea987a3 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/category_theory/idempotents/biproducts.lean | 0041beec748fe4afddc60d0bbc2b532a443114c3 | [
"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 | 5,905 | lean | /-
Copyright (c) 2022 Joël Riou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joël Riou
-/
import category_theory.idempotents.karoubi
/-!
# Biproducts in the idempotent completion of a preadditive category
In this file, we define an instance expressing that if `C... |
18f8b8636aabf70fa0b863944aaa09ec530575d3 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/analysis/box_integral/box/subbox_induction.lean | 0d90df0b11f7c78e602ad9094fccdd553fb6b9fe | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 8,001 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.box_integral.box.basic
import analysis.specific_limits
/-!
# Induction on subboxes
In this file we prove the following induction principle for `bo... |
2644f67d1f31e2f3405833d436b0d076b9c2781c | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/number_theory/wilson.lean | e3a4f7c3f3a45e5a724225959d336d283696cbfb | [
"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,673 | lean | /-
Copyright (c) 2022 John Nicol. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: John Nicol
-/
import number_theory.legendre_symbol.gauss_eisenstein_lemmas
/-!
# Wilson's theorem.
This file contains a proof of Wilson's theorem.
The heavy lifting is mostly done by th... |
fc35c200df93b2abc2502713ddd72f6caf8a5e2c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/converter/interactive_auto.lean | a86c362bd82ead27e22bbfe0ebd27b8d5570738c | [] | 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 | 437 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Lucas Allen, Keeley Hoek, Leonardo de Moura
Converter monad for building simplifiers.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.core
... |
d236dd3ed757c15713da3326b8ce106dcfdc67d7 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/set_theory/ordinal_arithmetic.lean | 01234700accbb3eb751cb3260c1f02e7863ab737 | [] | 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 | 44,491 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.set_theory.ordinal
import Mathlib.PostPort
universes u_1 u_2 u u_3 v
namespace Mathlib
/... |
d977ddd14a9cceb478217f3548452f8380450845 | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/data/finset.lean | 682093a8bbab017de10a08e9a227b2661fdde675 | [
"Apache-2.0"
] | permissive | keeferrowan/mathlib | f2818da875dbc7780830d09bd4c526b0764a4e50 | aad2dfc40e8e6a7e258287a7c1580318e865817e | refs/heads/master | 1,661,736,426,952 | 1,590,438,032,000 | 1,590,438,032,000 | 266,892,663 | 0 | 0 | Apache-2.0 | 1,590,445,835,000 | 1,590,445,835,000 | null | UTF-8 | Lean | false | false | 123,073 | 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, Jeremy Avigad, Minchao Wu, Mario Carneiro
Finite sets.
-/
import data.multiset
import tactic.monotonicity
import tactic.apply
open multiset subtype nat
vari... |
351981d64af8234d4ee93f930b649b13fa29e8a5 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /stage0/src/Lean/Compiler.lean | ba021f7197a841d14738d81170ab4198920efd78 | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 433 | 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.InlineAttrs
import Lean.Compiler.Specialize
import Lean.Compiler.ConstFolding
import Lean.Compiler.ClosedTermCache
import Lean.Compiler... |
ef5f939c1abfc5847713e1bac6aa5933488612ec | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/data/nat/bitwise.lean | efa91e7590f315e327d02d3a65d99a5f5c5d9e19 | [
"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 | 746 | 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.data.nat.basic init.data.nat.div init.coe
namespace Nat
partial def bitwise (f : Bool → Bool → Bool) : Nat → Nat → Nat | n m :=
if n = ... |
0cace6e534bd5a6804928078e32c7032fce0e754 | 6f510b1ed724f95a55b7d26a8dcd13e1264123dd | /src/page03.lean | 0362cf44028b02deed29bb58b7e2eb64b420f179 | [] | no_license | jcommelin/oberharmersbach2019 | adaf2e54ba4eff7c178c933978055ff4d6b0593b | d2cdf780a10baa8502a9b0cae01c7efa318649a6 | refs/heads/master | 1,587,558,516,731 | 1,550,558,213,000 | 1,550,558,213,000 | 170,372,753 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 702 | lean | import data.real.basic tactic.ring tactic.tidy
/- Definitions -/
definition double (n : ℕ) : ℕ := n + n
#check double
#check double ∘ double
definition quadruple : ℕ → ℕ := double ∘ double
definition FLT : Prop :=
∀ n > 2, ∀ x y z, x^n + y^n = z^n → (x = 0 ∨ y = 0)
theorem Wiles : FLT :=
begin
unfold FLT,
in... |
3496c6f44b2cf0a13e8f66cbb9007a58099e9f1a | 437dc96105f48409c3981d46fb48e57c9ac3a3e4 | /src/linear_algebra/dual.lean | 4421db09916dd1cb3aa1c53c7cd8b51af3cb9ccb | [
"Apache-2.0"
] | permissive | dan-c-k/mathlib | 08efec79bd7481ee6da9cc44c24a653bff4fbe0d | 96efc220f6225bc7a5ed8349900391a33a38cc56 | refs/heads/master | 1,658,082,847,093 | 1,589,013,201,000 | 1,589,013,201,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,875 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Fabian Glöckle
-/
import linear_algebra.finite_dimensional
import tactic.apply_fun
noncomputable theory
/-!
# Dual vector spaces
The dual space of an R-module M is th... |
99931a347a23b32d4980dcf8e3c584e073270e1c | 6772a11d96d69b3f90d6eeaf7f9accddf2a7691d | /universal.lean | 8f53afa7df6d807b530ee57b2507239cbea2b6a4 | [] | no_license | lbordowitz/lean-category-theory | 5397361f0f81037d65762da48de2c16ec85a5e4b | 8c59893e44af3804eba4dbc5f7fa5928ed2e0ae6 | refs/heads/master | 1,611,310,752,156 | 1,487,070,172,000 | 1,487,070,172,000 | 82,003,141 | 0 | 0 | null | 1,487,118,553,000 | 1,487,118,553,000 | null | UTF-8 | Lean | false | false | 4,437 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Stephen Morgan, Scott Morrison
import .category
import .functor
import .natural_transformation
open tqft.categories
namespace tqft.categories.universal
structure InitialObjec... |
d0663bed426be243e3c299da1d7af72193b8e918 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/tactic/simp_command.lean | 25580f9633964613f400c097cdb5162168797481 | [
"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 | 4,929 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Keeley Hoek, Scott Morrison
-/
import tactic.core
/-!
## #simp
A user command to run the simplifier.
-/
namespace tactic
/-- Strip all annotations of non local constants in the pass... |
f5d2dae3b8c7a224cfe8da132253eeef0f0e6bf6 | 4727251e0cd73359b15b664c3170e5d754078599 | /archive/100-theorems-list/9_area_of_a_circle.lean | 46e82290840589d965f8242d1d75608bdfeaf1b6 | [
"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 | 6,499 | lean | /-
Copyright (c) 2021 James Arthur, Benjamin Davidson, Andrew Souther. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: James Arthur, Benjamin Davidson, Andrew Souther
-/
import measure_theory.integral.interval_integral
import analysis.special_functions.sqrt
import analy... |
1c080432fbd535a39b1682960c686ea496a1755e | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/prodtst.lean | 7adf7e0c1103f1c3009f39145b8cd9153fde1148 | [
"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 | 107 | lean | --
inductive prod2 (A B : Type.{_+1})
| mk : A → B → prod2
set_option pp.universes true
check @prod2
|
2adf6d65c6d324b5f2ffdb13b543313833ae9deb | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/logic/small.lean | b99dfb1e0a84640bca596b2f7be05a7f02e7249e | [
"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 | 3,957 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import data.equiv.encodable.basic
import data.fintype.basic
/-!
# Small types
A type is `w`-small if there exists an equivalence to some `S : Type w`.
We provide a... |
c4bc5bfd6bd0d76f2264df91187295e7953d243d | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /library/data/encodable.lean | c3f310173435cbb1a63c4f6cbae0b3a10aefb2cf | [
"Apache-2.0"
] | permissive | jroesch/lean | 30ef0860fa905d35b9ad6f76de1a4f65c9af6871 | 3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2 | refs/heads/master | 1,586,090,835,348 | 1,455,142,203,000 | 1,455,142,277,000 | 51,536,958 | 1 | 0 | null | 1,455,215,811,000 | 1,455,215,811,000 | null | UTF-8 | Lean | false | false | 13,690 | 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
Type class for encodable types.
Note that every encodable type is countable.
-/
import data.fintype data.list data.list.sort data.sum data.nat.div data.countab... |
4b73f9f7829154b6182d7e53a8281e1a664fdc9e | 92b50235facfbc08dfe7f334827d47281471333b | /library/algebra/order.lean | e549024cc0f522842a2e6c4e283298c40f652937 | [
"Apache-2.0"
] | permissive | htzh/lean | 24f6ed7510ab637379ec31af406d12584d31792c | d70c79f4e30aafecdfc4a60b5d3512199200ab6e | refs/heads/master | 1,607,677,731,270 | 1,437,089,952,000 | 1,437,089,952,000 | 37,078,816 | 0 | 0 | null | 1,433,780,956,000 | 1,433,780,955,000 | null | UTF-8 | Lean | false | false | 18,136 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Weak orders "≤", strict orders "<", and structures that include both.
-/
import logic.eq logic.connectives algebra.binary algebra.priority
open eq eq.ops
namespace algebr... |
b82f759f61bc9b966a177ae261f24cdb21aef083 | 90edd5cdcf93124fe15627f7304069fdce3442dd | /stage0/src/Lean/Aesop/BestFirstSearch.lean | ef6641a14485ff22d7b93e746a6b16c93a22e53c | [
"Apache-2.0"
] | permissive | JLimperg/lean4-aesop | 8a9d9cd3ee484a8e67fda2dd9822d76708098712 | 5c4b9a3e05c32f69a4357c3047c274f4b94f9c71 | refs/heads/master | 1,689,415,944,104 | 1,627,383,284,000 | 1,627,383,284,000 | 377,536,770 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,358 | lean | /-
Copyright (c) 2021 Jannis Limperg. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jannis Limperg, Asta Halkjær From
-/
import Lean.Aesop.Rule
import Lean.Aesop.Tree
import Lean.Aesop.Util
open Lean
open Lean.Meta
open Lean.Elab
open Lean.Elab.Tactic
open Std (Bino... |
dd4e0d41ff751c2e4cdb00b5dbaa9ff9936d73e3 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/category/equiv_functor.lean | 97ed35bfcae01e9a7fd2b437656fd2bb6113f780 | [
"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 | 2,356 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Scott Morrison
-/
import category_theory.category
import data.equiv.functor
/-!
# Functions functorial with respect to equivalences
An `equiv_functor` is a function from `Type → Type... |
1f240fad4b5ac374284d54c875329debeecf0c98 | c6ff7f82fbfbc4ed06a4edc8adf7239c6aba6945 | /src/linear_algebra/bilinear_map.lean | 25b067f982c683070442e16527b38c116ee20ab0 | [
"Apache-2.0"
] | permissive | jpablo/mathlib | f14c9042506cce59176d3d22b457f190e78938a3 | fd453cf1569b8f9396476287b046d216e92224e4 | refs/heads/master | 1,690,443,975,886 | 1,631,043,219,000 | 1,631,043,219,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,689 | 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 linear_algebra.basic
/-!
# Basics on bilinear maps
This file provides basics on bilinear maps.
## Main declarations
* `linear_map.mk₂`: a constructo... |
47f1a8966c3a7a011ba78c24db8bfc2cb8c3bdc0 | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /linear_algebra/multivariate_polynomial.lean | f038fe5ee2a6632e994f4e6a7e1e625437fc36e6 | [
"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 | 9,646 | 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
Multivariate Polynomial
-/
import data.finsupp linear_algebra.basic
open set function finsupp lattice
universes u v w
variables {α : Type u} {β : Type v} {γ : Type w}... |
19197a099ec828fe0c5764384f5fbb34295caa8d | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/meta/expr.lean | db0fbc18a177b51e54d6105586186182deb38440 | [
"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 | 27,230 | lean | /-
Copyright (c) 2019 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Scott Morrison, Keeley Hoek, Robert Y. Lewis
-/
import data.string.defs tactic.derive_inhabited
/-!
# Additional operations on expr and related types
Thi... |
3c2cf98a55023d67caa17e533e84c2d18915716b | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/letMVar.lean | 096ffb79ab2a0bcbc84ba8905b2e7db4c7bc1867 | [
"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 | 120 | lean | def tst (x : Nat) : Nat :=
let_mvar% ?m := x + 1;
?m + ?m
#print tst
example : tst x = (x + 1) + (x + 1) :=
rfl
|
a5987fba2cd3bb3898adb4920f91915db7ccf0c8 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/linear_algebra/matrix/is_diag.lean | f4c75fe90ec9383b11cf7f8d7dff53695409b761 | [
"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 | 6,228 | lean | /-
Copyright (c) 2021 Lu-Ming Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Lu-Ming Zhang
-/
import linear_algebra.matrix.symmetric
import linear_algebra.matrix.orthogonal
import data.matrix.kronecker
/-!
# Diagonal matrices
This file contains the definition ... |
b5c45ac347d43dddc60a03f6db70493c6084a169 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/category_theory/instances/Top/open_nhds.lean | 28a4cc7b241191681889fa927b58bbbffb50a7d8 | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 1,554 | lean | import category_theory.instances.Top.opens
import category_theory.full_subcategory
open category_theory
open category_theory.instances
open topological_space
universe u
namespace topological_space.open_nhds
variables {X Y : Top.{u}} (f : X ⟶ Y)
def open_nhds (x : X.α) := { U : opens X // x ∈ U }
instance open_nhds_... |
57e65158e235bfaacab23e675296e040df7cd449 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/var2.lean | 6007f7c7acebcae71714151ae079d440d5d122cd | [
"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 | 186 | lean | import logic
section
universe l
variable A : Type.{l}
variable a : A
parameter B : Type.{l}
parameter b : B
definition foo := fun (H : A = B), cast H a = b
end
check foo
|
9772736b7ab3eddc57185268207fbfe1c9c8b06b | e8153a5579a289d323a1f905f108faed9bb4988c | /src/divisibility_lattice.lean | da915dad3dd21bd077146d7293beed6cdbf79f41 | [] | no_license | awainverse/perfect_number | 983ae4a6fdeafc507be0143e949f33b985d415df | 3d5504b4529fbccd4ab69c8816731096c50402be | refs/heads/master | 1,667,809,996,394 | 1,593,575,741,000 | 1,593,575,741,000 | 272,861,730 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,201 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Aaron Anderson.
-/
import order.conditionally_complete_lattice
import order.lattice
import tactic.pi_instances
/-
# Divisibility Lattices
## Notations
## Implementation Notes
Trying... |
5cdcd9f037a964d6245ef0161b0e794bd8f8ed39 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/category/Module/monoidal.lean | 6f8a93b06d79f435b5dc4c1de085fdf526a416cb | [
"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 | 12,142 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Scott Morrison, Jakob von Raumer
-/
import category_theory.monoidal.braided
import category_theory.closed.monoidal
import algebra.category.Module.basic
import linear_alg... |
069b6cc191361a1c465b9d746dc88613d2a7a0c1 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/order/lattice.lean | 97d014cce1283e9574656ac8d6be814203395784 | [
"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 | 37,490 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import order.monotone
import order.rel_classes
import tactic.simps
import tactic.pi_instances
/-!
# (Semi-)lattices
Semilattices are partially ordered sets with joi... |
437e56cc431b9a191e9c096da80ef53f73461928 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/multiset/erase_dup.lean | 9deeba2f3ef25f38f90a2e71c37e7629558c39bb | [
"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 | 3,047 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.multiset.nodup
/-!
# Erasing duplicates in a multiset.
-/
namespace multiset
open list
variables {α β : Type*} [decidable_eq α]
/-! ### erase_dup -/
/... |
b8c9acc841091b44fbd98cfd53a337cde0802090 | 626e312b5c1cb2d88fca108f5933076012633192 | /src/data/polynomial/coeff.lean | 83dc05a30c6c0f5da4e9d0fb0d58ce3003fcc83e | [
"Apache-2.0"
] | permissive | Bioye97/mathlib | 9db2f9ee54418d29dd06996279ba9dc874fd6beb | 782a20a27ee83b523f801ff34efb1a9557085019 | refs/heads/master | 1,690,305,956,488 | 1,631,067,774,000 | 1,631,067,774,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,993 | 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 data.polynomial.basic
import data.finset.nat_antidiagonal
import data.nat.choose.sum
/-!
# Theory of univariate p... |
8fae1f38d0d743d2eee455ca40fc78598822c5cc | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /library/algebra/category/morphism.lean | f2ef0f198dfaee6d6272fe0e25f7d40fc8075fa7 | [
"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 | 11,996 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: algebra.category.morphism
Author: Floris van Doorn
-/
import .basic algebra.relation algebra.binary
open eq eq.ops category
namespace morphism
variables {ob : Type} [C : categor... |
48e473bfaabf6e286508fdcef5c66b54fa3f175c | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /library/init/meta/interactive.lean | 42ed5b9a1969c6e6bd5d33710bf72019d4f656f2 | [
"Apache-2.0"
] | permissive | bjoeris/lean | 0ed95125d762b17bfcb54dad1f9721f953f92eeb | 4e496b78d5e73545fa4f9a807155113d8e6b0561 | refs/heads/master | 1,611,251,218,281 | 1,495,337,658,000 | 1,495,337,658,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 30,068 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.tactic init.meta.rewrite_tactic init.meta.simp_tactic
import init.meta.smt.congruence_closure init.category.combinators
import init... |
0607bbcd9f1dcd144b5a642f7fed484f8adc6cc8 | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/algebra/euclidean_domain.lean | 41d667475aab23f1314df845365c9f90ab9467dd | [
"Apache-2.0"
] | permissive | anrddh/mathlib | 6a374da53c7e3a35cb0298b0cd67824efef362b4 | a4266a01d2dcb10de19369307c986d038c7bb6a6 | refs/heads/master | 1,656,710,827,909 | 1,589,560,456,000 | 1,589,560,456,000 | 264,271,800 | 0 | 0 | Apache-2.0 | 1,589,568,062,000 | 1,589,568,061,000 | null | UTF-8 | Lean | false | false | 13,702 | lean | /-
Copyright (c) 2018 Louis Carlin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Louis Carlin, Mario Carneiro
Euclidean domains and Euclidean algorithm (extended to come)
A lot is based on pre-existing code in mathlib for natural number gcds
-/
import data.int.basic... |
0816ac44e974ac0f57d3fff50fe1293305592c28 | 5883d9218e6f144e20eee6ca1dab8529fa1a97c0 | /src/aeq/map.lean | 969a1222f779a2335ecd2e43be4af2ad1f4727fe | [] | 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 | 3,218 | lean | /-
This file contains the `aeq` `map` operation.
-/
import .type
namespace acie -----------------------------------------------------------------
namespace aeq ------------------------------------------------------------------
variables {V : Type} [decidable_eq V] -- Type of variable names
variables {vs : Type → T... |
99380d7b196654f67e030f1b95ef8794a0bab7ff | c5b07d17b3c9fb19e4b302465d237fd1d988c14f | /src/tmp/theory.lean | e76542cecdc750f4b21acfcb6277227a23d51485 | [
"MIT"
] | permissive | skaslev/papers | acaec61602b28c33d6115e53913b2002136aa29b | f15b379f3c43bbd0a37ac7bb75f4278f7e901389 | refs/heads/master | 1,665,505,770,318 | 1,660,378,602,000 | 1,660,378,602,000 | 14,101,547 | 0 | 1 | MIT | 1,595,414,522,000 | 1,383,542,702,000 | Lean | UTF-8 | Lean | false | false | 718 | lean | import functors.family
import isos.nat
open fam
@[reducible, simp]
def statement (M : Type*) := M → Type*
def proof {M} (c : statement M) := Π m, c m
@[reducible, simp]
def statements (M) := fam (statement M)
def proofs {M} (c : statements M) := Π i, proof (c i)
def theorems (M) := Σ c : statements M, proofs c
d... |
7c6b9e38c8e00763c9a21c51aeb7287b464974a6 | 5c7fe6c4a9d4079b5457ffa5f061797d42a1cd65 | /src/exercises/src_36_order_axioms.lean | a41a8e8549872a0d02e5f5e1f84c27581ac2fa93 | [] | no_license | gihanmarasingha/mth1001_tutorial | 8e0817feeb96e7c1bb3bac49b63e3c9a3a329061 | bb277eebd5013766e1418365b91416b406275130 | refs/heads/master | 1,675,008,746,310 | 1,607,993,443,000 | 1,607,993,443,000 | 321,511,270 | 3 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,345 | lean | import ..library.src_ordered_field
namespace mth1001
namespace myreal
section ordered
variables {R : Type} [myordered_field R]
open_locale classical
open myordered_field
/-
The three basic axiom of an orderd field are:
1. `trichotomy`,
2. `pos_add_of_pos_of_pos`, and
3. `pos_mul_of_pos_of_pos`,
as exemplified ... |
7c161928ecbd350186a87d70fc16f8771d888041 | e5c11e5a7d990ce404047c2bd848eeafac3c0a85 | /src/number_field.lean | 8f1afccd3d1321452bebef020be6b4381709f813 | [
"LPPL-1.3c"
] | permissive | lean-forward/class-number | 9ec63c24845e46efc8fa8b15324d0815918292c7 | 4fccf36d5e0e16accae84c16df77a3839ad964e4 | refs/heads/main | 1,686,927,014,542 | 1,624,886,724,000 | 1,624,886,724,000 | 327,319,245 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,405 | lean | /-
Copyright (c) 2021 Ashvni Narayanan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Ashvni Narayanan, Anne Baanen
-/
import algebra.field
import data.rat.basic
import ring_theory.algebraic
import ring_theory.dedekind_domain
import ring_theory.integral_closure
/-!
#... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.